* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6fb1fc 0%, #f7d794 45%, #78e08f 100%);
    min-height: 100vh;
    color: #333;
    padding: 10px;
}

[v-cloak] {
    display: none;
}

.app-main {
    max-width: 1080px;
    margin: 0 auto;
}

.app-footer {
    color: rgba(31, 41, 55, 0.72);
    font-size: 0.85rem;
    padding: 14px 0 4px;
    text-align: center;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 10px;
    margin: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    margin: 0 auto 10px;
    max-width: 1080px;
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.brand-link {
    color: #1f2937;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover, .router-link-active {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.back-arrow {
    display: inline-block;
    width: 0; 
    height: 0; 
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid black;
    margin-right: 5px;
}

.colorful-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
    text-align: center;
    background: linear-gradient(135deg, #2563eb, #16a34a);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.welcome-actions .login-btn,
.welcome-actions .register-btn {
    margin-top: 0;
    min-width: 110px;
    width: auto;
}

.register-btn {
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 12px;
    padding: 12px 18px;
    transition: 0.25s;
    width: 100%;
}

.register-btn:hover {
    background: #22c55e;
    box-shadow: 0 6px 15px rgba(34, 197, 94, 0.22);
}

.welcome-copy {
    color: #4b5563;
    line-height: 1.7;
    text-align: center;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px;
    color: #333;
    text-align: center;
    background: black;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.currency-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.profile-currency-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.currency-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.currency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.currency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.currency-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.currency-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.currency-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
}

.currency-history {
    font-size: 1rem;
    font-weight: 400;
    color: #44526a;
}

.task-stats {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.task-finish {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-list {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.task-item {
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.task-item:last-child {
    border-bottom: none;
}

.task-header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: background 0.3s ease;
}

.task-header:hover {
    background: #f8f9fa;
}

.task-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.task-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.field-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.task-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.task-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.type-1 { background: #e3f2fd; color: #19d228; }
.type-2 { background: #f3e5f5; color: #1f51a2; }
.type-3 { background: #f3e5f5; color: #741fa2; }
.type-4 { background: #f3e5f5; color: #a2601f; }
.type-11 { background: #ffebee; color: #d32f2f; }


.expand-icon {
    transition: transform 0.3s ease;
    color: #666;
}

.expanded .expand-icon {
    transform: rotate(180deg);
}

.task-content {
    padding: 0 5px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #bdbdbd;
}

.expanded .task-content {
    padding: 20px;
    max-height: 400px;
}

.task-description {
    font-size: 0.8rem;
    color: #333;
}

.add-task-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.add-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.detail-section {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-section h3 {
    color: #475569;
    margin-bottom: 10px;
    font-size: 1rem;
}

.assigned-users {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.task-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assign-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.edit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.delete-btn {
    background: linear-gradient(135deg, #f64b4b 0%, #d83f1dfb 100%);
    color: white;
}

.action-btn:hover {
    transform: scale(1.05);
}

.user-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.page-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 500px;
}


.page-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.header {
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-top:20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
}

.modal-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-content {
    padding: 30px;
}

.modal-action-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.modal-action-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.reward-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: auto;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.user-item:hover {
    background: #e2e8f0;
}

.user-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
}

.user-status {
    font-size: 0.85rem;
    color: #64748b;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.assign-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assign-btn-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.assign-btn-inactive {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.save-btn, .create-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover, .create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.cancel-btn {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: #e5e7eb;
}

/* profile */
.logout-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c53030;
    transform: translateY(-2px);
}

.profile-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}


.user-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-weight: 500;
}


.achievement-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.current-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.title-name {
    font-size: 1.8rem;
    font-weight: 700;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.achievement-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievement-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

/* login */
.page-content input {
    width: 100%;
    padding: 12px 14px;
    margin: 12px 0;
    font-size: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    outline: none;
    transition: 0.25s;
}

.page-content input:focus {
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64,158,255,0.2);
}

.login-btn {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    margin-top: 20px;
    background: #409eff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s;
}

.login-btn:hover {
    background: #66b1ff;
    box-shadow: 0 6px 15px rgba(64,158,255,0.25);
}

.login-btn:active {
    background: #3a8ee6;
}

/* Task */

.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.button-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reward-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reward-type {
    color: #666;
    font-size: 0.9rem;
}

.reward-content {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    background: #fff3e0;
    color: #f57c00;
}

.manage-btn {
    background: linear-gradient(135deg, #a04f64, #b31e1e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.manage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.manage-btn:active {
    transform: translateY(0);
}

.publish-btn {
    background: linear-gradient(135deg, #3d62b8, #281999);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.publish-btn:active {
    transform: translateY(0);
}

.task-detail-btn {
    background: linear-gradient(135deg, #a04f64, #b31e1e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.task-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.task-detail-btn:active {
    transform: translateY(0);
}

.complete-btn {
    background: linear-gradient(135deg, #bdf2bd, #45a049);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.complete-btn:active {
    transform: translateY(0);
}

.marquee-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 10px 10px 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.notification-item {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: #f7fafc;
    transform: translateX(5px);
}

.notification-content {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
}

.notification-time {
    font-size: 14px;
    color: #718096;
}

.new-badge {
    display: inline-block;
    background: #fa5252;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

/** shop */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.product-info {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.0em;
}

.product-price {
    font-size: 1rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.stock-info {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.quantity-btn {
    width: 15px;
    height: 15px;
    border: none;
    background: #3498db;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.quantity-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.quantity-input {
    width: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    margin: 0 8px;
    outline: none;
}

.buy-btn {
    width: 100%;
    padding: 6px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.buy-btn:active {
    transform: translateY(0);
}

.section {
    padding: 10px 0px;
    border-bottom: 1px solid #f0f0f0;
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #667eea;
}

.basic-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.basic-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.user-details {
    flex: 1;
}

.nickname {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.level {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 12px;
    color: #666;
}

.info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.clickable-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #e9ecef;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-item:hover {
    background: #e4eaf0;
    transform: translateY(-2px);
}

.item-name {
    font-weight: 500;
    color: #333;
}

.item-arrow {
    color: #667eea;
    font-weight: bold;
}

.currency-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.currency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.currency-name {
    font-weight: 600;
    color: #333;
}

.currency-amount {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.currency-history {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.currency-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.use-btn {
    background: #667eea;
    color: white;
}

.use-btn:hover {
    background: #5a6fd8;
}

.get-btn {
    background: #51cf66;
    color: white;
}

.get-btn:hover {
    background: #40c057;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.member-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 10px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.member-card:hover::before {
    opacity: 1;
}

.member-name {
    font-size: 1.0em;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.member-role {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.member-info {
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.member-link {
    font-size: 0.9em;
    position: relative;
    text-decoration: underline; /* 基础下划线 */
    transition: text-decoration-color 0.3s ease; /* 动画过渡 */
}

.member-link:hover {
    text-decoration-color: #007BFF; /* 悬停时颜色变化 */
}

.empty-state {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

.children-section .member-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.parent-section .member-card:nth-child(1) {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.parent-section .member-card:nth-child(2) {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.parent-section .member-card:nth-child(3) {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
}

.children-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.child-item {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.child-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-button {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.0rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}


@media (max-width: 768px) {
    .navbar {
        border-radius: 8px;
    }

    .header {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .user-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .currency-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .basic-info {
        flex-direction: column;
        text-align: center;
    }
    
    .achievements-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* GameSanguo 组件样式 */
#game-sanguo {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(180deg, #1a0a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 背景动画 */
#game-sanguo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 150, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#game-sanguo .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* 顶部导航 */
#game-sanguo .sanguo-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}

#game-sanguo .sanguo-header .back-btn {
    display: none;
}

#game-sanguo .back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

#game-sanguo .back-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

#game-sanguo .sanguo-title {
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin: 0;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#game-sanguo .header-spacer {
    width: 40px;
}

/* 资源栏 */
#game-sanguo .resource-bar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 20px;
}

#game-sanguo .resource-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.15);
}

#game-sanguo .resource-icon {
    font-size: 1.2rem;
}

#game-sanguo .resource-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffd700;
}

#game-sanguo .resource-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* 我的武将入口 */
#game-sanguo .my-heroes-btn {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 30px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

#game-sanguo .my-heroes-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

#game-sanguo .my-heroes-icon {
    font-size: 1.5rem;
}

#game-sanguo .my-heroes-text {
    font-size: 1rem;
    font-weight: 600;
}

#game-sanguo .my-heroes-arrow {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* 主舞台 */
#game-sanguo .main-stage {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 阵营选择 */
#game-sanguo .faction-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#game-sanguo .faction-selector.active {
    opacity: 1;
    transform: translateY(0);
}

#game-sanguo .faction-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
}

#game-sanguo .faction-btn:hover {
    transform: scale(1.1);
}

#game-sanguo .faction-btn.selected {
    transform: scale(1.15);
    border-width: 3px;
}

#game-sanguo .faction-wei.selected {
    border-color: #8b0000;
    color: #ff6b6b;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

#game-sanguo .faction-shu.selected {
    border-color: #228b22;
    color: #90ee90;
    box-shadow: 0 0 20px rgba(34, 139, 34, 0.5);
}

#game-sanguo .faction-wu.selected {
    border-color: #00008b;
    color: #87ceeb;
    box-shadow: 0 0 20px rgba(0, 0, 139, 0.5);
}

#game-sanguo .faction-qun.selected {
    border-color: #8b4513;
    color: #ffa07a;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
}

/* 抽奖按钮组 */
#game-sanguo .draw-buttons {
    display: flex;
    gap: 40px;
    margin-bottom: 25px;
}

#game-sanguo .draw-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

#game-sanguo .draw-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e3a5f, #0d1f3c);
    border: 4px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

#game-sanguo .single-draw .draw-circle {
    border-color: #ffd700;
}

#game-sanguo .ten-draw .draw-circle {
    border-color: #ff8c00;
}

#game-sanguo .draw-btn:hover .draw-circle {
    transform: scale(1.08);
    box-shadow: 
        0 0 50px rgba(255, 215, 0, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

#game-sanguo .draw-btn:active .draw-circle {
    transform: scale(0.95);
}

#game-sanguo .draw-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

#game-sanguo .draw-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    z-index: 1;
}

#game-sanguo .cost-badge {
    padding: 6px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
}

/* 保底说明 */
#game-sanguo .guarantee-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

#game-sanguo .guarantee-icon {
    font-size: 1rem;
}

/* 底部切换 */
#game-sanguo .footer-tabs {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

#game-sanguo .tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

#game-sanguo .tab-btn:hover {
    background: rgba(255,255,255,0.15);
}

#game-sanguo .tab-btn.active {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #1a0a2e;
    font-weight: bold;
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

#game-sanguo .tab-icon {
    font-size: 1.2rem;
}

/* 结果展示层 */
#game-sanguo .result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

#game-sanguo .result-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

#game-sanguo .result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

/* 单抽卡片 */
#game-sanguo .single-card-container {
    perspective: 1000px;
    width: 280px;
    height: 420px;
    margin: auto;
    cursor: pointer;
}

#game-sanguo .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

#game-sanguo .single-card-container.flipped .card-inner {
    transform: rotateY(180deg);
}

#game-sanguo .card-front, #game-sanguo .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#game-sanguo .card-front {
    background: linear-gradient(145deg, #2c3e50, #1a252f);
    border: 3px solid rgba(255, 215, 0, 0.3);
}

#game-sanguo .card-question {
    font-size: 6rem;
    color: rgba(255, 215, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

#game-sanguo .card-hint {
    margin-top: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
}

#game-sanguo .card-back {
    position: relative;
    transform: rotateY(180deg);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
}

#game-sanguo .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

#game-sanguo .card-level {
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

/* 星级蒙版 - 通用 */
#game-sanguo .card-back .star-overlay {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 3;
    pointer-events: none;
}

/* 星级蒙版 - 橙色 1-5星 */
#game-sanguo .card-back.star-level-orange .star-overlay {
    background: radial-gradient(ellipse 110% 110% at 50% 50%, transparent 45%, rgba(255,140,0,0.5) 75%, rgba(255,140,0,0.8) 100%);
}

/* 星级蒙版 - 金黄色 6-10星 */
#game-sanguo .card-back.star-level-gold .star-overlay {
    background: radial-gradient(ellipse 110% 110% at 50% 50%, transparent 45%, rgba(255,215,0,0.6) 75%, rgba(255,215,0,0.9) 100%);
}

/* 星级蒙版 - 红色 11-15星 */
#game-sanguo .card-back.star-level-red .star-overlay {
    background: radial-gradient(ellipse 110% 110% at 50% 50%, transparent 45%, rgba(255,51,51,0.6) 75%, rgba(255,51,51,0.9) 100%);
}

/* 星级蒙版 - 天蓝色 16-20星 */
#game-sanguo .card-back.star-level-skyblue .star-overlay {
    background: radial-gradient(ellipse 110% 110% at 50% 50%, transparent 45%, rgba(135,206,235,0.6) 75%, rgba(135,206,235,0.9) 100%);
}

/* 星级蒙版 - 彩虹色 21-25星 */
#game-sanguo .card-back.star-level-rainbow .star-overlay {
    background: radial-gradient(ellipse 110% 110% at 50% 50%, transparent 45%, rgba(255,0,255,0.5) 70%, rgba(0,255,255,0.5) 100%);
}

/* 品级标签 */
#game-sanguo .card-back .rank-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    z-index: 15;
    text-shadow: 2px 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
}

#game-sanguo .card-back .rank-color-gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: white;
}

#game-sanguo .card-back .rank-color-purple {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
}

#game-sanguo .card-back .rank-color-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* 阵营标签 */
#game-sanguo .card-back .camp-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    z-index: 15;
    text-shadow: 2px 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
}

/* 名字标签 */
#game-sanguo .card-back .hero-name-tag {
    position: absolute;
    top: 44px;
    right: 8px;
    padding: 8px 6px;
    font-size: 14px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 3px;
    border-radius: 6px 6px 0 12px;
    border: 2px solid;
    border-bottom-color: transparent;
    background: transparent;
    z-index: 14;
}

#game-sanguo .card-back .camp-bg-魏 { background: #0000FF; border-radius: 50%; }
#game-sanguo .card-back .camp-bg-蜀 { background: #00FF00; border-radius: 50%; }
#game-sanguo .card-back .camp-bg-吴 { background: #E34234; border-radius: 50%; }
#game-sanguo .card-back .camp-bg-群 { background: #800080; border-radius: 50%; }

/* 名字标签 */
#game-sanguo .card-back .hero-name-tag {
    position: absolute;
    top: 44px;
    right: 8px;
    padding: 8px 6px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 3px;
    background: transparent;
    border: none;
    z-index: 14;
}

#game-sanguo .card-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.8) 100%);
}

#game-sanguo .card-rarity-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 900;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

#game-sanguo .rarity-text-SSS { color: #ffd700; text-shadow: 0 0 20px #ffd700; }
#game-sanguo .rarity-text-SS { color: #ff4500; }
#game-sanguo .rarity-text-S { color: #ff69b4; }
#game-sanguo .rarity-text-A { color: #9370db; }
#game-sanguo .rarity-text-B { color: #1e90ff; }
#game-sanguo .rarity-text-C { color: #90ee90; }

#game-sanguo .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
}

#game-sanguo .card-name {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 5px;
}

#game-sanguo .card-camp {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

/* 卡片边框光效 */
#game-sanguo .rarity-SSS,
#game-sanguo .mini-back.rarity-SSS {
    border: 5px solid #ffd700 !important;
    box-shadow: 0 0 60px #ffd700, inset 0 0 30px rgba(255, 215, 0, 0.3) !important;
    animation: glow-SSS 1.5s infinite alternate;
}

#game-sanguo .rarity-SS,
#game-sanguo .mini-back.rarity-SS {
    border: 5px solid #ff4500 !important;
    box-shadow: 0 0 40px #ff4500, inset 0 0 20px rgba(255, 69, 0, 0.3) !important;
}

#game-sanguo .rarity-S,
#game-sanguo .mini-back.rarity-S {
    border: 5px solid #ff69b4 !important;
    box-shadow: 0 0 30px #ff69b4 !important;
}

#game-sanguo .rarity-A,
#game-sanguo .mini-back.rarity-A {
    border: 4px solid #9370db !important;
    box-shadow: 0 0 25px #9370db !important;
}

#game-sanguo .rarity-B,
#game-sanguo .mini-back.rarity-B {
    border: 4px solid #1e90ff !important;
    box-shadow: 0 0 20px #1e90ff !important;
}

#game-sanguo .rarity-C,
#game-sanguo .mini-back.rarity-C {
    border: 3px solid #90ee90 !important;
    box-shadow: 0 0 15px #90ee90 !important;
}

@keyframes glow-SSS {
    from { box-shadow: 0 0 60px #ffd700, inset 0 0 30px rgba(255, 215, 0, 0.3); }
    to { box-shadow: 0 0 80px #ffd700, inset 0 0 50px rgba(255, 215, 0, 0.5); }
}

/* 十连卡片容器 */
#game-sanguo .ten-pull-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: auto;
    padding: 0 10px;
}

#game-sanguo .ten-pull-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

#game-sanguo .ten-pull-row.row-2 {
    justify-content: center;
    gap: 8px;
}

#game-sanguo .ten-pull-row.row-3 {
    justify-content: center;
    gap: 8px;
}

#game-sanguo .ten-pull-row .mini-card {
    position: relative;
    aspect-ratio: 3/4;
    width: 0;
    flex: 1;
    max-width: 120px;
    min-width: 60px;
    perspective: 1000px;
    cursor: pointer;
}

#game-sanguo .mini-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

#game-sanguo .mini-card.flipped .mini-card-inner {
    transform: rotateY(180deg);
}

#game-sanguo .mini-front, #game-sanguo .mini-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#game-sanguo .mini-front {
    background: linear-gradient(145deg, #2c3e50, #1a252f);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

#game-sanguo .mini-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: rgba(255, 215, 0, 0.4);
}

#game-sanguo .mini-name {
    font-size: 0.9rem !important;
}

#game-sanguo .mini-back {
    position: relative;
    transform: rotateY(180deg);
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
}

/* mini卡片信息 */
#game-sanguo .mini-level {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* mini卡片星级蒙版 */
#game-sanguo .mini-back .star-overlay {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 3;
    pointer-events: none;
}

/* mini卡片星级蒙版 - 橙色 */
#game-sanguo .mini-back.star-level-orange .star-overlay {
    background: radial-gradient(ellipse 110% 110% at 50% 50%, transparent 45%, rgba(255,140,0,0.5) 75%, rgba(255,140,0,0.8) 100%);
}

/* mini卡片星级蒙版 - 金黄色 */
#game-sanguo .mini-back.star-level-gold .star-overlay {
    background: radial-gradient(ellipse 110% 110% at 50% 50%, transparent 45%, rgba(255,215,0,0.6) 75%, rgba(255,215,0,0.9) 100%);
}

/* mini卡片星级蒙版 - 红色 */
#game-sanguo .mini-back.star-level-red .star-overlay {
    background: radial-gradient(ellipse 110% 110% at 50% 50%, transparent 45%, rgba(255,51,51,0.6) 75%, rgba(255,51,51,0.9) 100%);
}

/* mini卡片星级蒙版 - 天蓝色 */
#game-sanguo .mini-back.star-level-skyblue .star-overlay {
    background: radial-gradient(ellipse 110% 110% at 50% 50%, transparent 45%, rgba(135,206,235,0.6) 75%, rgba(135,206,235,0.9) 100%);
}

/* mini卡片星级蒙版 - 彩虹 */
#game-sanguo .mini-back.star-level-rainbow .star-overlay {
    background: radial-gradient(ellipse 110% 110% at 50% 50%, transparent 45%, rgba(255,0,255,0.5) 70%, rgba(0,255,255,0.5) 100%);
}

/* mini卡片品级标签 */
#game-sanguo .mini-back .rank-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: bold;
    z-index: 15;
    text-shadow: 2px 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
}

#game-sanguo .mini-back .rank-color-gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: white;
}

#game-sanguo .mini-back .rank-color-purple {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
}

#game-sanguo .mini-back .rank-color-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* mini卡片阵营标签 */
#game-sanguo .mini-back .camp-tag {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: bold;
    color: white;
    z-index: 15;
    text-shadow: 2px 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
}

/* mini卡片名字标签 */
#game-sanguo .mini-back .hero-name-tag {
    position: absolute;
    top: 24px;
    right: 4px;
    padding: 4px 3px;
    font-size: 10px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
    border-radius: 4px 4px 0 8px;
    border: 1px solid;
    border-bottom-color: transparent;
    z-index: 14;
}

#game-sanguo .mini-back .camp-bg-魏 { background: #0000FF; border-radius: 50%; }
#game-sanguo .mini-back .camp-bg-蜀 { background: #00FF00; border-radius: 50%; }
#game-sanguo .mini-back .camp-bg-吴 { background: #E34234; border-radius: 50%; }
#game-sanguo .mini-back .camp-bg-群 { background: #800080; border-radius: 50%; }

/* mini卡片名字标签 */
#game-sanguo .mini-back .hero-name-tag {
    position: absolute;
    top: 24px;
    right: 4px;
    padding: 4px 3px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
    border: none;
    background: transparent;
    z-index: 14;
}

#game-sanguo .mini-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.9) 100%);
}

#game-sanguo .mini-rarity {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(0,0,0,0.6);
}

#game-sanguo .mini-name {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 3px black;
    padding: 0 5px;
}

#game-sanguo .hint-text {
    margin-top: 20px;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

#game-sanguo .header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

#game-sanguo .resource-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    cursor: pointer;
}

#game-sanguo .gold-icon {
    width: 24px;
    height: 24px;
    background: gold;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px gold;
}

#game-sanguo .main-stage {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

#game-sanguo .faction-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#game-sanguo .faction-selector.active {
    opacity: 1;
    transform: translateY(0);
}

#game-sanguo .faction-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.5);
    color: #ccc;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

#game-sanguo .faction-btn.selected {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
}

#game-sanguo .draw-buttons {
    display: flex;
    gap: 40px;
}

#game-sanguo .draw-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

#game-sanguo .draw-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4a90e2, #003366);
    border: 3px solid #8ec5fc;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    transition: transform 0.1s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

#game-sanguo .draw-circle:active {
    transform: scale(0.95);
}

#game-sanguo .draw-circle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

#game-sanguo .cost-label {
    font-size: 14px;
    color: #ddd;
    text-shadow: 0 1px 2px black;
}

#game-sanguo .footer-tabs {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding-bottom: 40px;
    gap: 20px;
}

#game-sanguo .tab-btn {
    padding: 12px 40px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%, 0% 20%);
}

#game-sanguo .tab-btn.active {
    background: linear-gradient(to right, #d4af37, #f9e395);
    color: #3e2723;
    font-weight: bold;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

#game-sanguo .result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

#game-sanguo .result-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

#game-sanguo .single-card-container {
    perspective: 1000px;
    width: 300px;
    height: 450px;
    cursor: pointer;
}

#game-sanguo .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

#game-sanguo .single-card-container.flipped .card-inner {
    transform: rotateY(180deg);
}

#game-sanguo .card-front, #game-sanguo .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#game-sanguo .card-front {
    background: linear-gradient(135deg, #2c3e50, #000);
    border: 2px solid #555;
}

#game-sanguo .card-back {
    transform: rotateY(180deg);
    background-size: cover;
    background-position: center;
    border: 4px solid;
}

#game-sanguo .rarity-S {
    border-color: #ffd700 !important;
    box-shadow: 0 0 50px #ffd700, inset 0 0 20px #ffd700 !important;
}

#game-sanguo .rarity-A {
    border-color: #ff4500 !important;
    box-shadow: 0 0 30px #ff4500 !important;
}

#game-sanguo .rarity-B, #game-sanguo .rarity-C {
    border-color: #1e90ff !important;
    box-shadow: 0 0 20px #1e90ff !important;
}

#game-sanguo .card-name {
    margin-top: 20px;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.6);
    padding: 5px 20px;
    border-radius: 5px;
}

#game-sanguo .card-rarity-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
}

#game-sanguo .ten-pull-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 15px;
    width: 90%;
    max-width: 1000px;
    height: 80%;
}

#game-sanguo .mini-card {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    cursor: pointer;
}

#game-sanguo .mini-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

#game-sanguo .mini-card.flipped .mini-card-inner {
    transform: rotateY(180deg);
}

#game-sanguo .mini-front, #game-sanguo .mini-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-sanguo .mini-front {
    background: linear-gradient(135deg, #333, #111);
    border: 1px solid #444;
}

#game-sanguo .mini-back {
    transform: rotateY(180deg);
    background-size: cover;
    background-position: center;
    border: 2px solid;
}

#game-sanguo .mini-name {
    position: absolute;
    bottom: 10%;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px black;
    background: rgba(0,0,0,0.5);
}

#game-sanguo .mini-rarity {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    font-weight: bold;
}

@keyframes flash-gold {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

#game-sanguo .flash-effect {
    animation: flash-gold 1s infinite;
}

#game-sanguo .hint-text {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    pointer-events: none;
}

/* GameSanguoList 组件样式 */
#game-sanguo-list {
    --primary-color: #d4af37;
    --bg-color: #f5f7fa;
    --card-bg-sss: linear-gradient(135deg, #ffd700, #ffaa00);
    --card-bg-ss: linear-gradient(135deg, #c0c0c0, #e0e0e0);
    --card-bg-s: linear-gradient(135deg, #cd7f32, #daa520);
    --card-bg-a: linear-gradient(135deg, #4facfe, #00f2fe);
    --card-bg-b: linear-gradient(135deg, #43e97b, #38f9d7);
    --card-bg-c: linear-gradient(135deg, #a18cd1, #fbc2eb);
    --card-bg-d: linear-gradient(135deg, #ffecd2, #fcb69f);
    background-color: var(--bg-color);
    color: #333;
    padding-bottom: 60px;
    min-height: 100vh;
}

#game-sanguo-list .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 15px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#game-sanguo-list .page-header .back-btn {
    display: none;
}

/* 左下角返回按钮 - 列表页 */
#game-sanguo-list .back-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.9);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

#game-sanguo-list .back-btn:hover {
    transform: scale(1.1);
    background: rgba(102, 126, 234, 1);
}

/* 左下角返回按钮 - 详情页 */
#game-sanguo-detail .back-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.9);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

#game-sanguo-detail .back-btn:hover {
    transform: scale(1.1);
    background: rgba(102, 126, 234, 1);
}

/* 左下角返回按钮 - 抽卡页 */
#game-sanguo .back-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.9);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

#game-sanguo .back-btn:hover {
    transform: scale(1.1);
    background: rgba(102, 126, 234, 1);
}

/* 仓库信息样式 */
#game-sanguo-list .storage-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

#game-sanguo-list .storage-count {
    font-size: 16px;
    font-weight: bold;
    color: #667eea;
}

#game-sanguo-list .storage-label {
    font-size: 12px;
    color: #999;
}

#game-sanguo-list .back-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

#game-sanguo-list .back-btn:hover {
    background: rgba(255,255,255,0.3);
}

#game-sanguo-list .back-icon {
    font-size: 18px;
}

#game-sanguo-list .page-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

#game-sanguo-list .header-spacer {
    width: 70px;
}

#game-sanguo-list .filter-container {
    background: white;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

#game-sanguo-list .filter-row {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 10px;
    scrollbar-width: none;
}

#game-sanguo-list .filter-row::-webkit-scrollbar {
    display: none;
}

#game-sanguo-list .filter-label {
    font-size: 12px;
    color: #888;
    margin-right: 10px;
    line-height: 30px;
    flex-shrink: 0;
}

#game-sanguo-list .filter-item {
    padding: 5px 15px;
    margin-right: 8px;
    border-radius: 20px;
    background: #eee;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

#game-sanguo-list .filter-item.active {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

#game-sanguo-list .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
}

#game-sanguo-list .card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
    background: white;
    border-radius: 50% 50% 50% 50% / 8% 8% 8% 8%;
}

#game-sanguo-list .card-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#game-sanguo-list .card:active {
    transform: scale(0.98);
}

/* 星级蒙版 - 中间透明，四周渐变边框 */
#game-sanguo-list .card .star-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    border-radius: 50% 50% 50% 50% / 8% 8% 8% 8%;
}

/* 星级蒙版 - 橙色 1-5星 */
#game-sanguo-list .card.star-level-orange .star-overlay {
    background: radial-gradient(ellipse at center, transparent 35%, rgba(255,140,0,0.4) 75%, rgba(255,140,0,0.7) 100%);
}

/* 星级蒙版 - 金黄色 6-10星 */
#game-sanguo-list .card.star-level-gold .star-overlay {
    background: radial-gradient(ellipse at center, transparent 35%, rgba(255,215,0,0.4) 75%, rgba(255,215,0,0.7) 100%);
}

/* 星级蒙版 - 红色 11-15星 */
#game-sanguo-list .card.star-level-red .star-overlay {
    background: radial-gradient(ellipse at center, transparent 35%, rgba(255,51,51,0.4) 75%, rgba(255,51,51,0.7) 100%);
}

/* 星级蒙版 - 天蓝色 16-20星 */
#game-sanguo-list .card.star-level-skyblue .star-overlay {
    background: radial-gradient(ellipse at center, transparent 35%, rgba(135,206,235,0.4) 75%, rgba(135,206,235,0.7) 100%);
}

/* 星级蒙版 - 彩虹色 21-25星 */
#game-sanguo-list .card.star-level-rainbow .star-overlay {
    background: radial-gradient(ellipse at center, transparent 35%, rgba(255,0,128,0.4) 75%, rgba(0,255,255,0.6) 100%);
}

#game-sanguo-list .card.star-level-orange .card-image,
#game-sanguo-list .card.star-level-gold .card-image,
#game-sanguo-list .card.star-level-red .card-image,
#game-sanguo-list .card.star-level-skyblue .card-image {
    filter: none;
}
#game-sanguo-list .card.star-level-rainbow .card-image {
    filter: saturate(1.5) contrast(1.15) brightness(1.05);
}

#game-sanguo-list .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#game-sanguo-list .bg-SSS { background: var(--card-bg-sss); }
#game-sanguo-list .bg-SS { background: var(--card-bg-ss); }
#game-sanguo-list .bg-S { background: var(--card-bg-s); }
#game-sanguo-list .bg-A { background: var(--card-bg-a); }
#game-sanguo-list .bg-B { background: var(--card-bg-b); }
#game-sanguo-list .bg-C { background: var(--card-bg-c); }
#game-sanguo-list .bg-D { background: var(--card-bg-d); }

#game-sanguo-list .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0.9;
}

#game-sanguo-list .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 3;
    text-align: center;
}

/* 品级标签 - 左上角 */
#game-sanguo-list .rank-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    z-index: 15;
    text-shadow: 2px 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
}

#game-sanguo-list .rank-color-gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 170, 0, 0.5);
}

#game-sanguo-list .rank-color-purple {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.5);
}

#game-sanguo-list .rank-color-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
}

/* 阵营标签 - 右上角上方 */
#game-sanguo-list .camp-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    z-index: 15;
    text-shadow: 2px 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
}

/* 名字标签 - 右上角阵营下方 */
#game-sanguo-list .hero-name-tag {
    position: absolute;
    top: 44px;
    right: 8px;
    padding: 8px 6px;
    font-size: 14px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8), -1px -1px 2px rgba(0,0,0,0.8), 1px -1px 2px rgba(0,0,0,0.8), -1px 1px 2px rgba(0,0,0,0.8);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 3px;
    border-radius: 6px 6px 0 12px;
    border: 2px solid;
    border-bottom-color: transparent;
    line-height: 1.2;
    z-index: 14;
}

/* 阵营背景色 - 圆形 */
#game-sanguo-list .camp-bg-魏 { background: #0000FF; border-radius: 50%; }
#game-sanguo-list .camp-bg-蜀 { background: #00FF00; border-radius: 50%; }
#game-sanguo-list .camp-bg-吴 { background: #E34234; border-radius: 50%; }
#game-sanguo-list .camp-bg-群 { background: #800080; border-radius: 50%; }

/* 名字标签 - 竖排艺术字，右上角阵营下方 */
#game-sanguo-list .hero-name-tag {
    position: absolute;
    top: 38px;
    right: 8px;
    padding: 4px 6px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
    background: transparent;
    border: none;
    line-height: 1;
    z-index: 10;
}

/* 星级显示 - 底部居中 */
#game-sanguo-list .stars-container {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    z-index: 10;
}

#game-sanguo-list .stars-container span {
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* 先手值 - 最底部 */
#game-sanguo-list .speed-value {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 10;
    white-space: nowrap;
}

#game-sanguo-list .combat-power {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 12px;
}

#game-sanguo-list .power-icon {
    font-size: 12px;
}

#game-sanguo-list .power-value {
    font-weight: bold;
    color: #ffd700;
}

#game-sanguo-list .hero-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
    text-shadow: 1px 1px 2px black;
}

#game-sanguo-list .hero-faction {
    font-size: 10px;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
}

#game-sanguo-list .star-orange { color: #ff8c00; }
#game-sanguo-list .star-gold { color: #ffd700; }
#game-sanguo-list .star-red { color: #ff3333; }
#game-sanguo-list .star-skyblue { color: #87ceeb; }
#game-sanguo-list .star-rainbow {
    background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}
#game-sanguo-list .star-legend {
    font-size: 10px;
    color: #ff00ff;
    font-weight: bold;
    vertical-align: super;
}

#game-sanguo-list .level-text {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 10;
    white-space: nowrap;
}

/* 红色星级以上淡白色扩散特效 */
#game-sanguo-list .white-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 30%, transparent 70%);
    z-index: 3;
    pointer-events: none;
    animation: whiteGlowPulse 2s ease-in-out infinite;
    border-radius: 50% 50% 50% 50% / 8% 8% 8% 8%;
}

@keyframes whiteGlowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

#game-sanguo-list .mask-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

#game-sanguo-list .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: white;
    display: flex;
    border-top: 1px solid #eee;
    z-index: 200;
}

#game-sanguo-list .nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

#game-sanguo-list .nav-item.active {
    color: var(--primary-color);
    font-weight: bold;
    border-top: 2px solid var(--primary-color);
}

/* GameGoldDigging 组件样式 */
#game-gold-digging {
    background: #1a1a2e;
    color: #fff;
    overflow: hidden;
}

#game-gold-digging .container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 10px;
}

#game-gold-digging header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #16213e;
    border-radius: 10px;
    margin-bottom: 10px;
}

#game-gold-digging .stats {
    display: flex;
    gap: 20px;
}

#game-gold-digging .stat-item {
    font-size: 16px;
}

#game-gold-digging .map-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #0f3460;
    border-radius: 10px;
    padding: 10px;
    overflow: auto;
}

#game-gold-digging .floor-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#game-gold-digging .floor-btn {
    padding: 8px 16px;
    margin: 0 5px;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#game-gold-digging .floor-btn.active {
    background: #4f46e5;
}

#game-gold-digging .grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin: 0 auto;
}

#game-gold-digging .cell {
    width: 40px;
    height: 40px;
    background: #4cc9f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

#game-gold-digging .cell:hover {
    transform: scale(1.1);
}

#game-gold-digging .cell.blank,
#game-gold-digging .cell.chest,
#game-gold-digging .cell.monster,
#game-gold-digging .cell.stairs {
    background: #f94144;
}

#game-gold-digging .cell.disabled {
    background: #6c757d;
    cursor: not-allowed;
}

#game-gold-digging .cell.opened {
    background: #277da1;
    cursor: default;
}

#game-gold-digging .info-panel {
    padding: 20px;
    background: #4b4e54;
    max-height: 30%;
    overflow-y: auto;
    border-radius: 10px;
    margin-top: 10px;
}

#game-gold-digging .treasures-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#game-gold-digging .treasure-item {
    background: #3a3a5a;
    padding: 5px 10px;
    border-radius: 4px;
}

#game-gold-digging .control-panel {
    display: flex;
    justify-content: center;
    padding: 10px;
    background: #4b4e54;
    border-radius: 10px;
    margin-top: 10px;
}

#game-gold-digging .evacuate-btn {
    padding: 10px 20px;
    background: #43aa8b;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#game-gold-digging .evacuate-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

#game-gold-digging .message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
}

#game-gold-digging .message.show {
    display: block;
}

/* 首页 Banner 样式 */
.game-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    margin-top: 15px;
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('https://cbk.images.tinswin.cn/kiplay/data/sanguo/lvbu1.jpeg') no-repeat center center;
    background-size: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.game-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* GameSanguo 响应式样式 */
@media (max-width: 480px) {
    #game-sanguo .sanguo-title {
        font-size: 1.2rem;
    }

    #game-sanguo .resource-bar {
        gap: 15px;
        padding: 10px 15px;
    }

    #game-sanguo .resource-item {
        padding: 8px 15px;
    }

    #game-sanguo .resource-value {
        font-size: 1.1rem;
    }

    #game-sanguo .draw-circle {
        width: 90px;
        height: 90px;
    }

    #game-sanguo .draw-text {
        font-size: 1.2rem;
    }

    #game-sanguo .ten-pull-container {
        gap: 6px;
        padding: 0 8px;
    }

    #game-sanguo .ten-pull-row.row-2,
    #game-sanguo .ten-pull-row.row-3 {
        gap: 6px;
    }

    #game-sanguo .ten-pull-row .mini-card {
        max-width: 90px;
        min-width: 50px;
    }

    #game-sanguo .mini-number {
        font-size: 1.5rem;
    }

    #game-sanguo .mini-name {
        font-size: 0.6rem !important;
    }

    #game-sanguo .single-card-container {
        width: 240px;
        height: 360px;
    }

    #game-sanguo .card-name {
        font-size: 1.5rem;
    }

    #game-sanguo .footer-tabs {
        gap: 10px;
        padding: 15px;
    }

    #game-sanguo .tab-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* GameSanguoList 响应式 */
    #game-sanguo-list .page-header {
        padding: 12px 10px 8px;
    }

    #game-sanguo-list .page-title {
        font-size: 16px;
    }

    #game-sanguo-list .back-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    #game-sanguo-list .filter-container {
        padding: 10px;
    }

    #game-sanguo-list .filter-label {
        font-size: 11px;
    }

    #game-sanguo-list .filter-item {
        padding: 5px 12px;
        font-size: 12px;
    }
}

.game-banner:active {
    transform: scale(0.98);
}

.banner-icon {
    font-size: 36px;
}

.banner-text {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.banner-arrow {
    font-size: 24px;
    color: white;
}

/* CalUQuestion页面样式 */
.page-cul-question {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

.page-cul-question .page-cul-question-nav {
    margin-bottom: 15px;
}

.page-cul-question .status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.page-cul-question .progress {
    flex-grow: 1;
    margin: 0 20px;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.page-cul-question .progress-bar {
    height: 100%;
    background: #4f46e5;
    transition: width 0.3s ease-in-out;
}

.page-cul-question .timer {
    font-weight: bold;
    color: #4f46e5;
}

.page-cul-question .question-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 20px;
}

.page-cul-question .question-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.page-cul-question .input-answer {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-top: 20px;
}

.page-cul-question .result-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 20px;
}

.page-cul-question .score {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.page-cul-question .wrong-question {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.page-cul-question .wrong-question:last-child {
    border-bottom: none;
}

.page-cul-question .wrong-question .user-answer {
    color: #ef4444;
}

.page-cul-question .wrong-question .answer {
    color: #10b981;
}

.page-cul-question .keyboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.page-cul-question .key {
    padding: 15px;
    font-size: 1.2rem;
    background: #e5e7eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.page-cul-question .key:hover {
    background: #d1d5db;
}

.page-cul-question .key.clear {
    background: #ef4444;
    color: white;
}

.page-cul-question .key.submit {
    background: #10b981;
    color: white;
    grid-column: span 3;
}

/* UserClass/UserFamily页面样式 */
.page-user-class .content,
.page-user-family .content {
    padding: 15px;
}

.page-user-class .section,
.page-user-family .section {
    margin-bottom: 30px;
}

.page-user-class .section-title,
.page-user-family .section-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4facfe;
    display: inline-block;
}

.page-user-class .members-grid,
.page-user-family .members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.page-user-class .member-card,
.page-user-family .member-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.page-user-class .children-section .member-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.page-user-class .parent-section .member-card:nth-child(1) {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.page-user-family .children-section .member-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.page-user-family .parent-section .member-card:nth-child(1) {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.page-user-family .parent-section .member-card:nth-child(2) {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.page-user-family .parent-section .member-card:nth-child(3) {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
}

.page-user-class .member-card:hover,
.page-user-family .member-card:hover {
    transform: translateY(-3px);
}

.page-user-class .member-name,
.page-user-family .member-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.page-user-class .member-link,
.page-user-family .member-link {
    font-size: 0.85rem;
    text-decoration: underline;
    display: block;
    margin-top: 5px;
}

.page-user-class .feature-grid,
.page-user-family .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.page-user-class .feature-button,
.page-user-family .feature-button {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-user-class .feature-button:hover,
.page-user-family .feature-button:hover {
    transform: translateY(-2px);
}

/* ManageUserTask页面样式 */
.page-manage-user-task .task-stats {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-manage-user-task .task-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-manage-user-task .task-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 15px;
}

.page-manage-user-task .task-item:last-child {
    border-bottom: none;
}

.page-manage-user-task .task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.page-manage-user-task .task-name {
    font-weight: 600;
    color: #1f2937;
}

.page-manage-user-task .task-type {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.page-manage-user-task .task-detail-content {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 10px;
}

.page-manage-user-task .task-description {
    display: block;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.page-manage-user-task .task-finish-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.page-manage-user-task .reward-input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-right: 10px;
}

.page-manage-user-task .complete-btn {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.page-manage-user-task .complete-btn:hover {
    opacity: 0.9;
}

/* ManageTaskAsign页面样式 */
.page-manage-task-asign .user-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-manage-task-asign .user-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.page-manage-task-asign .user-item:last-child {
    border-bottom: none;
}

.page-manage-task-asign .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
}

.page-manage-task-asign .user-info {
    flex: 1;
}

.page-manage-task-asign .user-name {
    font-weight: 600;
    color: #1f2937;
}

.page-manage-task-asign .user-status {
    font-size: 0.85rem;
    color: #6b7280;
}

.page-manage-task-asign .assign-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.page-manage-task-asign .assign-btn-active {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.page-manage-task-asign .assign-btn-inactive {
    background: #e5e7eb;
    color: #6b7280;
}

/* ManageShop页面样式 */
.page-manage-shop .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.page-manage-shop .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-manage-shop .product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.page-manage-shop .product-info {
    padding: 12px;
}

.page-manage-shop .product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.page-manage-shop .product-price {
    font-size: 0.9rem;
    color: #10b981;
    margin-bottom: 10px;
}

.page-manage-shop .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.page-manage-shop .stock-info {
    font-size: 0.8rem;
    color: #6b7280;
}

.page-manage-shop .quantity-control {
    display: flex;
    align-items: center;
}

.page-manage-shop .quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.page-manage-shop .quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px;
    margin: 0 5px;
}

.page-manage-shop .buy-btn {
    width: 100%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* ManageCardSanguo页面样式 */
.page-manage-card-sanguo .filter-section {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-manage-card-sanguo .filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.page-manage-card-sanguo .filter-row:last-child {
    margin-bottom: 0;
}

.page-manage-card-sanguo .filter-label {
    font-weight: 600;
    width: 60px;
    color: #374151;
}

.page-manage-card-sanguo .filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-manage-card-sanguo .filter-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.page-manage-card-sanguo .filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.page-manage-card-sanguo .filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.page-manage-card-sanguo .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.page-manage-card-sanguo .hero-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-manage-card-sanguo .card-bg {
    width: 100%;
    aspect-ratio: 1 / 1.3;
    object-fit: cover;
}

.page-manage-card-sanguo .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
}

.page-manage-card-sanguo .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    color: white;
}

.page-manage-card-sanguo .card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.page-manage-card-sanguo .camp-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    background: rgba(0,0,0,0.6);
}

.page-manage-card-sanguo .rank-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.page-manage-card-sanguo .rank-S { background: #FFD700; color: #333; }
.page-manage-card-sanguo .rank-A { background: #9333ea; color: white; }
.page-manage-card-sanguo .rank-B { background: #2563eb; color: white; }
.page-manage-card-sanguo .rank-C { background: #16a34a; color: white; }

.page-manage-card-sanguo .hero-name {
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 通用组件样式 */
.btn-back {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-back:hover {
    background: #2563eb;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.page-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.error-state {
    text-align: center;
    padding: 20px;
    background: #fef2f2;
    border-radius: 12px;
    color: #ef4444;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-retry {
    display: block;
    margin: 10px auto 0;
    padding: 8px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* GameSanguoDetail 组件样式 */
#game-sanguo-detail {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 30px;
}

/* 资源栏 - 顶部显示彩虹币和金币 */
#game-sanguo-detail .resource-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

#game-sanguo-detail .resource-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

#game-sanguo-detail .resource-icon {
    font-size: 28px;
}

#game-sanguo-detail .resource-value {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 武将大图卡片 - 正方形适配屏幕宽 */
#game-sanguo-detail .hero-card-large {
    position: relative;
    margin: 10px auto;
    width: 90vw;
    max-width: 400px;
    aspect-ratio: 1/1;
    border-radius: 20px;
    overflow: visible;
}

#game-sanguo-detail .hero-card-large .hero-image-container {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1/1;
    border-radius: 20px;
    overflow: visible;
}

#game-sanguo-detail .hero-card-large .hero-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

/* 红色星级以上淡白色扩散特效 */
#game-sanguo-detail .white-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 30%, transparent 70%);
    z-index: 3;
    pointer-events: none;
    animation: whiteGlowPulse 2s ease-in-out infinite;
    border-radius: 20px;
}

@keyframes whiteGlowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* 顶部标题栏 - 品级、名字、阵营 */
#game-sanguo-detail .hero-title-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    margin-top: 10px;
}

#game-sanguo-detail .hero-title-bar .rank-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#game-sanguo-detail .hero-title-bar .hero-title-name {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

#game-sanguo-detail .hero-title-bar .camp-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 品级颜色 */
#game-sanguo-detail .rank-color-gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
}

#game-sanguo-detail .rank-color-purple {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
}

#game-sanguo-detail .rank-color-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* 阵营颜色 */
#game-sanguo-detail .camp-bg-魏 { background: #0000FF; }
#game-sanguo-detail .camp-bg-蜀 { background: #00FF00; }
#game-sanguo-detail .camp-bg-吴 { background: #E34234; }
#game-sanguo-detail .camp-bg-群 { background: #800080; }

/* 先手值徽章 - 底部居中 */
#game-sanguo-detail .speed-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 24px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 20px;
    z-index: 15;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 属性栏 - 等级、资质、标签 */
#game-sanguo-detail .hero-attrs-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px;
    margin: 10px 0;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

#game-sanguo-detail .hero-attrs-bar .attr-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

#game-sanguo-detail .hero-attrs-bar .attr-label {
    font-size: 13px;
    color: #aaa;
}

#game-sanguo-detail .hero-attrs-bar .attr-value {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

#game-sanguo-detail .hero-attrs-bar .attr-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.3);
}

#game-sanguo-detail .hero-attrs-bar .attr-tags {
    display: flex;
    gap: 8px;
}

#game-sanguo-detail .hero-attrs-bar .attr-tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
}

/* 属性行 - 生命、攻击、防御 */
#game-sanguo-detail .hero-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 15px 20px;
    margin: 10px 0;
}

#game-sanguo-detail .hero-stats-row .stat-icon-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

#game-sanguo-detail .hero-stats-row .stat-icon {
    font-size: 20px;
}

#game-sanguo-detail .hero-stats-row .stat-value {
    font-size: 16px;
    font-weight: bold;
    color: white;
}

/* 星级颜色 - 与列表卡牌一致 */
#game-sanguo-detail .star-orange { color: #ff8c00; }
#game-sanguo-detail .star-gold { color: #ffd700; }
#game-sanguo-detail .star-red { color: #ff3333; }
#game-sanguo-detail .star-skyblue { color: #87ceeb; }
#game-sanguo-detail .star-rainbow {
    background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 隐藏旧样式元素 */
#game-sanguo-detail .page-header,
#game-sanguo-detail .combat-power-panel,
#game-sanguo-detail .hero-card,
#game-sanguo-detail .hero-info {
    display: none;
}

/* 返回按钮样式 - 左下角 */
#game-sanguo-detail .back-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.9);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

#game-sanguo-detail .back-btn:hover {
    transform: scale(1.1);
    background: rgba(102, 126, 234, 1);
}
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 15px 10px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: white;
}

#game-sanguo-detail .page-header .back-btn {
    display: none;
}

#game-sanguo-detail .back-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

#game-sanguo-detail .back-btn:hover {
    background: rgba(255,255,255,0.3);
}

#game-sanguo-detail .back-icon {
    font-size: 18px;
}

#game-sanguo-detail .page-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

#game-sanguo-detail .header-spacer {
    width: 70px;
}

/* 战斗力面板 */
#game-sanguo-detail .combat-power-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    margin: 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

#game-sanguo-detail .combat-power-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

#game-sanguo-detail .combat-power-value {
    font-size: 32px;
    font-weight: bold;
}

/* 武将卡片 */
#game-sanguo-detail .hero-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    margin: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* 阵营徽章 - 右上角 */
#game-sanguo-detail .camp-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* 品级徽章 - 图片底部 */
#game-sanguo-detail .rank-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: white;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 12px;
    z-index: 5;
}

/* 星级显示 - 品级下方 */
#game-sanguo-detail .hero-stars {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    z-index: 6;
}

#game-sanguo-detail .hero-stars span {
    font-size: 16px;
    line-height: 1;
}

#game-sanguo-detail .star-orange { color: #ff8c00; }
#game-sanguo-detail .star-gold { color: #ffd700; }
#game-sanguo-detail .star-red { color: #ff3333; }
#game-sanguo-detail .star-skyblue { color: #87ceeb; }
#game-sanguo-detail .star-rainbow {
    background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}
#game-sanguo-detail .star-legend {
    font-size: 12px;
    color: #ff00ff;
    font-weight: bold;
    vertical-align: super;
}

#game-sanguo-detail .hero-info {
    flex: 1;
}

#game-sanguo-detail .hero-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* GameSanguoDetail 星级蒙版样式 */
#game-sanguo-detail .hero-image-container .star-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* 合成面板卡片星级蒙版 */
#game-sanguo-detail .card-item .star-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    z-index: 1;
    pointer-events: none;
}

#game-sanguo-detail .card-item.star-level-orange .star-overlay {
    background: linear-gradient(135deg, rgba(255,140,0,0.25) 0%, rgba(255,69,0,0.15) 100%);
}

#game-sanguo-detail .card-item.star-level-gold .star-overlay {
    background: linear-gradient(135deg, rgba(255,215,0,0.3) 0%, rgba(255,165,0,0.2) 100%);
}

#game-sanguo-detail .card-item.star-level-red .star-overlay {
    background: linear-gradient(135deg, rgba(255,51,51,0.35) 0%, rgba(139,0,0,0.25) 100%);
}

#game-sanguo-detail .card-item.star-level-skyblue .star-overlay {
    background: linear-gradient(135deg, rgba(135,206,235,0.4) 0%, rgba(0,191,255,0.3) 100%);
}

#game-sanguo-detail .card-item .card-img {
    position: relative;
    z-index: 0;
}

/* 属性面板 */
#game-sanguo-detail .stats-panel {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    margin: 15px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#game-sanguo-detail .stats-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

#game-sanguo-detail .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

#game-sanguo-detail .stat-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

#game-sanguo-detail .stat-label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

#game-sanguo-detail .stat-value {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

#game-sanguo-detail .stat-value.atk { color: #ef4444; }
#game-sanguo-detail .stat-value.def { color: #3b82f6; }
#game-sanguo-detail .stat-value.hp { color: #22c55e; }
#game-sanguo-detail .stat-value.power { color: #9333ea; font-size: 18px; }

#game-sanguo-detail .combat-power-item {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* 描述面板 */
#game-sanguo-detail .desc-panel {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    margin: 15px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#game-sanguo-detail .desc-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

#game-sanguo-detail .desc-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* 合成面板 */
#game-sanguo-detail .compose-panel {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    margin: 15px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#game-sanguo-detail .compose-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

#game-sanguo-detail .compose-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

#game-sanguo-detail .selected-cards {
    background: #f0f9ff;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
}

#game-sanguo-detail .selected-info {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
}

#game-sanguo-detail .compose-ready {
    color: #22c55e;
    font-weight: bold;
    margin-left: 10px;
}

#game-sanguo-detail .compose-warn {
    color: #f59e0b;
    margin-left: 10px;
}

#game-sanguo-detail .selected-list {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#game-sanguo-detail .selected-item {
    position: relative;
    cursor: pointer;
}

#game-sanguo-detail .selected-img {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

#game-sanguo-detail .selected-name {
    font-size: 10px;
    text-align: center;
    margin-top: 4px;
}

#game-sanguo-detail .remove-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 可合成卡片 */
#game-sanguo-detail .card-group {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

#game-sanguo-detail .group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

#game-sanguo-detail .group-img {
    width: 40px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

#game-sanguo-detail .group-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

#game-sanguo-detail .group-count {
    font-size: 12px;
    color: #666;
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 10px;
}

#game-sanguo-detail .group-cards {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#game-sanguo-detail .card-item {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
}

#game-sanguo-detail .card-item:hover {
    border-color: #3b82f6;
}

#game-sanguo-detail .card-item.selected {
    border-color: #22c55e;
    background: #e6ffed;
}

#game-sanguo-detail .card-img {
    width: 50px;
    height: 65px;
    border-radius: 6px;
    object-fit: cover;
}

#game-sanguo-detail .card-level {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 9px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 1px 4px;
    border-radius: 4px;
}

#game-sanguo-detail .selected-mark {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* 合成按钮 */
#game-sanguo-detail .compose-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

#game-sanguo-detail .compose-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#game-sanguo-detail .compose-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* 响应式 */
@media (max-width: 480px) {
    #game-sanguo-detail .hero-card {
        flex-direction: column;
        text-align: center;
    }

    #game-sanguo-detail .hero-card-large .hero-image-container {
        width: 100% !important;
        height: 100% !important;
    }

    #game-sanguo-detail .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #game-sanguo-detail .selected-img {
        width: 50px;
        height: 65px;
    }

    #game-sanguo-detail .card-img {
        width: 45px;
        height: 60px;
    }
}

/* 升星面板 */
#game-sanguo-detail .starup-panel {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    margin: 15px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#game-sanguo-detail .starup-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* 狗粮区域 */
#game-sanguo-detail .material-section {
    margin-top: 15px;
}

#game-sanguo-detail .material-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

#game-sanguo-detail .material-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#game-sanguo-detail .material-item {
    position: relative;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: calc(33.33% - 10px);
}

#game-sanguo-detail .material-item:hover {
    border-color: #667eea;
}

#game-sanguo-detail .material-item.selected {
    border-color: #22c55e;
    background: #f0fdf4;
}

#game-sanguo-detail .material-item.not-enough-star {
    opacity: 0.5;
}

#game-sanguo-detail .material-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
}

#game-sanguo-detail .material-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
}

#game-sanguo-detail .material-name {
    font-size: 11px;
    color: #333;
}

#game-sanguo-detail .material-star {
    font-size: 10px;
    color: #f59e0b;
}

#game-sanguo-detail .selected-check {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

#game-sanguo-detail .star-warning {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    background: #ef4444;
    color: white;
    padding: 1px 4px;
    border-radius: 4px;
    white-space: nowrap;
}

#game-sanguo-detail .no-material {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
    font-size: 13px;
}

/* 升星按钮 - 长条形 */
#game-sanguo-detail .starup-btn {
    height: 50px;
    padding: 0 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#game-sanguo-detail .starup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

#game-sanguo-detail .starup-btn.disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

#game-sanguo-detail .starup-btn.disabled:hover {
    transform: none;
}

/* 左右导航按钮 */
#game-sanguo-detail .nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 28px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-sanguo-detail .nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

#game-sanguo-detail .nav-prev {
    left: 10px;
}

#game-sanguo-detail .nav-next {
    right: 10px;
}

/* 进度条 */
#game-sanguo-detail .req-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: 5px;
}

#game-sanguo-detail .progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

#game-sanguo-detail .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 2px;
    transition: width 0.3s ease;
}

#game-sanguo-detail .progress-text {
    font-size: 10px;
    color: #666;
}

/* 最大星级面板 */
#game-sanguo-detail .max-star-panel,
#game-sanguo-detail .no-config-panel {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    margin: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#game-sanguo-detail .max-star-title,
#game-sanguo-detail .no-config-title {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

#game-sanguo-detail .max-star-desc,
#game-sanguo-detail .no-config-desc {
    font-size: 13px;
    color: #9ca3af;
}

/* 材料要求行 */
#game-sanguo-detail .requirement-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

/* 材料要求卡片 */
#game-sanguo-detail .requirement-cards {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    justify-content: center;
}

#game-sanguo-detail .requirement-card {
    width: calc((100vw - 120px) / 6);
    min-width: 50px;
    max-width: 75px;
}

/* 进度条 */
#game-sanguo-detail .req-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: 5px;
}

#game-sanguo-detail .progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

#game-sanguo-detail .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 2px;
    transition: width 0.3s ease;
}

#game-sanguo-detail .progress-text {
    font-size: 10px;
    color: #666;
}

#game-sanguo-detail .req-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
}

#game-sanguo-detail .req-card-inner.has-image {
    border-color: #22c55e;
}

#game-sanguo-detail .requirement-card:hover .req-card-inner {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#game-sanguo-detail .req-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#game-sanguo-detail .req-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
}

#game-sanguo-detail .material-card .req-card-inner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

#game-sanguo-detail .material-card .req-card-overlay {
    background: rgba(251, 191, 36, 0.2);
}

#game-sanguo-detail .material-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: rgba(0,0,0,0.1);
}

#game-sanguo-detail .placeholder-icon {
    font-size: 50px;
}

#game-sanguo-detail .req-card-badges {
    position: absolute;
    top: -2px;
    right: -2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#game-sanguo-detail .req-card-stats {
    position: absolute;
    bottom: 6px;
    right: 6px;
}

#game-sanguo-detail .req-card-stats .stat-star {
    font-size: 11px;
    background: rgba(0,0,0,0.6);
    color: #ffd700;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
}

#game-sanguo-detail .req-card-info {
    text-align: center;
    margin-top: 8px;
}

#game-sanguo-detail .req-card-label {
    font-size: 12px;
    color: #666;
}

#game-sanguo-detail .req-card-count {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

/* 星级值样式 */
#game-sanguo-detail .stat-value.star {
    color: #f59e0b;
}

/* 狗粮选择弹窗 */
#game-sanguo-detail .material-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-sanguo-detail .material-popup {
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    background: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#game-sanguo-detail .popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

#game-sanguo-detail .popup-header h3 {
    margin: 0;
    font-size: 16px;
}

#game-sanguo-detail .popup-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-sanguo-detail .popup-close:hover {
    background: rgba(255,255,255,0.3);
}

#game-sanguo-detail .popup-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f9fafb;
    border-bottom: 1px solid #eee;
}

#game-sanguo-detail .popup-toolbar .popup-hint {
    font-size: 13px;
    color: #666;
}

#game-sanguo-detail .popup-material-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 50vh;
}

#game-sanguo-detail .popup-footer {
    padding: 15px;
    background: #f9fafb;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

#game-sanguo-detail .popup-footer .select-all-btn {
    flex: 1;
    padding: 10px 12px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

#game-sanguo-detail .popup-footer .select-all-btn:hover {
    background: #f0f0f0;
}

#game-sanguo-detail .popup-footer .confirm-btn {
    flex: 2;
    padding: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

#game-sanguo-detail .popup-footer .confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(34, 197, 94, 0.3);
}

/* 弹窗滚动条样式 */
#game-sanguo-detail .popup-material-list::-webkit-scrollbar {
    width: 6px;
}

#game-sanguo-detail .popup-material-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#game-sanguo-detail .popup-material-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#game-sanguo-detail .popup-material-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 380px) {
    #game-sanguo-detail .popup-material-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 正方形卡片样式 */
#game-sanguo-detail .card-square {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#game-sanguo-detail .card-square:hover {
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#game-sanguo-detail .card-square.selected {
    border-color: #22c55e;
    background: #f0fdf4;
}

#game-sanguo-detail .card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
}

#game-sanguo-detail .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#game-sanguo-detail .card-badges {
    position: absolute;
    top: -2px;
    right: -2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#game-sanguo-detail .badge {
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: white;
}

#game-sanguo-detail .camp-badge.camp-魏 { background: #1a73e8; }
#game-sanguo-detail .camp-badge.camp-蜀 { background: #f57c00; }
#game-sanguo-detail .camp-badge.camp-吴 { background: #00c853; }
#game-sanguo-detail .camp-badge.camp-群 { background: #d81b60; }

#game-sanguo-detail .rank-badge { background: linear-gradient(135deg, #ffd700, #ff8c00); }

#game-sanguo-detail .card-stats {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: flex;
    gap: 3px;
}

#game-sanguo-detail .stat-star,
#game-sanguo-detail .stat-level {
    font-size: 9px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
}

#game-sanguo-detail .stat-star {
    color: #ffd700;
}

#game-sanguo-detail .card-name {
    font-size: 11px;
    color: #333;
    text-align: center;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

#game-sanguo-detail .card-rank {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    margin-top: 2px;
}

#game-sanguo-detail .card-rank.rank-S { color: #3b82f6; }
#game-sanguo-detail .card-rank.rank-SS { color: #8b5cf6; }
#game-sanguo-detail .card-rank.rank-SSS { color: #f59e0b; }

#game-sanguo-detail .card-square .selected-check {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 10;
}

#game-sanguo-detail .card-square .star-warning {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    background: #ef4444;
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 已选预览区 */
#game-sanguo-detail .selected-preview {
    margin: 12px 0;
}

#game-sanguo-detail .preview-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

#game-sanguo-detail .preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#game-sanguo-detail .preview-item {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e5e7eb;
}

#game-sanguo-detail .preview-item:hover {
    border-color: #ef4444;
}

#game-sanguo-detail .preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#game-sanguo-detail .preview-item .remove-icon {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
}

/* SS/SSS确认弹窗 */
#game-sanguo-detail .confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-sanguo-detail .confirm-dialog {
    width: 85%;
    max-width: 320px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

#game-sanguo-detail .confirm-title {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

#game-sanguo-detail .confirm-content {
    padding: 20px;
    text-align: center;
}

#game-sanguo-detail .confirm-content p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

#game-sanguo-detail .confirm-content .highlight {
    color: #f59e0b;
    font-weight: 600;
}

#game-sanguo-detail .confirm-content .hint {
    font-size: 12px;
    color: #999;
}

#game-sanguo-detail .confirm-btns {
    display: flex;
    border-top: 1px solid #eee;
}

#game-sanguo-detail .confirm-btns button {
    flex: 1;
    padding: 14px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

#game-sanguo-detail .btn-cancel {
    background: #f5f5f5;
    color: #666;
}

#game-sanguo-detail .btn-confirm {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* 创建游戏界面 */
#game-sanguo .create-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-sanguo .create-game-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#game-sanguo .create-game-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

#game-sanguo .create-game-title {
    font-size: 22px;
    color: #333;
    margin: 0 0 10px;
    font-weight: 600;
}

#game-sanguo .create-game-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 25px;
}

#game-sanguo .create-game-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#game-sanguo .game-name-input {
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

#game-sanguo .game-name-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

#game-sanguo .create-game-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#game-sanguo .create-game-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

#game-sanguo .create-game-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 键盘指法练习游戏样式 */
.game-typing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.game-typing-container .game-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-typing-container .game-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.game-typing-container .game-info span {
    font-weight: 600;
    font-size: 16px;
    padding: 5px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.game-typing-container .game-info .level {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.game-typing-container .game-info .score {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.game-typing-container .game-info .lives {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.game-typing-container .game-info .progress {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.game-typing-container .game-controls {
    display: flex;
    gap: 10px;
}

.game-typing-container .game-controls button {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.game-typing-container .btn-start {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.game-typing-container .btn-pause {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.game-typing-container .btn-resume {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.game-typing-container .btn-back {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.game-typing-container .game-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-typing-container .game-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-typing-container .game-canvas-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
}

.game-typing-container .btn-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.game-typing-container .btn-fullscreen:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 模式选择样式 */
.game-typing-container .mode-select {
    max-width: 600px !important;
}

.game-typing-container .mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 0 10px;
}

.game-typing-container .mode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-typing-container .mode-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.game-typing-container .mode-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.game-typing-container .mode-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.game-typing-container .mode-keys {
    font-size: 12px;
    opacity: 0.8;
    word-break: break-all;
    text-align: center;
}

.game-typing-container .mode-display {
    font-size: 16px;
    color: #ffd700;
    font-weight: 600;
    margin: 10px 0;
}

.game-typing-container .game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.game-typing-container .game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.game-typing-container .overlay-content {
    text-align: center;
    color: white;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    width: 90%;
}

.game-typing-container .overlay-content.victory {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.game-typing-container .overlay-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-typing-container .overlay-content p {
    font-size: 18px;
    margin: 10px 0;
    opacity: 0.95;
}

.game-typing-container .btn-primary {
    margin-top: 25px;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    background: white;
    color: #764ba2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-typing-container .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-typing-container .keyboard-hint {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-typing-container .keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 8px 0;
}

.game-typing-container .key {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    box-shadow: 0 3px 0 #bbb, 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

.game-typing-container .key.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(3px);
    box-shadow: 0 0 0 #bbb, 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .game-typing-container .game-canvas-wrapper {
        height: 450px;
    }

    .game-typing-container .mode-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .game-typing-container .mode-item {
        padding: 15px 10px;
    }

    .game-typing-container .mode-name {
        font-size: 16px;
    }

    .game-typing-container .mode-keys {
        font-size: 11px;
    }

    .game-typing-container .game-info {
        justify-content: center;
    }

    .game-typing-container .game-controls {
        justify-content: center;
    }

    .game-typing-container .game-canvas-wrapper {
        height: 350px;
    }

    .game-typing-container .key {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .game-typing-container .keyboard-row {
        gap: 4px;
    }
}

/* 单词打字游戏样式 */
.game-typing-word-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.game-typing-word-container .game-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-typing-word-container .game-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.game-typing-word-container .game-info span {
    font-weight: 600;
    font-size: 16px;
    padding: 5px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.game-typing-word-container .game-info .grade {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.game-typing-word-container .game-info .score {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.game-typing-word-container .game-info .progress {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.game-typing-word-container .game-info .combo {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.game-typing-word-container .game-controls {
    display: flex;
    gap: 10px;
}

.game-typing-word-container .game-controls button {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.game-typing-word-container .btn-start {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.game-typing-word-container .btn-back {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.game-typing-word-container .btn-pause {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.game-typing-word-container .btn-resume {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.game-typing-word-container .game-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-typing-word-container .game-area {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-typing-word-container .game-area.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
}

/* 全屏模式下的游戏信息栏 */
.game-typing-word-container .fullscreen-game-info {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 20px;
    z-index: 100;
}

.game-typing-word-container .fullscreen-game-info span {
    font-weight: 600;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-typing-word-container .fullscreen-score {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

.game-typing-word-container .fullscreen-progress {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
}

.game-typing-word-container .fullscreen-combo {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
}

.game-typing-word-container .btn-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.game-typing-word-container .btn-fullscreen:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 难度选择样式 */
.game-typing-word-container .difficulty-select {
    max-width: 500px !important;
}

.game-typing-word-container .selected-info {
    font-size: 16px;
    color: #ffd700;
    margin-bottom: 15px;
}

.game-typing-word-container .difficulty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.game-typing-word-container .difficulty-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-typing-word-container .difficulty-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.game-typing-word-container .difficulty-item.active {
    border-color: white;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.game-typing-word-container .difficulty-item.easy {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.game-typing-word-container .difficulty-item.normal {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
}

.game-typing-word-container .difficulty-item.hard {
    background: linear-gradient(135deg, #e17055 0%, #fdcb6e 100%);
}

.game-typing-word-container .difficulty-item.hell {
    background: linear-gradient(135deg, #d63031 0%, #e84393 100%);
}

.game-typing-word-container .difficulty-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.game-typing-word-container .difficulty-multiplier {
    font-size: 24px;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 5px;
}

.game-typing-word-container .difficulty-desc {
    font-size: 12px;
    opacity: 0.9;
}

.game-typing-word-container .difficulty-display {
    font-size: 16px;
    color: #74b9ff;
    font-weight: 600;
    margin: 10px 0;
}

/* 年级选择样式 */
.game-typing-word-container .grade-select {
    max-width: 600px !important;
}

.game-typing-word-container .grade-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 25px 0;
    padding: 0 10px;
}

.game-typing-word-container .grade-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-typing-word-container .grade-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.game-typing-word-container .grade-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.game-typing-word-container .grade-name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* 游戏主界面 */
.game-typing-word-container .word-game-main {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
}

/* 浮动反馈样式 */
.game-typing-word-container .floating-feedback {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid;
    animation: floatUp 1s ease-out forwards;
    z-index: 10;
    text-align: center;
}

.game-typing-word-container .floating-feedback.perfect {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.game-typing-word-container .floating-feedback.excellent {
    border-color: #00b894;
    box-shadow: 0 0 20px rgba(0, 184, 148, 0.5);
}

.game-typing-word-container .floating-feedback.good {
    border-color: #74b9ff;
    box-shadow: 0 0 20px rgba(116, 185, 255, 0.5);
}

.game-typing-word-container .floating-feedback.normal {
    border-color: #a29bfe;
    box-shadow: 0 0 20px rgba(162, 155, 254, 0.5);
}

.game-typing-word-container .floating-feedback.miss {
    border-color: #e17055;
    box-shadow: 0 0 20px rgba(225, 112, 85, 0.5);
}

.game-typing-word-container .feedback-rating {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.game-typing-word-container .floating-feedback.perfect .feedback-rating {
    color: #ffd700;
}

.game-typing-word-container .floating-feedback.excellent .feedback-rating {
    color: #00b894;
}

.game-typing-word-container .floating-feedback.good .feedback-rating {
    color: #74b9ff;
}

.game-typing-word-container .floating-feedback.normal .feedback-rating {
    color: #a29bfe;
}

.game-typing-word-container .floating-feedback.miss .feedback-rating {
    color: #e17055;
}

.game-typing-word-container .feedback-score {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
}

.game-typing-word-container .current-word-display {
    text-align: center;
}

.game-typing-word-container .word-timer {
    font-size: 24px;
    color: #fdcb6e;
    font-weight: 700;
    margin-bottom: 10px;
}

.game-typing-word-container .target-word {
    font-size: 64px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
    letter-spacing: 8px;
}

/* 进度条 */
.game-typing-word-container .progress-bar-container {
    width: 100%;
    max-width: 600px;
}

.game-typing-word-container .progress-bar {
    position: relative;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: visible;
    margin-bottom: 10px;
}

.game-typing-word-container .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    transition: width 0.1s linear;
}

.game-typing-word-container .progress-highlight {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 50px;
    background: radial-gradient(circle, #ffd700 0%, #ffaa00 50%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 20px #ffd700;
}

.game-typing-word-container .progress-ball {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(238, 90, 36, 0.8);
    transition: left 0.05s linear;
}

.game-typing-word-container .progress-labels {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.game-typing-word-container .perfect-zone {
    color: #ffd700;
    font-weight: 600;
}

/* 用户输入显示 */
.game-typing-word-container .user-input-display {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.game-typing-word-container .input-char {
    width: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.2s ease;
}

.game-typing-word-container .input-char.correct {
    background: #00b894;
    border-color: #00b894;
    color: white;
}

.game-typing-word-container .input-char.error {
    background: #e17055;
    border-color: #e17055;
    color: white;
    animation: shake 0.5s ease;
}

.game-typing-word-container .input-char.pending {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 游戏提示 */
.game-typing-word-container .game-hint {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.game-typing-word-container .confirm-hint {
    color: #ffd700;
    animation: pulse 1s infinite;
}

.game-typing-word-container .error-hint {
    color: #e17055;
}

.game-typing-word-container .normal-hint {
    color: rgba(255, 255, 255, 0.7);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* 反馈覆盖层 */
.game-typing-word-container .feedback-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
}

.game-typing-word-container .feedback-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.game-typing-word-container .feedback-content h2.perfect {
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700;
}

.game-typing-word-container .feedback-content h2.excellent {
    color: #00b894;
}

.game-typing-word-container .feedback-content h2.good {
    color: #74b9ff;
}

.game-typing-word-container .feedback-content h2.normal {
    color: #a29bfe;
}

.game-typing-word-container .feedback-content h2.miss {
    color: #e17055;
}

.game-typing-word-container .score-detail {
    text-align: center;
}

.game-typing-word-container .score-detail p {
    margin: 8px 0;
    font-size: 18px;
}

.game-typing-word-container .total-score {
    font-size: 36px !important;
    font-weight: 700;
    color: #ffd700;
    margin-top: 15px !important;
}

/* 单词预览 */
.game-typing-word-container .word-preview {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-typing-word-container .preview-label {
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.game-typing-word-container .preview-words {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.game-typing-word-container .preview-word {
    padding: 5px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    font-size: 14px;
}

/* 通用覆盖层样式 */
.game-typing-word-container .game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.game-typing-word-container .overlay-content {
    text-align: center;
    color: white;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    width: 90%;
}

.game-typing-word-container .overlay-content.victory {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.game-typing-word-container .overlay-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-typing-word-container .overlay-content p {
    font-size: 18px;
    margin: 10px 0;
    opacity: 0.95;
}

.game-typing-word-container .grade-display {
    font-size: 16px;
    color: #ffd700;
    font-weight: 600;
    margin: 10px 0;
}

.game-typing-word-container .btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.game-typing-word-container .btn-primary {
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    background: white;
    color: #764ba2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-typing-word-container .btn-primary:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-typing-word-container .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-typing-word-container .btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 30px;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-typing-word-container .btn-secondary:hover {
    background: white;
    color: #764ba2;
}

@media (max-width: 768px) {
    .game-typing-word-container .game-area {
        height: 400px;
    }

    .game-typing-word-container .target-word {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .game-typing-word-container .grade-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-typing-word-container .difficulty-grid {
        grid-template-columns: 1fr;
    }

    .game-typing-word-container .input-char {
        width: 40px;
        height: 50px;
        font-size: 24px;
    }

    .game-typing-word-container .progress-bar {
        height: 30px;
    }

    .game-typing-word-container .progress-highlight {
        width: 40px;
        height: 40px;
    }

    .game-typing-word-container .progress-ball {
        width: 24px;
        height: 24px;
    }
}

/* 游戏类型选择样式 */
.game-typing-container .game-type-select {
    max-width: 500px !important;
}

.game-typing-container .game-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.game-typing-container .game-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-typing-container .game-type-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
}

.game-typing-container .game-type-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.game-typing-container .game-type-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.game-typing-container .game-type-desc {
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .game-typing-container .game-type-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .game-typing-container .game-type-item {
        padding: 20px 15px;
    }
}

/* 关卡选择样式 */
.game-typing-container .level-select {
    max-width: 500px !important;
}

.game-typing-container .level-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 25px 0;
    padding: 0 10px;
}

.game-typing-container .level-item {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-typing-container .level-item:hover:not(.locked) {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-typing-container .level-item.locked {
    background: linear-gradient(135deg, #636e72 0%, #b2bec3 100%);
    cursor: not-allowed;
    opacity: 0.7;
}

.game-typing-container .level-item.completed {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.game-typing-container .level-number {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.game-typing-container .level-status {
    font-size: 14px;
    margin-top: 4px;
}

.game-typing-container .level-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 10px;
}

.game-typing-container .btn-reset {
    margin-top: 15px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-typing-container .btn-reset:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.game-typing-container .btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.game-typing-container .btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 30px;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-typing-container .btn-secondary:hover {
    background: white;
    color: #764ba2;
}

@media (max-width: 768px) {
    .game-typing-container .level-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .game-typing-container .level-number {
        font-size: 18px;
    }

    .game-typing-container .level-status {
        font-size: 12px;
    }
}
