﻿        :root {
            color-scheme: light;
            --bg-page: #f7f3ec;
            --bg-card: rgba(255, 251, 246, 0.72);
            --bg-card-strong: rgba(255, 255, 255, 0.9);
            --text-main: #1a2233;
            --text-soft: #677489;
            --line-soft: rgba(148, 163, 184, 0.14);
            --shadow-soft: 0 18px 54px rgba(15, 23, 42, 0.08);
            --shadow-hover: 0 24px 66px rgba(15, 23, 42, 0.12);
            --hero-start: #8f4216;
            --hero-end: #dc8a1d;
            --hero-glow: rgba(234, 179, 8, 0.18);
            --accent: #b96512;
            --accent-soft: rgba(217, 119, 6, 0.1);
            --pill-active-bg: #111827;
            --pill-active-text: #ffffff;
            --mode-ring: rgba(217, 119, 6, 0.22);
            --hero-orb: rgba(255, 255, 255, 0.12);
            --hero-chip: rgba(255, 255, 255, 0.12);
            --hero-chip-text: rgba(255, 248, 240, 0.95);
            --spotlight: rgba(255, 255, 255, 0.56);
        }

        body.student-mode {
            --bg-page: #eef3ff;
            --bg-card: rgba(247, 249, 255, 0.72);
            --bg-card-strong: rgba(255, 255, 255, 0.92);
            --text-main: #18213d;
            --text-soft: #64728c;
            --line-soft: rgba(129, 140, 248, 0.14);
            --shadow-soft: 0 20px 54px rgba(79, 70, 229, 0.10);
            --shadow-hover: 0 28px 72px rgba(79, 70, 229, 0.14);
            --hero-start: #3d42d6;
            --hero-end: #7c3aed;
            --hero-glow: rgba(99, 102, 241, 0.2);
            --accent: #4f46e5;
            --accent-soft: rgba(79, 70, 229, 0.11);
            --pill-active-bg: #2e2a75;
            --pill-active-text: #ffffff;
            --mode-ring: rgba(99, 102, 241, 0.24);
            --hero-orb: rgba(255, 255, 255, 0.11);
            --hero-chip: rgba(255, 255, 255, 0.1);
            --hero-chip-text: rgba(240, 243, 255, 0.95);
            --spotlight: rgba(255, 255, 255, 0.5);
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: "Noto Sans SC", sans-serif;
            color: var(--text-main);
            background:
                radial-gradient(circle at top left, var(--hero-glow), transparent 24%),
                radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 22%),
                linear-gradient(180deg, #fdfbf8 0%, var(--bg-page) 100%);
            transition: background 0.35s ease, color 0.35s ease;
        }

        body.student-mode {
            background:
                radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 24%),
                radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 24%),
                linear-gradient(180deg, #f8faff 0%, var(--bg-page) 100%);
        }

        .shell {
            width: min(1400px, calc(100% - 24px));
            margin: 0 auto;
            padding: 16px 0 96px;
        }

        .layout-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
            gap: 16px;
            align-items: start;
        }

        .content-stack {
            display: grid;
            gap: 16px;
        }

        .sidebar-stack {
            display: grid;
            gap: 16px;
            position: sticky;
            top: 92px;
            align-self: start;
        }

        .section-card {
            border-radius: 28px;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.9fr);
            gap: 18px;
            align-items: end;
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.14);
            border: 1px solid rgba(255, 255, 255, 0.16);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
            backdrop-filter: blur(10px);
        }

        .quick-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
        }

        .feed-toolbar {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 12px;
            align-items: center;
        }

        .profile-card {
            border-radius: 26px;
        }

        .profile-grid {
            display: grid;
            grid-template-columns: 56px minmax(0, 1fr) auto;
            gap: 12px;
            align-items: start;
        }

        .profile-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .my-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .my-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .post-grid {
            display: grid;
            gap: 14px;
        }

        @media (max-width: 1279px) {
            .layout-grid,
            .hero-grid {
                grid-template-columns: 1fr;
            }

            .sidebar-stack {
                position: static;
                top: auto;
            }
        }

        @media (max-width: 900px) {
            .quick-grid {
                grid-template-columns: 1fr;
            }

            .feed-toolbar,
            .my-actions,
            .profile-grid {
                grid-template-columns: 1fr;
            }
        }

        .glass {
            background: var(--bg-card);
            border: 1px solid var(--line-soft);
            box-shadow: var(--shadow-soft);
            backdrop-filter: blur(22px);
            -webkit-backdrop-filter: blur(22px);
        }

        .glass:hover {
            box-shadow: var(--shadow-hover);
        }

        .panel-strong {
            background: var(--bg-card-strong);
        }

        .top-nav {
            position: sticky;
            top: 10px;
            z-index: 50;
        }

        .brand-ring {
            position: relative;
            overflow: hidden;
        }

        .brand-ring::after {
            content: "";
            position: absolute;
            inset: -20% auto auto -20%;
            width: 60%;
            height: 60%;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.18);
            filter: blur(8px);
        }

        .hero-card {
            position: relative;
            overflow: hidden;
            isolation: isolate;
            background:
                linear-gradient(135deg, color-mix(in srgb, var(--hero-start) 96%, white 4%), color-mix(in srgb, var(--hero-end) 95%, white 5%)),
                linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
            color: white;
            min-height: 0;
            box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
        }

        .hero-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 16% 20%, var(--spotlight), transparent 18%),
                radial-gradient(circle at 85% 16%, rgba(255, 255, 255, 0.16), transparent 18%),
                radial-gradient(circle at 74% 80%, rgba(255, 255, 255, 0.08), transparent 24%);
            z-index: -3;
        }

        .hero-card::after {
            content: "";
            position: absolute;
            width: 340px;
            height: 340px;
            border-radius: 999px;
            right: -120px;
            bottom: -150px;
            background: var(--hero-orb);
            filter: blur(2px);
            z-index: -2;
        }

        .hero-noise {
            position: absolute;
            inset: 0;
            z-index: -1;
            opacity: 0.22;
            background-image:
                radial-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px);
            background-size: 14px 14px;
            mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 90%);
        }

        .hero-metrics {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .compact-top {
            padding: 12px 14px;
        }

        .desktop-only {
            display: block;
        }

        .mobile-only {
            display: none;
        }

        .mobile-bottom-nav {
            position: fixed;
            left: 10px;
            right: 10px;
            bottom: 8px;
            z-index: 70;
            border-radius: 20px;
            padding: 8px;
            display: none;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
        }

        .mobile-nav-btn {
            border: 0;
            background: transparent;
            color: var(--text-soft);
            width: 100%;
            border-radius: 14px;
            padding: 9px 6px;
            font-size: 11px;
            font-weight: 700;
            line-height: 1.1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .mobile-nav-btn .nav-icon {
            font-size: 15px;
            line-height: 1;
        }

        .mobile-nav-btn.active {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .mobile-nav-btn.publish {
            color: #fff;
            background: linear-gradient(135deg, var(--hero-end), var(--hero-start));
            box-shadow: 0 10px 24px var(--mode-ring);
        }

        .mobile-drawer {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 80px;
            z-index: 69;
            max-height: 60vh;
            overflow: auto;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            padding: 14px;
            transform: translateY(20px);
            opacity: 0;
            pointer-events: none;
            transition: transform 0.24s ease, opacity 0.24s ease;
        }

        .mobile-drawer.open {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

        .hero-title {
            color: #ffffff;
            text-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
            letter-spacing: -0.03em;
            word-break: keep-all;
            overflow-wrap: anywhere;
        }

        .hero-copy,
        .hero-kicker {
            color: rgba(255, 255, 255, 0.92);
            overflow-wrap: anywhere;
        }

        .hero-chip {
            background: var(--hero-chip);
            color: var(--hero-chip-text);
            border: 1px solid rgba(255, 255, 255, 0.14);
            backdrop-filter: blur(10px);
        }

        .glass-divider {
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
            height: 1px;
            width: 100%;
        }

        .mode-shell {
            background: rgba(255, 255, 255, 0.68);
            border: 1px solid rgba(226, 232, 240, 0.85);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
        }

        .mode-switch,
        .pill,
        .school-pill,
        .topic-pill,
        .quick-card,
        .post-action,
        .hero-floating,
        .ambient-orb,
        .fade-swap {
            transition: all 0.22s ease;
        }

        .animate-in {
            opacity: 0;
            transform: translateY(18px) scale(0.985);
            animation: riseIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }

        .animate-delay-1 {
            animation-delay: 0.08s;
        }

        .animate-delay-2 {
            animation-delay: 0.16s;
        }

        .animate-delay-3 {
            animation-delay: 0.24s;
        }

        .fade-swapping {
            opacity: 0;
            transform: translateY(10px);
        }

        .hero-floating {
            animation: heroFloat 8s ease-in-out infinite;
        }

        .ambient-orb {
            position: absolute;
            border-radius: 999px;
            pointer-events: none;
            filter: blur(6px);
            opacity: 0.52;
            animation: orbDrift 12s ease-in-out infinite;
        }

        .ambient-orb.orb-one {
            width: 120px;
            height: 120px;
            right: 18%;
            top: 16%;
            background: rgba(255, 255, 255, 0.12);
        }

        .ambient-orb.orb-two {
            width: 88px;
            height: 88px;
            left: 8%;
            bottom: 16%;
            background: rgba(255, 255, 255, 0.08);
            animation-delay: -3s;
        }

        .tilt-card {
            transform-style: preserve-3d;
            will-change: transform;
        }

        @keyframes riseIn {
            from {
                opacity: 0;
                transform: translateY(18px) scale(0.985);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes heroFloat {
            0%,
            100% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-6px);
            }
        }

        @keyframes orbDrift {
            0%,
            100% {
                transform: translate3d(0, 0, 0) scale(1);
            }
            50% {
                transform: translate3d(12px, -12px, 0) scale(1.06);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .animate-in,
            .hero-floating,
            .ambient-orb {
                animation: none !important;
                opacity: 1 !important;
                transform: none !important;
            }

            .mode-switch,
            .pill,
            .school-pill,
            .topic-pill,
            .quick-card,
            .post-action,
            .post-card,
            .floating-button,
            .fade-swap {
                transition: none !important;
            }
        }

        .mode-switch.active,
        .pill.active,
        .school-pill.active {
            background: var(--pill-active-bg);
            color: var(--pill-active-text);
            border-color: transparent;
            box-shadow: 0 14px 30px var(--mode-ring);
        }

        .mode-switch:hover,
        .pill:hover,
        .school-pill:hover,
        .topic-pill:hover,
        .post-action:hover,
        .quick-card:hover {
            transform: translateY(-1px);
        }

        .mode-indicator {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--hero-end), var(--hero-start));
            box-shadow: 0 0 0 6px var(--accent-soft);
        }

        .quick-card {
            position: relative;
            overflow: hidden;
            background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.72));
        }

        .quick-card::after {
            content: "";
            position: absolute;
            inset: auto -26px -26px auto;
            width: 88px;
            height: 88px;
            border-radius: 999px;
            background: var(--accent-soft);
        }

        .post-card {
            transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
            background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.74));
            overflow-wrap: anywhere;
        }

        .post-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
            border-color: color-mix(in srgb, var(--accent) 18%, white 82%);
        }

        .post-card::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0), rgba(255,255,255,0.2));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }

        .floating-button {
            background: linear-gradient(135deg, var(--hero-end), var(--hero-start));
            box-shadow: 0 24px 48px var(--mode-ring);
            border: 1px solid rgba(255,255,255,0.2);
        }

        .floating-button:hover {
            transform: translateY(-2px) scale(1.01);
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.14);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        }

        .accent-soft {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .modal-backdrop {
            background: rgba(15, 23, 42, 0.54);
            backdrop-filter: blur(12px);
        }

        .hidden-panel {
            display: none;
        }

        .school-bar.hidden {
            display: none;
        }

        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }

        .avatar-stamp {
            background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
        }

        .post-action {
            color: var(--text-soft);
        }

        .post-action:hover {
            color: var(--accent);
        }

        .soft-grid {
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
            background-size: 36px 36px;
            mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 85%);
            z-index: -2;
        }

        @media (max-width: 1024px) {
            .hero-title {
                font-size: 2.2rem;
                line-height: 1.15;
            }
        }

        @media (max-width: 768px) {
            .shell {
                width: min(100%, calc(100% - 12px));
                padding-top: 8px;
                padding-bottom: 96px;
            }

            .layout-grid,
            .hero-grid,
            .feed-toolbar,
            .profile-grid,
            .my-actions {
                grid-template-columns: 1fr;
            }

            .top-nav {
                top: 6px;
                border-radius: 24px;
            }

            .hero-title {
                font-size: 1.8rem;
            }

            .desktop-only {
                display: none;
            }

            .mobile-only {
                display: block;
            }

            .mobile-bottom-nav {
                display: flex;
            }

            .hero-actions {
                gap: 10px;
            }

            .hero-actions button {
                flex: 1 1 calc(50% - 10px);
            }

            .hero-metrics {
                grid-template-columns: 1fr;
            }

            .hero-metrics .col-span-2 {
                grid-column: auto;
            }

            .hero-metrics {
                grid-template-columns: 1fr 1fr;
            }

            .hero-metrics .stat-card:last-child {
                grid-column: 1 / -1;
            }

            .quick-card:nth-child(3) {
                display: none;
            }

            .hero-card {
                padding-bottom: 22px;
            }

            .hero-card::after {
                width: 220px;
                height: 220px;
            }

            .glass,
            .panel-strong {
                border-radius: 22px;
            }
        }
    
