:root {
    --primary: #353aa6;           /* Jiarong/Shangcheng Royal Blue (Matches Logo) */
    --primary-light: #4c52cc;     /* Bright Indigo Blue */
    --accent: #00a2ff;            /* Bouncy Sky Cyan */
    --accent-glow: rgba(0, 162, 255, 0.25);
    --secondary: #924efd;         /* Magical Candy Purple */
    --secondary-glow: rgba(146, 78, 253, 0.15);
    --warm: #ff406c;              /* Cute Berry Pink */
    --orange: #ff7a00;            /* Bouncy Energy Orange */
    --bg-light: #f3f7fd;          /* Cheerful Light Blue-Sky */
    --surface: #ffffff;           /* Cloud White Surface */
    --text-main: #1e224e;         /* High Contrast Deep Indigo */
    --text-light: #58618e;        /* Friendly Slate Muted Blue */
    --border-soft: rgba(53, 58, 166, 0.07);
    --border-glow: rgba(0, 162, 255, 0.18);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --sidebar-width: 270px;
    --card-shadow: 0 8px 30px rgba(53, 58, 166, 0.05);
    --card-hover-shadow: 0 16px 40px rgba(53, 58, 166, 0.12);
}

* {
    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);
    background-image: 
        radial-gradient(rgba(53, 58, 166, 0.04) 1.5px, transparent 1.5px),
        linear-gradient(180deg, #f3f7fd 0%, #e8f1ff 100%);
    background-size: 32px 32px, 100% 100%;
    color: var(--text-main);
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Watermark - Floating Bubble Text */
.watermark {
    position: fixed;
    bottom: 30px;
    right: 30px;
    font-family: 'ZCOOL KuaiLe', cursive;
    font-weight: 700;
    font-size: 2.2rem;
    color: rgba(53, 58, 166, 0.05);
    text-shadow: 0 0 10px rgba(53, 58, 166, 0.03);
    pointer-events: none;
    z-index: 9999;
    user-select: none;
    letter-spacing: 2px;
    animation: floatingText 4s ease-in-out infinite alternate;
}

@keyframes floatingText {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    100% { transform: translateY(-8px) rotate(1deg); opacity: 0.9; }
}

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

/* Background Blobs - Soft Pastel Fluffy Clouds */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 550px;
    height: 550px;
    background: rgba(0, 162, 255, 0.15); /* Sky Blue Cloud */
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 480px;
    height: 480px;
    background: rgba(146, 78, 253, 0.12); /* Candy Purple Cloud */
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 420px;
    height: 420px;
    background: rgba(255, 122, 0, 0.08); /* Sunny Orange Cloud */
    top: 30%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(40px, 30px) scale(1.1) rotate(90deg); }
    100% { transform: translate(-20px, -15px) scale(0.95) rotate(180deg); }
}

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

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

/* Sidebar Navigation - Cloud White School Board */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.85); /* Pure Cloud White Glassmorphism */
    border-right: 1px solid rgba(53, 58, 166, 0.08);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.25rem;
    z-index: 100;
    box-shadow: 10px 0 35px rgba(53, 58, 166, 0.03);
    position: relative;
}

/* Smooth left ribbon reflecting school colors */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent), var(--warm));
}

.sidebar-header {
    margin-bottom: 1.75rem;
    text-align: center;
    padding-bottom: 1.25rem;
    border-bottom: 1.5px dashed rgba(53, 58, 166, 0.08);
    background: transparent;
}

/* Header Logo matches white background flawlessly */
.header-logo {
    max-height: 52px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    border-radius: var(--radius-sm);
}

.header-logo:hover {
    transform: scale(1.08) rotate(-1deg);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

/* Custom Scrollbar for Sidebar and Main Grid */
.sidebar-nav::-webkit-scrollbar,
.grid-container::-webkit-scrollbar {
    width: 6px;
}
.sidebar-nav::-webkit-scrollbar-thumb,
.grid-container::-webkit-scrollbar-thumb {
    background: rgba(53, 58, 166, 0.1);
    border-radius: 99px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover,
.grid-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.menu-group {
    margin-bottom: 1.15rem;
    background: rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-md);
    border: 1px solid rgba(53, 58, 166, 0.05);
    padding: 0.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-group:hover {
    border-color: rgba(53, 58, 166, 0.15);
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(53, 58, 166, 0.03);
}

.menu-group-title {
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}

.menu-group-title:hover {
    color: var(--primary);
}

.diamond-icon {
    font-size: 0.75rem;
    margin-right: 8px;
    color: var(--primary);
    animation: pulseGlow 2.5s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.75; }
    100% { transform: scale(1.3); opacity: 1; }
}

.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;
    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.55rem 0.75rem;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.menu-icon {
    margin-right: 10px;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-list li:hover a {
    color: var(--primary);
    background: rgba(53, 58, 166, 0.04);
    transform: translateX(4px);
}

.menu-list li:hover .menu-icon {
    color: var(--accent);
    transform: scale(1.2) rotate(12deg);
}

.menu-list li.active a {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 4px 15px rgba(53, 58, 166, 0.15);
    border: 1px solid rgba(53, 58, 166, 0.1);
}

.menu-list li.active .menu-icon {
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.sidebar-footer {
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1.5px dashed rgba(53, 58, 166, 0.08);
}

.qr-container {
    background: #ffffff;
    padding: 8px;
    border-radius: var(--radius-md);
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    border: 1.5px solid rgba(53, 58, 166, 0.1);
    box-shadow: 0 8px 24px rgba(53, 58, 166, 0.04);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qr-container:hover {
    transform: scale(1.06);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 162, 255, 0.15);
}

.qr-container img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.studio-name {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
    position: relative;
}

/* Header Area - Cloud White Terminal Top Bar */
.content-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(53, 58, 166, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    z-index: 30;
    box-shadow: 0 10px 30px rgba(53, 58, 166, 0.015);
}

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

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

.title-icon {
    font-size: 1.3rem;
    color: var(--primary);
    filter: drop-shadow(0 2px 4px rgba(53, 58, 166, 0.15));
    animation: eyeBlink 3s infinite ease-in-out;
}

@keyframes eyeBlink {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); filter: drop-shadow(0 4px 10px rgba(53, 58, 166, 0.3)); }
}

.page-title h2 {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

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

#searchInput {
    width: 100%;
    height: 42px;
    padding: 0.6rem 2.6rem 0.6rem 1.2rem;
    background: #ffffff;
    border: 2px solid rgba(53, 58, 166, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 2px 4px rgba(53, 58, 166, 0.015);
}

#searchInput::placeholder {
    color: rgba(53, 58, 166, 0.4);
}

#searchInput:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(53, 58, 166, 0.12), inset 0 2px 4px rgba(53, 58, 166, 0.01);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.6;
    transition: all 0.3s;
}

#searchInput:focus + .search-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    color: var(--accent);
}

/* Filter Capsule Buttons */
.filter-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

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

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

.filter-btn {
    min-height: 34px;
    padding: 0.4rem 1.1rem;
    background: #ffffff;
    border: 1.5px solid rgba(53, 58, 166, 0.08);
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 3px 6px rgba(53, 58, 166, 0.02);
}

.filter-btn:hover {
    background: rgba(53, 58, 166, 0.03);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px) scale(1.04);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(53, 58, 166, 0.16);
}

.filter-count {
    font-size: 0.72rem;
    opacity: 0.9;
    margin-left: 4px;
    background: rgba(0,0,0,0.06);
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.filter-btn.active .filter-count {
    background: rgba(255,255,255,0.2);
}

/* Grid Container - Scrollable Space Arena */
.grid-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Gorgeous Bouncy Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

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

/* AI Futuristic Game Cards (Light Theme - White Cloud Card) */
.card {
    background: var(--surface);
    border: 1.5px solid rgba(53, 58, 166, 0.06);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Glowing tech border decoration */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--warm));
    opacity: 0.3;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(53, 58, 166, 0.15);
    box-shadow: var(--card-hover-shadow);
}

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

/* Cute corner tabs style */
.card::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid rgba(53, 58, 166, 0.15);
    border-right: 2px solid rgba(53, 58, 166, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.card:hover::after {
    border-color: var(--accent);
    width: 14px;
    height: 14px;
}

.card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f5ff;
    border-bottom: 1.5px solid rgba(53, 58, 166, 0.05);
    position: relative;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .card-cover img {
    transform: scale(1.08);
}

.card-cover.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f6ff 0%, #e0e8ff 100%);
}

.card-icon {
    font-size: 3.5rem;
    opacity: 0.8;
    filter: drop-shadow(0 4px 8px rgba(53, 58, 166, 0.1));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card-icon {
    transform: scale(1.18) rotate(6deg);
    filter: drop-shadow(0 6px 12px rgba(0, 162, 255, 0.25));
    opacity: 1;
}

.card-body {
    padding: 1.15rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    background: #ffffff;
}

.card h3 {
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.card:hover h3 {
    color: var(--primary);
}

.card-subtitle {
    font-size: 0.82rem;
    color: var(--text-light);
    background: rgba(53, 58, 166, 0.03);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(53, 58, 166, 0.05);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-stats {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1.5px solid rgba(53, 58, 166, 0.05);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
}

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

.stat-item svg {
    color: var(--primary-light);
    opacity: 0.8;
    transition: all 0.3s;
}

.stat-action {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(53, 58, 166, 0.03);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1.5px solid rgba(53, 58, 166, 0.02);
}

.stat-action:hover,
.stat-action:focus-visible {
    color: var(--orange);
    transform: scale(1.08) translateY(-1px);
    border-color: rgba(255, 122, 0, 0.25);
    background: rgba(255, 122, 0, 0.05);
    outline: none;
}

.stat-action:hover svg {
    color: var(--orange);
    filter: drop-shadow(0 2px 4px rgba(255, 122, 0, 0.25));
    transform: scale(1.15);
}

/* Disclaimer Panel - Classroom Bulletin Board */
.disclaimer-panel {
    width: min(960px, 100%);
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(53, 58, 166, 0.03);
    backdrop-filter: blur(15px);
    margin: 1rem auto;
    position: relative;
    overflow: hidden;
}

.disclaimer-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}

.disclaimer-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-sm);
    background: rgba(53, 58, 166, 0.05);
    border: 1.5px solid rgba(53, 58, 166, 0.15);
    color: var(--primary);
    font-family: 'ZCOOL KuaiLe', cursive;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.disclaimer-list {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-main);
    line-height: 1.9;
    font-size: 0.98rem;
    font-weight: 600;
}

.disclaimer-list li {
    padding-left: 0.5rem;
    margin-bottom: 1.2rem;
    position: relative;
    list-style-type: decimal;
}

.disclaimer-list li::marker {
    color: var(--primary);
    font-weight: 800;
}

.custom-rich-content {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
}

.custom-rich-content p {
    margin-bottom: 1.2rem;
}

.custom-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.custom-rich-content h1, 
.custom-rich-content h2, 
.custom-rich-content h3 {
    color: var(--primary);
    margin: 2rem 0 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-style: italic;
}

/* Footer Section */
footer {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Floating Contact Card - Cute Helper Bot (🤖) */
.contact-card {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.card-toggle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 0.85rem 1.4rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(53, 58, 166, 0.25);
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.card-toggle:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 15px 35px rgba(53, 58, 166, 0.35);
}

.card-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50px;
    background: inherit;
    z-index: -1;
    opacity: 0.4;
    animation: pulseWave 2.5s infinite;
}

@keyframes pulseWave {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.3); opacity: 0; }
}

.card-content {
    background: rgba(255, 255, 255, 0.95); /* Bright White Popover */
    border: 2px solid var(--primary);
    padding: 1.75rem;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(53, 58, 166, 0.15);
    margin-bottom: 1.25rem;
    display: none;
    width: 290px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(25px);
    animation: robotSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes robotSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.85); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

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

.card-content .avatar {
    font-size: 3.5rem;
    width: 82px;
    height: 82px;
    background: rgba(53, 58, 166, 0.05);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.15rem;
    box-shadow: 0 4px 15px rgba(53, 58, 166, 0.1);
    animation: robotBreathe 4s ease-in-out infinite;
}

@keyframes robotBreathe {
    0%, 100% { transform: translateY(0); box-shadow: 0 4px 15px rgba(53, 58, 166, 0.1); }
    50% { transform: translateY(-6px); box-shadow: 0 8px 25px rgba(53, 58, 166, 0.25); }
}

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

.card-content .info h4 {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.45rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.card-content .wechat {
    background: rgba(53, 58, 166, 0.05);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.92rem;
    margin-bottom: 1.15rem;
    display: inline-block;
    border: 1.5px solid rgba(53, 58, 166, 0.15);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    font-weight: 700;
}

.card-content .wechat:hover {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.04);
    box-shadow: 0 4px 15px rgba(53, 58, 166, 0.2);
}

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

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

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

.card-content .tags span {
    background: rgba(53, 58, 166, 0.03);
    color: var(--text-light);
    border: 1px solid rgba(53, 58, 166, 0.06);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s;
}

.card-content .tags span:hover {
    background: rgba(53, 58, 166, 0.06);
    color: var(--primary);
    border-color: var(--primary);
}

/* Mobile responsive contact popover */
@media (max-width: 600px) {
    .contact-card {
        bottom: 1.25rem;
        right: 1.25rem;
    }
    
    .card-content {
        width: 250px;
        padding: 1.25rem;
    }
    
    .card-toggle {
        padding: 0.7rem 1.1rem;
        font-size: 0.88rem;
    }
}

/* Mobile Top Header (Cheerful Sky Header) */
.mobile-header {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(53, 58, 166, 0.08);
    z-index: 200;
    box-shadow: 0 4px 15px rgba(53, 58, 166, 0.02);
    position: sticky;
    top: 0;
}

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

.sidebar-toggle-btn span {
    width: 100%;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Overlay Drawer Styling */
@media (max-width: 900px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 260px;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 15px 0 40px rgba(53, 58, 166, 0.08);
        border-right: 1px solid rgba(53, 58, 166, 0.12);
        background: #ffffff;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(30, 34, 78, 0.3);
        backdrop-filter: blur(8px);
        z-index: 90;
    }

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

    .layout-main {
        position: relative;
    }

    .content-header {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }

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

    .search-container {
        width: 100%;
    }

    .grid-container {
        padding: 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .card {
        border-radius: var(--radius-md);
    }

    .filter-row {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding-bottom: 8px; /* Avoid cutting off active button shadows/glows */
        margin-bottom: 2px;
    }
    
    .filter-row::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Webkit */
    }

    .filter-pills {
        flex-wrap: nowrap !important;
        white-space: nowrap;
        padding-right: 2rem; /* Allow space at the end so it looks complete */
    }

    .filter-btn {
        flex-shrink: 0 !important;
    }
}

/* Auth Modal Overlay - Friendly Cloud Login Portal */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 34, 78, 0.4);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.auth-modal {
    background: #ffffff;
    border: 2px solid var(--primary);
    width: 100%;
    max-width: 380px;
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(53, 58, 166, 0.15);
    text-align: center;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
}

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

.auth-icon {
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
    background: rgba(53, 58, 166, 0.05);
    color: var(--primary);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: var(--radius-md);
    margin-left: auto;
    margin-right: auto;
    border: 1.5px solid rgba(53, 58, 166, 0.15);
}

.auth-header h2 {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.auth-tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    background: rgba(53, 58, 166, 0.03);
    padding: 4px;
    border-radius: 12px;
}

.auth-tab-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-light);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(53, 58, 166, 0.15);
}

.input-group input {
    width: 100%;
    padding: 0.7rem 1.1rem;
    border: 2px solid rgba(53, 58, 166, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    text-align: center;
    color: var(--text-main);
    background: #ffffff;
    outline: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(53, 58, 166, 0.15);
    transform: scale(1.02);
}

.verify-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 1rem;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(53, 58, 166, 0.2);
}

.verify-btn.secondary {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--warm) 100%);
}

.verify-btn.secondary:hover {
    box-shadow: 0 6px 18px rgba(146, 78, 253, 0.2);
}

.verify-btn.ghost {
    background: transparent;
    color: var(--text-light);
    border: 1.5px solid rgba(53, 58, 166, 0.15);
}

.verify-btn.ghost:hover {
    background: rgba(53, 58, 166, 0.02);
    color: var(--primary);
}

.register-panel {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(53, 58, 166, 0.02);
    border: 1.5px solid rgba(53, 58, 166, 0.1);
}

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

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

.auth-error-msg {
    color: var(--warm);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
    display: none;
}

.auth-footer {
    border-top: 1.5px dashed rgba(53, 58, 166, 0.08);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.auth-footer p {
    color: var(--text-light);
    font-size: 0.78rem;
    margin-bottom: 0.3rem;
}

.contact-info {
    font-weight: 700;
    color: var(--primary);
}

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