:root {
    --primary: #1e293b;
    --primary-light: #334155;
    --accent: #2563eb;
    --accent-light: #dbeafe;
    --secondary: #059669;
    --warm: #e11d48;
    --bg-light: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-light: #64748b;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --sidebar-width: 260px;
    --sidebar-mobile-width: 70px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Watermark */
.watermark {
    position: fixed;
    bottom: 30px;
    right: 30px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 3rem;
    color: rgba(255, 0, 0, 0.15);
    pointer-events: none;
    z-index: 9999;
    user-select: none;
    letter-spacing: 2px;
}

@media (max-width: 900px) {
    .watermark {
        display: none;
    }
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    animation: pulse 20s infinite alternate;
}

.blob-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; left: -100px; }
.blob-2 { width: 500px; height: 500px; background: var(--secondary); bottom: -150px; right: -100px; animation-delay: -3s; }
.blob-3 { width: 400px; height: 400px; background: var(--accent); top: 30%; right: 15%; animation-delay: -7s; }

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(30px, 30px); }
}

/* Layout */
.app-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.mobile-header {
    display: none;
}

.layout-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: #fdf8eb; /* Cream background from image */
    border-right: 1px solid #f2ead8;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 3rem;
    text-align: center;
}

.sidebar-header h1 {
    font-weight: 800;
    font-size: 1.5rem;
    color: #4a6741; /* Dark green from image */
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

.menu-group {
    margin-bottom: 2rem;
}

.menu-group-title {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5c7c52;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    border-radius: 8px;
}

.menu-group-title:hover {
    background: rgba(74, 103, 65, 0.05);
}

.diamond-icon {
    font-size: 0.7rem;
    margin-right: 8px;
    color: #4d96ff;
}

.chevron-icon {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.menu-group.collapsed .chevron-icon {
    transform: rotate(-90deg);
}

.menu-list {
    list-style: none;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s;
    max-height: 500px; /* Large enough to fit content */
    opacity: 1;
}

.menu-group.collapsed .menu-list {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.menu-list li {
    margin-bottom: 0.2rem;
}

.menu-list li a {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    text-decoration: none;
    color: #2c4c24;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
}

.menu-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

.menu-list li:hover a {
    background: rgba(74, 103, 65, 0.05);
}

.menu-list li.active a {
    color: #4a6741;
    font-weight: 700;
}

.sidebar-footer {
    padding-top: 2rem;
    text-align: center;
    border-top: 1px dashed #e5dcc3;
}

.qr-container {
    background: white;
    padding: 8px;
    border-radius: 8px;
    width: 140px;
    height: 140px;
    margin: 0 auto 10px;
}

.qr-container img {
    width: 100%;
    height: 100%;
}

.studio-name {
    font-size: 0.85rem;
    color: #7d9674;
    font-weight: 500;
}

/* Main Content Styling */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
}

.content-header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a6741;
}

.title-icon {
    font-size: 1.5rem;
}

.page-title h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.search-container {
    position: relative;
    width: 300px;
}

#searchInput {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    background: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

#searchInput:focus {
    background: white;
    border-color: #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-row {
    display: flex;
    align-items: center;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-btn {
    padding: 0.4rem 1rem;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
    text-align: center;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #eeeeee;
}

.filter-btn.active {
    background: #4d96ff;
    color: white;
    box-shadow: 0 4px 10px rgba(77, 150, 255, 0.3);
}

.filter-count {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 4px;
}

.grid-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.grid.single-column {
    grid-template-columns: minmax(0, 1fr);
}

.disclaimer-panel {
    width: min(960px, 100%);
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.disclaimer-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(74, 103, 65, 0.08);
    color: #4a6741;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.disclaimer-list {
    margin: 0;
    padding-left: 1.4rem;
    color: var(--text-main);
    line-height: 1.85;
    font-size: 1rem;
}

.disclaimer-list li {
    padding-left: 0.35rem;
    margin-bottom: 1rem;
}

.disclaimer-list li:last-child {
    margin-bottom: 0;
}

/* Card Styling */
.card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
    border-bottom: 1px solid #f0f0f0;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-cover.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.card-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.card h3 {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #888888;
}

.card-stats {
    margin-top: auto;
    padding-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #999999;
    font-size: 0.85rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-item svg {
    opacity: 0.6;
}

.stat-action {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.stat-action:hover,
.stat-action:focus-visible {
    color: #2563eb;
    transform: translateY(-1px);
    outline: none;
}

/* Mobile Optimizations */
@media (max-width: 900px) {
    .mobile-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.8rem 1.2rem;
        background: #fdf8eb;
        border-bottom: 1px solid #f2ead8;
        z-index: 200;
    }

    .sidebar-toggle-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .sidebar-toggle-btn span {
        width: 100%;
        height: 2px;
        background: #4a6741;
        border-radius: 2px;
        transition: all 0.3s;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 260px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        border-right: none;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(4px);
        z-index: 90;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .layout-main {
        position: relative;
    }
}

@media (max-width: 600px) {
    .content-header {
        padding: 1rem;
        gap: 0.8rem;
    }

    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .page-title h2 {
        font-size: 1rem;
    }

    .search-container {
        width: 150px;
    }

    #searchInput {
        padding: 0.4rem 1.8rem 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .search-icon {
        right: 8px;
        font-size: 0.7rem;
    }

    .filter-row {
        position: relative;
        width: 100%;
        overflow: hidden;
        margin-right: -1rem; /* Allow scroll to edge */
    }

    .filter-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        padding-right: 3rem;
        gap: 0.6rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-pills::-webkit-scrollbar {
        display: none;
    }

    /* Fade indicator for horizontal scroll */
    .filter-row::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 8px;
        width: 40px;
        background: linear-gradient(to right, transparent, #ffffff);
        pointer-events: none;
        z-index: 5;
    }

    .filter-btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

footer {
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Floating Contact Card Redesign (Synced from Set 1) */
.contact-card {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.card-toggle {
    background: #FF6B6B; /* --warm color from Set 1 */
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-toggle:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.5);
}

.card-content {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    margin-bottom: 1rem;
    display: none;
    width: 280px;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-card.active .card-content {
    display: block;
}

/* PC Hover effect */
@media (min-width: 1025px) {
    .contact-card:hover .card-content {
        display: block;
    }
}

.card-content .avatar {
    font-size: 3.5rem;
    width: 80px;
    height: 80px;
    background: #fff8e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 15px rgba(255, 217, 61, 0.2);
}

.card-content .info {
    text-align: center;
}

.card-content .info h4 {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.4rem;
    color: #2D3436;
    margin-bottom: 0.5rem;
}

.card-content .wechat {
    background: #f0fdf4;
    color: #16a34a;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
    border: 1px solid #dcfce7;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.card-content .wechat:active {
    transform: scale(0.95);
}

.card-content .wechat span {
    font-weight: 700;
    user-select: all;
}

.card-content .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.card-content .tags span {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .contact-card {
        bottom: 1rem;
        right: 1rem;
    }
    
    .card-content {
        width: 240px;
        padding: 1.2rem;
    }
    
    .card-toggle {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Auth Overlay Styles */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 52, 54, 0.4);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-overlay.show {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-overlay.show .auth-modal {
    transform: translateY(0);
}

.auth-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--accent-light);
    color: var(--accent);
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: var(--radius-md);
    margin-left: auto;
    margin-right: auto;
}

.auth-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.auth-header p {
    color: #636E72;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-body {
    margin-bottom: 1.5rem;
}

.auth-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.auth-tab-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 12px;
    background: #f1f3f5;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(77, 150, 255, 0.25);
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    background: #f8fafc;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.verify-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.verify-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.verify-btn.secondary {
    background: var(--secondary);
    box-shadow: 0 4px 15px rgba(107, 203, 119, 0.3);
}

.verify-btn.secondary:hover {
    background: #57b863;
    box-shadow: 0 6px 20px rgba(107, 203, 119, 0.4);
}

.verify-btn.ghost {
    background: white;
    color: var(--text-main);
    border: 1px solid #dfe6e9;
    box-shadow: none;
}

.verify-btn.ghost:hover {
    background: #f8f9fa;
    box-shadow: none;
}

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

.register-panel {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: #f8fbff;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.register-panel.show {
    display: block;
}

.register-tip {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.input-group.compact {
    margin-top: 0.75rem;
}

.auth-error-msg {
    color: #FF6B6B;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
    display: none;
}

.auth-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.auth-footer p {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.contact-info {
    font-weight: bold;
    color: #4D96FF;
    font-size: 0.9rem;
}

/* Prevent interacting with background when auth is active */
body.auth-locked {
    overflow: hidden;
}

body.auth-locked .app-layout {
    filter: blur(5px);
    pointer-events: none;
}

/* Formal homepage refinement: visual-only overrides */
:root {
    --primary: #123524;
    --primary-light: #2f5b43;
    --accent: #2f6fed;
    --accent-light: #eef4ff;
    --secondary: #2f6b4f;
    --warm: #b4232d;
    --bg-light: #f5f7f8;
    --surface: #ffffff;
    --text-main: #17211b;
    --text-light: #6b756f;
    --line-soft: #e5e9e6;
    --sidebar-width: 270px;
    --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
    --card-hover-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 14px 36px rgba(15, 23, 42, 0.09);
}

body {
    background: var(--bg-light);
    color: var(--text-main);
}

.background-blobs {
    display: none;
}

.watermark {
    right: 28px;
    bottom: 22px;
    font-size: 2.4rem;
    color: rgba(180, 35, 45, 0.08);
    letter-spacing: 0;
}

.sidebar {
    background: #f7f3e8;
    border-right: 1px solid #e4dcc9;
    padding: 1.75rem 1rem 1.25rem;
}

.sidebar-header {
    margin-bottom: 2rem;
    padding: 0 0.5rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e8dfcb;
}

.sidebar-header h1 {
    color: var(--primary);
    font-size: 1.35rem;
    line-height: 1.35;
    letter-spacing: 0;
}

.menu-group {
    margin-bottom: 1.35rem;
}

.menu-group-title {
    color: #627163;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.45rem 0.55rem;
}

.menu-group-title:hover {
    background: rgba(18, 53, 36, 0.05);
}

.diamond-icon {
    color: #3b82f6;
    margin-right: 0.55rem;
}

.menu-list li {
    margin-bottom: 0.1rem;
}

.menu-list li a {
    min-height: 38px;
    color: #244332;
    border-radius: 7px;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.menu-list li:hover a {
    background: rgba(18, 53, 36, 0.06);
}

.menu-list li.active a {
    color: var(--primary);
    background: rgba(18, 53, 36, 0.09);
    box-shadow: inset 3px 0 0 var(--primary);
}

.menu-icon {
    width: 22px;
    margin-right: 0.55rem;
    color: var(--primary);
    text-align: center;
}

.sidebar-footer {
    padding-top: 1.4rem;
    border-top: 1px solid #e8dfcb;
}

.qr-container {
    width: 128px;
    height: 128px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.studio-name {
    color: #657568;
    font-size: 0.82rem;
}

.main-content {
    background: #ffffff;
}

.content-header {
    position: sticky;
    top: 0;
    z-index: 30;
    gap: 1.25rem;
    padding: 1.45rem 2rem 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    backdrop-filter: blur(10px);
}

.page-title {
    color: var(--primary);
}

.title-icon {
    color: var(--primary-light);
    font-size: 1.25rem;
}

.page-title h2 {
    font-size: 1.22rem;
    font-weight: 750;
    letter-spacing: 0;
}

.search-container {
    width: min(340px, 34vw);
}

#searchInput {
    height: 40px;
    padding: 0.55rem 2.5rem 0.55rem 0.95rem;
    background: #f7f8f8;
    border: 1px solid #e7ebe8;
    border-radius: 6px;
    color: var(--text-main);
}

#searchInput:focus {
    background: #ffffff;
    border-color: #b7c4bd;
    box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.1);
}

.search-icon {
    color: #7a837e;
    opacity: 0.7;
}

.filter-section {
    gap: 0.75rem;
}

.filter-pills {
    gap: 0.55rem;
}

.filter-btn {
    min-height: 34px;
    padding: 0.42rem 0.95rem;
    background: #f1f3f2;
    border: 1px solid #e8ece9;
    border-radius: 999px;
    color: #52615a;
    font-size: 0.82rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: #eaf0ed;
    border-color: #d8e0dc;
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(47, 111, 237, 0.2);
}

.filter-count {
    opacity: 0.82;
}

.grid-container {
    background: #fbfcfc;
    padding: 1.55rem 1.75rem 1.25rem;
}

.grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}

.card {
    border: 1px solid #e8ece9;
    border-radius: 7px;
    box-shadow: var(--card-shadow);
}

.card:hover {
    transform: translateY(-2px);
    border-color: #d4ddd7;
    box-shadow: var(--card-hover-shadow);
}

.card-cover {
    background: #f4f6f5;
    border-bottom: 1px solid #e8ece9;
}

.card-cover img {
    object-fit: cover;
}

.card-body {
    min-height: 112px;
    padding: 0.95rem 1rem 0.9rem;
    gap: 0.35rem;
}

.card h3 {
    color: #101914;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 750;
}

.card-subtitle {
    color: #6f7a73;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-stats {
    gap: 0.9rem;
    padding-top: 0.65rem;
    color: #8a948f;
    font-size: 0.8rem;
}

.stat-action:hover,
.stat-action:focus-visible {
    color: var(--accent);
}

.disclaimer-panel {
    border-color: #e1e7e3;
    box-shadow: var(--card-shadow);
}

.disclaimer-kicker {
    background: rgba(47, 107, 79, 0.09);
    color: var(--primary);
}

footer {
    background: #fbfcfc;
    color: #7d8782;
    border-top: 1px solid #edf0ee;
}

.contact-card {
    right: 1.25rem;
    bottom: 1.25rem;
}

.card-toggle {
    background: var(--primary);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(18, 53, 36, 0.22);
}

.card-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(18, 53, 36, 0.26);
}

.card-content {
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

@media (max-width: 900px) {
    .mobile-header {
        background: #f7f3e8;
        border-bottom: 1px solid #e4dcc9;
    }

    .mobile-header h1 {
        color: var(--primary);
        font-size: 1.05rem;
    }

    .content-header {
        position: static;
        padding: 1rem;
    }

    .header-top {
        gap: 0.85rem;
    }

    .search-container {
        width: 100%;
    }

    .grid-container {
        padding: 1rem;
    }

    .grid {
        gap: 0.9rem;
    }
}

/* Distinct formal theme: visual-only, no behavior changes */
:root {
    --primary: #18324a;
    --primary-light: #2d5274;
    --accent: #c77923;
    --accent-light: #fff4e5;
    --secondary: #007a78;
    --warm: #b4232d;
    --bg-light: #f3f5f7;
    --surface: #ffffff;
    --text-main: #16202a;
    --text-light: #687480;
    --line-soft: #dde4ea;
    --sidebar-width: 272px;
    --card-shadow: 0 1px 2px rgba(22, 32, 42, 0.04), 0 10px 28px rgba(22, 32, 42, 0.06);
    --card-hover-shadow: 0 4px 8px rgba(22, 32, 42, 0.07), 0 18px 42px rgba(22, 32, 42, 0.12);
}

body {
    background: #f3f5f7;
}

.app-layout {
    background: #f3f5f7;
}

.watermark {
    color: rgba(24, 50, 74, 0.055);
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
}

.sidebar {
    background: linear-gradient(180deg, #182a3b 0%, #132231 100%);
    border-right: 1px solid #0f1b27;
    color: #e8eef4;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h1 {
    color: #ffffff;
    font-weight: 800;
}

.menu-group-title {
    color: rgba(232, 238, 244, 0.68);
}

.menu-group-title:hover {
    background: rgba(255, 255, 255, 0.06);
}

.diamond-icon {
    color: #d99a4c;
}

.chevron-icon {
    color: rgba(232, 238, 244, 0.7);
}

.menu-list li a {
    color: rgba(244, 248, 251, 0.88);
}

.menu-list li:hover a {
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
}

.menu-list li.active a {
    color: #ffffff;
    background: rgba(199, 121, 35, 0.22);
    box-shadow: inset 3px 0 0 #d99a4c;
}

.menu-icon {
    color: #d9a35c;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-container {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.studio-name {
    color: rgba(232, 238, 244, 0.72);
}

.main-content,
footer {
    background: #f7f9fb;
}

.content-header {
    background: rgba(247, 249, 251, 0.96);
    border-bottom: 1px solid #dde4ea;
    box-shadow: 0 1px 0 rgba(22, 32, 42, 0.03), 0 10px 24px rgba(22, 32, 42, 0.035);
}

.page-title {
    color: var(--primary);
}

.title-icon {
    color: var(--accent);
}

.page-title h2 {
    color: var(--primary);
}

#searchInput {
    background: #ffffff;
    border-color: #dce3ea;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(22, 32, 42, 0.04);
}

#searchInput:focus {
    border-color: #9fb0bf;
    box-shadow: 0 0 0 3px rgba(24, 50, 74, 0.08);
}

.filter-btn {
    background: #ffffff;
    border-color: #dce3ea;
    border-radius: 4px;
    color: #52616f;
    box-shadow: 0 1px 2px rgba(22, 32, 42, 0.03);
}

.filter-btn:hover {
    background: #f0f4f7;
    border-color: #cbd6df;
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 18px rgba(24, 50, 74, 0.18);
}

.grid-container {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(247, 249, 251, 0) 160px),
        #f7f9fb;
}

.card {
    border-color: #dfe6ec;
    border-radius: 5px;
    box-shadow: var(--card-shadow);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.card:hover {
    border-color: #c8d3dc;
    box-shadow: var(--card-hover-shadow);
}

.card-cover {
    background: #edf2f6;
    border-bottom-color: #dfe6ec;
}

.card-body {
    background: #ffffff;
}

.card h3 {
    color: #101820;
}

.card-subtitle {
    color: #6a7580;
}

.card-stats {
    color: #7b8792;
}

.stat-action:hover,
.stat-action:focus-visible {
    color: var(--secondary);
}

.disclaimer-panel {
    border-color: #dfe6ec;
    border-radius: 5px;
}

.disclaimer-kicker {
    background: var(--accent-light);
    color: #8a4f12;
    border-radius: 4px;
}

footer {
    border-top-color: #dfe6ec;
}

.card-toggle {
    background: #c77923;
    box-shadow: 0 10px 24px rgba(199, 121, 35, 0.28);
}

.card-toggle:hover {
    box-shadow: 0 14px 30px rgba(199, 121, 35, 0.34);
}

.card-content {
    border-color: #dfe6ec;
}

.card-content .avatar {
    background: #f3f6f8;
    box-shadow: none;
}

.card-content .info h4 {
    color: var(--primary);
}

.card-content .wechat {
    background: #eef8f7;
    border-color: #cfe8e6;
    color: var(--secondary);
}

.card-content .tags span {
    background: #f1f4f6;
    color: #61717f;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .mobile-header {
        background: #182a3b;
        border-bottom-color: #0f1b27;
    }

    .mobile-header h1 {
        color: #ffffff;
    }

    .sidebar-toggle-btn span {
        background: #ffffff;
    }

    .sidebar {
        background: linear-gradient(180deg, #182a3b 0%, #132231 100%);
    }

    .filter-row::after {
        background: linear-gradient(to right, transparent, #f7f9fb);
    }
}

/* Catalog layout refinement: visual/layout only, keeps all existing DOM and JS behavior */
@media (min-width: 901px) {
    :root {
        --sidebar-width: 238px;
    }

    .layout-main {
        background: #eef2f5;
    }

    .sidebar {
        padding: 1.4rem 0.85rem 1rem;
    }

    .sidebar-header {
        margin-bottom: 1.35rem;
        padding: 0 0.65rem 1rem;
    }

    .sidebar-header h1 {
        font-size: 1.18rem;
    }

    .menu-group {
        margin-bottom: 1rem;
    }

    .menu-group-title {
        margin-bottom: 0.35rem;
        padding: 0.38rem 0.5rem;
    }

    .menu-list li a {
        min-height: 34px;
        padding: 0.45rem 0.65rem;
        font-size: 0.88rem;
    }

    .menu-icon {
        width: 20px;
        font-size: 1rem;
    }

    .qr-container {
        width: 108px;
        height: 108px;
    }

    .studio-name {
        font-size: 0.76rem;
    }

    .main-content {
        gap: 1rem;
        padding: 1rem 1.1rem 0;
        background: #eef2f5;
    }

    .content-header {
        position: relative;
        top: auto;
        padding: 1.15rem 1.25rem;
        border: 1px solid #dfe6ec;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(22, 32, 42, 0.05);
    }

    .header-top {
        align-items: flex-start;
        padding-bottom: 0.85rem;
        border-bottom: 1px solid #edf1f4;
    }

    .page-title {
        align-items: flex-start;
    }

    .title-icon {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--accent-light);
        border-radius: 8px;
        font-size: 1rem;
    }

    .page-title h2 {
        padding-top: 0.2rem;
        font-size: 1.28rem;
    }

    .search-container {
        width: 360px;
    }

    .filter-section {
        gap: 0.6rem;
    }

    .filter-row {
        min-height: 36px;
    }

    .filter-pills {
        gap: 0.45rem;
    }

    .filter-btn {
        min-height: 32px;
        padding: 0.38rem 0.78rem;
    }

    .grid-container {
        padding: 0;
        border: 1px solid #dfe6ec;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(22, 32, 42, 0.045);
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 0;
        padding: 0.9rem;
    }

    .card {
        display: grid;
        grid-template-columns: 136px minmax(0, 1fr);
        min-height: 138px;
        border-radius: 0;
        border-width: 0 0 1px 0;
        box-shadow: none;
        background: transparent;
    }

    .card:nth-child(odd) {
        border-right: 1px solid #edf1f4;
    }

    .card:hover {
        transform: none;
        background: #f8fafb;
        border-color: #edf1f4;
        box-shadow: none;
    }

    .card::before {
        top: 12px;
        bottom: 12px;
        left: 0;
        right: auto;
        width: 3px;
        height: auto;
        background: var(--accent);
    }

    .card-cover {
        width: 112px;
        height: 82px;
        align-self: center;
        justify-self: center;
        border: 1px solid #dfe6ec;
        border-radius: 6px;
        aspect-ratio: auto;
        box-shadow: 0 1px 2px rgba(22, 32, 42, 0.04);
    }

    .card-cover.placeholder {
        border: 1px solid #dfe6ec;
    }

    .card-icon {
        font-size: 2rem;
    }

    .card-body {
        min-height: 0;
        padding: 1.15rem 1.05rem 1.05rem 0.15rem;
        justify-content: center;
        background: transparent;
    }

    .card h3 {
        font-size: 1rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 2.7em;
    }

    .card-subtitle {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .card-stats {
        margin-top: 0.35rem;
        padding-top: 0.45rem;
    }

    footer {
        margin: 0 -1.1rem;
        background: #eef2f5;
        border-top: 0;
    }
}

@media (min-width: 901px) and (max-width: 1280px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .card:nth-child(odd) {
        border-right: 0;
    }
}

@media (max-width: 900px) {
    .main-content {
        background: #f7f9fb;
    }

    .content-header {
        border-radius: 0;
    }

    .grid-container {
        background: #f7f9fb;
    }

    .card {
        border-radius: 7px;
    }

    .card::before {
        display: none;
    }
}

/* Mobile catalog layout: visual-only responsive override */
@media (max-width: 900px) {
    body {
        background: #f2f5f7;
    }

    .app-layout {
        background: #f2f5f7;
    }

    .mobile-header {
        position: sticky;
        top: 0;
        min-height: 56px;
        padding: 0.75rem 1rem;
        box-shadow: 0 8px 20px rgba(15, 27, 39, 0.16);
    }

    .mobile-header h1 {
        font-size: 1rem;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar {
        width: min(82vw, 300px);
    }

    .main-content {
        padding: 0;
    }

    .content-header {
        position: relative;
        top: auto;
        z-index: 25;
        gap: 0.85rem;
        padding: 0.9rem 0.9rem 0.75rem;
        background: rgba(247, 249, 251, 0.97);
        border-bottom: 1px solid #dfe6ec;
        box-shadow: 0 8px 18px rgba(22, 32, 42, 0.06);
        backdrop-filter: blur(10px);
    }

    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .page-title {
        gap: 0.65rem;
    }

    .title-icon {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--accent-light);
        border-radius: 7px;
        font-size: 0.95rem;
    }

    .page-title h2 {
        font-size: 1.08rem;
        line-height: 1.25;
    }

    #searchInput {
        height: 38px;
        border-radius: 6px;
        font-size: 0.86rem;
    }

    .filter-section {
        gap: 0.5rem;
    }

    .filter-row {
        margin: 0 -0.9rem;
        padding: 0 0.9rem;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .filter-row::-webkit-scrollbar {
        display: none;
    }

    .filter-pills {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.45rem;
        min-width: max-content;
        padding-bottom: 0.1rem;
    }

    .filter-btn {
        min-height: 31px;
        padding: 0.35rem 0.7rem;
        border-radius: 999px;
        font-size: 0.76rem;
        box-shadow: none;
    }

    .filter-btn.active {
        background: var(--primary);
        box-shadow: 0 5px 12px rgba(24, 50, 74, 0.18);
    }

    .grid-container {
        padding: 0.85rem;
        background: #f2f5f7;
    }

    .grid {
        display: flex;
        flex-direction: column;
        gap: 0.72rem;
    }

    .card {
        display: grid;
        grid-template-columns: 136px minmax(0, 1fr);
        min-height: 128px;
        border: 1px solid #dfe6ec;
        border-radius: 9px;
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(22, 32, 42, 0.06);
        overflow: hidden;
    }

    .card:hover {
        transform: none;
        box-shadow: 0 4px 14px rgba(22, 32, 42, 0.06);
    }

    .card-cover {
        width: 100%;
        height: 100%;
        min-height: 128px;
        aspect-ratio: auto;
        border: 0;
        border-right: 1px solid #e7edf2;
        border-radius: 0;
    }

    .card-cover img {
        object-fit: cover;
        background: #f7f9fb;
    }

    .card-cover.placeholder {
        border-right: 1px solid #e7edf2;
        background: #edf2f6;
    }

    .card-icon {
        font-size: 1.9rem;
    }

    .card-body {
        min-height: 128px;
        padding: 0.76rem 0.82rem;
        gap: 0.28rem;
        justify-content: center;
    }

    .card h3 {
        font-size: 0.95rem;
        line-height: 1.32;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 2.5em;
    }

    .card-subtitle {
        font-size: 0.75rem;
        line-height: 1.35;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-stats {
        margin-top: 0.15rem;
        padding-top: 0.45rem;
        gap: 0.7rem;
        font-size: 0.72rem;
    }

    .stat-item svg {
        width: 12px;
        height: 12px;
    }

    footer {
        padding: 0.8rem 0.75rem 5rem;
        background: #f2f5f7;
    }

    .contact-card {
        right: 0.85rem;
        bottom: 0.85rem;
    }

    .card-toggle {
        min-height: 42px;
        padding: 0.62rem 0.9rem;
        border-radius: 999px;
        font-size: 0.82rem;
    }

    .card-content {
        width: min(280px, calc(100vw - 1.7rem));
        border-radius: 10px;
    }
}

@media (max-width: 420px) {
    .card {
        grid-template-columns: 124px minmax(0, 1fr);
        min-height: 122px;
    }

    .card-cover {
        min-height: 122px;
    }

    .card-body {
        min-height: 122px;
        padding: 0.68rem 0.72rem;
    }

    .card h3 {
        font-size: 0.9rem;
    }

    .card-stats {
        gap: 0.5rem;
    }
}

/* Contact popover refinement: visual-only */
.contact-card {
    align-items: flex-end;
}

.card-toggle {
    min-height: 44px;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, #18324a 0%, #254963 100%);
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(24, 50, 74, 0.28);
    font-weight: 750;
}

.card-toggle:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #203d59 0%, #2d5876 100%);
    box-shadow: 0 16px 34px rgba(24, 50, 74, 0.32);
}

.card-content {
    width: 320px;
    padding: 0;
    border: 1px solid #dce4ea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 27, 39, 0.2);
}

.card-content::before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #18324a, #007a78, #c77923);
}

.card-content .avatar {
    width: 58px;
    height: 58px;
    margin: 1.25rem auto 0.75rem;
    background: #f5f7f9;
    border: 1px solid #e1e7ec;
    border-radius: 14px;
    box-shadow: none;
    font-size: 2.2rem;
}

.card-content .info {
    padding: 0 1.25rem 1.25rem;
}

.card-content .info h4 {
    margin-bottom: 0.45rem;
    color: #18324a;
    font-family: 'Noto Sans SC', system-ui, sans-serif;
    font-size: 1.18rem;
    font-weight: 800;
}

.card-content .wechat {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0.85rem 0 1rem;
    padding: 0.65rem 0.75rem;
    background: #f1f8f7;
    border: 1px solid #cbe4e2;
    border-radius: 8px;
    color: #007a78;
    font-size: 0.9rem;
}

.card-content .wechat:hover {
    background: #e8f4f3;
}

.card-content .tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.card-content .tags span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f7f9;
    border: 1px solid #e2e8ee;
    border-radius: 7px;
    color: #5e6c78;
    font-size: 0.75rem;
}

@media (max-width: 600px) {
    .card-content {
        width: min(300px, calc(100vw - 1.7rem));
    }

    .card-content .avatar {
        width: 52px;
        height: 52px;
        font-size: 2rem;
    }

    .card-content .info {
        padding: 0 1rem 1rem;
    }

    .card-content .tags {
        grid-template-columns: 1fr 1fr;
    }
}
