:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2d2d2d;
    --accent-gold: #d4af37;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --text-dark: #333333;
    --parchment-bg: #f4e8d0;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-light);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.nav-left .brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 0;
    cursor: pointer;
    transition: var(--transition);
}

.nav-left .brand-name:hover {
    color: #f4d03f;
    transform: scale(1.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right .nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-right .nav-link:hover {
    background: var(--secondary-dark);
    border-color: var(--accent-gold);
}

.nav-right .nav-link.active {
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 600;
}

.cards-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 30px 0;
    color: var(--accent-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
    max-width: 100%;
    margin: 0 auto;
    background: rgba(45, 45, 45, 0.6);
    padding: 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.grid-cell {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(26, 26, 26, 0.8);
    transition: var(--transition);
}

.header-cell {
    background: rgba(212, 175, 55, 0.2);
    font-weight: 700;
    font-size: 16px;
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.empty-cell {
    background: rgba(45, 45, 45, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-cell {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.card-cell:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border-color: var(--accent-gold);
}

.card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-thumb {
    width: 100%;
    height: 0;
    padding-bottom: 177.78%;
    background: rgba(45, 45, 45, 0.6);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.card-gua {
    padding: 8px 4px;
    font-size: 12px;
    text-align: center;
    background: rgba(26, 26, 26, 0.9);
    color: var(--text-light);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.bagua-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bagua-symbol {
    font-size: 24px;
    line-height: 1;
    color: var(--accent-gold);
}

.bagua-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .cards-container {
        padding: 20px 10px;
    }
    
    .top-nav {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-left .brand-name {
        font-size: 20px;
    }
    
    .nav-right {
        gap: 10px;
    }
    
    .cards-title {
        font-size: 22px;
        margin: 20px 0;
    }
    
    .cards-grid {
        grid-template-columns: repeat(9, 1fr);
        gap: 2px;
        padding: 10px;
        max-width: 100%;
    }
    
    .grid-cell {
        min-height: 70px;
    }
    
    .header-cell {
        font-size: 12px;
    }
    
    .card-gua {
        font-size: 10px;
        padding: 4px 2px;
    }
    
    .bagua-symbol {
        font-size: 18px;
    }
    
    .bagua-name {
        font-size: 11px;
    }
}


