
        /* ========== 全局与动画变量 ========== */
        :root {
            color-scheme: light;
            --curtain-color: #f8f8fa;
            --curtain-shadow: rgba(0, 0, 0, 0.06);
            --decor-line: rgba(0, 0, 0, 0.2);
            --seam-glow: rgba(0, 122, 255, 0.2);
            --page-bg: #f5f5f7;
            --card-bg: rgba(255, 255, 255, 0.85);
            --primary: #0071e3;
            --primary-light: rgba(0, 113, 227, 0.1);
            --danger: #ff3b30;
            --text-main: #1d1d1f;
            --text-sub: #86868b;
            --radius: 24px;
            --home-radius-card: 24px;
            --home-radius-group: 16px;
            --home-radius-control: 12px;
            --home-radius-pill: 999px;
            --tab-slider-bg: rgba(255, 255, 255, 0.92);
            --tab-slider-border: rgba(255, 255, 255, 0.72);
            --tab-slider-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            --tab-active-color: var(--primary);
        }
        [data-theme="pink"] {
            --primary: #FF91A4;
            --primary-light: rgba(255,145,164,0.1);
            --seam-glow: rgba(255,145,164,0.2);
            --melody-accent: #FF6B9D;
        }
        [data-theme="pink"] .brand-header h1::after { content: ""; display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.15em; margin-left: 4px; background: url('../images/meiledi/emoticon.GIF') center/contain no-repeat; }
        [data-theme="pink"] .glass { border-color: rgba(255,145,164,0.15); }
        [data-theme="pink"] .profile-user-card { border: 1.5px solid rgba(255,145,164,0.2); background: linear-gradient(135deg, rgba(255,145,164,0.06), rgba(255,107,157,0.04)); }
        [data-theme="pink"] .profile-avatar { border: 3px solid #FF91A4; box-shadow: 0 0 0 3px rgba(255,107,157,0.2); }
        [data-theme="pink"] .tab-bar { border-top: 0.5px solid rgba(255,145,164,0.12); }
        [data-theme="pink"] .tab-item.active svg { color: #FF91A4; }
        [data-theme="pink"] .nav-dot { background: #FF91A4; }
        [data-theme="pink"] .schedule-week-badge.current { background: rgba(255,145,164,0.1); color: #FF91A4; }
        [data-theme="pink"] .sch-cell.sch-course { border-radius: 10px; }
        [data-theme="pink"] .weather-card { border: 1px solid rgba(255,145,164,0.1); }
        [data-theme="pink"] .toast { border: 0.5px solid rgba(255,145,164,0.15); }
        [data-theme="pink"] #auth-modal .modal-content { background: linear-gradient(180deg, rgba(255,145,164,0.08), #fff 40%); }
        [data-theme="pink"] .profile-action-card:active { background: rgba(255,145,164,0.08); }
        [data-theme="pink"] .btn-primary { background: linear-gradient(135deg, #FF91A4, #FF6B9D); }
        [data-theme="pink"] .btn-primary:active { opacity: 0.85; }
        [data-theme="pink"] .profile-section-title { color: #FF91A4; }
        [data-theme="pink"] .theme-card.theme-active { border-color: #FF91A4 !important; box-shadow: 0 0 0 2px rgba(255,145,164,0.2); }
        [data-theme="pink"] #home-schedule-section h2 svg.icon,
        [data-theme="pink"] #exam-section h2 svg.icon { display: none; }
        [data-theme="pink"] #home-schedule-section h2::before { content: ""; display: inline-block; width: 1.6em; height: 1.6em; vertical-align: -0.3em; margin-right: 4px; background: url('../images/meiledi/meiledi_1.webp') center/cover no-repeat; border-radius: 50%; border: 2px solid #FF91A4; box-shadow: 0 0 0 2px rgba(255,107,157,0.2); }
        [data-theme="pink"] #exam-section h2::before { content: ""; display: inline-block; width: 1.5em; height: 1.5em; vertical-align: -0.3em; margin-right: 4px; background: url('../images/meiledi/meiledi_3.webp') center/cover no-repeat; border-radius: 50%; border: 2px solid #FF91A4; box-shadow: 0 0 0 2px rgba(255,107,157,0.2); }
        [data-theme="green"] {
            --primary: #34C759;
            --primary-light: rgba(52,199,89,0.1);
            --seam-glow: rgba(52,199,89,0.2);
        }
        [data-theme="orange"] {
            --primary: #E8A838;
            --primary-light: rgba(232,168,56,0.1);
            --seam-glow: rgba(232,168,56,0.2);
            --pompom-accent: #D4883A;
        }
        [data-theme="orange"] .brand-header h1::after { content: ""; display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.15em; margin-left: 4px; background: url('../images/budinggou/emoticon.GIF') center/contain no-repeat; }
        [data-theme="orange"] .glass { border-color: rgba(232,168,56,0.15); }
        [data-theme="orange"] .profile-user-card { border: 1.5px solid rgba(232,168,56,0.2); background: linear-gradient(135deg, rgba(232,168,56,0.06), rgba(212,136,58,0.04)); }
        [data-theme="orange"] .profile-avatar { border: 3px solid #E8A838; box-shadow: 0 0 0 3px rgba(212,136,58,0.2); }
        [data-theme="orange"] .tab-bar { border-top: 0.5px solid rgba(232,168,56,0.12); }
        [data-theme="orange"] .tab-item.active svg { color: #E8A838; }
        [data-theme="orange"] .nav-dot { background: #E8A838; }
        [data-theme="orange"] .schedule-week-badge.current { background: rgba(232,168,56,0.1); color: #E8A838; }
        [data-theme="orange"] .sch-cell.sch-course { border-radius: 10px; }
        [data-theme="orange"] .weather-card { border: 1px solid rgba(232,168,56,0.1); }
        [data-theme="orange"] .toast { border: 0.5px solid rgba(232,168,56,0.15); }
        [data-theme="orange"] #auth-modal .modal-content { background: linear-gradient(180deg, rgba(232,168,56,0.08), #fff 40%); }
        [data-theme="orange"] .profile-action-card:active { background: rgba(232,168,56,0.08); }
        [data-theme="orange"] .btn-primary { background: linear-gradient(135deg, #E8A838, #D4883A); }
        [data-theme="orange"] .btn-primary:active { opacity: 0.85; }
        [data-theme="orange"] .profile-section-title { color: #E8A838; }
        [data-theme="orange"] .theme-card.theme-active { border-color: #E8A838 !important; box-shadow: 0 0 0 2px rgba(232,168,56,0.2); }
        [data-theme="orange"] #home-schedule-section h2 svg.icon,
        [data-theme="orange"] #exam-section h2 svg.icon { display: none; }
        [data-theme="orange"] #home-schedule-section h2::before { content: ""; display: inline-block; width: 1.6em; height: 1.6em; vertical-align: -0.3em; margin-right: 4px; background: url('../images/budinggou/budinggou_1.webp') center/cover no-repeat; border-radius: 50%; border: 2px solid #E8A838; box-shadow: 0 0 0 2px rgba(212,136,58,0.2); }
        [data-theme="orange"] #exam-section h2::before { content: ""; display: inline-block; width: 1.5em; height: 1.5em; vertical-align: -0.3em; margin-right: 4px; background: url('../images/budinggou/budinggou_3.webp') center/cover no-repeat; border-radius: 50%; border: 2px solid #E8A838; box-shadow: 0 0 0 2px rgba(212,136,58,0.2); }
        [data-theme="cyan"] {
            --primary: #6CB4EE;
            --primary-light: rgba(108,180,238,0.1);
            --seam-glow: rgba(108,180,238,0.2);
            --cinnamoroll-accent: #5A9BD5;
        }
        [data-theme="cyan"] .brand-header h1::after { content: ""; display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.15em; margin-left: 4px; background: url('../images/daergou/emoticon.GIF') center/contain no-repeat; }
        [data-theme="cyan"] .glass { border-color: rgba(108,180,238,0.15); }
        [data-theme="cyan"] .profile-user-card { border: 1.5px solid rgba(108,180,238,0.2); background: linear-gradient(135deg, rgba(108,180,238,0.06), rgba(90,155,213,0.04)); }
        [data-theme="cyan"] .profile-avatar { border: 3px solid #6CB4EE; box-shadow: 0 0 0 3px rgba(90,155,213,0.2); }
        [data-theme="cyan"] .tab-bar { border-top: 0.5px solid rgba(108,180,238,0.12); }
        [data-theme="cyan"] .tab-item.active svg { color: #6CB4EE; }
        [data-theme="cyan"] .nav-dot { background: #6CB4EE; }
        [data-theme="cyan"] .schedule-week-badge.current { background: rgba(108,180,238,0.1); color: #6CB4EE; }
        [data-theme="cyan"] .sch-cell.sch-course { border-radius: 10px; }
        [data-theme="cyan"] .weather-card { border: 1px solid rgba(108,180,238,0.1); }
        [data-theme="cyan"] .toast { border: 0.5px solid rgba(108,180,238,0.15); }
        [data-theme="cyan"] #auth-modal .modal-content { background: linear-gradient(180deg, rgba(108,180,238,0.08), #fff 40%); }
        [data-theme="cyan"] .profile-action-card:active { background: rgba(108,180,238,0.08); }
        [data-theme="cyan"] .btn-primary { background: linear-gradient(135deg, #6CB4EE, #5A9BD5); }
        [data-theme="cyan"] .btn-primary:active { opacity: 0.85; }
        [data-theme="cyan"] .profile-section-title { color: #6CB4EE; }
        [data-theme="cyan"] .theme-card.theme-active { border-color: #6CB4EE !important; box-shadow: 0 0 0 2px rgba(108,180,238,0.2); }
        [data-theme="cyan"] #home-schedule-section h2 svg.icon,
        [data-theme="cyan"] #exam-section h2 svg.icon { display: none; }
        [data-theme="cyan"] #home-schedule-section h2::before { content: ""; display: inline-block; width: 1.6em; height: 1.6em; vertical-align: -0.3em; margin-right: 4px; background: url('../images/daergou/daergou_1.webp') center/cover no-repeat; border-radius: 50%; border: 2px solid #6CB4EE; box-shadow: 0 0 0 2px rgba(90,155,213,0.2); }
        [data-theme="cyan"] #exam-section h2::before { content: ""; display: inline-block; width: 1.5em; height: 1.5em; vertical-align: -0.3em; margin-right: 4px; background: url('../images/daergou/daergou_2.webp') center/cover no-repeat; border-radius: 50%; border: 2px solid #6CB4EE; box-shadow: 0 0 0 2px rgba(90,155,213,0.2); }
        [data-theme="purple"] {
            --primary: #9B59B6;
            --primary-light: rgba(155,89,182,0.1);
            --seam-glow: rgba(155,89,182,0.2);
            --kuromi-accent: #E91E8C;
        }
        [data-theme="purple"] .brand-header h1::after { content: ""; display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.15em; margin-left: 4px; background: url('../images/kuluomi/emoticon.GIF') center/contain no-repeat; }
        [data-theme="purple"] .glass { border-color: rgba(155,89,182,0.15); }
        [data-theme="purple"] .profile-user-card { border: 1.5px solid rgba(155,89,182,0.2); background: linear-gradient(135deg, rgba(155,89,182,0.06), rgba(233,30,140,0.04)); }
        [data-theme="purple"] .profile-avatar { border: 3px solid #9B59B6; box-shadow: 0 0 0 3px rgba(233,30,140,0.2); }
        [data-theme="purple"] .tab-bar { border-top: 0.5px solid rgba(155,89,182,0.12); }
        [data-theme="purple"] .tab-item.active svg { color: #9B59B6; }
        [data-theme="purple"] .nav-dot { background: #9B59B6; }
        [data-theme="purple"] .schedule-week-badge.current { background: rgba(155,89,182,0.1); color: #9B59B6; }
        [data-theme="purple"] .sch-cell.sch-course { border-radius: 10px; }
        [data-theme="purple"] .weather-card { border: 1px solid rgba(155,89,182,0.1); }
        [data-theme="purple"] .toast { border: 0.5px solid rgba(155,89,182,0.15); }
        [data-theme="purple"] #auth-modal .modal-content { background: linear-gradient(180deg, rgba(155,89,182,0.08), #fff 40%); }
        [data-theme="purple"] .profile-action-card:active { background: rgba(155,89,182,0.08); }
        [data-theme="purple"] .btn-primary { background: linear-gradient(135deg, #9B59B6, #E91E8C); }
        [data-theme="purple"] .btn-primary:active { opacity: 0.85; }
        [data-theme="purple"] .profile-section-title { color: #9B59B6; }
        [data-theme="purple"] .theme-card.theme-active { border-color: #9B59B6 !important; box-shadow: 0 0 0 2px rgba(155,89,182,0.2); }
        /* 库洛米装饰图片 - 首页全周课表和考试安排 */
        [data-theme="purple"] #home-schedule-section h2 svg.icon,
        [data-theme="purple"] #exam-section h2 svg.icon { display: none; }
        [data-theme="purple"] #home-schedule-section h2::before { content: ""; display: inline-block; width: 1.6em; height: 1.6em; vertical-align: -0.3em; margin-right: 4px; background: url('../images/kuluomi/kuromi_4.webp') center/cover no-repeat; border-radius: 50%; border: 2px solid #9B59B6; box-shadow: 0 0 0 2px rgba(155,89,182,0.2); }
        [data-theme="purple"] #exam-section h2::before { content: ""; display: inline-block; width: 1.5em; height: 1.5em; vertical-align: -0.3em; margin-right: 4px; background: url('../images/kuluomi/kuromi_6.webp') center/cover no-repeat; border-radius: 50%; border: 2px solid #9B59B6; box-shadow: 0 0 0 2px rgba(155,89,182,0.2); }
        [data-theme="dark"] {
            --primary: #0a84ff;
            --primary-light: rgba(10,132,255,0.15);
            --seam-glow: rgba(10,132,255,0.2);
            --bg-color: #000;
            --page-bg: #000;
            --card-bg: rgba(28,28,30,0.92);
            --text-main: #f5f5f7;
            --text-sub: #98989d;
            --curtain-color: #000;
            --curtain-shadow: rgba(255,255,255,0.06);
            --decor-line: rgba(255,255,255,0.2);
            --tab-slider-bg: #2c2c2e;
            --tab-slider-border: rgba(255,255,255,0.08);
            --tab-slider-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }
        [data-theme="pink"] .homework-reminder-tag { background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,240,243,0.84)); border-color: rgba(255,145,164,0.15); color: #d1466a; box-shadow: 0 2px 10px rgba(255,145,164,0.1); }
        [data-theme="pink"] .homework-reminder-tag svg { background: linear-gradient(135deg, #FF91A4, #FF6B9D); box-shadow: 0 3px 10px rgba(255,107,157,0.25); }
        [data-theme="pink"] .ai-summary-card { border: 1.5px solid rgba(255,145,164,0.35); background: linear-gradient(135deg, rgba(255,145,164,0.06), rgba(255,107,157,0.04)); }
        [data-theme="green"] .homework-reminder-tag { background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(240,255,243,0.84)); border-color: rgba(52,199,89,0.15); color: #1a7a3a; box-shadow: 0 2px 10px rgba(52,199,89,0.1); }
        [data-theme="green"] .homework-reminder-tag svg { background: linear-gradient(135deg, #34C759, #248A3D); box-shadow: 0 3px 10px rgba(52,199,89,0.25); }
        [data-theme="green"] .ai-summary-card { border: 1.5px solid rgba(52,199,89,0.35); background: linear-gradient(135deg, rgba(52,199,89,0.06), rgba(36,138,61,0.04)); }
        [data-theme="orange"] .homework-reminder-tag { background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,248,235,0.84)); border-color: rgba(232,168,56,0.15); color: #8a6015; box-shadow: 0 2px 10px rgba(232,168,56,0.1); }
        [data-theme="orange"] .homework-reminder-tag svg { background: linear-gradient(135deg, #E8A838, #D4883A); box-shadow: 0 3px 10px rgba(212,136,58,0.25); }
        [data-theme="orange"] .ai-summary-card { border: 1.5px solid rgba(232,168,56,0.35); background: linear-gradient(135deg, rgba(232,168,56,0.06), rgba(212,136,58,0.04)); }
        [data-theme="purple"] .homework-reminder-tag { background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(245,235,250,0.84)); border-color: rgba(155,89,182,0.15); color: #6a2d7a; box-shadow: 0 2px 10px rgba(155,89,182,0.1); }
        [data-theme="purple"] .homework-reminder-tag svg { background: linear-gradient(135deg, #9B59B6, #7D3C98); box-shadow: 0 3px 10px rgba(155,89,182,0.25); }
        [data-theme="purple"] .ai-summary-card { border: 1.5px solid rgba(155,89,182,0.35); background: linear-gradient(135deg, rgba(155,89,182,0.06), rgba(125,60,152,0.04)); }
        [data-theme="cyan"] .homework-reminder-tag { background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(235,248,255,0.84)); border-color: rgba(108,180,238,0.15); color: #2a6a9a; box-shadow: 0 2px 10px rgba(108,180,238,0.1); }
        [data-theme="cyan"] .homework-reminder-tag svg { background: linear-gradient(135deg, #6CB4EE, #5A9BD5); box-shadow: 0 3px 10px rgba(108,180,238,0.25); }
        [data-theme="cyan"] .ai-summary-card { border: 1.5px solid rgba(108,180,238,0.35); background: linear-gradient(135deg, rgba(108,180,238,0.06), rgba(90,155,213,0.04)); }
        [data-theme="dark"] .homework-reminder-tag { background: linear-gradient(135deg, rgba(44,44,46,0.95), rgba(58,58,60,0.9)); border-color: rgba(255,255,255,0.08); color: #0a84ff; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
        [data-theme="dark"] .homework-reminder-tag svg { background: linear-gradient(135deg, #0a84ff, #0056b3); box-shadow: 0 3px 10px rgba(10,132,255,0.3); }
        [data-theme="dark"] .ai-summary-card { border: 1.5px solid rgba(255,255,255,0.15); background: linear-gradient(135deg, rgba(10,132,255,0.08), rgba(0,86,179,0.06)); }
        [data-theme="dark"] .modal-content { background: rgba(44,44,46,0.92); border-color: rgba(255,255,255,0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.05); }
        /* daily-reminder dark theme handled below */

        * { -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family:
                -apple-system,
                BlinkMacSystemFont,
                "Segoe UI",
                "PingFang SC",
                "Microsoft YaHei",
                sans-serif;
            background-color: var(--page-bg);
            color: var(--text-main);
            -webkit-font-smoothing: antialiased;
            overflow: hidden;
            min-height: 100vh;
            min-height: 100dvh;
        }
        body.curtain-open { overflow: auto; }

        .container { max-width: 1000px; padding: 0 16px 180px; margin: 0 auto; }

        /* 首页圆角层级：大卡片、分组容器、控件、胶囊状态 */
        #page-home .time-card,
        #page-home .now-next-card,
        #page-home .glass,
        #page-home .day-column,
        #page-home .ai-summary-card,
        #page-home .urgent-card {
            border-radius: var(--home-radius-card);
        }
        #page-home .quick-nav,
        #page-home .exam-module,
        #page-home .homework-module {
            border-radius: var(--home-radius-group);
        }
        #page-home .nav-tag,
        #page-home .nav-dropdown-item,
        #page-home .period-toggle,
        #page-home .ai-summary-btn {
            border-radius: var(--home-radius-control);
        }
        #page-home .week-badge,
        #page-home .countdown-badge,
        #page-home .daily-reminder,
        #page-home .now-next-card .card-location,
        #page-home .period-tag,
        #page-home .detail-btn,
        #page-home .homework-remain,
        #page-home .exam-remain {
            border-radius: var(--home-radius-pill);
        }

        /* ========== 加载动画样式 ========== */
        .curtain-container { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
        .curtain-top, .curtain-bottom {
            position: fixed; left: 0; width: 100%; height: 50%; z-index: 10001;
            background:
                radial-gradient(circle at 50% 100%, rgba(0,113,227,0.08), transparent 42%),
                linear-gradient(180deg, rgba(255,255,255,0.98), var(--curtain-color));
            transition: transform 0.9s cubic-bezier(0.74, 0, 0.2, 1);
            will-change: transform; pointer-events: auto;
        }
        .curtain-bottom {
            background:
                radial-gradient(circle at 50% 0%, rgba(0,113,227,0.08), transparent 42%),
                linear-gradient(0deg, rgba(255,255,255,0.98), var(--curtain-color));
        }
        .curtain-top { top: 0; box-shadow: 0 8px 28px rgba(0,0,0,0.04); }
        .curtain-bottom { bottom: 0; box-shadow: 0 -8px 28px rgba(0,0,0,0.04); }
        .curtain-container.open .curtain-top { transform: translateY(-100%); }
        .curtain-container.open .curtain-bottom { transform: translateY(100%); }

        .light-seam {
            position: fixed; top: 50%; left: 50%; width: min(180px, 48vw); height: 1px;
            z-index: 10002; transform: translate(-50%, -50%) scaleX(0.25); pointer-events: none;
            background: linear-gradient(90deg, transparent, rgba(0,113,227,0.28), transparent);
            opacity: 0.45; border-radius: 999px;
            transition: transform 0.35s ease, opacity 0.35s ease;
        }
        .curtain-container.open .light-seam { transform: translate(-50%, -50%) scaleX(1); opacity: 0.8; }
        .curtain-container.open.fading-light .light-seam { opacity: 0; transform: translate(-50%, -50%) scaleX(0.4); }

        .title-overlay {
            position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
            z-index: 10003; pointer-events: none;
            display: flex; flex-direction: column; align-items: center; gap: 12px;
            width: min(82vw, 360px);
        }
        .title-main {
            display: flex; align-items: center; justify-content: center; white-space: nowrap;
            min-height: 46px;
        }
        .entry-logo {
            width: 42px; height: 42px; margin-right: 10px;
            color: var(--primary); flex-shrink: 0;
            opacity: 0; transform: translateY(6px) scale(0.94);
            filter: drop-shadow(0 8px 18px rgba(0,113,227,0.14));
            animation: loaderMarkIn 0.5s cubic-bezier(0.22, 0.61, 0.18, 1) 0.08s forwards;
        }
        .char-big {
            font-size: 28px; font-weight: 720; color: var(--text-main);
            letter-spacing: 0;
            opacity: 0; transform: translateY(8px);
        }
        .char-big.visible { opacity: 1; transform: translateY(0); transition: opacity 0.3s ease, transform 0.3s ease; }
        .char-big.visible span { display: inline-block; opacity: 0; animation: charPopIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards; }
        .char-big.visible span:nth-child(1) { animation-delay: 0.05s; }
        .char-big.visible span:nth-child(2) { animation-delay: 0.12s; }
        .char-big.visible span:nth-child(3) { animation-delay: 0.19s; }
        .char-big.visible span:nth-child(4) { animation-delay: 0.26s; }
        @keyframes charPopIn { 0% { opacity: 0; transform: translateY(10px) scale(0.8); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
        @keyframes bigPopIn { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
        @keyframes loaderTextIn { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
        @keyframes loaderMarkIn { 100% { opacity: 1; transform: translateY(0) scale(1); } }
        .char-rest {
            font-size: 28px; font-weight: 720; color: var(--text-main);
            max-width: 0; overflow: hidden; opacity: 0; display: inline-block; white-space: nowrap;
            letter-spacing: 0;
            transition: max-width 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s 0.12s ease;
            margin-left: 0;
        }
        .char-rest.show { max-width: 500px; opacity: 1; margin-left: 0; }
        .title-main.phase2 .char-big { font-size: 28px; }
        .title-line {
            width: 0; height: 3px; background: transparent; border-radius: 999px;
            opacity: 0; display: flex; justify-content: center; gap: 6px;
            transition: opacity 0.35s ease;
        }
        .title-line::before, .title-line::after, .title-line span {
            content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
        }
        .title-line.show { width: auto; opacity: 0.5; animation: loadingDots 1.05s ease-in-out infinite; }
        .title-sub {
            font-size: 11px; font-weight: 520; letter-spacing: 0.08em; text-transform: uppercase;
            color: var(--text-sub); opacity: 0; transform: translateY(4px);
            transition: opacity 0.45s ease, transform 0.45s ease;
        }
        .title-sub.show { opacity: 0.72; transform: translateY(0); }
        @keyframes loadingDots { 0%, 100% { transform: translateY(0); opacity: 0.42; } 50% { transform: translateY(-2px); opacity: 0.8; } }
        .loading-icp-card {
            display: flex; align-items: center; justify-content: center; gap: 8px;
            margin-top: 6px; padding: 9px 14px;
            border-radius: 16px;
            background: rgba(128,128,128,0.09);
            border: 1px solid rgba(128,128,128,0.10);
            box-shadow: 0 6px 18px rgba(0,0,0,0.04);
            opacity: 0; pointer-events: none; transform: translateY(4px);
            transition: opacity 0.45s ease, transform 0.45s ease;
        }
        .loading-icp-card.show { opacity: 1; transform: translateY(0); }
        .loading-icp-icon { width: 15px; height: 15px; color: #34c759; flex-shrink: 0; }
        .loading-icp-text { font-size: 10px; font-weight: 520; letter-spacing: 0; color: var(--text-sub); line-height: 1.55; text-align: left; }
        .network-slow-hint {
            display: flex; align-items: center; gap: 8px; max-width: min(82vw, 320px);
            margin-top: 2px; padding: 8px 12px; border: 1px solid rgba(128,128,128,0.13);
            border-radius: 999px; background: rgba(128,128,128,0.08);
            color: var(--text-sub); font-size: 10px; font-weight: 520; line-height: 1.45;
            opacity: 0; visibility: hidden; transform: translateY(6px) scale(0.98); filter: blur(2px);
            pointer-events: none; transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease, visibility 0s linear 0.45s;
        }
        .network-slow-hint.show {
            opacity: 0.92; visibility: visible; transform: translateY(0) scale(1); filter: blur(0);
            animation: networkHintFloat 3.2s ease-in-out 0.45s infinite;
            transition-delay: 0s;
        }
        .network-slow-hint-dots { display: inline-flex; gap: 3px; flex-shrink: 0; }
        .network-slow-hint-dots i {
            width: 4px; height: 4px; border-radius: 50%; background: var(--primary);
            opacity: 0.42; animation: networkHintDot 1.25s ease-in-out infinite;
        }
        .network-slow-hint-dots i:nth-child(2) { animation-delay: 0.16s; }
        .network-slow-hint-dots i:nth-child(3) { animation-delay: 0.32s; }
        @keyframes networkHintDot { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 0.95; transform: translateY(-2px); } }
        @keyframes networkHintFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.01); } }
        .title-overlay.dissolve .title-main {
            filter: blur(0);
            animation: titleDissolve 0.38s cubic-bezier(0.55, 0, 1, 0.45) forwards;
        }
        @keyframes titleDissolve { 0% { opacity:1; filter:blur(0); transform:translateY(0); } 100% { opacity:0; filter:blur(5px); transform:translateY(-8px); } }
        .title-overlay.dissolve .title-line { opacity:0; animation: none; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
        .title-overlay.dissolve .title-line::before, .title-overlay.dissolve .title-line::after, .title-overlay.dissolve .title-line span { opacity: 0; }
        .title-overlay.dissolve .title-sub { opacity:0; transform:translateY(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
        .title-overlay.dissolve .loading-icp-card { opacity:0; transform:translateY(-8px); transition: opacity 0.25s ease, transform 0.25s ease; }
        .title-overlay.dissolve .network-slow-hint { opacity:0; visibility:hidden; transform:translateY(-8px) scale(0.98); filter:blur(2px); animation:none; transition-delay:0s; }

        #page-home {
            opacity: 0;
            transition: opacity 0.5s 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
        }
        body.curtain-open #page-home { opacity: 1; }
        /* ========== 原有样式（完整保留，无任何改动） ========== */
        .brand-header { display: flex; align-items: center; justify-content: center; padding: 35px 0 15px 0; gap: 10px; position: relative; z-index: 5; }
        .brand-header svg.logo { color: var(--primary); width: 34px; height: 34px; }
        .brand-header h1 { font-size: 1.8rem; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
        .version-tag { font-size: 0.8rem; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 2px 10px; border-radius: 10px; margin-left: 8px; }

        /* 原生主题首页：使用移动海洋风格的标题卡片与紧凑圆角层级 */
        html:not([data-theme]) #page-home .brand-header {
            margin-top: 36px;
            margin-bottom: 12px;
            padding: 16px 18px;
            background: #F7F9FC;
            border: 1px solid #E2E8F0;
            border-radius: var(--home-radius-card);
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
            overflow: visible;
            clip-path: inset(-60px 0 -200px 0);
        }
        html:not([data-theme]) #page-home .brand-header .header-actions {
            top: -32px;
            right: 6px;
            gap: 14px;
            z-index: 10;
        }
        html:not([data-theme]) #page-home .home-grid {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        html:not([data-theme]) #page-home .home-grid > * {
            margin-top: 0 !important;
            margin-bottom: 0 !important;
        }
        html:not([data-theme]) #page-home #home-schedule-section > h2,
        html:not([data-theme]) #page-home #exam-section > h2 {
            margin-top: 0;
        }
        html:not([data-theme]) #page-home .time-card,
        html:not([data-theme]) #page-home .now-next-card,
        html:not([data-theme]) #page-home .glass,
        html:not([data-theme]) #page-home .day-column,
        html:not([data-theme]) #page-home .ai-summary-card,
        html:not([data-theme]) #page-home .urgent-card {
            border-radius: var(--home-radius-card);
        }
        html:not([data-theme]) #page-home .quick-nav,
        html:not([data-theme]) #page-home .exam-module,
        html:not([data-theme]) #page-home .homework-module {
            border-radius: var(--home-radius-group);
        }
        html:not([data-theme]) #page-home .nav-tag,
        html:not([data-theme]) #page-home .nav-dropdown-item,
        html:not([data-theme]) #page-home .period-toggle,
        html:not([data-theme]) #page-home .ai-summary-btn {
            border-radius: var(--home-radius-control);
        }

         html[data-theme="green"] #page-home .brand-header,
         html[data-theme="pink"] #page-home .brand-header,
         html[data-theme="orange"] #page-home .brand-header,
         html[data-theme="purple"] #page-home .brand-header,
         html[data-theme="cyan"] #page-home .brand-header {
             margin-top: 36px;
             margin-bottom: 12px;
             padding: 16px 18px;
             background: linear-gradient(135deg, rgba(255,255,255,0.88), var(--primary-light));
             border: 1px solid var(--primary-light);
             border-radius: var(--home-radius-card);
             box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
             overflow: visible;
             clip-path: inset(-60px 0 -200px 0);
         }
         html[data-theme="green"] #page-home .brand-header .header-actions,
         html[data-theme="pink"] #page-home .brand-header .header-actions,
         html[data-theme="orange"] #page-home .brand-header .header-actions,
         html[data-theme="purple"] #page-home .brand-header .header-actions,
         html[data-theme="cyan"] #page-home .brand-header .header-actions {
             top: -32px;
             right: 6px;
             gap: 14px;
             z-index: 10;
         }

         .menu-guide-target.menu-guide-focus { position: relative; z-index: 2; text-shadow: 0 0 0.01px currentColor; }
        .menu-guide { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; width: min(260px, calc(100vw - 48px)); display: flex; align-items: flex-start; gap: 9px; padding: 11px 10px 11px 12px; border: 1px solid rgba(0,113,227,0.18); border-radius: 15px; background: var(--card-bg); color: var(--text-main); box-shadow: 0 10px 24px rgba(0,0,0,0.12); text-align: left; }
        .menu-guide::before { content: ''; position: absolute; top: -6px; right: 18px; width: 11px; height: 11px; background: var(--card-bg); border-left: 1px solid rgba(0,113,227,0.18); border-top: 1px solid rgba(0,113,227,0.18); transform: rotate(45deg); }
        .menu-guide-icon { width: 22px; height: 22px; flex: 0 0 22px; color: var(--primary); }
        .menu-guide-copy { display: grid; gap: 2px; min-width: 0; font-size: 0.76rem; line-height: 1.45; }
        .menu-guide-copy strong { font-size: 0.8rem; }
        .menu-guide-close { width: 22px; height: 22px; flex: 0 0 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(118,118,128,0.12); color: var(--text-sub); font-size: 1rem; line-height: 1; cursor: pointer; }

        .beta-badge { position: absolute; top: 5px; right: 5px; background: linear-gradient(135deg, #f093fb, #f5576c); color: white; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 10px; letter-spacing: 0.05em; box-shadow: 0 2px 8px rgba(245,87,108,0.3); }
        .beta-tip { position: absolute; top: 30px; right: 5px; font-size: 0.65rem; color: #f5576c; white-space: nowrap; font-weight: 500; text-align: right; background: rgba(255,255,255,0.7); padding: 2px 8px; border-radius: 8px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

        .header-actions { position: absolute; right: 5px; top: 5px; display: flex; align-items: center; gap: 8px; }
        .login-status-tag { font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 12px; text-decoration: none; white-space: nowrap; }
        .login-status-tag.logged-out { background: rgba(255,59,48,0.15); color: var(--danger); cursor: pointer; }
        .login-status-tag.logged-in { background: var(--primary-light); color: var(--primary); cursor: default; }

        /* ===== Staggered Menu ===== */
        .sm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9990; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
        .sm-overlay.active { opacity: 1; pointer-events: auto; }
        .sm-prelayers { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 70vw); pointer-events: none; z-index: 9991; }
        .sm-prelayer { position: absolute; top: 0; right: 0; width: 100%; height: 100%; transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
        .sm-prelayer:nth-child(1) { background: var(--primary); opacity: 0.6; transition-delay: 0s; }
        .sm-prelayer:nth-child(2) { background: var(--primary); transition-delay: 0.07s; }
        .sm-prelayers.open .sm-prelayer { transform: translateX(0); }
        .sm-panel { position: fixed; top: 0; right: 0; width: min(400px, 70vw); height: 100%; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column; padding: 5.5em 2em 2em; overflow-y: auto; z-index: 9993; transform: translateX(100%); transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); transition-delay: 0.08s; }
        .sm-panel.open { transform: translateX(0); }
        .sm-menu-list { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
        .sm-item-wrap { overflow: hidden; line-height: 1; }
        .sm-item { position: relative; display: inline-block; color: var(--text-main); font-weight: 700; font-size: 2.4rem; letter-spacing: -1.5px; text-decoration: none; line-height: 1; padding: 0.15em 0; transition: color 0.2s; transform: translateY(120%) rotate(8deg); opacity: 0; cursor: pointer; }
        .sm-panel.open .sm-item { opacity: 1; transform: translateY(0) rotate(0); }
        .sm-panel.open .sm-item-wrap:nth-child(1) .sm-item { transition: all 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s; }
        .sm-panel.open .sm-item-wrap:nth-child(2) .sm-item { transition: all 0.7s cubic-bezier(0.22,1,0.36,1) 0.22s; }
        .sm-panel.open .sm-item-wrap:nth-child(3) .sm-item { transition: all 0.7s cubic-bezier(0.22,1,0.36,1) 0.29s; }
        .sm-panel.open .sm-item-wrap:nth-child(4) .sm-item { transition: all 0.7s cubic-bezier(0.22,1,0.36,1) 0.36s; }
        .sm-panel.open .sm-item-wrap:nth-child(5) .sm-item { transition: all 0.7s cubic-bezier(0.22,1,0.36,1) 0.43s; }
        .sm-panel.open .sm-item-wrap:nth-child(6) .sm-item { transition: all 0.7s cubic-bezier(0.22,1,0.36,1) 0.50s; }
        .sm-item:hover { color: var(--primary); }
        .sm-user-section { margin-top: auto; padding-top: 1.5em; border-top: 1px solid rgba(0,0,0,0.06); }
        .sm-close-btn { position: absolute; top: 1.2em; right: 1.2em; width: 36px; height: 36px; border-radius: 10px; background: rgba(0,0,0,0.06); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
        .sm-close-btn:active { background: rgba(0,0,0,0.12); }
        .sm-close-btn svg { width: 18px; height: 18px; color: var(--text-main); }
        .sm-user-name { font-size: 0.9rem; font-weight: 600; color: var(--text-main); margin-bottom: 0.3em; }
        .sm-user-id { font-size: 0.78rem; color: var(--text-sub); }
        .sm-logout { display: inline-block; margin-top: 0.8em; font-size: 0.85rem; font-weight: 600; color: var(--danger); cursor: pointer; opacity: 0; transform: translateY(10px); }
        .sm-panel.open .sm-logout { opacity: 1; transform: translateY(0); transition: all 0.5s cubic-bezier(0.22,1,0.36,1) 0.55s; }
        .sm-login { display: inline-block; margin-top: 0.8em; font-size: 0.85rem; font-weight: 600; color: var(--primary); cursor: pointer; opacity: 0; transform: translateY(10px); }
        .sm-panel.open .sm-login { opacity: 1; transform: translateY(0); transition: all 0.5s cubic-bezier(0.22,1,0.36,1) 0.55s; }
        /* Toggle button */
        .sm-toggle { display: inline-flex; align-items: center; justify-content: flex-end; background: transparent; border: none; cursor: pointer; color: var(--text-main); font-size: 0.95rem; font-weight: 600; gap: 0.5em; }
        .sm-toggle-text-wrap { position: relative; display: inline-block; height: 1.2em; overflow: hidden; white-space: nowrap; }
        .sm-toggle-text-inner { display: flex; flex-direction: column; line-height: 1.2; transition: transform 0.45s cubic-bezier(0.22,1,0.36,1); }
        .sm-toggle-text-line { display: block; height: 1.2em; }
        .sm-toggle-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
        .sm-toggle-icon-line { position: absolute; left: 50%; top: 50%; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }
        .sm-toggle-icon-line.v { transform: translate(-50%, -50%) rotate(90deg); }
        .sm-toggle.open .sm-toggle-icon-line.v { transform: translate(-50%, -50%) rotate(225deg); }
        .sm-toggle.open .sm-toggle-icon-line.h { transform: translate(-50%, -50%) rotate(225deg); }

        .time-card { text-align: center; margin-bottom: 10px; padding: 25px; border-radius: var(--radius); position: relative; overflow: visible; }
        .mac-dots { position: absolute; top: 12px; left: 14px; display: flex; gap: 6px; z-index: 2; }
        .mac-dot { width: 10px; height: 10px; border-radius: 50%; }
        .mac-dot.red { background: #ff5f57; }
        .mac-dot.yellow { background: #febc2e; }
        .mac-dot.green { background: #28c840; }
        #clock { font-size: 2.8rem; font-weight: 700; letter-spacing: -1px; margin: 0; font-variant-numeric: tabular-nums; }
        #date { font-size: 1rem; color: var(--text-sub); margin: 6px 0 0; font-weight: 500; }
        #date .weather-inline { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
        #date .weather-inline i { font-size: 1.2em; }

        .week-badge { position: absolute; top: 10px; right: 10px; background: var(--primary); color: white; font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: 10px; opacity: 0.95; z-index: 2; }

        .countdown-badge { display: inline-block; font-size: 0.9rem; font-weight: 600; padding: 6px 16px; border-radius: 14px; margin: 5px; color: white; background-color: #34c759; opacity: 0.95; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
        .countdown-badge.urgent { background-color: #ff3b30; }
        .countdown-badge.past { background-color: #8e8e93; }
        .countdown-wrapper { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
        .daily-reminder { display: none; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; padding: 8px 14px; border-radius: 14px; background: rgba(118,118,128,0.12); font-size: 0.85rem; font-weight: 500; color: var(--text-main); width: fit-content; max-width: 92%; margin-left: auto; margin-right: auto; }
        .daily-reminder.visible { display: flex; }
        .daily-reminder svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.45; }
        [data-theme="dark"] .daily-reminder { background: rgba(118,118,128,0.22); }

        .homework-reminder-tag {
            position: relative; overflow: hidden;
            display: inline-flex; align-items: center; justify-content: center; gap: 9px;
            margin-top: 2px; padding: 8px 15px 8px 9px; border-radius: 18px;
            background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.84));
            border: 1px solid rgba(0,0,0,0.06);
            font-size: 0.88rem; font-weight: 800; color: var(--primary);
            max-width: 92%; width: fit-content; margin-left: auto; margin-right: auto;
            box-shadow: 0 2px 10px rgba(0,0,0,0.06);
            animation: hwReminderPulse 2.2s ease-in-out infinite;
        }
        .homework-reminder-tag::before {
            content: ""; position: absolute; inset: 0; pointer-events: none;
            background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.06) 22%, rgba(255,255,255,0.5) 48%, rgba(255,255,255,0.08) 72%, transparent 100%);
            transform: translateX(-115%);
            animation: hwReminderShimmer 2.35s ease-in-out infinite;
            mix-blend-mode: screen;
        }
        .homework-reminder-tag svg,
        .homework-reminder-tag span { position: relative; z-index: 1; }
        .homework-reminder-tag svg {
            width: 1.05em; height: 1.05em; color: #fff; flex-shrink: 0;
            padding: 5px; box-sizing: content-box; border-radius: 50%;
            background: var(--primary);
            box-shadow: 0 3px 10px rgba(0,0,0,0.15);
        }
        @keyframes hwReminderPulse {
            0%, 100% { transform: translateY(0); box-shadow: inset 0 0 0 1px rgba(255,59,48,0.18); }
            50% { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255,59,48,0.28); }
        }
        @keyframes hwReminderGlow {
            0%, 100% { background-position: 0 0, 0% 50%; }
            50% { background-position: 0 0, 100% 50%; }
        }
        @keyframes hwReminderShimmer {
            0% { transform: translateX(-115%); opacity: 0; }
            16% { opacity: 1; }
            58% { opacity: 1; }
            76%, 100% { transform: translateX(115%); opacity: 0; }
        }
        @keyframes hwReminderInnerGlow {
            0%, 100% { opacity: 0.35; }
            50% { opacity: 0.82; }
        }
        @keyframes hwReminderIconPop {
            0%, 100% { transform: scale(1); }
            45% { transform: scale(1.09); }
            62% { transform: scale(0.98); }
        }

        .bring-date-group { margin-bottom: 10px; }
        .bring-date-group:last-child { margin-bottom: 0; }
        .bring-date-label { font-size: 0.78rem; font-weight: 700; color: var(--text-sub); margin-bottom: 6px; }
        .bring-date-label.today { color: var(--primary); }
        .bring-check-item {
            display: flex; align-items: center; gap: 6px; padding: 7px 8px;
            border-radius: 10px; background: rgba(0,0,0,0.03); font-size: 0.82rem;
            cursor: pointer; transition: background 0.15s; overflow: hidden;
        }
        .bring-check-item:active { background: rgba(0,0,0,0.07); }
        .bring-check-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
        .bring-check-item span { overflow-wrap: anywhere; word-wrap: break-word; }
        .bring-check-item span { flex: 1; min-width: 0; }
        .bring-check-item.checked { background: rgba(0,0,0,0.06); }
        .bring-check-item.checked span { text-decoration: line-through; color: var(--text-sub); }
        [data-theme="dark"] .bring-check-item { background: rgba(255,255,255,0.06); }
        [data-theme="dark"] .bring-check-item:active { background: rgba(255,255,255,0.1); }
        [data-theme="dark"] .bring-check-item.checked span { color: #98989d; }

        h2 { font-size: 1.4rem; font-weight: 600; margin: 16px 0 12px 5px; display: flex; align-items: center; gap: 8px; }
        .glass { background: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 8px 30px rgba(0,0,0,0.04); }

        .urgent-card { background: rgba(255,242,242,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1.5px solid rgba(255,140,140,0.35); box-shadow: 0 2px 16px rgba(255,100,100,0.06); padding: 16px 18px 16px; margin-bottom: 12px; border-radius: var(--radius); position: relative; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; word-break: break-word; }

        .urgent-header { display: block; margin-bottom: 8px; }
        .urgent-title { color: var(--text-main); font-size: 1rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; line-height: 1.35; }
        .urgent-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
        .urgent-title-text { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
        .urgent-content { font-size: 0.9rem; line-height: 1.5; color: var(--text-sub); margin: 10px 0 0 0; word-wrap: break-word; overflow-wrap: anywhere; word-break: break-word; }
        .urgent-badge { position: static; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; flex-shrink: 0; box-shadow: 0 0 0 0 rgba(255,59,48,0.7); animation: pulse-red 1.5s infinite; }
        .urgent-badge svg { display: none; }

        .status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; position: relative; top: -1px; }
        .status-dot.active { background-color: #ff3b30; animation: pulse-red 1.5s infinite; }
        .status-dot.upcoming { background-color: #34c759; animation: pulse-green 2s infinite; }
        @keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(255,59,48,0.7); } 70% { box-shadow: 0 0 0 6px rgba(255,59,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); } }
        @keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,0.7); } 70% { box-shadow: 0 0 0 6px rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }

        .now-next-row { display: flex; gap: 12px; margin-bottom: 8px; }
        .now-next-card { flex: 1; padding: 14px 16px; border-radius: var(--radius); display: flex; align-items: center; gap: 12px; }
        .now-next-card.empty-state { align-items: flex-start; }
        .now-next-card .card-main { flex: 1; min-width: 0; }
        .now-next-card .card-label { font-size: 0.7rem; font-weight: 700; color: var(--text-sub); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; }
        .now-next-card .card-course-name { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
        .now-next-card .card-time { font-size: 0.8rem; color: var(--text-sub); margin-bottom: 6px; }
        .now-next-card .card-location { display: inline-block; background: var(--primary-light); color: var(--primary); font-weight: 600; font-size: 0.7rem; padding: 2px 10px; border-radius: 10px; }
        .now-next-card .card-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .class-progress-ring {
            --ring-angle: 0deg;
            --ring-color: var(--primary);
            --ring-track: rgba(0,0,0,0.08);
            width: 60px;
            aspect-ratio: 1;
            border-radius: 50%;
            background: conic-gradient(var(--ring-color) 0 var(--ring-angle), var(--ring-track) var(--ring-angle) 360deg);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .class-progress-ring::after {
            content: "";
            position: absolute;
            inset: 5px;
            background: #fff;
            border-radius: 50%;
            box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
        }
        .class-progress-ring-inner {
            position: relative;
            z-index: 1;
            text-align: center;
            line-height: 1.05;
        }
        .class-progress-ring-label { display: block; font-size: 10px; font-weight: 700; color: var(--text-sub); }
        .class-progress-ring-value { display: block; font-size: 12px; font-weight: 800; color: var(--text-main); margin-top: 1px; }
        .class-progress-ring.current .class-progress-ring-value { color: #0b7a34; }
        .class-progress-ring.next .class-progress-ring-value { color: var(--primary); }
        .class-progress-ring.soon .class-progress-ring-value { color: #ff9500; }

        .quick-nav { background: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 16px; border: 1px solid rgba(255,255,255,0.8); box-shadow: 0 4px 16px rgba(0,0,0,0.03); position: relative; z-index: 50; padding: 6px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 6px; }
        .nav-tag { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 4px; border-radius: 11px; background: #F5F5F7; border: none; font-size: 12px; font-weight: 600; color: var(--text-main); cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
        .nav-tag:active { transform: scale(0.96); background: var(--primary-light); color: var(--primary); }
        .nav-tag svg { width: 14px; height: 14px; flex: 0 0 14px; stroke: var(--primary); stroke-width: 2.1; fill: none; stroke-linecap: round; stroke-linejoin: round; }
        .nav-dot { display: none; }
        .nav-tag { position: relative; }
        .nav-dropdown { position: absolute; top: 110%; left: 50%; transform: translateX(-50%); background: var(--card-bg); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border-radius: var(--radius); box-shadow: 0 12px 36px rgba(0,0,0,0.1); padding: 8px; min-width: 140px; max-height: 260px; overflow-y: auto; display: none; z-index: 100; border: 0.5px solid rgba(128,128,128,0.18); }
        .nav-dropdown.show { display: block; animation: fadeIn 0.15s ease; }

        .nav-dropdown::-webkit-scrollbar { width: 3px; }
        .nav-dropdown::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
        .nav-dropdown-item { padding: 10px 14px; font-size: 0.85rem; font-weight: 500; color: var(--text-main); cursor: pointer; white-space: nowrap; transition: all 0.15s; display: flex; align-items: center; gap: 8px; border-radius: 12px; }
        .nav-dropdown-item:active { background: var(--primary-light); color: var(--primary); }
        .nav-dropdown-item svg { width: 1em; height: 1em; color: var(--primary); }

        .week-slider { display: flex; overflow-x: auto; gap: 15px; padding-bottom: 15px; scroll-snap-type: x mandatory; padding-left: 140px; padding-right: 140px; }
        .week-slider::-webkit-scrollbar { height: 8px; } .week-slider::-webkit-scrollbar-track { background: rgba(0,0,0,0.03); border-radius: 10px; } .week-slider::-webkit-scrollbar-thumb { background: rgba(0,113,227,0.25); border-radius: 10px; }
        .day-column { flex: 0 0 280px; scroll-snap-align: start; box-sizing: border-box; border-radius: var(--radius); overflow: hidden; scroll-snap-stop: always; }
        .day-header { padding: 20px 20px 10px 20px; font-weight: 700; color: var(--primary); font-size: 1.15rem; background: rgba(255,255,255,0.3); display: flex; justify-content: space-between; align-items: center; }
        .day-header .day-date { font-size: 0.85rem; font-weight: 500; color: var(--text-sub); margin-left: 10px; white-space: nowrap; }
        .day-section {
            display: flex; align-items: center; gap: 10px;
            padding: 0; margin: 10px 16px 4px;
            font-size: 0.72rem; font-weight: 750;
            color: var(--primary); letter-spacing: 0.04em;
        }
        .day-section::after {
            content: ''; flex: 1; height: 1px;
            background: rgba(0,113,227,0.14);
            border-radius: 999px;
        }

        .week-course-item { padding: 10px 16px 11px; border-bottom: 1px solid rgba(0,0,0,0.04); cursor: pointer; position: relative; transition: opacity 0.3s; }
        .week-course-item:last-child { border-bottom: none; }
        .week-course-item .w-name { font-weight: 650; margin-bottom: 2px; padding-right: 64px; font-size: 0.96rem; line-height: 1.25; }
        .week-course-item .w-time { font-size: 0.78rem; color: var(--text-sub); margin-bottom: 5px; line-height: 1.25; }
        .week-course-item .w-loc { min-width: 0; flex: 1; font-size: 0.85rem; color: var(--primary); font-weight: 650; line-height: 1.35; word-break: break-word; }
        .week-course-item.ended { opacity: 0.4; pointer-events: none; }
        .week-course-item .status-indicator { position: absolute; top: 34px; right: 12px; display: flex; align-items: center; gap: 4px; font-size: 0.62rem; font-weight: 650; background: rgba(255,255,255,0.8); padding: 2px 7px; border-radius: 10px; backdrop-filter: blur(4px); z-index: 2; }
        .week-course-item .status-indicator .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
        .status-indicator.current .dot { background: #ff3b30; animation: pulse-red 1.5s infinite; }
        .status-indicator.next .dot { background: #34c759; animation: pulse-green 2s infinite; }
        .status-indicator.ended .dot { background: #8e8e93; }

        .period-tag { position: absolute; top: 10px; right: 12px; background: var(--primary-light); color: var(--primary); padding: 2px 8px; border-radius: 12px; font-size: 0.66rem; font-weight: 650; z-index: 1; }
        .detail-btn { display: inline-flex; align-items: center; flex-shrink: 0; margin-left: 7px; background: rgba(0,0,0,0.04); color: var(--text-sub); font-size: 0.66rem; padding: 2px 7px; border-radius: 9px; font-weight: 600; transition: background 0.2s; white-space: nowrap; }
        .week-course-item:hover .detail-btn { background: var(--primary-light); color: var(--primary); }

        .period-block { position: relative; }
        .period-block.collapsed .week-course-item,
        .period-block.collapsed .day-section { display: none; }
        .period-toggle { display: block; width: calc(100% - 40px); margin: 5px 20px; padding: 8px 12px; border-radius: 10px; background: rgba(0,0,0,0.03); color: var(--text-sub); font-size: 0.75rem; font-weight: 600; text-align: center; cursor: pointer; border: none; }
        .period-block.collapsed .period-toggle { background: rgba(0,113,227,0.05); color: var(--primary); }

        .exam-module { margin: 2px 0 18px; padding: 8px; border-radius: var(--radius); }
        .exam-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,0.56); border: 0.5px solid rgba(128,128,128,0.12); }
        .exam-item + .exam-item { margin-top: 8px; }
        .exam-name { font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin-bottom: 5px; display: flex; align-items: center; gap: 6px; min-width: 0; }
        .exam-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .exam-detail-link { flex-shrink: 0; cursor: pointer; }
        .exam-meta { display: flex; flex-wrap: wrap; gap: 5px 8px; font-size: 0.76rem; color: var(--text-sub); font-weight: 500; }
        .exam-remain { min-width: 62px; text-align: center; padding: 7px 9px; border-radius: 14px; background: var(--primary-light); color: var(--primary); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
        .exam-remain.soon { background: rgba(255,59,48,0.12); color: var(--danger); }
        .exam-remain.past { background: rgba(142,142,147,0.12); color: var(--text-sub); }
        .ai-summary-card { display: none; margin: -2px 0 10px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgba(0,113,227,0.15); background: linear-gradient(135deg, rgba(0,113,227,0.06), rgba(52,199,89,0.04)); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
        .ai-summary-card.visible { display: block; }
        .ai-summary-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
        .ai-summary-title { display: flex; align-items: center; gap: 7px; color: var(--text-main); font-size: 0.88rem; font-weight: 800; margin: 0; }
        .ai-summary-title svg { width: 1em; height: 1em; color: var(--primary); }
        .ai-summary-toggle { color: var(--text-sub); font-size: 0.72rem; font-weight: 650; user-select: none; padding: 5px 2px; white-space: nowrap; }
        .ai-summary-body { margin-top: 10px; }
        .ai-summary-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border: none; border-radius: 7px; background: var(--primary); color: #fff; font-size: 0.72rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; white-space: nowrap; }
        .ai-summary-btn:active { opacity: 0.7; }
        .ai-summary-btn svg { width: 14px; height: 14px; }
        .ai-summary-content { min-height: 42px; color: var(--text-main); font-size: 0.86rem; line-height: 1.7; white-space: normal; word-break: break-word; }
        .ai-summary-content p { margin: 0 0 0.55em; }
        .ai-summary-content p:last-child { margin-bottom: 0; }
        .ai-summary-content strong { font-weight: 800; }
        .ai-summary-content em { font-style: italic; }
        .ai-summary-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 6px; }
        .ai-summary-content pre { margin: 0.55em 0; padding: 9px 10px; border-radius: 12px; background: rgba(0,0,0,0.06); overflow-x: auto; white-space: pre; }
        .ai-summary-content pre code { background: transparent; padding: 0; border-radius: 0; }
        .ai-summary-content ul, .ai-summary-content ol { margin: 0.45em 0 0.45em 1.25em; padding: 0; }
        .ai-summary-content li { margin: 0.18em 0; }
        .ai-summary-content a { color: var(--primary); font-weight: 700; text-decoration: none; }
        .ai-summary-content .md-table-wrap { width: 100%; max-width: 100%; overflow: hidden; margin: 0.55em 0; }
        .ai-summary-content table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 0.82rem; }
        .ai-summary-content th, .ai-summary-content td { border: 1px solid rgba(0,0,0,0.08); padding: 6px 7px; text-align: left; vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
        .ai-summary-content th { background: rgba(0,0,0,0.04); font-weight: 750; }
        .ai-summary-content .file-attachment-card { color: var(--text-main); font-weight: 500; }
        .ai-summary-content .file-attachment-card .file-attachment-title { font-weight: 800; }
        .ai-summary-cursor { display: inline-block; width: 6px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--primary); border-radius: 999px; animation: aiCursorBlink 0.8s steps(2, start) infinite; }
        .ai-summary-meta { margin-top: 8px; color: var(--text-sub); font-size: 0.72rem; font-weight: 500; }
        @keyframes aiCursorBlink { 50% { opacity: 0; } }
        .ai-summary-card.loading { position: relative; overflow: hidden; }
        .ai-summary-card.loading::before {
            content: '';
            position: absolute;
            inset: 0;
            padding: 2px;
            border-radius: var(--radius);
            background: linear-gradient(90deg, #0071e3, #34c59b, #0071e3, #34c59b, #0071e3);
            background-size: 300% 100%;
            pointer-events: none;
            -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
            z-index: 1;
            animation: aiMarqueeBorder 2s linear infinite;
        }
        .ai-summary-card.loading > * { position: relative; z-index: 2; }
        @keyframes aiMarqueeBorder { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
        .homework-module { display: none; margin: -6px 0 12px; padding: 8px 9px 9px; border-radius: 18px; }
        .homework-module.visible { display: block; }
        .homework-module-title { display: flex; align-items: center; gap: 5px; margin: 0 0 6px 3px; color: var(--text-sub); font-size: 0.76rem; font-weight: 750; }
        .homework-module-title svg { width: 0.95em; height: 0.95em; color: var(--primary); }
        .homework-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 12px; background: rgba(255,255,255,0.42); border: 0.5px solid rgba(128,128,128,0.1); }
        .homework-item + .homework-item { margin-top: 5px; }
        .homework-info { min-width: 0; line-height: 1.25; }
        .homework-name { font-size: 0.88rem; font-weight: 750; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .homework-time { margin-top: 2px; color: var(--text-sub); font-size: 0.7rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .homework-remain { min-width: 62px; text-align: center; padding: 5px 7px; border-radius: 10px; background: var(--primary-light); color: var(--primary); font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
        .homework-remain.today { background: rgba(255,59,48,0.12); color: var(--danger); }
        .homework-remain.tomorrow { background: rgba(255,149,0,0.14); color: #ff9500; }
        .homework-remain.after-tomorrow { background: rgba(52,199,89,0.14); color: #28a745; }
        .homework-remain.future { background: var(--primary-light); color: var(--primary); }
        .homework-remain.past { background: rgba(142,142,147,0.12); color: var(--text-sub); }

        .category-board { margin-bottom: 18px; }
        .category-title { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 750; color: var(--primary); margin: 14px 2px 8px; padding-left: 0; border-left: none; }
        .category-title::after { content: ""; flex: 1; height: 1px; background: rgba(0,113,227,0.14); border-radius: 999px; }
        .notice-item { padding: 11px 13px; margin-bottom: 8px; border-radius: 18px; }
        .notice-title { font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.98rem; line-height: 1.35; }
        .notice-content { font-size: 0.9rem; line-height: 1.55; margin: 6px 0 9px 0; color: #3a3a3c; word-wrap: break-word; overflow-wrap: anywhere; word-break: break-word; }
        .notice-meta { font-size: 0.74rem; color: var(--text-sub); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; }

        .modal { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: none; justify-content: center; align-items: center; z-index: 1000; opacity: 0; transition: opacity 0.25s ease; }
        .modal.active { opacity: 1; }
        .modal-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; box-sizing: border-box; background: rgba(0,0,0,0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: none; justify-content: center; align-items: center; z-index: 1000; opacity: 0; overscroll-behavior: contain; transition: opacity 0.25s ease; }
        .modal-overlay.active, .modal-overlay.show { display: flex; opacity: 1; }
        #square-submissions-modal { z-index: 10020; }
        /* 首次选校必须位于首页开场幕布之上，否则 init 会一直等待确认。 */
        #browse-scope-modal { z-index: 10010; }
        #comment-blocked-modal { z-index: 10060; }
        .comment-blocked-risk-notice { margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: rgba(255,59,48,0.08); color: #FF3B30; font-size: 0.82rem; line-height: 1.5; text-align: left; }
        body.browse-scope-open .title-overlay { visibility: hidden; opacity: 0; }
        .modal-content { width: 88%; max-width: 360px; padding: 30px; text-align: left; box-sizing: border-box; border-radius: 28px; background: rgba(255,255,255,0.72); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); border: 0.5px solid rgba(255,255,255,0.78); box-shadow: 0 20px 40px rgba(0,0,0,0.1), inset 0 1px 1px rgba(255,255,255,0.7); transform: scale(0.75) translateY(20px); opacity: 0; }
        .modal.active .modal-content, .modal-overlay.active .modal-content, .modal-overlay.show .modal-content { animation: popupBounce 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards; }
        @keyframes popupBounce { 0% { opacity:0; transform:scale(.75) translateY(20px); } 60% { opacity:1; transform:scale(1.05) translateY(-2px); } 100% { opacity:1; transform:scale(1) translateY(0); } }
        .modal-close-btn { width: 100%; padding: 14px; border: none; border-radius: 16px; background: rgba(0,0,0,0.06); color: var(--text-main); font-size: 0.92rem; font-weight: 600; cursor: pointer; margin-top: 8px; }
        #calendar-export-modal { align-items: flex-end; }
        #calendar-export-modal .calendar-export-sheet { width: 100%; max-width: 560px; max-height: min(760px, 92dvh); overflow-y: auto; padding: 20px 20px calc(30px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -8px 24px rgba(0,0,0,.1); color: #1c1c1e; transform: translateY(100%); }
        #calendar-export-modal.active .calendar-export-sheet { animation: calendarSheetUp .3s cubic-bezier(.16,1,.3,1) forwards; }
        @keyframes calendarSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
        .calendar-export-header { display:flex; flex-direction:column; align-items:center; position:relative; margin-bottom:16px; }
        .calendar-export-handle { width:36px; height:5px; margin-bottom:12px; border-radius:3px; background:#e2e4ea; }
        .calendar-export-title { font-size:18px; font-weight:600; }
        .calendar-export-close { position:absolute; right:0; top:12px; width:28px; height:28px; display:flex; align-items:center; justify-content:center; border:0; border-radius:50%; background:#f0f1f5; color:#8e8e93; font-size:18px; font-weight:700; cursor:pointer; }
        .calendar-platform-tabs { display:flex; gap:3px; padding:3px; margin-bottom:20px; border-radius:12px; background:#f0f1f5; }
        .calendar-platform-tab { flex:1; padding:8px 0; border:0 !important; border-radius:9px !important; background:transparent !important; color:#8e8e93 !important; font-size:13px; font-weight:600; cursor:pointer; transition:all .25s ease; }
        .calendar-platform-tab.active { background:#fff !important; color:#1c1c1e !important; box-shadow:0 2px 6px rgba(0,0,0,.06); }
        .calendar-anim-stage { position:relative; height:120px; display:flex; align-items:center; justify-content:space-between; padding:0 25px; margin-bottom:20px; overflow:hidden; border-radius:20px; background:#f9fafe; }
        .calendar-app-card { width:76px; height:76px; display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; border-radius:18px; background:#fff; box-shadow:0 8px 20px rgba(0,0,0,.06); }
        .calendar-app-icon { width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:12px; background:linear-gradient(135deg,#7c52ff,#5833ef); }
        .calendar-system-icon { width:42px; height:42px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-radius:12px; background:#ff3b30; color:#fff; }
        .calendar-app-label { margin-top:4px; color:#8e8e93; font-size:11px; font-weight:500; }
        .calendar-flying-file { position:absolute; top:50%; left:63px; z-index:2; width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:#fff; box-shadow:0 4px 14px rgba(0,0,0,.12); opacity:0; animation:calendarFileFly 9s infinite; }
        @keyframes calendarFileFly { 0% { opacity:0; left:63px; transform:translate(-50%,-50%) scale(.6); } 10% { opacity:1; transform:translate(-50%,-50%) scale(1.1); } 30% { opacity:1; left:calc(100% - 63px); transform:translate(-50%,-50%) scale(1); } 35%,100% { opacity:0; left:calc(100% - 63px); transform:translate(-50%,-50%) scale(.6); } }
        .calendar-steps { display:flex; flex-direction:column; gap:10px; min-height:156px; margin-bottom:20px; }
        .calendar-step { display:flex; align-items:center; padding:12px 14px; border-radius:14px; background:#f7f8fa; }
        .calendar-step-number { width:22px; height:22px; flex:0 0 22px; display:flex; align-items:center; justify-content:center; margin-right:12px; border-radius:50%; background:#e2e4ea; color:#8e8e93; font-size:12px; font-weight:700; }
        .calendar-step-text { color:#3a3a3c; font-size:13px; font-weight:500; line-height:1.4; }
        .calendar-export-button { width:100%; padding:15px 0; border:0; border-radius:22px; background:#5856d6; color:#fff; font-size:16px; font-weight:600; box-shadow:0 6px 16px rgba(88,86,214,.3); cursor:pointer; }
        .calendar-export-button:active { transform:scale(.98); opacity:.9; }
        .calendar-export-button:disabled { background:#e2e4ea; color:#8e8e93; box-shadow:none; cursor:not-allowed; }
        .calendar-export-options { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:16px 0 10px; font-size:.9rem; font-weight:600; }
        .calendar-export-options select { min-width:128px; padding:8px 10px; border:1px solid #e5e5ea; border-radius:9px; background:#f7f7fa; color:#1c1c1e; font:inherit; }
        .calendar-export-note { margin:0; color:#8e8e93; font-size:.78rem; line-height:1.55; }
        .calendar-export-warning { display:flex; align-items:center; gap:12px; padding:16px; margin-bottom:20px; border:1px solid #ffe1e1; border-radius:16px; background:#fff2f2; }
        .calendar-warning-icon { width:36px; height:36px; flex:0 0 36px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:#ff3b30; }
        .calendar-warning-title { margin-bottom:2px; color:#d70015; font-size:14px; font-weight:600; }
        .calendar-warning-desc { color:#80000a; font-size:12px; line-height:1.5; }
        [data-theme="dark"] #calendar-export-modal .calendar-export-sheet { background:#1c1c1e; color:#f5f5f7; }
        [data-theme="dark"] .calendar-export-options select { border-color:#3a3a3c; background:#2c2c2e; color:#f5f5f7; }
        [data-theme="dark"] .calendar-platform-tabs, [data-theme="dark"] .calendar-step { background:#2c2c2e; }
        [data-theme="dark"] .calendar-platform-tab.active { background:#48484a !important; color:#f5f5f7 !important; }
        [data-theme="dark"] .calendar-step-text { color:#f5f5f7; }
        .auth-school-picker { position: relative; margin-bottom: 10px; text-align: left; }
        .auth-school-trigger { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; border: 1px solid rgba(118,118,128,0.22); border-radius: 16px; background: rgba(255,255,255,0.78); color: var(--text-main); font-size: 0.95rem; cursor: pointer; }
        .auth-school-trigger.placeholder { color: var(--text-sub); }
        .auth-school-trigger svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--text-sub); transition: transform .18s ease; }
        .auth-school-picker.open .auth-school-trigger svg { transform: rotate(180deg); }
        .auth-school-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; display: none; max-height: min(320px, 42dvh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid rgba(118,118,128,0.18); border-radius: 16px; background: rgba(255,255,255,0.96); box-shadow: 0 14px 32px rgba(0,0,0,0.14); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
        .auth-school-picker.open .auth-school-menu { display: grid; gap: 3px; }
        .auth-school-option { width: 100%; padding: 11px 12px; border: 0; border-radius: 11px; background: transparent; color: var(--text-main); text-align: left; font-size: 0.9rem; cursor: pointer; }
        .auth-school-option:hover, .auth-school-option.active { background: var(--primary-light); color: var(--primary); }
        #auth-modal { z-index: 10020; }
        #auth-modal > .modal-content { overflow: visible !important; }
        #auth-modal #auth-steps-wrapper { overflow: visible !important; min-width: 0; }
        #auth-modal #turnstile-challenge-host { width: 100%; max-width: 100%; min-width: 0; overflow-x: hidden; }
        #auth-modal #turnstile-challenge-host > * { max-width: 100%; }
        .captcha-modal-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; box-sizing: border-box; z-index: 10040; display: none; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; background: rgba(0,0,0,.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        #captcha-modal { z-index: 10040; padding: 16px; overflow-y: auto; }
        #captcha-modal.active { display: flex; }
        .captcha-modal-content { position: relative; width: min(360px, calc(100vw - 32px)); max-height: min(520px, calc(100dvh - 32px)); overflow-x: hidden; overflow-y: auto; padding: 28px 10px 22px; border-radius: 22px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.24); }
        #captcha-modal-title { margin: 0 28px 18px 0; text-align: left; }
        .captcha-modal-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--text-sub); font-size: 26px; line-height: 1; cursor: pointer; }
        #captcha-modal #turnstile-challenge-host { width: 100%; max-width: 100%; min-width: 0; min-height: 65px; overflow-x: hidden; display: flex; justify-content: center; align-items: center; }
        #captcha-modal #turnstile-challenge-host > * { max-width: 100%; }
        .captcha-provider-trigger { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; opacity: 0 !important; pointer-events: none !important; }
        #auth-modal .auth-step h3,
        #change-password-modal h3 { margin: 0 0 20px; }
        [data-theme="dark"] .modal-close-btn { background: rgba(255,255,255,0.08); color: #f5f5f7; }
        .academic-nav-target.academic-guide-focus { position: relative; z-index: 2; box-shadow: 0 0 0 3px rgba(0,113,227,0.18), 0 6px 16px rgba(0,113,227,0.18); }
        .academic-nav-guide { position: absolute; top: calc(100% + 10px); right: 8px; z-index: 3; width: min(270px, calc(100vw - 48px)); display: flex; align-items: flex-start; gap: 9px; padding: 11px 10px 11px 12px; border: 1px solid rgba(0,113,227,0.18); border-radius: 15px; background: var(--card-bg); color: var(--text-main); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
        .academic-nav-guide::before { content: ''; position: absolute; top: -6px; right: 42px; width: 11px; height: 11px; background: var(--card-bg); border-left: 1px solid rgba(0,113,227,0.18); border-top: 1px solid rgba(0,113,227,0.18); transform: rotate(45deg); }
        .academic-nav-guide-icon { width: 22px; height: 22px; flex: 0 0 22px; color: var(--primary); }
        .academic-nav-guide-copy { display: grid; gap: 2px; min-width: 0; font-size: 0.76rem; line-height: 1.45; }
        .academic-nav-guide-copy strong { font-size: 0.8rem; }
        .academic-nav-guide-close { width: 22px; height: 22px; flex: 0 0 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(118,118,128,0.12); color: var(--text-sub); font-size: 1rem; line-height: 1; cursor: pointer; }
        .profile-guide-target.profile-guide-focus { position: relative; z-index: 2; box-shadow: 0 0 0 3px rgba(0,113,227,0.18), 0 6px 16px rgba(0,113,227,0.18); }
        .profile-home-guide { position: absolute; top: calc(100% + 10px); right: 0; z-index: 3; width: min(270px, calc(100vw - 48px)); display: flex; align-items: flex-start; gap: 9px; padding: 11px 10px 11px 12px; border: 1px solid rgba(0,113,227,0.18); border-radius: 15px; background: var(--card-bg); color: var(--text-main); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
        .profile-home-guide::before { content: ''; position: absolute; top: -6px; right: 28px; width: 11px; height: 11px; background: var(--card-bg); border-left: 1px solid rgba(0,113,227,0.18); border-top: 1px solid rgba(0,113,227,0.18); transform: rotate(45deg); }
        .profile-home-guide-icon { width: 22px; height: 22px; flex: 0 0 22px; color: var(--primary); }
        .profile-home-guide-copy { display: grid; gap: 2px; min-width: 0; font-size: 0.76rem; line-height: 1.45; }
        .profile-home-guide-copy strong { font-size: 0.8rem; }
        .profile-home-guide-close { width: 22px; height: 22px; flex: 0 0 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(118,118,128,0.12); color: var(--text-sub); font-size: 1rem; line-height: 1; cursor: pointer; }
        /* Keep the profile guide above theme card animations and following cards. */
        #page-profile { overflow: visible !important; }
        #page-profile .profile-user-card { position: relative; z-index: 20; overflow: visible !important; }
        #page-profile .profile-actions { position: relative; z-index: 1; }
        .modal-header { text-align: center; margin-bottom: 25px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 15px;}
        .modal-header h3 { margin: 0 0 5px 0; color: var(--primary); font-size: 1.4rem; }
        .modal-header .sub-tag { font-size: 0.85rem; color: var(--text-sub); background: rgba(0,0,0,0.04); padding: 4px 10px; border-radius: 10px;}
        .detail-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 1rem; align-items: center;}
        .detail-label { color: var(--text-sub); display: flex; align-items: center; gap: 6px;}
        .detail-value { font-weight: 500; color: var(--text-main); text-align: right; max-width: 60%; word-break: break-all;}

        .remark-box { background: rgba(255,59,48,0.08); border-radius: 12px; padding: 15px; margin-top: 20px; display: none; }
        .remark-title { font-size: 0.85rem; color: var(--danger); font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; gap: 5px;}
        .remark-content { font-size: 0.95rem; color: var(--danger); line-height: 1.5; margin: 0; white-space: pre-wrap;}

        .close-btn { margin-top: 25px; background: var(--primary); color: white; border: none; padding: 14px 40px; border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 1.05rem; width: 100%;}

        .week-selector-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
        .week-selector-wrap select { padding: 8px 12px; border-radius: 12px; border: 1px solid #d2d2d7; font-weight: 600; color: var(--primary); background: rgba(255,255,255,0.7); }

        #maintenance-overlay { background: rgba(17,24,39,.28); }
        #maintenance-overlay .maintenance-card {
            width: min(382px, 90vw); max-height: min(78vh, 620px); max-height: min(78dvh, 620px); padding: 22px 22px 18px;
            overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 22px;
            background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(15,23,42,.2);
            text-align: left; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        }
        .maintenance-brand { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:18px; border-bottom:1px solid rgba(15,23,42,.08); }
        .maintenance-brand-name { color:#111827; font-size:.82rem; font-weight:800; letter-spacing:.02em; }
        .maintenance-brand-meta { display:flex; align-items:center; gap:9px; }
        .maintenance-brand-label { color:#6b7280; font-size:.72rem; font-weight:650; white-space:nowrap; }
        .maintenance-icon { display:grid; place-items:center; width:76px; height:76px; margin:28px auto 22px; color:#d92d20; }
        .maintenance-icon svg { width:54px; height:54px; }
        .maintenance-status { display:inline-flex; align-items:center; gap:6px; color:#b42318; font-size:.7rem; font-weight:750; white-space:nowrap; }
        .maintenance-status-dot { width:6px; height:6px; border-radius:50%; background:#d92d20; box-shadow:0 0 0 3px rgba(217,45,32,.12); }
        #maintenance-overlay #maintenance-title { margin:14px 0 7px; color:#111827; font-size:1.28rem; line-height:1.3; font-weight:800; letter-spacing:-.02em; }
        #maintenance-overlay #maintenance-subtitle { margin:0 0 18px; color:#667085; font-size:.86rem; line-height:1.7; }
        #maintenance-overlay .maintenance-content { margin:0 0 18px; color:#475467; font-size:.86rem; line-height:1.7; white-space:pre-wrap; max-height:42vh; overflow-y:auto; }
        #maintenance-overlay .maintenance-content p { margin:0 0 .7em; }
        #maintenance-overlay .maintenance-content p:last-child { margin-bottom:0; }
        .maintenance-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:15px; border-top:1px solid rgba(15,23,42,.08); }
        .maintenance-footer-note { color:#98a2b3; font-size:.7rem; line-height:1.4; }
        #maintenance-overlay #maintenance-close-btn { flex:0 0 auto; min-width:96px; padding:10px 15px; border:0; border-radius:11px; background:#111827; color:#fff; font:inherit; font-size:.8rem; font-weight:750; cursor:pointer; }
        #maintenance-overlay #maintenance-close-btn:active { transform:scale(.98); background:#344054; }
        [data-theme="dark"] #maintenance-overlay .maintenance-card { border-color:rgba(255,255,255,.1); background:rgba(30,30,34,.96); box-shadow:0 24px 70px rgba(0,0,0,.42); }
        [data-theme="dark"] .maintenance-brand { border-color:rgba(255,255,255,.1); }
        [data-theme="dark"] .maintenance-brand-name, [data-theme="dark"] #maintenance-overlay #maintenance-title { color:#f2f2f7; }
        [data-theme="dark"] #maintenance-overlay .maintenance-footer { border-color:rgba(255,255,255,.1); }
        [data-theme="dark"] #maintenance-overlay #maintenance-subtitle { color:#a1a1aa; }
        [data-theme="dark"] #maintenance-overlay .maintenance-content { color:#d4d4d8; }

        .notice-countdown-tag { display: inline-block; padding: 3px 8px; border-radius: 11px; font-size: 0.72rem; font-weight: 650; margin: 1px 0 3px 0; background: rgba(142, 68, 173, 0.1); color: #8e44ad; transition: background 0.3s, color 0.3s; }
        .notice-countdown-tag.soon { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
        .notice-countdown-tag.past { background: rgba(0, 0, 0, 0.06); color: #86868b; }

        .notice-collapsed-tag { display: inline-flex; align-items: center; background: var(--primary-light); color: var(--primary); font-size: 0.76rem; font-weight: 700; padding: 3px 10px; border-radius: 12px; cursor: pointer; transition: background 0.2s; }
        .notice-collapsed-tag:active { background: rgba(0,113,227,0.2); }
        .urgent-card .notice-collapsed-tag { background: rgba(255,59,48,0.1); color: var(--danger); }
        .urgent-card .notice-collapsed-tag:active { background: rgba(255,59,48,0.18); }

        /* 通知点赞和评论样式 */
        .notice-actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.05); }
        .notice-action-btn { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--text-sub); cursor: pointer; padding: 4px 8px; border-radius: 12px; transition: all 0.2s; background: none; border: none; }
        .notice-action-btn:active { transform: scale(0.95); }
        .notice-action-btn.liked { color: #ff9500; }
        .notice-action-btn.liked svg { fill: #ff9500; }
        .notice-action-btn svg { width: 16px; height: 16px; }
        .notice-action-count { font-weight: 600; }

        /* 评论区样式 */
        .notice-comments-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.05); display: none; }
        .notice-comments-section.show { display: block; }
        .comment-input-wrap { display: flex; gap: 8px; margin-bottom: 12px; }
        .comment-input { flex: 1; padding: 8px 12px; border-radius: 16px; border: 1px solid rgba(0,0,0,0.08); font-size: 0.85rem; background: rgba(255,255,255,0.6); outline: none; }
        .comment-input:focus { border-color: var(--primary); }
        .comment-send-btn { padding: 8px 16px; border-radius: 16px; background: var(--primary); color: white; border: none; font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
        .comment-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        .comment-list { max-height: 300px; overflow-y: auto; }
        .comment-item { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.03); }
        .comment-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; flex-shrink: 0; color: #fff; }
        .comment-body { flex: 1; min-width: 0; }
        .comment-header { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
        .comment-user { font-size: 0.78rem; font-weight: 600; color: var(--text-main); }
        .comment-time { font-size: 0.7rem; color: var(--text-sub); }
        .comment-text { font-size: 0.84rem; line-height: 1.45; color: #3a3a3c; word-break: break-word; }
        .comment-delete { font-size: 0.7rem; color: var(--danger); cursor: pointer; margin-left: auto; }
        .comment-empty { text-align: center; color: var(--text-sub); font-size: 0.82rem; padding: 12px 0; }
        .comment-more { text-align: center; color: var(--primary); font-size: 0.8rem; cursor: pointer; padding: 8px 0; }

        .notice-img-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--primary-light); color: var(--primary); font-weight: 600; font-size: 0.85rem; padding: 4px 12px; border-radius: 12px; cursor: pointer; transition: background 0.2s; margin: 4px 2px; }
        .notice-img-tag svg { width: 1.1em; height: 1.1em; }
        .notice-img-tag:active { background: rgba(0,113,227,0.2); }
        .notice-oimg-wrap { display: block; margin: 10px 0; max-width: 100%; }
        .notice-oimg { display: block; width: min(100%, 520px); max-height: 420px; object-fit: contain; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.10); cursor: pointer; background: rgba(0,0,0,0.04); }
        .notice-bold-card { display: block; margin: 10px 0; padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,0.05); color: var(--text-main); font-weight: 700; line-height: 1.55; white-space: pre-wrap; }
        .notice-heading { display:block; margin:14px 0 8px; font-size:1.2rem; line-height:1.35; font-weight:800; color:var(--text-main); }
        .notice-divider { height:1px; background:rgba(0,0,0,0.10); margin:18px 0; }
        .notice-numbered-list { display:grid; gap:7px; margin:10px 0; }
        .notice-numbered-list-title { font-weight:750; margin-bottom:2px; }
        .notice-numbered-list-item { display:flex; align-items:flex-start; gap:8px; }
        .notice-numbered-list-num { flex:0 0 18px; width:18px; height:18px; line-height:18px; text-align:center; border-radius:50%; background:rgba(0,0,0,0.07); color:var(--text-sub); font-size:0.68rem; font-weight:700; }
        .notice-inline-icon { display:inline-block; width:1.05em; height:1.05em; vertical-align:-0.16em; line-height:1; color:currentColor; }
        .notice-inline-icon svg { display:block; width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
        .person-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(118,118,128,0.08); border-radius: 20px; padding: 4px 12px 4px 4px; margin: 3px 4px 3px 0; vertical-align: middle; }
        .person-avatar { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
        .person-name { font-size: 13px; font-weight: 600; color: var(--text-main); }
        .file-attachment-card { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(0,113,227,0.08), rgba(52,199,89,0.06)); border: 1px solid rgba(0,113,227,0.12); color: var(--text-main); text-decoration: none; max-width: 100%; }
        .file-attachment-card:active { transform: scale(0.99); background: rgba(0,113,227,0.12); }
        .file-attachment-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; color: var(--primary); background: rgba(255,255,255,0.76); box-shadow: inset 0 0 0 1px rgba(0,113,227,0.08); }
        .file-attachment-icon svg { width: 18px; height: 18px; }
        .file-attachment-card.file-type-pdf { background: linear-gradient(135deg, rgba(255,59,48,0.10), rgba(255,149,0,0.05)); border-color: rgba(255,59,48,0.18); }
        .file-attachment-card.file-type-pdf .file-attachment-icon, .file-attachment-card.file-type-pdf .file-attachment-arrow { color: #ff3b30; }
        .file-attachment-card.file-type-word { background: linear-gradient(135deg, rgba(0,113,227,0.10), rgba(64,156,255,0.05)); border-color: rgba(0,113,227,0.18); }
        .file-attachment-card.file-type-word .file-attachment-icon, .file-attachment-card.file-type-word .file-attachment-arrow { color: #0071e3; }
        .file-attachment-card.file-type-excel { background: linear-gradient(135deg, rgba(52,199,89,0.12), rgba(48,209,88,0.05)); border-color: rgba(52,199,89,0.20); }
        .file-attachment-card.file-type-excel .file-attachment-icon, .file-attachment-card.file-type-excel .file-attachment-arrow { color: #248a3d; }
        .file-attachment-card.file-type-ppt { background: linear-gradient(135deg, rgba(255,149,0,0.13), rgba(255,204,0,0.05)); border-color: rgba(255,149,0,0.22); }
        .file-attachment-card.file-type-ppt .file-attachment-icon, .file-attachment-card.file-type-ppt .file-attachment-arrow { color: #c45f00; }
        .file-attachment-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
        .file-attachment-title { font-size: 0.86rem; font-weight: 800; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .file-attachment-meta { font-size: 0.72rem; font-weight: 650; color: var(--text-sub); }
        .file-attachment-arrow { color: var(--primary); font-size: 0.78rem; font-weight: 800; flex-shrink: 0; }

        .pinned-tag { display: inline-flex; align-items: center; gap: 3px; background: var(--primary-light); color: var(--primary); font-weight: 600; font-size: 0.75rem; padding: 2px 10px; border-radius: 10px; margin-right: 4px; white-space: nowrap; }
        .pinned-tag svg { width: 0.9em; height: 0.9em; fill: currentColor; }

        .icon { width: 1em; height: 1em; vertical-align: -0.15em; fill: currentColor; overflow: hidden; }
        .icon-xs { width: 0.85em; height: 0.85em; }

        .btn-primary-full { background: var(--primary); color: #fff; border: none; border-radius: 20px; padding: 14px 20px; font-weight: 600; font-size: 1.05rem; width: 100%; cursor: pointer; }

        .remember-row { display: flex; align-items: center; gap: 8px; margin: 15px 0; color: var(--text-sub); font-size: 0.9rem; justify-content: center; }
        .remember-row input[type="checkbox"] { width: auto; margin: 0; }

        /* 两步式登录/注册 */
        #auth-steps-wrapper { position: relative; }
        .auth-step { transition: opacity 0.3s ease, transform 0.3s ease; }
        .auth-step.slide-left { opacity: 0; transform: translateX(-40px); }
        .auth-step.slide-right { opacity: 0; transform: translateX(40px); }
        #auth-step-2 #auth-account-display { transition: background 0.2s; }
        #auth-step-2 #auth-account-display:active { opacity: 0.7; }

        .modal-content input[type="text"],
        .modal-content input[type="password"],
        .modal-content textarea { padding: 16px; font-size: 1rem; border-radius: 12px; border: 1px solid #d2d2d7; width: 100%; box-sizing: border-box; margin-bottom: 15px; outline: none; font-family: inherit; }
        .modal-content input[type="text"]:focus,
        .modal-content input[type="password"]:focus,
        .modal-content textarea:focus { border-color: var(--primary); }

        .img-preview-modal { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); display: none; justify-content: center; align-items: center; z-index: 10050; }
        .img-preview-modal img { max-width: 90%; max-height: 90%; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
        .img-preview-modal .img-preview-actions { position: absolute; top: 20px; right: 20px; z-index: 2; display: flex; align-items: center; gap: 8px; }
        .img-preview-modal .img-preview-action { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.2); display: inline-flex; align-items: center; justify-content: center; color: white; font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
        .img-preview-modal .img-preview-action:active { transform: scale(.94); }
        .img-preview-modal .img-preview-action:disabled { opacity: .5; cursor: wait; }
        .img-preview-modal .img-preview-action svg { width: 18px; height: 18px; }
        .img-preview-modal .img-preview-download-status { position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom, 0px) + 20px); width: min(360px, calc(100% - 32px)); padding: 13px 14px 11px; box-sizing: border-box; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; color: #fff; background: rgba(22,22,24,.86); box-shadow: 0 12px 32px rgba(0,0,0,.3); transform: translateX(-50%); display: none; text-align: left; }
        .img-preview-modal .img-preview-download-status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: .82rem; }
        .img-preview-modal .img-preview-download-status-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .img-preview-modal #img-preview-download-cancel { flex: 0 0 auto; padding: 3px 0; border: 0; color: rgba(255,255,255,.78); background: transparent; font: inherit; font-size: .78rem; cursor: pointer; }
        .img-preview-modal .img-preview-download-progress { position: relative; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.18); }
        .img-preview-modal .img-preview-download-progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: #fff; transition: width 120ms ease; }
        .img-preview-modal .img-preview-download-progress.is-indeterminate .img-preview-download-progress-fill { width: 42%; animation: imgPreviewDownloadIndeterminate 1.1s ease-in-out infinite; }
        .img-preview-modal .img-preview-download-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; margin-top: 7px; color: rgba(255,255,255,.7); font-size: .72rem; font-variant-numeric: tabular-nums; }
        .img-preview-modal .img-preview-download-meta span:nth-child(2) { text-align: center; }
        .img-preview-modal .img-preview-download-meta span:last-child { text-align: right; }
        @keyframes imgPreviewDownloadIndeterminate { 0% { transform: translateX(-120%); } 50%, 100% { transform: translateX(260%); } }

        #notice-detail-modal .modal-content { max-height: 80vh; max-height: 80dvh; display: flex; flex-direction: column; }
        #notice-detail-content { max-height: 50vh; max-height: 50dvh; overflow-y: auto; padding-right: 4px; margin-bottom: 15px; }
        #notice-detail-modal .notice-oimg-wrap {
            position: relative; width: min(100%, 520px); min-height: 160px; aspect-ratio: 4 / 3;
            margin: 10px 0; overflow: hidden; border-radius: 14px; background: #f2f2f7;
            box-shadow: 0 8px 24px rgba(0,0,0,0.10);
        }
        #notice-detail-modal .notice-oimg-wrap::before {
            content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
            background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.55) 50%, transparent 75%);
            transform: translateX(-100%);
        }
        #notice-detail-modal .notice-oimg-wrap.is-loading::before {
            opacity: 1; animation: noticeDetailImageShimmer 1.4s ease-in-out infinite;
        }
        #notice-detail-modal .notice-oimg-wrap .notice-oimg {
            position: relative; z-index: 1; width: 100%; height: 100%; max-height: none;
            object-fit: contain; opacity: 0; transition: opacity 180ms ease;
        }
        #notice-detail-modal .notice-oimg-wrap.is-loaded {
            aspect-ratio: auto; min-height: 0; background: transparent;
        }
        #notice-detail-modal .notice-oimg-wrap.is-loaded .notice-oimg {
            width: 100%; height: auto; object-fit: initial; opacity: 1;
        }
        #notice-detail-modal .notice-oimg-wrap.is-error::after {
            content: '图片加载失败'; position: absolute; inset: 0; z-index: 2; display: flex;
            align-items: center; justify-content: center; color: #8e8e93; font-size: 12px;
        }
        #notice-detail-modal .notice-image-retry {
            position: absolute; left: 50%; bottom: 18px; z-index: 3; transform: translateX(-50%);
            min-width: 76px; height: 28px; padding: 0 12px; border: 1px solid rgba(0,0,0,0.12);
            border-radius: 6px; background: rgba(255,255,255,0.88); color: #007aff;
            font: inherit; font-size: 12px; cursor: pointer;
        }
        #notice-detail-modal .notice-image-retry:hover { background: #fff; }
        @keyframes noticeDetailImageShimmer { to { transform: translateX(100%); } }
        @media (prefers-reduced-motion: reduce) {
            #notice-detail-modal .notice-oimg-wrap.is-loading::before { animation: none; opacity: 0; }
            #notice-detail-modal .notice-oimg-wrap .notice-oimg { transition: none; }
        }
        .notice-popup-actions { display: none; gap: 10px; margin-top: 15px; }
        .notice-popup-actions .btn-primary-full { margin-top: 0; flex: 1; }
        .notice-popup-actions .modal-close-btn { margin-top: 0; flex: 1; }

        /* ========== 更新公告 · macOS Scroll View ========== */
        .bulletin-overlay { background: rgba(0,0,0,0.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
        .bulletin-card {
            width: min(520px, calc(100vw - 40px)); height: min(640px, calc(100vh - 40px)); height: min(640px, calc(100dvh - 40px));
            padding: 0; overflow: hidden; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px;
            background: #fff; box-shadow: 0 15px 40px rgba(0,0,0,0.12); color: #1d1d1f;
            display: flex; flex-direction: column; text-align: left;
        }
        .bulletin-titlebar { position: relative; display: flex; align-items: center; justify-content: center; height: 38px; flex: 0 0 38px; background: #f6f6f6; border-bottom: 1px solid #e1e1e1; user-select: none; }
        .bulletin-lights { position: absolute; left: 14px; display: flex; gap: 8px; }
        .bulletin-light { width: 12px; height: 12px; border-radius: 50%; border: 0.5px solid rgba(0,0,0,0.12); }
        .bulletin-light.close { background: #ff5f56; border-color: #e0443e; cursor: pointer; }
        .bulletin-light.minimize { background: #ffbd2e; border-color: #dfa224; }
        .bulletin-light.maximize { background: #27c93f; border-color: #1aab29; }
        .bulletin-window-title { max-width: calc(100% - 112px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: #4a4a4e; }
        .bulletin-window-body { flex: 1; min-height: 0; padding: 20px; overflow-y: auto; background: #fff; }
        .bulletin-window-body::-webkit-scrollbar { width: 10px; }
        .bulletin-window-body::-webkit-scrollbar-track { background: transparent; }
        .bulletin-window-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border: 2px solid transparent; border-radius: 5px; background-clip: padding-box; }
        .bulletin-window-body::-webkit-scrollbar-thumb:hover { background-color: rgba(0,0,0,0.35); }
        .bulletin-version { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px; background: rgba(0,113,227,0.1); color: var(--primary); font-size: 0.72rem; font-weight: 700; }
        .bulletin-title { font-size: 1.15rem; font-weight: 750; color: #1c1c1e; margin: 0 0 10px; line-height: 1.35; }
        .bulletin-body { max-height: none; margin: 0; color: #636366; font-size: 0.86rem; line-height: 1.65; text-align: left; white-space: pre-wrap; overflow: visible; }
        .bulletin-footer { flex: 0 0 auto; margin: 0; padding: 0 20px 20px; border-top: 0; background: #fff; }
        .bulletin-btn { width: 100%; padding: 11px 0; border: 0; border-radius: 10px; background: #e5e5ea; color: #1d1d1f; font-size: 0.95rem; font-weight: 600; font-family: inherit; cursor: pointer; }
        .bulletin-btn:active { opacity: 0.8; }
        @media (max-width: 480px) {
            .bulletin-card { width: calc(100vw - 24px); height: min(640px, calc(100vh - 24px)); height: min(640px, calc(100dvh - 24px)); border-radius: 10px; }
            .bulletin-window-body { padding: 16px; }
            .bulletin-footer { padding: 0 16px 16px; }
        }

        .notice-link { color: var(--primary); text-decoration: underline; word-break: break-all; }

        #toast-container { position: fixed; top: 80px; right: 20px; z-index: 10050; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }

        .qq-copy-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; padding: 0 12px; border: 1px solid rgba(0,113,227,.16); border-radius: 12px; background: rgba(0,113,227,.09); color: var(--primary); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
        .qq-copy-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
        .qq-copy-btn:active { transform: scale(.96); background: rgba(0,113,227,.16); }
        #auth-modal .qq-handoff-panel { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 0; padding-top: 0; border-top: 0; }
        #auth-modal .qq-handoff-icon { display: block; width: 56px; height: 56px; margin: 0 auto; border-radius: 14px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
        #auth-modal .qq-handoff-desc { margin: 0; color: var(--text-sub); font-size: 13px; line-height: 1.5; text-align: center; }
        #auth-modal .qq-link-row { display: flex; align-items: center; gap: 8px; width: 100%; height: 52px; box-sizing: border-box; overflow: hidden; padding: 4px 4px 4px 12px; border: 1px solid var(--primary); border-radius: 12px; background: rgba(255,255,255,.72); }
        #auth-modal .qq-handoff-url-input { height: 42px; min-width: 0; flex: 1; margin: 0 !important; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text-main); font-size: 13px !important; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        #auth-modal .qq-link-row .qq-copy-btn { height: 42px; min-height: 42px; margin: 0; padding: 0 12px; border: 0; border-radius: 8px; background: rgba(0,113,227,.1); }
        #auth-modal .qq-handoff-code-input { height: 52px; margin: 0 !important; border-color: #e5e5ea; border-radius: 12px; text-align: center; }
        #auth-modal .qq-handoff-exchange { height: 44px; margin: -6px 0 0 !important; border-radius: 12px; font-size: 15px; }
        #auth-modal .qq-handoff-status { margin: -8px 0 0 !important; }
        #auth-modal .qq-handoff-close { display: none; height: 44px; margin: -6px 0 0 !important; padding: 0; border-radius: 12px; background: rgba(0,0,0,.06); color: var(--text-main); }
        #auth-modal.auth-handoff-active .qq-auth-default-close { display: none; }
        #auth-modal.auth-handoff-active .qq-handoff-close { display: block; }
        #auth-modal .qq-handoff-status.visible { display: block !important; }
        [data-theme="dark"] #auth-modal .qq-link-row { background: rgba(255,255,255,.08); }
        [data-theme="dark"] #auth-modal .qq-handoff-code-input { border-color: rgba(255,255,255,.16); }
        [data-theme="dark"] #auth-modal .qq-handoff-close { background: rgba(255,255,255,.08); color: #f5f5f7; }

        /* ========== 底部导航栏 ========== */

        /* ========== 课程表 · iOS 原生日历风 ========== */
        .schedule-table {
            width: 100%; table-layout: fixed;
            border-collapse: separate; border-spacing: 2px 1px;
        }
        .mac-dots-bar { display: flex; gap: 6px; padding: 0 0 6px 8px; }
        .schedule-grid-wrapper { position: relative; background: rgba(255,255,255,0.72); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 16px; overflow: hidden; border: 0.5px solid rgba(0,0,0,0.06); padding-top: 30px; }
        /* ★ 课表骨架屏样式 */
        #schedule-skeleton { position: absolute; inset: 30px 8px 8px 8px; z-index: 5; border-radius: 12px; overflow: hidden; }
        #schedule-skeleton .sk-block { background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%); background-size: 200% 100%; animation: skeletonShimmer 1.5s ease-in-out infinite; }
        #schedule-skeleton .sk-grid { display: flex; gap: 4px; margin-top: 6px; }
        #schedule-skeleton .sk-row { flex: 1; height: 180px; border-radius: 8px; }
        [data-theme="dark"] #schedule-skeleton .sk-block { background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%); background-size: 200% 100%; }
        @keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
        .schedule-grid-wrapper .mac-dots-bar { position: absolute; top: 6px; left: 8px; padding: 0; z-index: 10; }
        #schedule-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; scrollbar-width: none; width: 100%; }
        #schedule-slider::-webkit-scrollbar { display: none; }
        .schedule-panel { flex: 0 0 100%; scroll-snap-align: start; box-sizing: border-box; min-height: 200px; }
        .schedule-grid { width: 100%; }
        .schedule-table thead th {
            font-size: 0.56rem; font-weight: 600;
            padding: 8px 0 6px; text-align: center;
            border-radius: 0; color: var(--text-sub);
            background: rgba(246,246,248,0.92);
            position: sticky; top: 0; z-index: 2;
            min-width: 0; letter-spacing: -0.01em;
        }
        .schedule-table thead th.sch-time-th {
            font-size: 0.44rem; font-weight: 500;
            background: transparent; border-radius: 0;
            color: var(--text-sub); opacity: 0.5;
        }
        .schedule-table thead th.sch-today {
            background: rgba(0,113,227,0.06); color: var(--primary);
            font-weight: 700;
        }
        .schedule-week-badge { display: inline-block; font-size: 0.65rem; font-weight: 700; padding: 3px 10px; border-radius: 10px; margin-left: 8px; vertical-align: middle; }
        .schedule-week-badge.current { background: var(--primary-light); color: var(--primary); }
        .schedule-week-badge.other { background: rgba(255,59,48,0.12); color: var(--danger); }
        .schedule-table tbody td {
            padding: 0; text-align: center;
            vertical-align: middle;
            min-width: 0; overflow: hidden;
            border-radius: 6px;
        }
        .sch-time-cell {
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            height: 44px; padding: 1px 0;
            font-size: 0.40rem; color: var(--text-main);
            line-height: 1.2; opacity: 0.75;
        }
        .sch-time-cell .st-period {
            font-weight: 600; font-size: 0.65rem;
            color: var(--text-main); opacity: 0.92;
        }
        .sch-time-cell .st-start,
        .sch-time-cell .st-end {
            font-size: 0.48rem; opacity: 0.70;
        }
        .sch-cell {
            display: flex; align-items: center; justify-content: center;
            height: 44px; padding: 1px 1px;
            font-size: 0.52rem; font-weight: 400;
            color: rgba(0,0,0,0.12); border-radius: 6px;
            cursor: default; overflow: hidden; min-width: 0;
        }
        .sch-cell.sch-course {
            position: relative; padding: 2px;
            color: #fff; font-weight: 600; cursor: pointer;
            border-radius: 8px; overflow: hidden;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            -webkit-tap-highlight-color: transparent;
            transition: opacity 0.12s;
        }
        .sch-cell.sch-course:active { opacity: 0.75; }
        .sch-cell .sc-name {
            font-weight: 600; line-height: 1.15;
            font-size: 0.56rem; word-break: break-all;
        }
        .sch-cell .sc-info {
            background: rgba(255,255,255,0.92);
            font-size: 0.42rem; font-weight: 500;
            padding: 1px 6px; border-radius: 10px;
            position: absolute; bottom: 2px; left: 2px; right: 2px;
            white-space: normal; word-break: break-all;
            line-height: 1.15; max-width: calc(100% - 4px);
            opacity: 0.9;
        }
        .sch-sep td {
            height: 14px; padding: 0; border: none;
            background: transparent;
        }
        .sch-sep td:first-child { border: none; }
        .sch-sep .sep-label {
            font-size: 0.42rem; font-weight: 600;
            color: var(--text-sub); opacity: 0.4;
            letter-spacing: 0.1em;
            position: relative;
        }
        .sch-sep .sep-label::before,
        .sch-sep .sep-label::after {
            content: ''; position: absolute; top: 50%;
            width: 40px; height: 0;
            border-top: 1px dashed rgba(0,0,0,0.08);
        }
        .sch-sep .sep-label::before { right: 105%; }
        .sch-sep .sep-label::after { left: 105%; }
        @media (min-width: 420px) {
            .schedule-table thead th { font-size: 0.62rem; padding: 10px 0 8px; }
            .schedule-table thead th.sch-time-th { font-size: 0.46rem; }
            .sch-cell { height: 48px; font-size: 0.56rem; }
            .sch-time-cell {
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            height: 44px; padding: 1px 0;
            font-size: 0.40rem; color: var(--text-main);
            line-height: 1.2; opacity: 0.75;
        }
            .sch-cell .sc-name { font-size: 0.62rem; }
            .sch-cell .sc-info { font-size: 0.5rem; }
            .sch-time-cell .st-period {
            font-weight: 600; font-size: 0.65rem;
            color: var(--text-main); opacity: 0.92;
        }
        }

        /* ========== 新版全周课表 ========== */
        .app-container.schedule-app,
        .schedule-app {
            width: min(100%, 760px);
            margin: 0 auto;
            padding: 12px 12px 120px;
            color: var(--text-main);
        }
        .schedule-header {
            position: sticky;
            top: 0;
            z-index: 12;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            padding: 8px 0 14px;
            background: var(--bg, #f5f5f7);
        }
        .schedule-heading { min-width: 0; }
        .schedule-date-title {
            min-height: 28px;
            color: var(--text-main);
            font-size: 1.18rem;
            font-weight: 800;
            line-height: 1.2;
            letter-spacing: 0;
        }
        .schedule-week-subtitle {
            display: inline-flex;
            align-items: center;
            min-height: 22px;
            margin-top: 4px;
            padding: 0;
            border: 0;
            background: transparent;
            color: var(--text-sub);
            font: inherit;
            font-size: 0.76rem;
            font-weight: 650;
            cursor: pointer;
        }
        .schedule-actions { display: flex; gap: 8px; flex: 0 0 auto; }
        .schedule-icon-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            padding: 0;
            border: 1px solid rgba(0,0,0,.07);
            border-radius: 12px;
            background: rgba(255,255,255,.82);
            color: var(--text-main);
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0,0,0,.04);
        }
        .schedule-icon-btn:hover { border-color: rgba(0,113,227,.22); color: var(--primary); }
        .schedule-icon-btn:active { transform: scale(.95); }
        .schedule-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
        .schedule-calendar-strip {
            position: sticky;
            top: 76px;
            z-index: 11;
            display: grid;
            grid-template-columns: 44px repeat(7, minmax(0, 1fr));
            align-items: stretch;
            gap: 4px;
            padding: 8px 0 10px;
            background: var(--bg, #f5f5f7);
        }
        .schedule-month-label,
        .schedule-day {
            min-width: 0;
            min-height: 48px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
        }
        .schedule-month-label { color: var(--text-sub); font-size: .72rem; font-weight: 750; }
        .schedule-day { color: var(--text-sub); background: rgba(255,255,255,.56); }
        .schedule-day.active { background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(0,113,227,.2); }
        .schedule-day-name { font-size: .66rem; font-weight: 650; line-height: 1.1; }
        .schedule-day-number { margin-top: 4px; font-size: .9rem; font-weight: 800; line-height: 1; }
        .schedule-viewport { touch-action: pan-y; min-height: 400px; }
        .schedule-week-view { width: 100%; overflow: hidden; border: 1px solid rgba(0,0,0,.06); border-radius: 14px; background: rgba(255,255,255,.72); box-shadow: 0 5px 18px rgba(0,0,0,.045); }
        .schedule-grid {
            display: grid;
            grid-template-columns: 44px repeat(7, minmax(0, 1fr));
            grid-template-rows: repeat(var(--schedule-period-count), 64px);
            gap: 1px;
            width: 100%;
            background: rgba(0,0,0,.07);
        }
        .schedule-time-slot,
        .schedule-grid-cell,
        .schedule-course-card {
            min-width: 0;
            min-height: 0;
            box-sizing: border-box;
        }
        .schedule-time-slot {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            padding: 2px;
            background: rgba(248,248,250,.9);
            color: var(--text-sub);
            font-size: .47rem;
            line-height: 1.1;
        }
        .schedule-period-number { color: var(--text-main); font-size: .72rem; font-weight: 800; }
        .schedule-grid-cell { background: rgba(255,255,255,.62); }
        .schedule-course-card {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
            gap: 4px;
            overflow: hidden;
            margin: 3px;
            padding: 9px 7px 7px;
            border: 0;
            border-radius: 9px;
            background: var(--course-bg, #e3f4e5);
            color: var(--course-text, #1e5a2e);
            font: inherit;
            text-align: left;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,.055);
            -webkit-tap-highlight-color: transparent;
        }
        .schedule-course-card:active { transform: scale(.985); opacity: .82; }
        .schedule-card-accent { position: absolute; inset: 0 0 auto; height: 4px; background: var(--course-accent, #34c759); }
        .schedule-course-name { width: 100%; overflow: hidden; font-size: .68rem; font-weight: 800; line-height: 1.22; word-break: break-all; }
        .schedule-course-location { width: 100%; overflow: hidden; color: currentColor; font-size: .56rem; line-height: 1.2; opacity: .72; word-break: break-all; }
        .schedule-empty { padding: 24px 8px; color: var(--text-sub); font-size: .82rem; text-align: center; }
        [data-theme="dark"] .schedule-header,
        [data-theme="dark"] .schedule-calendar-strip { background: var(--bg, #1c1c1e); }
        [data-theme="dark"] .schedule-icon-btn { border-color: rgba(255,255,255,.1); background: rgba(44,44,46,.88); }
        [data-theme="dark"] .schedule-day { background: rgba(44,44,46,.82); }
        [data-theme="dark"] .schedule-week-view { border-color: rgba(255,255,255,.09); background: rgba(44,44,46,.8); }
        [data-theme="dark"] .schedule-time-slot { background: rgba(38,38,40,.94); }
        [data-theme="dark"] .schedule-grid-cell { background: rgba(28,28,30,.86); }
        @media (max-width: 480px) {
            .schedule-app { padding: 8px 8px 112px; }
            .schedule-header { padding-top: 6px; }
            .schedule-date-title { font-size: 1.08rem; }
            .schedule-icon-btn { width: 35px; height: 35px; border-radius: 11px; }
            .schedule-calendar-strip { top: 68px; grid-template-columns: 38px repeat(7, minmax(0,1fr)); gap: 3px; }
            .schedule-month-label, .schedule-day { min-height: 44px; border-radius: 10px; }
            .schedule-grid { grid-template-columns: 38px repeat(7, minmax(0,1fr)); grid-template-rows: repeat(var(--schedule-period-count), 62px); }
            .schedule-course-card { margin: 2px; padding: 8px 5px 5px; border-radius: 8px; }
            .schedule-course-name { font-size: .62rem; }
            .schedule-course-location { font-size: .5rem; }
        }


        /* ========== 课程表：严格复用 Gemini 示例布局 ========== */
        .app-container.schedule-app {
            width: 100%;
            max-width: 430px;
            height: 100vh;
            height: 100dvh;
            min-height: 0;
            margin: 0 auto;
            padding: 0;
            background-color: transparent;
            color: #1c1c1e;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
        }
        .schedule-app .header {
            padding: 14px 20px 6px 20px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            background: #fff;
            flex-shrink: 0;
        }
        .schedule-app .date-title { font-size: 23px; font-weight: 800; letter-spacing: -0.5px; color: #111; line-height: 1.2; }
        .schedule-app .week-subtitle {
            font-size: 13px;
            color: #5856d6;
            font-weight: 700;
            margin-top: 4px;
            padding: 0;
            border: 0;
            background: none;
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
        }
        .schedule-app .week-subtitle .day-text { color: #8e8e93; font-weight: 600; margin-left: 2px; }
        .schedule-app .week-subtitle:active { opacity: .7; }
        .schedule-app .week-subtitle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
        .schedule-app .header-actions { display: flex; gap: 16px; align-items: center; padding-top: 2px; }
        .schedule-app .icon-btn { background: none; border: none; padding: 0; width: 20px; height: 20px; cursor: pointer; color: #1c1c1e; display: flex; align-items: center; justify-content: center; }
        .schedule-app .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
        .schedule-app .calendar-strip {
            display: grid;
            grid-template-columns: 44px repeat(7, 1fr);
            text-align: center;
            padding: 6px 0 8px 0;
            background: #fff;
            border-bottom: 1px solid #f2f2f7;
            flex-shrink: 0;
            z-index: 10;
        }
        .schedule-app .month-col { font-size: 11px; color: #8e8e93; font-weight: 600; display: flex; align-items: center; justify-content: center; }
        .schedule-app .day-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
        .schedule-app .day-name { font-size: 11px; color: #2c2c2e; font-weight: 600; }
        .schedule-app .day-num { font-size: 14px; font-weight: 700; width: 27px; height: 27px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #1c1c1e; }
        .schedule-app .day-col.active .day-name { color: #5856d6; font-weight: 700; }
        .schedule-app .day-col.active .day-num { background-color: #5856d6; color: #fff; }
        .schedule-app .swiper { width: 100%; flex: 1; height: 100%; min-height: 0; }
        .schedule-app .swiper-slide { display: flex; flex-direction: column; height: 100%; padding-bottom: 112px; overflow-y: auto; overflow-x: hidden; }
        .schedule-app .schedule-grid {
            display: grid;
            grid-template-columns: 44px repeat(7, 1fr);
            grid-template-rows: repeat(var(--schedule-period-count, 11), 64px);
            padding-top: 4px;
            padding-bottom: 40px;
            width: 100%;
            background: #fff;
            gap: 0;
        }
        .schedule-app .time-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 9.5px; color: #8e8e93; line-height: 1.15; }
        .schedule-app .period-num { font-size: 14px; font-weight: 700; color: #1c1c1e; margin-bottom: 2px; }
        .schedule-app .period-num.current-period { border: 1.5px dashed #5856d6; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #5856d6; }
        .schedule-app .course-card {
            margin: 2px;
            border-radius: 12px;
            padding: 12px 1px 4px 1px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            word-break: keep-all;
            white-space: normal;
            border: 0;
            font: inherit;
            min-width: 0;
            min-height: 0;
        }
        .schedule-app .course-card:active { transform: scale(.96); }
        .schedule-app .card-accent { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 16px; height: 3px; border-radius: 2px; flex-shrink: 0; }
        .schedule-app .course-title { font-size: 11px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
        .schedule-app .course-teacher { width: 100%; min-width: 0; margin-top: 3px; color: currentColor; font-size: 9px; line-height: 1.15; font-weight: 600; overflow-wrap: anywhere; word-break: break-all; }
        .schedule-app .course-location { font-size: 10px; opacity: .8; margin-top: 3px; line-height: 1.15; font-weight: 500; }
        .schedule-app .course-title,
        .schedule-app .course-location {
            width: 100%;
            min-width: 0;
            max-width: 100%;
            overflow-wrap: anywhere;
            word-break: break-all;
        }
        .schedule-app .off-week-tag { font-size: 9px; opacity: .6; margin-bottom: 2px; font-weight: 600; }
        .schedule-app .card-green { background-color: #e3f4e5; color: #1e5a2e; }
        .schedule-app .card-green .card-accent { background-color: #34c759; }
        .schedule-app .card-purple { background-color: #ede7f6; color: #4a148c; }
        .schedule-app .card-purple .card-accent { background-color: #af52de; }
        .schedule-app .card-red { background-color: #ffebee; color: #b71c1c; }
        .schedule-app .card-red .card-accent { background-color: #ff3b30; }
        .schedule-app .card-orange { background-color: #fff3e0; color: #e65100; }
        .schedule-app .card-orange .card-accent { background-color: #ff9500; }
        .schedule-app .card-yellow { background-color: #fef3d6; color: #6d4c00; }
        .schedule-app .card-yellow .card-accent { background-color: #ffcc00; }
        .schedule-app .card-teal { background-color: #e0f2f1; color: #004d40; }
        .schedule-app .card-teal .card-accent { background-color: #30b0c7; }
        .schedule-app .card-blue { background-color: #e1f5fe; color: #01579b; }
        .schedule-app .card-blue .card-accent { background-color: #007aff; }
        .schedule-app .card-indigo { background-color: #e8eaf6; color: #1a237e; }
        .schedule-app .card-indigo .card-accent { background-color: #5856d6; }
        .schedule-app .card-off-week { opacity: .45; }
        .schedule-app .schedule-empty { position: absolute; left: 44px; right: 0; top: 180px; padding: 0; color: #8e8e93; font-size: 12px; text-align: center; pointer-events: none; }
        .schedule-app .schedule-modal-overlay {
            position: fixed;
            inset: 0;
            background: transparent;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all .25s ease;
            display: flex;
            justify-content: center;
        }
        .schedule-app .schedule-modal-overlay.active { opacity: 1; visibility: visible; }
        .schedule-app .bottom-sheet {
            position: absolute;
            bottom: 0;
            width: 100%;
            max-width: 430px;
            max-height: 85vh;
            max-height: 85dvh;
            background: #f2f2f7;
            border-top-left-radius: 28px;
            border-top-right-radius: 28px;
            display: flex;
            flex-direction: column;
            transform: translateY(100%);
            transition: transform .3s cubic-bezier(.33, 1, .68, 1);
            box-shadow: 0 -10px 40px rgba(0, 0, 0, .15);
            overflow: hidden;
        }
        .schedule-modal-overlay.active .bottom-sheet { transform: translateY(0); }
        .schedule-app .schedule-main-back-current-week {
            position: fixed;
            left: 50%;
            bottom: calc(150px + env(safe-area-inset-bottom));
            z-index: 12;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            min-height: 38px;
            padding: 0 14px;
            border: 1px solid rgba(0, 122, 255, .16);
            border-radius: 20px;
            background: rgba(255, 255, 255, .96);
            color: #007aff;
            box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
            transform: translateX(-50%);
            font: inherit;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
        }
        .schedule-app .schedule-main-back-current-week[hidden] { display: none !important; }
        .schedule-app .schedule-main-back-current-week:active { transform: translateX(-50%) scale(.96); }
        .schedule-app .schedule-settings-overlay {
            position: fixed;
            inset: 0;
            z-index: 1200;
            display: flex;
            justify-content: center;
            background: #f2f2f7;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity .28s ease, visibility .28s ease;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }
        .schedule-app .schedule-settings-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
        .schedule-app .schedule-settings-sheet { width: 100%; max-width: 430px; height: 100%; margin: 0 auto; background: #f2f2f7; color: #1c1c1e; overflow: hidden; opacity: 0; transform: translateX(22px) scale(.985); transition: transform .34s cubic-bezier(.22, .8, .24, 1), opacity .24s ease; will-change: transform, opacity; }
        .schedule-app .schedule-settings-overlay.active .schedule-settings-sheet { opacity: 1; transform: translateX(0) scale(1); }
        .schedule-app .schedule-settings-header { height: 68px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 10px 16px; background: #f2f2f7; }
        .schedule-app .schedule-settings-header h2 { margin: 0; text-align: center; font-size: 20px; font-weight: 800; }
        .schedule-app .schedule-settings-close { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0, 0, 0, .1); border-radius: 50%; background: rgba(255, 255, 255, .6); color: #1c1c1e; cursor: pointer; }
        .schedule-app .schedule-settings-close:active { transform: scale(.94); }
        .schedule-app .schedule-settings-body { height: calc(100% - 68px); overflow-y: auto; padding: 12px 0 calc(28px + env(safe-area-inset-bottom)); }
        .schedule-app .schedule-settings-preview { position: relative; width: calc(100% - 32px); min-height: 420px; margin: 0 16px; padding: 12px 10px 54px; border: 1px solid rgba(0, 0, 0, .08); border-radius: 22px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); overflow: hidden; }
        .schedule-app .schedule-settings-preview-calendar { display: grid; grid-template-columns: 34px repeat(7, minmax(0, 1fr)); grid-template-rows: 20px 28px; gap: 3px; align-items: center; }
        .schedule-app .schedule-settings-preview-month { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; display: flex; align-items: center; justify-content: flex-start; padding-left: 2px; color: #1c1c1e; font-size: 12px; font-weight: 800; line-height: 1.05; }
        .schedule-app .schedule-settings-preview-topline { grid-column: 2 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; align-items: center; color: #8e8e93; font-size: 9px; font-weight: 700; text-align: center; }
        .schedule-app .schedule-settings-preview-day-current { color: #007aff; }
        .schedule-app .schedule-settings-preview-dates { grid-column: 2 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; align-items: center; color: #1c1c1e; font-size: 11px; font-weight: 700; text-align: center; }
        .schedule-app .schedule-settings-preview-date-current { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 auto; border-radius: 50%; background: #007aff; color: #fff; }
        .schedule-app .schedule-settings-preview-grid { display: grid; grid-template-columns: 34px repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(5, 48px); gap: 3px; margin-top: 8px; }
        .schedule-app .schedule-settings-preview-time { grid-column: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; color: #1c1c1e; font-size: 12px; font-weight: 800; text-align: center; }
        .schedule-app .schedule-settings-preview-period { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 auto; }
        .schedule-app .schedule-settings-preview-current { border: 1.5px dashed #5856d6; border-radius: 50%; color: #5856d6; }
        .schedule-app .schedule-settings-preview-time small { color: #8e8e93; font-size: 8px; line-height: 1.15; font-weight: 500; }
        .schedule-app .schedule-settings-preview-card { position: relative; min-width: 0; min-height: 0; grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 9px; padding: 7px 1px 4px; overflow: hidden; text-align: center; font-size: 10px; line-height: 1.08; }
        .schedule-app .schedule-settings-preview-card .card-accent { position: absolute; top: 8px; left: 50%; width: 18px; height: 3px; margin: 0; transform: translateX(-50%); }
        .schedule-app .schedule-settings-preview-card strong { font-size: 10px; line-height: 1.08; }
        .schedule-app .schedule-settings-preview-card small { font-size: 8px; line-height: 1.08; opacity: .78; }
        .schedule-app .schedule-settings-preview-card em { font-size: 7px; font-style: normal; opacity: .66; }
        .schedule-app .schedule-settings-preview-back { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); min-height: 32px; padding: 0 12px; border: 1px solid rgba(0, 122, 255, .16); border-radius: 18px; background: #fff; color: #007aff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); font: inherit; font-size: 11px; font-weight: 700; white-space: nowrap; }
        .schedule-app .schedule-settings-preview-non-week { opacity: 0; filter: blur(10px); transform: scale(.88) translateY(6px); pointer-events: none; transition: opacity .45s cubic-bezier(.25, 1, .5, 1), filter .45s cubic-bezier(.25, 1, .5, 1), transform .45s cubic-bezier(.25, 1, .5, 1); will-change: opacity, filter, transform; }
        .schedule-app .schedule-settings-preview-show-off-week .schedule-settings-preview-non-week { opacity: .45; filter: blur(0); transform: scale(1) translateY(0); pointer-events: auto; }
        .schedule-app .schedule-settings-preview-note { margin: 10px 26px 16px; color: #8e8e93; font-size: 12px; line-height: 1.5; }
        .schedule-app .schedule-settings-group { margin: 0 16px; overflow: hidden; border-radius: 20px; background: #fff; }
        .schedule-app .schedule-settings-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 16px; border-bottom: 1px solid #f0f0f2; cursor: pointer; }
        .schedule-app .schedule-settings-row:last-child { border-bottom: 0; }
        .schedule-app .schedule-settings-row-icon { width: 22px; flex: 0 0 22px; color: #007aff; font-size: 18px; line-height: 1; text-align: center; }
        .schedule-app .schedule-settings-row-label { flex: 1; min-width: 0; color: #1c1c1e; font-size: 15px; font-weight: 600; }
        .schedule-app .schedule-settings-checkbox { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
        .schedule-app .schedule-settings-switch { position: relative; flex: 0 0 52px; width: 52px; height: 31px; border-radius: 16px; background: #d1d1d6; transition: background .18s ease; }
        .schedule-app .schedule-settings-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .22); transition: transform .18s ease; }
        .schedule-app .schedule-settings-checkbox:checked + .schedule-settings-switch { background: #0a84ff; }
        .schedule-app .schedule-settings-checkbox:checked + .schedule-settings-switch::after { transform: translateX(21px); }
        .schedule-app .schedule-settings-checkbox:focus-visible + .schedule-settings-switch { outline: 2px solid #007aff; outline-offset: 2px; }
        .schedule-app .schedule-first-use-guide { position: fixed; inset: 0; z-index: 1300; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility 0s linear .22s; }
        .schedule-app .schedule-first-use-guide[hidden] { display: none !important; }
        .schedule-app .schedule-first-use-guide.active { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
        .schedule-app .schedule-guide-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
        .schedule-app .schedule-guide-focus { position: fixed; border: 2px solid #fff; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .2), 0 0 0 5px rgba(88, 86, 214, .24); pointer-events: none; transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease; }
        .schedule-app .schedule-guide-bubble { position: fixed; left: 50%; top: 0; bottom: auto; width: calc(100% - 40px); max-width: 430px; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); color: #1c1c1e; transform: translateX(-50%) translateY(10px); transition: top .22s ease, transform .22s ease; }
        .schedule-app .schedule-first-use-guide.active .schedule-guide-bubble { transform: translateX(-50%) translateY(0); }
        .schedule-app .schedule-guide-bubble::before { content: ''; position: absolute; top: -8px; left: var(--schedule-guide-arrow-left, 50%); width: 16px; height: 16px; background: #fff; transform: translateX(-50%) rotate(45deg); }
        .schedule-app .schedule-guide-bubble.is-above::before { top: auto; bottom: -8px; }
        .schedule-app .schedule-guide-step { color: #8e8e93; font-size: 12px; line-height: 1.2; }
        .schedule-app .schedule-guide-bubble h3 { margin: 4px 0 5px; color: #1c1c1e; font-size: 17px; line-height: 1.25; font-weight: 800; }
        .schedule-app .schedule-guide-bubble p { margin: 0; color: #636366; font-size: 13px; line-height: 1.5; }
        .schedule-app .schedule-guide-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; }
        .schedule-app .schedule-guide-actions button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: transparent; color: #5856d6; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
        .schedule-app .schedule-guide-actions button:last-child { background: #5856d6; color: #fff; }
        .schedule-app .schedule-guide-actions button:focus-visible { outline: 2px solid #5856d6; outline-offset: 2px; }
        @media (prefers-reduced-motion: reduce) {
            .schedule-app .schedule-settings-overlay,
            .schedule-app .schedule-settings-sheet { transition: opacity .18s ease; }
            .schedule-app .schedule-settings-sheet,
            .schedule-app .schedule-settings-overlay.active .schedule-settings-sheet { transform: none; }
            .schedule-app .schedule-settings-preview-non-week { transition: opacity .18s ease; filter: none; transform: none; }
            .schedule-app .schedule-first-use-guide,
            .schedule-app .schedule-guide-focus,
            .schedule-app .schedule-guide-bubble { transition-duration: .12s; }
            .schedule-app .schedule-guide-bubble { transform: translateX(-50%); }
        }
        .schedule-app .sheet-handle { width: 38px; height: 4.5px; background: #c7c7cc; border-radius: 3px; margin: 8px auto 2px; flex-shrink: 0; }
        .schedule-app .sheet-header { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 12px; background: #f2f2f7; flex-shrink: 0; }
        .schedule-app .sheet-close-btn { width: 32px; height: 32px; border-radius: 50%; background: #e5e5ea; border: none; display: flex; align-items: center; justify-content: center; color: #1c1c1e; cursor: pointer; z-index: 2; }
        .schedule-app .sheet-tabs { position: absolute; left: 50%; transform: translateX(-50%); display: flex; background: #e3e3e8; border-radius: 20px; padding: 3px; gap: 2px; z-index: 1; }
        .schedule-app .tab-btn { width: 46px; height: 32px; border-radius: 17px; border: none; background: transparent; color: #636366; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
        .schedule-app .tab-btn.active { background: #fff; color: #1c1c1e; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
        .schedule-app .back-current-week-btn { background: #fff; border: 1.5px solid #d0e4ff; color: #007aff; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; z-index: 2; }
        .schedule-app .sheet-body { padding: 8px 16px calc(30px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: calc(85vh - 70px); max-height: calc(85dvh - 70px); }
        .schedule-app .sheet-body.hidden { display: none; }
        .schedule-app .week-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
        .schedule-app .week-card { height: 62px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: transform .1s; position: relative; }
        .schedule-app .week-card:active { transform: scale(.95); }
        .schedule-app .week-card.has-course { background: #96c5f7; color: #fff; }
        .schedule-app .week-card.selected { border: 2.5px solid #007aff; box-shadow: 0 0 0 1px #007aff; }
        .schedule-app .week-card.no-course { background: #edf2f7; color: #1c1c1e; }
        .schedule-app .week-card .w-title { font-size: 15px; font-weight: 700; line-height: 1.2; }
        .schedule-app .week-card .w-sub { font-size: 11px; margin-top: 3px; opacity: .9; }
        .schedule-app .week-card.no-course .w-sub { color: #8e8e93; font-weight: 500; }
        .schedule-app .search-box-wrapper { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
        .schedule-app .search-input-box { flex: 1; display: flex; align-items: center; background: #e3e3e8; border-radius: 12px; padding: 8px 12px; gap: 8px; }
        .schedule-app .search-input-box input { border: none; background: transparent; outline: none; flex: 1; font-size: 15px; color: #1c1c1e; min-width: 0; }
        .schedule-app .search-clear-btn { border: none; background: #c7c7cc; color: #fff; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
        .schedule-app .search-input-box.has-text .search-clear-btn { display: flex; }
        .schedule-app .keyboard-btn { width: 36px; height: 36px; border-radius: 50%; background: #e5e5ea; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
        .schedule-app .search-results-title { font-size: 13px; color: #8e8e93; font-weight: 600; margin-bottom: 12px; padding-left: 2px; }
        .schedule-app .search-results-list { min-height: 40px; }
        .schedule-app .result-item { background: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .03); position: relative; overflow: hidden; cursor: pointer; }
        .schedule-app .result-item::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; background: #007aff; border-radius: 0 2px 2px 0; }
        .schedule-app .result-left { padding-left: 6px; min-width: 0; }
        .schedule-app .result-name { font-size: 15px; font-weight: 700; color: #1c1c1e; margin-bottom: 4px; overflow-wrap: anywhere; }
        .schedule-app .result-time { font-size: 12px; color: #8e8e93; line-height: 1.4; }
        .schedule-app .result-right { text-align: right; font-size: 12px; color: #8e8e93; line-height: 1.4; flex-shrink: 0; max-width: 42%; overflow-wrap: anywhere; }
        .schedule-app .schedule-search-empty { text-align: center; color: #8e8e93; padding: 20px 0; font-size: 13px; }
        [data-theme="dark"] .schedule-app,
        [data-theme="dark"] .schedule-app .header,
        [data-theme="dark"] .schedule-app .calendar-strip,
        [data-theme="dark"] .schedule-app .schedule-grid { background: #fff; }

 .profile-actions { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.profile-user-card { padding: 13px 14px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.profile-user-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.profile-user-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* ★ 连续签到天数 */
.profile-checkin-streak { text-align: center; font-size: 0.78rem; font-weight: 700; color: #ff9500; margin: -4px 0 2px; }
.profile-checkin-streak.hidden { display: none; }
[data-theme="dark"] .profile-checkin-streak { color: #ff9f0a; }
.profile-avatar {
    width: 56px; height: 56px; margin: 0; flex: 0 0 56px;
    display: block; border-radius: 50%; object-fit: cover;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.86);
    box-shadow: 0 6px 16px rgba(0,0,0,0.07), inset 0 0 0 1px rgba(0,113,227,0.08);
}
.profile-user-main { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.profile-account-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-account-name { font-size: 1.02rem; font-weight: 800; color: var(--text-main); margin: 0 0 3px; }
.profile-account-label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-sub); margin: 0; }
.profile-qq-label { display: none; color: #0879bd; font-size: .8rem; font-weight: 750; white-space: nowrap; }
.qq-unbind-btn { background: #ff3b30; }
.profile-account-type { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 999px; background: rgba(0,113,227,0.1); color: var(--primary); font-size: 0.72rem; font-weight: 750; }
.profile-account-type.vip { background: linear-gradient(135deg, rgba(255,149,0,0.18), rgba(255,204,0,0.16)); color: #b56a00; }
.profile-vip-expire { color: var(--text-sub); font-size: 0.72rem; font-weight: 600; }
        .profile-vip-row { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.profile-detail-link {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 0.75rem; font-weight: 600; color: var(--primary);
    cursor: pointer; border: none; background: none; padding: 2px 0;
}
.profile-detail-link svg { width: 13px; height: 13px; transition: transform 0.2s; }
.profile-detail-link:active svg { transform: translateX(2px); }
.profile-leaf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.profile-leaf-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(52,199,89,0.13); color: #248a3d; font-size: 0.74rem; font-weight: 800; }
        .profile-checkin-btn { border: 0; border-radius: 999px; padding: 6px 11px; background: var(--primary); color: #fff; font-size: 0.74rem; font-weight: 800; cursor: pointer; position: relative; overflow: visible; display: inline-flex; align-items: center; gap: 3px; transition: padding 0.25s ease; }
        .profile-checkin-btn:disabled { background: rgba(142,142,147,0.22); color: var(--text-sub); cursor: default; }
        .profile-checkin-btn .checkin-text { display: inline-block; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease; }
        .profile-checkin-btn.rolling .checkin-text { transform: translateY(-120%); opacity: 0; }
        .profile-checkin-btn .checkin-star { display: inline-block; font-size: 1em; transition: transform 0.15s, color 0.2s; }
        .profile-checkin-btn .checkin-star.pop { animation: starPop 0.5s ease; }
        .profile-checkin-btn .checkin-star.filled { color: #fbbf24; }
        .profile-checkin-btn .checkin-streak-badge { display: none; font-size: 0.68rem; font-weight: 700; opacity: 0.92; letter-spacing: 0.02em; }
        .profile-checkin-btn.has-streak .checkin-streak-badge { display: inline-block; }
        .profile-checkin-btn.has-streak { padding-right: 8px; }
        @keyframes starPop { 0% { transform: scale(1) rotate(0deg); } 25% { transform: scale(1.4) rotate(-15deg); } 50% { transform: scale(0.9) rotate(10deg); } 75% { transform: scale(1.15) rotate(-5deg); } 100% { transform: scale(1) rotate(0deg); } }
        .profile-checkin-btn .sparkle-container { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
        .profile-checkin-btn .spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; top: 50%; left: 50%; animation: sparkFlight 0.6s ease-out forwards; }
        @keyframes sparkFlight { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
.profile-action-card { flex: 1 1 calc(50% - 6px); min-width: calc(50% - 6px); background: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius); padding: 20px 16px; text-align: center; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.4); }
.profile-action-card:hover { background: var(--primary-light); transform: translateY(-1px); }
        .profile-action-card:active { transform: scale(0.97); }
        .profile-action-card[data-feature="leaf-manual"] { position: relative; }
.profile-action-card svg { width: 28px; height: 28px; color: var(--primary); }
.profile-action-card svg use { fill: currentColor; }
.profile-action-card span { font-size: 0.85rem; color: var(--text-main); font-weight: 500; }
.profile-action-card.profile-action-compact {
    padding: 12px 13px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 9px;
    min-height: 48px;
}
.profile-action-card.profile-action-compact svg { width: 21px; height: 21px; flex: 0 0 21px; }
.profile-action-card.profile-action-compact span { font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.profile-sponsor-card { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border: 1px solid rgba(255,255,255,0.4); border-radius: var(--radius); background: var(--card-bg); color: var(--text-main); text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,0.05); transition: transform 0.2s, background 0.2s; }
.profile-sponsor-card:hover { background: var(--primary-light); transform: translateY(-1px); }
.profile-sponsor-card:active { transform: scale(0.98); }
.profile-sponsor-card img { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 14px; object-fit: cover; }
.profile-sponsor-copy { display: grid; min-width: 0; gap: 5px; flex: 1; }
.profile-sponsor-copy strong { font-size: 1rem; line-height: 1.25; font-weight: 800; }
.profile-sponsor-copy span { color: #0071e3; font-size: 0.9rem; font-weight: 600; }
.profile-sponsor-arrow { width: 22px; height: 22px; flex: 0 0 22px; color: rgba(142,142,147,0.7); }
        /* feature-disabled 不再变灰，点击时弹出维护弹窗 */
.toolbox-list { display: grid; gap: 9px; margin: 14px 0 4px; }
.toolbox-item { width: 100%; border: 0; border-radius: 16px; padding: 12px 13px; background: rgba(118,118,128,0.1); color: var(--text-main); display: flex; align-items: center; gap: 10px; font: inherit; font-size: 0.9rem; font-weight: 750; cursor: pointer; text-align: left; }
.toolbox-item:active { transform: scale(0.98); background: rgba(118,118,128,0.16); }
.toolbox-item svg { width: 22px; height: 22px; color: var(--primary); flex: 0 0 22px; }
.profile-section-title { font-size: 0.8rem; font-weight: 600; color: var(--text-sub); margin-top: 12px; padding-left: 4px; letter-spacing: 0.5px; }
#page-profile .profile-section-title + .glass { margin-top: 10px; }
        .tab-bar {
            position: fixed; right: 0; bottom: 8px; left: 0; transform: none; margin: 0 auto; z-index: 500;
            display: flex; justify-content: center; align-items: center; gap: 3px;
            padding: 5px;
            background: rgba(128,128,128,0.12); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
            border-radius: var(--home-radius-pill);
            box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 0.5px rgba(128,128,128,0.15);
            width: max-content; max-width: calc(100vw - 16px);
            padding-bottom: 5px;
            isolation: isolate;
            pointer-events: auto;
        }
        @supports (padding-bottom: env(safe-area-inset-bottom)) {
.tab-bar { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
        }
        .tab-item {
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
            padding: 7px 16px; border: 0; border-radius: 24px; background: transparent;
            cursor: pointer; transition: color 0.2s ease, opacity 0.2s ease;
            color: var(--text-sub); font-size: 0.6rem; font-weight: 600; letter-spacing: -0.01em;
            font-family: inherit; line-height: 1.2; text-align: center;
            -webkit-tap-highlight-color: transparent; min-width: 56px;
            position: relative; z-index: 1; pointer-events: auto;
        }
        .tab-slider {
            position: absolute; top: 5px; bottom: 5px; left: 0; z-index: 0; width: 0;
            border: 1px solid var(--tab-slider-border); border-radius: 24px;
            background: var(--tab-slider-bg); box-shadow: var(--tab-slider-shadow);
            opacity: 0; pointer-events: none;
            transform: translate3d(0, 0, 0);
            transition: transform 360ms cubic-bezier(.22, .8, .2, 1), width 240ms ease, opacity 160ms ease;
            will-change: transform, width;
        }
        .tab-item svg { width: 22px; height: 22px; color: currentColor; transition: color 220ms ease, transform 360ms cubic-bezier(.22, .8, .2, 1); }
        .tab-item.active { color: var(--tab-active-color); background: transparent !important; }
        .tab-item.active svg { color: var(--tab-active-color); }
        .tab-item:active { opacity: 0.6; }
        .tab-item:focus-visible { outline: 2px solid var(--tab-active-color); outline-offset: 2px; }
        @media (prefers-reduced-motion: reduce) {
            .tab-slider, .tab-item, .tab-item svg { transition: none !important; }
        }

        .record-list-panel { max-height: 55vh; overflow-y: auto; margin-top: 12px; }
        .leaf-tx-item { padding: 10px 12px; border-radius: 14px; background: rgba(118,118,128,0.08); border: 1px solid rgba(0,0,0,0.04); margin-bottom: 8px; }
        .leaf-tx-head { display: flex; align-items: center; justify-content: space-between; }
        .leaf-tx-desc { font-size: 0.88rem; font-weight: 600; color: var(--text-main); }
        .leaf-tx-amount { font-size: 0.88rem; font-weight: 700; }
        .leaf-tx-amount.positive { color: #34d399; }
        .leaf-tx-amount.negative { color: #f87171; }
        .leaf-tx-item.reversed { opacity: 0.55; background: rgba(118,118,128,0.04); }
        .leaf-tx-item.reversed .leaf-tx-desc { color: var(--text-sub); }
        .leaf-tx-amount.reversed { color: var(--text-sub) !important; }
        .leaf-tx-badge { display: inline-block; font-size: 0.68rem; font-weight: 600; color: var(--text-sub); background: rgba(118,118,128,0.15); padding: 1px 6px; border-radius: 6px; margin-left: 5px; vertical-align: middle; }
        .leaf-tx-meta { font-size: 0.74rem; color: var(--text-sub); margin-top: 4px; }

        /* ========== 论坛页面 ========== */
        .forum-page { background: var(--page-bg, #f5f5f7); }
        .forum-container { padding-bottom: 80px; margin-top: 16px; }
        .forum-surface { overflow: hidden; padding: 0 16px 14px; border: 1px solid var(--border, #e1e3e7); border-radius: 22px; background: var(--card-bg, #fff); box-shadow: 0 5px 16px rgba(31,41,55,.08); }
        .forum-content { padding-top: 10px; }
        .forum-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 -16px; padding: 16px 16px 13px; border-bottom: 1px solid rgba(0,0,0,.06); }
        .forum-title { margin: 0; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
        .forum-subtitle { margin: 2px 0 0; font-size: 0.78rem; color: var(--text-sub); }
        .forum-my-posts-btn { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 7px 10px 7px 8px; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; background: var(--card-bg, #fff); color: var(--text-main, #1d1d1f); font-size: .78rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(38,78,120,.1); white-space: nowrap; }
        .forum-my-posts-btn:active { transform: scale(.97); }
        .forum-profile-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: var(--primary, #0071e3); }
        .forum-profile-icon svg { width: 14px; height: 14px; }
        .forum-profile-arrow { width: 11px; height: 11px; color: var(--text-sub); }

        /* 分类标签 */
        .forum-categories { display: flex; gap: 8px; overflow-x: auto; margin: 4px 0 10px; padding: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
        .forum-categories::-webkit-scrollbar { display: none; }
        .forum-cat-tag { flex-shrink: 0; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.08); background: var(--card-bg, #fff); color: var(--text-sub); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
        .forum-cat-tag.active { background: var(--primary, #0071e3); color: #fff; border-color: var(--primary, #0071e3); }
        .forum-cat-tag:active { transform: scale(0.95); }
        .forum-school-area { margin: 0; padding: 10px 0 4px; }
        .forum-school-label-title { display: flex; align-items: center; gap: 5px; margin-bottom: 7px; color: #6f7781; font-size: .72rem; font-weight: 700; }
        .forum-school-label-title svg { width: 14px; height: 14px; }
        .forum-school-tabs { display:flex; gap:3px; min-width:0; overflow-x:auto; padding:3px 0; border-radius:12px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
        .forum-school-tabs::-webkit-scrollbar { display:none; }
        .forum-school-tab { flex: 0 0 auto; padding:7px 10px; border:0; border-radius:9px; background:transparent; color:#7a818a; font-size:.72rem; font-weight:650; cursor:pointer; white-space:nowrap; }
        .forum-school-tab.active { background:var(--card-bg,#fff); color:var(--text-main,#1d1d1f); box-shadow:0 2px 6px rgba(31,41,55,.1); }

        /* 搜索栏 */
        .forum-search { display: flex; align-items: center; gap: 8px; padding: 11px 14px; margin-bottom: 16px; border-radius: 16px; background: #f8f9fa; border: 1px solid var(--border, #e5e5ea); }
        .forum-search svg { width: 18px; height: 18px; color: var(--text-sub, #a1a1a6); flex-shrink: 0; }
        .forum-search input { flex: 1; border: 0; outline: 0; background: transparent; margin: 0; padding: 0; font-size: 15px; color: var(--text-main, #1d1d1f); font-family: inherit; }
        .forum-search input::placeholder { color: var(--text-sub, #a1a1a6); }
        .forum-search-clear { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #d2d2d7; border: none; color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
        .forum-search-clear svg { width: 11px; height: 11px; color: #fff; }
        .forum-search.has-text .forum-search-clear { display: flex; }

        /* 轮播保留区 */
        .forum-carousel-wrap { margin-bottom: 10px; min-height: 172px; }
        .forum-carousel-wrap { position: relative; }
        .forum-carousel-wrap:empty { display: none; }
        .forum-carousel-wrap .square-carousel { height: 172px; }
        .forum-carousel-indicator { position: absolute; left: 50%; bottom: 7px; z-index: 4; display: flex; align-items: center; gap: 5px; transform: translateX(-50%); padding: 4px 7px; border-radius: 999px; background: rgba(12, 17, 27, 0.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
        .forum-carousel-indicator.is-single { display: none; }
        .forum-carousel-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.48); cursor: pointer; transition: width .2s ease, background .2s ease; }
        .forum-carousel-dot.active { width: 18px; background: #d9e4ff; }
        .forum-carousel-dot:focus-visible { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: 2px; }
        .forum-carousel-wrap .square-carousel-item { height: 172px !important; min-height: 172px; box-sizing: border-box; }
        .forum-carousel-wrap .square-carousel-item.has-cover::before { content: ''; position: absolute; inset: 0; height: 100%; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%); pointer-events: none; z-index: 0; }
        .forum-carousel-wrap .banner-stats-style {
            background: linear-gradient(135deg, rgba(48, 59, 78, 0.94), rgba(88, 98, 120, 0.88)) !important;
            color: #f4f6fb !important;
            border: 1px solid rgba(255, 255, 255, 0.2) !important;
            box-shadow: 0 16px 32px rgba(28, 36, 52, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
            isolation: isolate;
        }
        .forum-carousel-wrap .banner-stats-style::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: -1;
            background: linear-gradient(120deg, rgba(48, 59, 78, 0.82), rgba(124, 134, 156, 0.5));
            backdrop-filter: blur(18px) saturate(125%);
            -webkit-backdrop-filter: blur(18px) saturate(125%);
            pointer-events: none;
        }
        .forum-carousel-wrap .banner-stats-style > div:first-child span:first-child { color: #f4f6fb !important; }
        .forum-carousel-wrap .banner-stats-style > div:first-child span:last-child { color: #c5ccda !important; }
        .forum-carousel-wrap .banner-stats-style > div:nth-child(2) > div {
            background: rgba(255, 255, 255, 0.1) !important;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 17px !important;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        .forum-carousel-wrap .banner-stats-style .forum-stat-icon { width: 32px !important; height: 32px !important; margin-bottom: 8px !important; border-radius: 11px !important; background: rgba(255, 255, 255, 0.12) !important; }
        .forum-carousel-wrap .banner-stats-style .forum-stat-icon svg { width: 22px; height: 22px; }
        .forum-carousel-wrap .banner-stats-style > div:nth-child(2) > div > div:nth-child(2) { color: #ffffff !important; }
        .forum-carousel-wrap .banner-stats-style > div:nth-child(2) > div > div:nth-child(3) { color: #c8cfdb !important; }

        /* 排序切换 */
        .forum-sort-bar { display: flex; gap: 4px; margin-bottom: 12px; }
        .forum-sort-btn { border: 0; padding: 6px 16px; border-radius: 999px; background: transparent; color: var(--text-sub); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
        .forum-sort-btn.active { background: var(--primary, #0071e3); color: #fff; }
        .forum-refresh-btn { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
        .forum-refresh-btn[hidden] { display: none; }
        .forum-refresh-btn svg { width: 15px; height: 15px; }
        .forum-refresh-btn.is-loading { pointer-events: none; opacity: .65; }

        /* 帖子列表：严格采用参考文件的双列卡片墙布局 */
        .forum-posts-list { display: flex; align-items: flex-start; gap: 12px; }
        .forum-post-column { display: flex; flex: 1 1 0; flex-direction: column; gap: 12px; min-width: 0; }
        .forum-post-card { margin: 0; padding: 13px; background: #fff; border: 0; border-radius: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.045); cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; opacity: 0; transform: translateY(10px); animation: forumRiseIn 0.45s cubic-bezier(.22,.61,.36,1) forwards; }
        .forum-post-card:active { background: #fafafa; transform: scale(0.985); }
        [data-theme="dark"] .forum-surface { border-color: rgba(255,255,255,.08); background: #1c1c1e; box-shadow: 0 5px 16px rgba(0,0,0,.18); }
        [data-theme="dark"] .forum-header { border-bottom-color: rgba(255,255,255,.08); }
        [data-theme="dark"] .forum-school-tab.active { background: #3a3a3c; color: #f5f5f7; }
        [data-theme="dark"] .forum-search { background: #2c2c2e; }
        [data-theme="dark"] .forum-post-card { background: #2c2c2e; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
        @keyframes forumRiseIn { to { opacity: 1; transform: translateY(0); } }
        .forum-post-header { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
        .forum-post-author-block { display: flex; align-items: flex-start; gap: 9px; min-width: 0; flex: 1 1 auto; }
        .forum-post-avatar { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: #fff; flex: 0 0 36px; overflow: hidden; }
        .forum-post-meta { flex: 1 1 auto; min-width: 0; }
        .forum-post-author-wrap { flex: 1 1 auto; min-width: 0; }
        .forum-post-author { min-width: 0; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 5px; row-gap: 1px; color: var(--text-main); font-size: 16px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
        .forum-post-author-name { min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
        .forum-post-role-break { flex: 0 0 100%; width: 0; height: 0; }
        .forum-post-role { font-size: 0.65rem; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
        .forum-school-label { display:inline-flex; align-items:center; padding:1px 6px; border-radius:4px; background:rgba(0,113,227,.1); color:#0071e3; font-size:.65rem; font-weight:650; }
        .forum-post-role.moderator { background: rgba(52,199,89,0.12); color: #248a3d; }
        .forum-post-role.reviewer { background: rgba(0,113,227,0.12); color: #0071e3; }
        .forum-post-role.dataer { background: rgba(175,82,222,0.12); color: #af52de; }
        .forum-post-role.operator { background: rgba(255,149,0,0.12); color: #c77c00; }
        .forum-post-time { font-size: 12px; color: var(--text-sub); margin-top: 1px; }
        .forum-post-meta-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
        .forum-post-school { font-size: 11px; color: var(--text-sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .forum-post-tag { flex: 0 0 auto; flex-shrink: 0; align-self: flex-start; max-width: 42%; padding: 5px 8px; border-radius: 7px; font-size: 11px; font-weight: 650; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .forum-post-media { margin: 2px 0 10px; overflow: hidden; border-radius: 14px; background: rgba(118,118,128,0.08); }
        .forum-post-image { display: block; width: 100%; max-height: 240px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; cursor: zoom-in; }
        .forum-sensitive-media { position: relative; }
        .forum-sensitive-image { filter: blur(22px); transform: scale(1.06); transition: filter .2s ease, transform .2s ease; }
        .forum-sensitive-overlay { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; padding: clamp(18px, 5vw, 34px); padding-bottom: calc(clamp(18px, 5vw, 34px) + 46px); box-sizing: border-box; color: #fff; background: rgba(38, 36, 34, .74); }
        .forum-sensitive-overlay svg { width: 42px; height: 42px; margin-bottom: 3px; }
        .forum-sensitive-title { margin: 0; font-size: clamp(.98rem, 2.8vw, 1.3rem); font-weight: 800; line-height: 1.35; }
        .forum-sensitive-copy { max-width: 28em; margin: 0; font-size: clamp(.82rem, 2.3vw, 1rem); font-weight: 650; line-height: 1.5; }
        .forum-sensitive-reveal { position: absolute; right: clamp(12px, 4vw, 24px); bottom: clamp(12px, 4vw, 24px); min-width: 72px; margin: 0; padding: 6px 14px; border: 0; border-radius: 999px; color: #fff; background: rgba(24, 24, 24, .62); font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
        .forum-sensitive-reveal:active { transform: scale(.97); }
        .forum-post-media.forum-sensitive-media .forum-sensitive-overlay { gap: 5px; padding: 12px; padding-bottom: 48px; overflow: hidden; }
        .forum-post-media.forum-sensitive-media .forum-sensitive-overlay svg { display: none; }
        .forum-post-media.forum-sensitive-media .forum-sensitive-title { font-size: .86rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .forum-post-media.forum-sensitive-media .forum-sensitive-copy { font-size: .72rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
        .forum-post-media.forum-sensitive-media .forum-sensitive-reveal { right: 12px; bottom: 12px; min-width: 60px; padding: 5px 12px; font-size: .75rem; }
        .forum-sensitive-media.is-revealed .forum-sensitive-image { filter: none; transform: none; }
        .forum-sensitive-media.is-revealed .forum-sensitive-overlay { background: transparent; pointer-events: none; }
        .forum-sensitive-media.is-revealed .forum-sensitive-overlay > :not(.forum-sensitive-reveal) { display: none; }
        .forum-sensitive-media.is-revealed .forum-sensitive-reveal { pointer-events: auto; }
        .forum-post-title { margin: 0 0 5px; color: var(--text-main); font-size: 16px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .forum-post-preview { margin: 0 0 11px; color: #3c3c43; font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
        [data-theme="dark"] .forum-post-preview { color: #d1d1d6; }
        .forum-post-footer { display: flex; align-items: center; gap: 12px; min-width: 0; color: #8e8e93; }
        .forum-post-stat { display: inline-flex; align-items: center; gap: 3px; min-width: 0; font-size: 12px; line-height: 1.2; color: #8e8e93; font-weight: 500; white-space: nowrap; }
        .forum-stat-number { font-variant-numeric: tabular-nums; }
        .forum-post-stat.liked { color: #ff453a; }
        .forum-post-card-time { margin-left: auto; flex: 0 0 auto; color: #8e8e93; font-size: 12px; line-height: 1.2; white-space: nowrap; }
        .forum-empty { flex: 1 1 100%; }


        .forum-post-author-chip { display: inline-flex; align-items: center; gap: 6px; max-width: min(70%, 220px); padding: 0; border-radius: 0; background: transparent; vertical-align: middle; }
        .forum-post-author-chip .forum-post-avatar { width: 36px; height: 36px; font-size: 16px; }
        .forum-post-author-chip .forum-post-author { min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .forum-post-author-chip .forum-post-role { flex-shrink: 0; }
        .forum-post-header { justify-content: flex-start; }
        .forum-post-header > .forum-post-meta { display: block; min-width: 0; }
        .forum-post-header > .forum-post-tag { margin-left: auto; }
        .forum-post-footer .forum-post-stats { display: contents; }

        @media (max-width: 480px) {
            .forum-posts-list, .forum-post-column { gap: 8px; }
            .forum-post-card { padding: 10px; border-radius: 18px; }
            .forum-post-header { gap: 6px; }
            .forum-post-author-block { gap: 7px; }
            .forum-post-avatar { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; font-size: 14px; }
            .forum-post-author { font-size: 14px; }
            .forum-post-tag { max-width: 44%; padding: 4px 6px; font-size: 10px; }
            .forum-post-title { font-size: 14px; }
            .forum-post-preview { font-size: 12px; line-height: 1.4; -webkit-line-clamp: 2; }
            .forum-red-packet-tag { font-size: 9px; padding: 1px 5px; margin-right: 4px; }
            .forum-post-stat, .forum-post-card-time { font-size: 10px; }
            .forum-post-footer { gap: 6px; }
        }

        /* 加载更多 */
        .forum-load-more-btn { border: 0; padding: 10px 24px; border-radius: 999px; background: var(--card-bg, #fff); color: var(--primary, #0071e3); font-size: 0.85rem; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
        .forum-load-more-btn:active { transform: scale(0.96); }

        /* 搜索关键词高亮 */
        .forum-mark { background: rgba(255,149,0,0.22); color: inherit; border-radius: 3px; padding: 0 2px; }

        /* 指令：序号列表 */
        .forum-list-section-title { font-size: 15px; font-weight: 600; color: var(--text-main); margin: 12px 0 8px; }
        .forum-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
        .forum-list-item { display: flex; gap: 12px; background: #f5f5f7; border-radius: 14px; padding: 12px 14px; }
        .forum-list-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--primary, #0071e3); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
        .forum-list-body { flex: 1; }
        .forum-list-title { font-size: 15px; font-weight: 600; margin: 0 0 4px; color: var(--text-main); }
        .forum-list-text { font-size: 14px; line-height: 1.55; color: var(--text-sub); margin: 0; }

        /* 指令：提示框 */
        .forum-tip { display: flex; gap: 10px; background: #eaf3ff; border-radius: 14px; padding: 14px; margin: 8px 0; }
        .forum-tip-icon { flex-shrink: 0; font-size: 16px; margin-top: 1px; }
        .forum-tip-text { font-size: 14px; line-height: 1.65; color: #0a4d8c; margin: 0; }
        .forum-tip-title { font-weight: 600; }

        /* 详情页评论回复 */



        .reply-hint { font-size: 12px; color: var(--text-sub); padding: 6px 14px; background: var(--card-bg, rgba(255,255,255,0.6)); border-radius: 8px; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
        .reply-hint-cancel { color: var(--primary, #0071e3); cursor: pointer; font-weight: 600; }

        /* 自定义 confirm 弹窗 */
        #forum-confirm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 10000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.2s; }
        #forum-confirm-overlay.active { display: flex; opacity: 1; }
        .forum-confirm-box { background: rgba(255,255,255,0.85); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); border: 0.5px solid rgba(255,255,255,0.78); border-radius: 20px; padding: 28px 24px 20px; width: 88%; max-width: 300px; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
        .forum-confirm-msg { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 20px; line-height: 1.5; }
        .forum-confirm-btns { display: flex; gap: 10px; }
        .forum-confirm-btns button { flex: 1; padding: 11px 0; border-radius: 12px; border: 0; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
        .forum-confirm-btns button:active { opacity: 0.7; }
        .forum-confirm-cancel { background: rgba(120,120,128,0.12); color: var(--text-main); }
        .forum-confirm-ok { background: var(--primary, #0071e3); color: #fff; }
        #hold-delete-overlay { position: fixed; inset: 0; z-index: 10002; display: none; justify-content: center; align-items: center; padding: 20px; background: rgba(0,0,0,0.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .25s ease; }
        #hold-delete-overlay.active { display: flex; opacity: 1; }
        .hold-delete-dialog, .hold-delete-success { width: min(92vw, 390px); padding: 34px 28px 24px; border: .5px solid rgba(255,255,255,.78); border-radius: 32px; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,245,245,.92)); box-shadow: 0 20px 60px rgba(0,0,0,.18); text-align: center; font-weight: 700; }
        .hold-delete-dialog { position: relative; overflow: hidden; transform: scale(.92) translateY(12px); opacity: 0; transition: none; }
        #hold-delete-overlay.active .hold-delete-dialog { transform: scale(1) translateY(0); opacity: 1; }
        #hold-delete-overlay.active .hold-delete-dialog { animation: popupBounce .45s cubic-bezier(.34,1.56,.64,1) forwards; }
        .hold-delete-dialog::before { content: ''; position: absolute; left: 18px; right: 18px; top: 10px; height: 70px; border-radius: 30px; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0)); }
        .hold-delete-icon { width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; color: #b0b0b5; }
        .hold-delete-icon svg { width: 70px; height: 70px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
        .hold-delete-title { position: relative; margin: 18px 0 0; color: #111; font-size: 22px; font-weight: 750; line-height: 1.35; }
        .hold-delete-hold { position: relative; height: 72px; margin-top: 28px; overflow: hidden; border-radius: 26px; background: #ffdede; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
        .hold-delete-hold * { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
        .hold-delete-progress { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 23px; background: #ff453a; }
        .hold-delete-label { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 9px; color: #ff453a; font-size: 20px; font-weight: 750; transition: color .15s ease; }
        .hold-delete-label svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
        .hold-delete-cancel { position: relative; width: 100%; height: 72px; margin-top: 18px; border: 0; border-radius: 26px; background: #1c1c1e; color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; transition: transform .18s ease; }
        .hold-delete-cancel:active, .hold-delete-hold:active { transform: scale(.985); }
        .hold-delete-success { display: none; padding: 42px 28px; animation: holdDeletePop .55s cubic-bezier(.2,1,.2,1); }
        .hold-delete-success.show { display: block; }
        .hold-delete-success svg { width: 74px; height: 74px; fill: none; stroke: #ff453a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
        .hold-delete-success-text { margin-top: 18px; color: #111; font-size: 28px; font-weight: 750; }
        @keyframes holdDeletePop { 0% { opacity: 0; transform: scale(.82); } 72% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
        [data-theme="dark"] .hold-delete-dialog, [data-theme="dark"] .hold-delete-success { background: linear-gradient(180deg, rgba(44,44,46,.98), rgba(28,28,30,.96)); border-color: rgba(255,255,255,.1); }
        [data-theme="dark"] .hold-delete-title, [data-theme="dark"] .hold-delete-success-text { color: #f5f5f7; }
        @media (prefers-reduced-motion: reduce) { #hold-delete-overlay, .hold-delete-dialog { transition-duration: .12s; } .hold-delete-success { animation: none; } }
        .is-android #hold-delete-overlay { background: rgba(0,0,0,.32); backdrop-filter: none; -webkit-backdrop-filter: none; }
        .is-android .hold-delete-dialog, .is-android .hold-delete-success { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: rgba(0,0,0,.08); box-shadow: 0 18px 48px rgba(0,0,0,.24); }
        .is-android .hold-delete-dialog::before { display: none; }
        html.is-android[data-theme="dark"] .hold-delete-dialog, html.is-android[data-theme="dark"] .hold-delete-success { background: #2c2c2e; border-color: rgba(255,255,255,.12); }

        /* 发帖 FAB */
        .forum-fab { position: fixed; bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); right: 16px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--primary, #0071e3); color: #fff; box-shadow: 0 4px 16px rgba(0,113,227,0.3); cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
        .forum-fab svg { width: 24px; height: 24px; }
        .forum-fab:active { transform: scale(0.9); }

        /* ========== 底部弹层通用 ========== */
        .forum-sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0); z-index: 10001; display: block; opacity: 0; pointer-events: none; overscroll-behavior: none; transition: background 0.25s ease; }
        .forum-sheet-overlay.show { opacity: 1; pointer-events: auto; background: rgba(0,0,0,0.4); }
        .forum-sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: var(--page-bg, #f5f5f7); border-radius: 20px 20px 0 0; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.32s cubic-bezier(.22,.61,.36,1); touch-action: pan-y; overscroll-behavior: contain; }
        .forum-sheet-scroll-locked body { overscroll-behavior: none; }
        .forum-sheet-content { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
        #forum-detail-sheet .forum-sheet { top: 0; bottom: 0; max-width: none; max-height: none; border-radius: 0; }
        #forum-create-sheet .forum-sheet { top: 0; bottom: 0; max-width: none; max-height: none; border-radius: 0; }
        #forum-detail-sheet .forum-sheet-handle { display: none; }
        #forum-detail-sheet .forum-sheet-content { background: var(--page-bg, #f5f5f7); overflow-y: auto; padding-left: 0; padding-right: 0; }
        #forum-detail-sheet .forum-create-header { height: 52px; min-height: 52px; padding: 0 18px; border-bottom: 1px solid var(--border, #e5e5ea); background: var(--page-bg, #f5f5f7); }
        #forum-detail-sheet .forum-create-header h3 { position: absolute; left: 50%; transform: translateX(-50%); }
        #forum-detail-sheet .forum-sheet-close { min-width: 40px; text-align: left; }
        #forum-myposts-sheet .forum-sheet { top: 0; bottom: 0; max-width: none; max-height: none; border-radius: 0; }
        #forum-myposts-sheet .forum-sheet-handle { display: none; }
        #forum-myposts-sheet .forum-sheet-content { padding: 18px 20px calc(env(safe-area-inset-bottom, 0px) + 28px); }
        #forum-myposts-sheet .forum-create-header { height: 64px; min-height: 64px; max-height: 64px; flex: 0 0 64px; padding: 0 18px; border-bottom: 1px solid var(--border, #e5e5ea); background: var(--page-bg, #f5f5f7); z-index: 2; }
        #forum-myposts-sheet .forum-create-header h3 { position: absolute; left: 50%; transform: translateX(-50%); }
        #forum-myposts-sheet .forum-sheet-close { min-width: 40px; text-align: left; }
        .forum-sheet-overlay.show .forum-sheet { transform: translateY(0); }
        .forum-sheet-handle { width: 36px; height: 5px; border-radius: 100px; background: #d2d2d7; margin: 10px auto 4px; flex-shrink: 0; }
        .forum-sheet-content { overflow-y: auto; padding: 0 18px 24px; flex: 1; min-height: 0; }
        .forum-create-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 12px; flex-shrink: 0; }
        .forum-create-header h3 { font-size: 17px; margin: 0; }
        .forum-sheet-close { font-size: 15px; color: var(--text-sub, #6e6e73); background: none; border: none; padding: 6px; cursor: pointer; }
        .forum-sheet-action { font-size: 15px; color: var(--primary, #0071e3); background: none; border: none; padding: 6px; cursor: pointer; }

        /* 表单元素 */
        .forum-input { width: 100%; padding: 12px 14px; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; background: var(--card-bg, #f5f5f7); font-size: 0.9rem; color: var(--text-main); outline: none; box-sizing: border-box; margin-bottom: 10px; font-family: inherit; transition: border-color 0.2s; }
        .forum-input:focus { border-color: var(--primary, #0071e3); }
        .forum-textarea { min-height: 100px; max-height: 200px; resize: vertical; line-height: 1.5; }
        #forum-create-sheet .forum-create-body { display: flex; flex-direction: column; min-height: calc(100% - 64px); padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 28px); }
        #forum-create-sheet .forum-create-title { min-height: 72px; font-size: 1rem; }
        #forum-create-sheet .forum-textarea { min-height: 300px; max-height: none; flex: 1 1 auto; }
        .forum-create-count { font-size: 0.75rem; color: var(--text-sub); margin: 0 0 12px; }
        .forum-submit-btn { width: 100%; padding: 13px; border: 0; border-radius: 14px; background: var(--primary, #0071e3); color: #fff; font-size: 0.95rem; font-weight: 650; cursor: pointer; transition: opacity 0.2s; }
        .forum-submit-btn:active { opacity: 0.85; }
        .forum-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

        .forum-red-packet-entry { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 13px; margin-bottom: 12px; border: 1px solid rgba(255,59,48,0.16); border-radius: 14px; background: rgba(255,59,48,0.06); color: var(--text-main); text-align: left; cursor: pointer; }
        .forum-red-packet-entry:active { transform: scale(0.99); }
        .forum-red-packet-entry-icon { flex: 0 0 auto; padding: 5px 7px; border-radius: 8px; background: #e53935; color: #fff; font-size: 11px; font-weight: 800; }
        .forum-red-packet-entry-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
        .forum-red-packet-entry-copy strong { font-size: 0.86rem; }
        .forum-red-packet-entry-copy small { color: var(--text-sub); font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .forum-red-packet-entry-arrow { color: var(--text-sub); font-size: 1.3rem; line-height: 1; }
        .forum-red-packet-settings-body { gap: 14px; }
        .forum-red-packet-field { display: flex; flex-direction: column; gap: 7px; color: var(--text-main); font-size: 0.82rem; font-weight: 700; }
        .forum-red-packet-field .forum-input { width: 100%; }
        .forum-red-packet-type-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
        .forum-red-packet-type-field legend { grid-column: 1 / -1; padding: 0; margin-bottom: 2px; color: var(--text-main); font-size: 0.82rem; font-weight: 700; }
        .forum-red-packet-type-field label { display: grid; grid-template-columns: auto 1fr; column-gap: 7px; row-gap: 2px; align-items: center; padding: 11px; border: 1px solid rgba(118,118,128,0.18); border-radius: 12px; cursor: pointer; }
        .forum-red-packet-type-field label:has(input:checked) { border-color: rgba(255,59,48,0.55); background: rgba(255,59,48,0.07); }
        .forum-red-packet-type-field input { grid-row: span 2; accent-color: #e53935; }
        .forum-red-packet-type-field label span { font-size: 0.82rem; font-weight: 750; }
        .forum-red-packet-type-field label small { color: var(--text-sub); font-size: 0.68rem; }
        .forum-red-packet-settings-hint { min-height: 20px; margin: 0; color: var(--text-sub); font-size: 0.76rem; line-height: 1.45; }
        .forum-red-packet-tag { display: inline-block; vertical-align: 0.08em; padding: 2px 6px; margin-right: 6px; border-radius: 6px; background: rgba(255,59,48,0.1); color: #d9322f; font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
        .forum-red-packet-card { display: flex; align-items: center; gap: 12px; width: 100%; margin: 16px 0 4px; padding: 12px 14px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #d32f2f, #b71c1c); color: #fff; text-align: left; box-shadow: 0 9px 20px rgba(183,28,28,0.18); cursor: pointer; }
        .forum-red-packet-card:active { transform: scale(0.99); }
        .forum-red-packet-card.is-disabled { cursor: default; opacity: 0.68; }
        .forum-red-packet-card-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; background: rgba(255,255,255,0.18); font-size: 12px; font-weight: 800; }
        .forum-red-packet-card-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
        .forum-red-packet-card-copy strong { font-size: 0.9rem; }
        .forum-red-packet-card-copy span { color: rgba(255,255,255,0.78); font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .forum-red-packet-card-arrow { flex: 0 0 auto; font-size: 1.35rem; line-height: 1; }
        .forum-red-packet-overlay { z-index: 10080; place-items: center; padding: 24px 16px; background: rgba(0,0,0,0.62); backdrop-filter: blur(10px); }
        .forum-red-packet-overlay.active { display: grid; }
        #forum-red-packet-overlay .redpacket { position: relative; width: min(320px, calc(100vw - 32px)); height: 500px; margin: 0 auto; border-radius: 22px; background: linear-gradient(145deg, #e53935, #b71c1c); box-shadow: 0 22px 54px rgba(74,10,10,0.34), 0 5px 16px rgba(0,0,0,0.18); cursor: pointer; user-select: none; perspective: 1000px; transform: translateZ(0); transition: transform 0.12s ease; }
        #forum-red-packet-overlay .redpacket:active:not(.opened) { transform: scale(0.97); }
        #forum-red-packet-overlay .packet-content { position: absolute; top: 42px; left: 16px; right: 16px; height: 420px; padding: 28px 16px 16px; box-sizing: border-box; background: #fff; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; box-shadow: 0 10px 26px rgba(0,0,0,0.12); transform: translateY(70px) scale(0.9); opacity: 0; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s cubic-bezier(0.16,1,0.3,1); z-index: 1; will-change: transform, opacity; }
        #forum-red-packet-overlay .packet-content .amount { display: flex; align-items: baseline; gap: 5px; color: #e53935; font-size: 46px; font-weight: 850; line-height: 1; }
        #forum-red-packet-overlay .packet-content .amount span { color: #d9322f; font-size: 13px; font-weight: 750; }
        #forum-red-packet-overlay .packet-content .amount strong { font: inherit; }
        #forum-red-packet-overlay .packet-content #forum-redpacket-amount.is-depleted { font-size: 32px; white-space: nowrap; }
        #forum-red-packet-overlay .packet-content .desc { min-height: 20px; margin-top: 9px; color: #8e8e93; font-size: 13px; font-weight: 650; text-align: center; }
        #forum-red-packet-overlay .packet-content #forum-redpacket-desc.is-depleted { color: #1d1d1f; font-size: 14px; font-weight: 750; }
        .forum-red-packet-summary { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 24px; padding: 13px 0; border-top: 1px solid rgba(118,118,128,0.14); border-bottom: 1px solid rgba(118,118,128,0.14); }
        .forum-red-packet-stat { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 4px; }
        .forum-red-packet-stat + .forum-red-packet-stat { border-left: 1px solid rgba(118,118,128,0.14); }
        .forum-red-packet-stat strong { color: #1d1d1f; font-size: 1.02rem; line-height: 1.1; }
        .forum-red-packet-stat span { color: #8e8e93; font-size: 0.68rem; white-space: nowrap; }
        .forum-red-packet-claimers-wrap { width: 100%; margin-top: 16px; }
        .forum-red-packet-claimers-label { display: block; color: #6e6e73; font-size: 0.72rem; font-weight: 750; }
        .forum-red-packet-claimers { min-height: 38px; margin-top: 9px; }
        .forum-red-packet-claimers-list { display: flex; align-items: center; padding-left: 5px; }
        .forum-red-packet-claimer-avatar { position: relative; display: block; width: 34px; height: 34px; flex: 0 0 34px; aspect-ratio: 1; box-sizing: border-box; margin-left: -5px; border: 2px solid #fff; border-radius: 50%; overflow: hidden; font-size: 0.7rem; }
        .forum-red-packet-claimer-avatar .forum-avatar-image { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
        .forum-red-packet-claimer-avatar:first-child { margin-left: 0; }
        .forum-red-packet-claimers-more { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -5px; border: 2px solid #fff; border-radius: 50%; background: #f2f2f7; color: #6e6e73; font-size: 0.68rem; font-weight: 800; }
        .forum-red-packet-claimers-empty { display: block; color: #aeaeb2; font-size: 0.74rem; }
        .forum-redpacket-confirm-btn { width: 100%; min-height: 42px; margin-top: auto; border: 0; border-radius: 12px; background: #0071e3; color: #fff; font: inherit; font-size: 0.88rem; font-weight: 800; cursor: pointer; box-shadow: 0 7px 16px rgba(0,113,227,0.22); }
        .forum-redpacket-confirm-btn:active { transform: scale(0.97); }
        #forum-red-packet-overlay .packet-body { position: absolute; bottom: 0; left: 0; width: 100%; height: 340px; background: #c62828; border-top-left-radius: 50% 24px; border-top-right-radius: 50% 24px; border-bottom-left-radius: 22px; border-bottom-right-radius: 22px; z-index: 2; pointer-events: none; }
        #forum-red-packet-overlay .packet-lid { position: absolute; top: 0; left: 0; width: 100%; height: 185px; background: #d32f2f; border-top-left-radius: 22px; border-top-right-radius: 22px; border-bottom-left-radius: 50% 42px; border-bottom-right-radius: 50% 42px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 4; transform-origin: top center; transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), z-index 0s 0.15s; will-change: transform; }
        #forum-red-packet-overlay .open-btn { position: absolute; top: 146px; left: 50%; transform: translate(-50%,-50%) scale(1); width: 68px; height: 68px; padding: 0; border-radius: 50%; background: linear-gradient(145deg,#ffe082,#ffb300); border: 2px solid #fff3e0; color: #900c3f; display: flex; align-items: center; justify-content: center; font-size: 27px; font-weight: bold; z-index: 5; box-shadow: 0 7px 20px rgba(0,0,0,0.25); transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease; will-change: transform, opacity; }
        #forum-red-packet-overlay .open-btn:active { transform: translate(-50%,-50%) scale(0.9); }
        #forum-red-packet-overlay .redpacket.opened .packet-lid { transform: rotateX(180deg); z-index: 0; }
        #forum-red-packet-overlay .redpacket.opened .open-btn { opacity: 0; transform: translate(-50%,-50%) scale(0.3) rotate(45deg); pointer-events: none; }
        #forum-red-packet-overlay .redpacket.opened .packet-content { transform: translateY(-22px) scale(1); opacity: 1; z-index: 3; }
        #forum-red-packet-overlay .particle { position: absolute; pointer-events: none; width: 8px; height: 8px; border-radius: 50%; z-index: 10; animation: forumRedPacketPop 0.5s ease-out forwards; }
        @keyframes forumRedPacketPop { 0% { transform: translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(var(--tx),var(--ty)) scale(0); opacity: 0; } }
        @media (max-width: 480px) { .forum-red-packet-overlay { padding: 20px 16px; } #forum-red-packet-overlay .redpacket { transform: scale(0.82); transform-origin: center center; } #forum-red-packet-overlay .redpacket:active:not(.opened) { transform: scale(0.79); } }
        @media (prefers-reduced-motion: reduce) { #forum-red-packet-overlay .packet-lid, #forum-red-packet-overlay .packet-content, #forum-red-packet-overlay .open-btn { transition-duration: 0.12s; } #forum-red-packet-overlay .packet-lid { transition-timing-function: ease-out; } #forum-red-packet-overlay .particle { animation: none; opacity: 0; } }

        .forum-image-input { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; margin: 0 0 4px; border: 1px dashed rgba(0,0,0,0.18); border-radius: 12px; background: var(--card-bg, #f5f5f7); color: var(--text-sub); font-size: 0.86rem; cursor: pointer; box-sizing: border-box; }
        .forum-image-input:has(input:focus) { border-color: var(--primary, #0071e3); color: var(--primary, #0071e3); }
        .forum-image-input.is-locked { opacity: .55; cursor: not-allowed; background: #ececee; border-color: rgba(0,0,0,0.12); }
        .forum-image-input.is-locked .forum-image-input-icon { background: rgba(120,120,120,0.16); color: rgba(0,0,0,0.4); }
        .forum-image-input input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
        .forum-image-input-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(0,113,227,0.12); color: var(--primary, #0071e3); font-size: 19px; line-height: 1; flex: 0 0 auto; }
        .forum-image-hint { margin: 0 0 4px; color: var(--text-sub); font-size: 0.72rem; line-height: 1.4; }
        .forum-image-status { margin: 0 0 8px; color: var(--text-sub); font-size: 0.75rem; line-height: 1.4; overflow-wrap: anywhere; }
        .forum-image-progress[hidden] { display: none; }
        .forum-image-progress { margin: 0 0 12px; }
        .forum-image-progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(118,118,128,0.16); }
        .forum-image-progress-bar { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0071e3, #34c759); transition: width 0.25s ease; }
        .forum-image-progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 5px; color: var(--text-sub); font-size: 0.72rem; line-height: 1.35; }
        .forum-image-progress-meta span:last-child { text-align: right; white-space: nowrap; }
        .forum-detail-media { margin: 0 0 16px; overflow: hidden; border-radius: 14px; background: rgba(118,118,128,0.08); }
        .forum-detail-image { display: block; width: 100%; max-height: 420px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; cursor: zoom-in; }
        .forum-detail-media.forum-sensitive-media .forum-sensitive-overlay { align-items: center; text-align: center; }
        .forum-detail-media.forum-sensitive-media .forum-sensitive-copy { max-width: 24em; }
        .forum-detail-media.forum-sensitive-media .forum-sensitive-reveal { min-width: 112px; padding: 10px 22px; font-size: .98rem; }

        .forum-create-success-card { width: min(360px, 88vw); padding: 28px 24px; text-align: center; }
        .forum-create-success-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--text-main, #1d1d1f); }
        .forum-create-success-card p { margin: 0 0 16px; color: var(--text-sub, #86868b); font-size: .85rem; line-height: 1.6; }
        .forum-typewriter { display: none; }
        .forum-progress-loader { display: grid; place-items: center; height: 128px; margin-bottom: 4px; overflow: hidden; }
        .forum-progress-loader .pl { display: block; width: 128px; height: 128px; }
        .forum-progress-loader .pl__arrows, .forum-progress-loader .pl__ring-rotate, .forum-progress-loader .pl__ring-stroke, .forum-progress-loader .pl__tick { animation-duration: 2s; animation-timing-function: linear; animation-iteration-count: infinite; }
        .forum-progress-loader .pl__arrows { animation-name: forumArrows42; transform: rotate(45deg); transform-origin: 16px 52px; }
        .forum-progress-loader .pl__ring-rotate, .forum-progress-loader .pl__ring-stroke { transform-origin: 80px 80px; }
        .forum-progress-loader .pl__ring-rotate { animation-name: forumRingRotate42; }
        .forum-progress-loader .pl__ring-stroke { animation-name: forumRingStroke42; transform: rotate(-45deg); }
        .forum-progress-loader .pl__tick { animation-name: forumTick42; }
        .forum-progress-loader .pl__tick:nth-child(2) { animation-delay: -1.75s; }
        .forum-progress-loader .pl__tick:nth-child(3) { animation-delay: -1.5s; }
        .forum-progress-loader .pl__tick:nth-child(4) { animation-delay: -1.25s; }
        .forum-progress-loader .pl__tick:nth-child(5) { animation-delay: -1s; }
        .forum-progress-loader .pl__tick:nth-child(6) { animation-delay: -.75s; }
        .forum-progress-loader .pl__tick:nth-child(7) { animation-delay: -.5s; }
        .forum-progress-loader .pl__tick:nth-child(8) { animation-delay: -.25s; }
        @keyframes forumArrows42 { from { transform: rotate(45deg); } to { transform: rotate(405deg); } }
        @keyframes forumRingRotate42 { from { transform: rotate(0); } to { transform: rotate(720deg); } }
        @keyframes forumRingStroke42 { from, to { stroke-dashoffset: 452; transform: rotate(-45deg); } 50% { stroke-dashoffset: 169.5; transform: rotate(-180deg); } }
        @keyframes forumTick42 { from, 3%, 47%, to { stroke-dashoffset: -12; } 14%, 36% { stroke-dashoffset: 0; } }
        .forum-typewriter .typewriter { --blue: #5c86ff; --blue-dark: #275efe; --key: #fff; --paper: #eef0fd; --text: #d3d4ec; --tool: #fbc56c; --duration: 3s; position: relative; animation: forumTypeBounce var(--duration) linear infinite; transform: scale(.62); transform-origin: center; }
        .forum-typewriter .slide { width: 92px; height: 20px; margin-left: 14px; border-radius: 3px; transform: translateX(14px); background: linear-gradient(var(--blue), var(--blue-dark)); animation: forumTypeSlide var(--duration) ease infinite; }
        .forum-typewriter .slide:before, .forum-typewriter .slide:after, .forum-typewriter .slide i:before { content: ''; position: absolute; background: var(--tool); }
        .forum-typewriter .slide:before { width: 2px; height: 8px; top: 6px; left: 100%; }
        .forum-typewriter .slide:after { left: 94px; top: 3px; height: 14px; width: 6px; border-radius: 3px; }
        .forum-typewriter .slide i { display: block; position: absolute; right: 100%; width: 6px; height: 4px; top: 4px; background: var(--tool); }
        .forum-typewriter .slide i:before { right: 100%; top: -2px; width: 4px; border-radius: 2px; height: 14px; }
        .forum-typewriter .paper { position: absolute; left: 24px; top: -26px; width: 40px; height: 46px; border-radius: 5px; background: var(--paper); transform: translateY(46px); animation: forumTypePaper var(--duration) linear infinite; }
        .forum-typewriter .paper:before { content: ''; position: absolute; left: 6px; right: 6px; top: 7px; height: 4px; border-radius: 2px; transform: scaleY(.8); background: var(--text); box-shadow: 0 12px 0 var(--text), 0 24px 0 var(--text), 0 36px 0 var(--text); }
        .forum-typewriter .keyboard { width: 120px; height: 56px; margin-top: -10px; position: relative; z-index: 1; }
        .forum-typewriter .keyboard:before, .forum-typewriter .keyboard:after { content: ''; position: absolute; }
        .forum-typewriter .keyboard:before { inset: 0; border-radius: 7px; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); transform: perspective(10px) rotateX(2deg); transform-origin: 50% 100%; }
        .forum-typewriter .keyboard:after { left: 2px; top: 25px; width: 11px; height: 4px; border-radius: 2px; box-shadow: 15px 0 0 var(--key), 30px 0 0 var(--key), 45px 0 0 var(--key), 60px 0 0 var(--key), 75px 0 0 var(--key), 90px 0 0 var(--key), 22px 10px 0 var(--key), 37px 10px 0 var(--key), 52px 10px 0 var(--key), 60px 10px 0 var(--key), 68px 10px 0 var(--key), 83px 10px 0 var(--key); animation: forumTypeKeyboard var(--duration) linear infinite; }
        @keyframes forumTypeBounce { 85%,92%,100% { transform: scale(.62) translateY(0); } 89% { transform: scale(.62) translateY(-4px); } 95% { transform: scale(.62) translateY(2px); } }
        @keyframes forumTypeSlide { 5% { transform: translateX(14px); } 15%,30% { transform: translateX(6px); } 40%,55% { transform: translateX(0); } 65%,70% { transform: translateX(-4px); } 80%,89% { transform: translateX(-12px); } 100% { transform: translateX(14px); } }
        @keyframes forumTypePaper { 5% { transform: translateY(46px); } 20%,30% { transform: translateY(34px); } 40%,55% { transform: translateY(22px); } 65%,70% { transform: translateY(10px); } 80%,85% { transform: translateY(0); } 92%,100% { transform: translateY(46px); } }
        @keyframes forumTypeKeyboard { 5%,12%,21%,30%,39%,48%,57%,66%,75%,84% { box-shadow: 15px 0 0 var(--key),30px 0 0 var(--key),45px 0 0 var(--key),60px 0 0 var(--key),75px 0 0 var(--key),90px 0 0 var(--key),22px 10px 0 var(--key),37px 10px 0 var(--key),52px 10px 0 var(--key),60px 10px 0 var(--key),68px 10px 0 var(--key),83px 10px 0 var(--key); } 9% { box-shadow: 15px 2px 0 var(--key),30px 0 0 var(--key),45px 0 0 var(--key),60px 0 0 var(--key),75px 0 0 var(--key),90px 0 0 var(--key),22px 10px 0 var(--key),37px 10px 0 var(--key),52px 10px 0 var(--key),60px 10px 0 var(--key),68px 10px 0 var(--key),83px 10px 0 var(--key); } }
        @media (prefers-reduced-motion: reduce) { .forum-typewriter .typewriter, .forum-typewriter .slide, .forum-typewriter .paper, .forum-typewriter .keyboard:after, .forum-progress-loader .pl__arrows, .forum-progress-loader .pl__ring-rotate, .forum-progress-loader .pl__ring-stroke, .forum-progress-loader .pl__tick { animation: none; } }

        /* 详情页 — 匹配示例文件卡片式布局 */
        .detail-content { padding: 12px !important; padding-bottom: 70px !important; }
        .detail-card { background: var(--card-bg, #fff); border: 1px solid var(--border, #e5e5ea); border-radius: 18px; padding: 20px 12px 22px; margin-bottom: 12px; }
        .detail-author-row { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; }
        .detail-avatar { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; flex-shrink: 0; }
        .detail-author-meta { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 4px; }
        .detail-author-name-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 7px; min-width: 0; }
        .detail-author-name { min-width: 0; font-size: 15px; font-weight: 600; color: var(--text-main); overflow-wrap: anywhere; }
        .detail-badge { flex: 0 1 auto; font-size: 11px; font-weight: 600; color: var(--primary, #0071e3); background: rgba(0,113,227,0.08); padding: 2px 8px; border-radius: 6px; }
        .detail-post-tag { display: inline-flex; align-items: center; flex: 0 1 auto; max-width: 100%; min-width: 0; box-sizing: border-box; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
        .detail-author-time { font-size: 12.5px; color: var(--text-sub); }
        .detail-title { font-size: 22px; font-weight: 700; line-height: 1.4; margin: 0 0 14px; letter-spacing: -0.3px; }
        .detail-body { font-size: 15.5px; line-height: 1.75; color: var(--text-main); overflow-wrap: anywhere; }
        .detail-body > .forum-paragraph { margin: 0; text-indent: 2em; }
        .detail-interaction { display: flex; align-items: center; gap: 12px; padding: 14px 0 0; margin-top: 16px; border-top: 1px solid var(--border, #e5e5ea); }
        .detail-like-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border, #e5e5ea); background: var(--card-bg, #fff); color: var(--text-main); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
        .detail-like-btn.liked { color: #ff453a; border-color: rgba(255,59,48,0.2); background: rgba(255,59,48,0.06); }
        .detail-like-btn svg { width: 18px; height: 18px; }
        .detail-comment-count { font-size: 14px; color: var(--text-sub); }
        .detail-comment-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border, #e5e5ea); background: var(--card-bg, #fff); color: var(--text-main); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
        .detail-comment-btn:active { transform: scale(0.96); }
        .detail-comment-btn svg { width: 18px; height: 18px; }

        /* 评论卡片 */
        .detail-comments-card { background: var(--card-bg, #fff); border: 1px solid var(--border, #e5e5ea); border-radius: 18px; padding: 18px 12px 6px; margin-bottom: 12px; }

        /* 论坛加载骨架屏（详情 / 轮播） */
        .forum-detail-skeleton .sk,
        .forum-carousel-skeleton .sk { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(0,0,0,.045) 25%, rgba(0,0,0,.09) 50%, rgba(0,0,0,.045) 75%); background-size: 200% 100%; border-radius: 8px; animation: skeletonShimmer 1.5s ease-in-out infinite; }
        .forum-detail-skeleton .sk-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; }
        .forum-detail-skeleton .sk-avatar-sm { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; }
        .forum-detail-skeleton .detail-author-meta { flex: 1; min-width: 0; }
        [data-theme="dark"] .forum-detail-skeleton .sk,
        [data-theme="dark"] .forum-carousel-skeleton .sk { background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.05) 75%); background-size: 200% 100%; }

        /* 轮播骨架占位 */
        .forum-carousel-skeleton { display: flex; overflow: hidden; border-radius: 18px; height: 172px; }
        .detail-comments-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
        .detail-comments-title { font-size: 15px; font-weight: 600; color: var(--text-main); }

        .comment-item { display: flex; gap: 10px; padding: 14px 0; border-bottom: 0; }
        .comment-item:last-child { border-bottom: none; }
        .c-avatar { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 600; }
        .c-body { flex: 1; min-width: 0; }
        .c-meta-row { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
        .c-name { font-size: 13.5px; font-weight: 600; color: var(--text-main); }
        .c-name.is-op { color: var(--primary, #0071e3); }
        .forum-ai-title { font-size: 11px; font-weight: 600; color: #ff9500; background: rgba(255,149,0,0.12); padding: 2px 6px; border-radius: 5px; }
        .c-time { font-size: 11.5px; color: var(--text-sub); }
        .c-text { font-size: 14px; line-height: 1.6; color: var(--text-main); margin: 0 0 6px; }
        .c-reply-to { color: var(--primary, #0071e3); font-weight: 500; }
        .c-actions { display: flex; align-items: center; gap: 16px; }
        .c-action { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-sub); background: none; border: none; padding: 2px 0; cursor: pointer; }
        .c-action svg { width: 16px; height: 16px; overflow: visible; }
        .c-action.liked { color: #ff453a; }
        .c-action.liked svg { color: #ff453a; stroke: #ff453a; }
        .c-delete { font-size: 12px; color: var(--text-sub); background: none; border: none; padding: 2px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }

        /* 评论空状态 */
        .detail-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 10px 26px; }
        .detail-empty-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--card-bg, #f5f5f7); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--text-sub); }
        .detail-empty-title { font-size: 14.5px; font-weight: 600; color: var(--text-main); margin: 0 0 4px; }
        .detail-empty-sub { font-size: 13px; color: var(--text-sub); margin: 0; }

        /* 底部评论栏 */
        .detail-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto; background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--border, #e5e5ea); padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; z-index: 100; }
        .detail-input-pill { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; background: #f0f0f2 !important; border-radius: 20px; padding: 0 14px; height: 38px; }
        .forum-ai-mention-menu { position: absolute; left: 14px; right: 62px; bottom: calc(100% + 8px); z-index: 3; padding: 5px; border: 1px solid var(--border, #e5e5ea); border-radius: 12px; background: var(--card-bg, #fff); box-shadow: 0 10px 25px rgba(0,0,0,.14); }
        .forum-ai-mention-menu[hidden] { display: none; }
        .forum-ai-mention-option { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 9px; padding: 9px 10px; text-align: left; background: transparent; color: var(--text-main); cursor: pointer; }
        .forum-ai-mention-option:hover, .forum-ai-mention-option:focus-visible { background: rgba(255,149,0,.1); outline: none; }
        .forum-ai-mention-option.is-disabled { color: var(--text-sub); cursor: not-allowed; }
        .forum-ai-mention-option.is-disabled:hover, .forum-ai-mention-option.is-disabled:focus-visible { background: transparent; }
        .forum-ai-mention-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
        .forum-ai-mention-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
        .forum-ai-mention-name { color: #ff9500; font-weight: 600; }
        .forum-ai-mention-option.is-disabled .forum-ai-mention-name { color: var(--text-sub); }
        .forum-ai-mention-sub { font-size: 11px; color: var(--text-sub); }
        .forum-ai-mention-highlight { color: #ff9500; font-weight: 600; }
        .forum-ai-reply-status { display: block; margin: -2px 0 7px; font-size: 12px; color: var(--text-sub); }
        .forum-ai-reply-status.is-error { color: #ff453a; }
        .forum-comment-status { font-size: 11px; color: var(--text-sub); }
        .forum-comment-status.is-error { color: #ff453a; }
        .comment-item.is-pending { opacity: .72; }
        .detail-send-btn:disabled { opacity: .55; cursor: wait; }
        .detail-bottom-bar { position: fixed; }
        .detail-input-pill input { flex: 1; border: none; background: none; font-size: 14px; outline: none; color: var(--text-main); font-family: inherit; }
        .detail-input-pill input::placeholder { color: var(--text-sub); }
        .detail-send-btn { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--primary, #0071e3); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
        .detail-send-btn svg { width: 17px; height: 17px; color: #fff; }

        /* 回复提示 */
        .reply-hint { flex: 0 0 100%; order: -1; box-sizing: border-box; font-size: 12px; color: var(--text-sub); padding: 6px 14px; background: var(--card-bg, rgba(255,255,255,0.6)); border-radius: 8px; margin-bottom: 0; display: flex; align-items: center; justify-content: space-between; }
        .reply-hint-cancel { color: var(--primary, #0071e3); cursor: pointer; font-weight: 600; }

        /* 旧样式保留兼容 */













        .forum-myposts-profile { margin-bottom: 12px; }
        .forum-myposts-profile > div { border: 1px solid var(--border, #e5e5ea); box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
        .forum-myposts-profile .btn-text { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 8px 12px; border: 1px solid rgba(0,113,227,0.18); border-radius: 999px; background: rgba(0,113,227,0.08); color: var(--primary, #0071e3) !important; font-size: 0.8rem !important; font-weight: 650; cursor: pointer; }
        .forum-myposts-profile .btn-text:active { transform: scale(0.96); opacity: 0.8; }
        .forum-myposts-profile .forum-profile-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; background: var(--primary, #0071e3); }
        .forum-profile-target { position: relative; }
        .forum-profile-target.forum-profile-guide-focus { z-index: 4; }
        .forum-profile-guide-focus .forum-my-posts-btn { box-shadow: 0 0 0 3px rgba(0,113,227,0.18), 0 6px 16px rgba(0,113,227,0.18); }
        .forum-profile-guide { position: absolute; top: calc(100% + 10px); right: 0; z-index: 5; width: min(270px, calc(100vw - 40px)); display: flex; align-items: flex-start; gap: 9px; padding: 11px 10px 11px 12px; border: 1px solid rgba(0,113,227,0.18); border-radius: 15px; background: var(--card-bg); color: var(--text-main); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
        .forum-profile-guide::before { content: ''; position: absolute; top: -6px; right: 42px; width: 11px; height: 11px; background: var(--card-bg); border-left: 1px solid rgba(0,113,227,0.18); border-top: 1px solid rgba(0,113,227,0.18); transform: rotate(45deg); }
        .forum-profile-guide-copy { display: grid; gap: 2px; min-width: 0; font-size: 0.78rem; line-height: 1.4; }
        .forum-profile-guide-copy strong { color: var(--primary); font-size: 0.83rem; }
        .forum-profile-guide-close { width: 22px; height: 22px; flex: 0 0 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(118,118,128,0.12); color: var(--text-sub); font-size: 1rem; line-height: 1; cursor: pointer; }
        .detail-divider { height: 1px; background: var(--border, #e5e5ea); margin: 16px 0; }
        .comment-item { display: flex; gap: 10px; margin-bottom: 0; }
        .comment-item .avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
        .comment-main { flex: 1; min-width: 0; }
        .comment-name { font-size: 13px; font-weight: 600; }
        .comment-text { font-size: 14px; color: var(--text-main); margin-top: 2px; line-height: 1.5; }
        .comment-time { font-size: 11px; color: var(--text-sub); margin-top: 3px; }
        .empty-comments { text-align: center; color: var(--text-sub); font-size: 13px; padding: 20px 0; }

        /* 评论输入 */
        .forum-comment-input-wrap { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--border, #e5e5ea); flex-shrink: 0; }
        .forum-comment-input { flex: 1; border: 1px solid var(--border, #e5e5ea); background: var(--card-bg, #fff); border-radius: 100px; padding: 10px 16px; font-size: 14px; outline: none; font-family: inherit; color: var(--text-main); }
        .forum-comment-input:focus { border-color: var(--primary, #0071e3); }
        .forum-comment-send { width: 36px; height: 36px; border-radius: 50%; background: var(--primary, #0071e3); border: none; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
        .forum-comment-send svg { width: 16px; height: 16px; }

        /* 我的帖子 */
        .forum-myposts-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
        .forum-myposts-stat { padding: 10px; border-radius: 12px; background: var(--card-bg, #f5f5f7); text-align: center; }
        .forum-myposts-stat .num { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
        .forum-myposts-stat .label { font-size: 0.72rem; color: var(--text-sub); margin-top: 2px; }
        .forum-myposts-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
        .forum-myposts-tabs::-webkit-scrollbar { display: none; }
        .forum-myposts-tab { flex-shrink: 0; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.06); background: transparent; color: var(--text-sub); font-size: 0.78rem; font-weight: 600; cursor: pointer; }
        .forum-myposts-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
        .forum-myposts-list { display: flex; flex-direction: column; gap: 8px; max-height: 45vh; overflow-y: auto; }
        .forum-mypost-item { padding: 12px; border-radius: 12px; background: var(--card-bg, #f5f5f7); }
        .forum-mypost-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
        .forum-mypost-title { font-size: 0.88rem; font-weight: 650; }
        .forum-mypost-status { font-size: 0.68rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
        .forum-mypost-status.pending { background: rgba(255,149,0,0.12); color: #c77c00; }
        .forum-mypost-status.ai-running { background: rgba(0,113,227,0.12); color: #0071e3; }
        .forum-mypost-status.ai-failed { background: rgba(255,149,0,0.14); color: #b66a00; }
        .forum-mypost-status.approved { background: rgba(52,199,89,0.12); color: #248a3d; }
        .forum-mypost-status.rejected { background: rgba(255,59,48,0.12); color: #c4261d; }
        .forum-mypost-meta { font-size: 0.72rem; color: var(--text-sub); }
        .forum-mypost-note { font-size: 0.72rem; color: var(--text-sub); margin-top: 4px; }
        .forum-mypost-note.approved { color: #248a3d; }
        .forum-mypost-note.rejected { color: #c4261d; }
        .forum-mypost-ai-note { margin-top: 5px; color: #0071e3; font-size: 0.72rem; line-height: 1.5; }
        .forum-mypost-ai-note.error { color: #c4261d; }
        .forum-detail-review-status { margin: 8px 0 12px; padding: 8px 10px; border-radius: 10px; color: #0071e3; background: rgba(0,113,227,0.08); font-size: 0.78rem; line-height: 1.5; }
        .forum-detail-review-status.error { color: #c4261d; background: rgba(255,59,48,0.08); }
        .forum-mypost-actions { display: flex; gap: 8px; margin-top: 6px; }
        .forum-mypost-actions button { border: 0; padding: 5px 12px; border-radius: 8px; font-size: 0.72rem; font-weight: 600; cursor: pointer; }
        .forum-mypost-edit { background: rgba(0,113,227,0.1); color: #0071e3; }
        .forum-mypost-delete { background: rgba(255,59,48,0.1); color: #c4261d; }

        .forum-empty { text-align: center; padding: 40px 20px; color: var(--text-sub); font-size: 0.85rem; }

        /* ========== 页面视图 ========== */
        /* Forum profile follows the compact native mobile information layout. */
        #forum-myposts-sheet { background: rgba(0, 0, 0, 0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        #forum-myposts-sheet .forum-sheet { width: 100%; max-width: none; margin: 0; background: #f7f8fa; color: #111827; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18); }
        #forum-myposts-sheet .forum-create-header { position: sticky; top: 0; height: 52px; min-height: 52px; max-height: 52px; padding: 0 16px; justify-content: center; background: rgba(247, 248, 250, 0.86); border-bottom: 0; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
        #forum-myposts-sheet .forum-create-header h3 { position: static; transform: none; font-size: 17px; font-weight: 650; color: #111827; }
        #forum-myposts-sheet .forum-sheet-close { position: absolute; left: 16px; width: 30px; height: 30px; min-width: 30px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.05); color: #4b5563; font-size: 20px; line-height: 28px; text-align: center; }
        #forum-myposts-sheet .forum-sheet-close:active { transform: scale(0.92); }
        #forum-myposts-sheet .forum-sheet-content { padding: 8px 16px calc(env(safe-area-inset-bottom, 0px) + 24px); background: #f7f8fa; }
        #forum-myposts-sheet .forum-myposts-profile { margin-bottom: 12px; }
        #forum-myposts-sheet .forum-myposts-profile > div:first-child { padding: 16px 18px !important; border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 16px; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03); }
        #forum-myposts-sheet .forum-myposts-profile > div:first-child > div { gap: 12px !important; }
        #forum-myposts-sheet .forum-profile-avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: var(--primary, #0071e3); box-shadow: 0 4px 10px rgba(0, 113, 227, 0.2); font-size: 18px; }
        #forum-myposts-sheet .forum-myposts-profile > div:first-child > div > div:last-child { min-width: 0; }
        #forum-myposts-sheet .forum-myposts-profile > div:first-child > div > div:last-child > div:first-child { margin-bottom: 2px !important; color: #9ca3af !important; font-size: 12px !important; }
        #forum-myposts-sheet .forum-myposts-profile > div:first-child > div > div:last-child > div:last-child { color: #111827 !important; font-size: 16px !important; font-weight: 600 !important; }
        #forum-myposts-sheet .forum-myposts-profile .btn-text { min-width: 0; padding: 6px 14px; border: 0; border-radius: 999px; background: #f3f4f6; color: #374151 !important; font-size: 13px !important; font-weight: 500; }
        #forum-myposts-sheet .forum-myposts-stats { gap: 10px; margin-bottom: 12px; }
        #forum-myposts-sheet .forum-myposts-stat { padding: 14px 16px; border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 16px; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03); }
        #forum-myposts-sheet .forum-myposts-stat .num { margin-bottom: 4px; color: #2563eb; font-size: 26px; line-height: 1.1; }
        #forum-myposts-sheet .forum-myposts-stat .label { color: #6b7280; font-size: 12px; }
        #forum-myposts-sheet .forum-myposts-tabs { display: flex; gap: 2px; margin: 2px 0 12px; padding: 3px; border-radius: 12px; background: #e5e7eb; overflow: hidden; }
        #forum-myposts-sheet .forum-myposts-tab { flex: 1; min-width: 0; padding: 7px 0; border: 0; border-radius: 9px; background: transparent; color: #6b7280; font-size: 13px; font-weight: 500; }
        #forum-myposts-sheet .forum-myposts-tab.active { background: #fff; color: #111827; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
        #forum-myposts-sheet .forum-myposts-list { display: flex; flex-direction: column; gap: 12px; max-height: none; }
        #forum-myposts-sheet .forum-mypost-item { padding: 16px; border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 16px; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03); }
        #forum-myposts-sheet .forum-mypost-head { gap: 10px; margin-bottom: 8px; }
        #forum-myposts-sheet .forum-mypost-title { min-width: 0; color: #111827; font-size: 15px; font-weight: 600; }
        #forum-myposts-sheet .forum-mypost-status { flex-shrink: 0; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; }
        #forum-myposts-sheet .forum-mypost-meta { color: #9ca3af; font-size: 12px; }
        #forum-myposts-sheet .forum-mypost-note { margin-top: 8px; font-size: 12px; line-height: 1.5; }
        #forum-myposts-sheet .forum-mypost-actions { gap: 8px; margin-top: 12px; }
        #forum-myposts-sheet .forum-mypost-actions button { padding: 6px 12px; border-radius: 8px; font-size: 12px; }
        #forum-myposts-sheet .forum-empty { padding: 42px 20px; color: #9ca3af; }
        [data-theme="dark"] #forum-myposts-sheet .forum-sheet, [data-theme="dark"] #forum-myposts-sheet .forum-sheet-content, [data-theme="dark"] #forum-myposts-sheet .forum-create-header { background: #1c1c1e; color: #f5f5f7; }
        [data-theme="dark"] #forum-myposts-sheet .forum-myposts-profile > div:first-child, [data-theme="dark"] #forum-myposts-sheet .forum-myposts-stat, [data-theme="dark"] #forum-myposts-sheet .forum-mypost-item { background: #2c2c2e; border-color: rgba(255,255,255,0.08); }
        [data-theme="dark"] #forum-myposts-sheet .forum-create-header h3, [data-theme="dark"] #forum-myposts-sheet .forum-mypost-title, [data-theme="dark"] #forum-myposts-sheet .forum-myposts-profile > div:first-child > div > div:last-child > div:last-child { color: #f5f5f7 !important; }

        .page-view { display: none; position: relative; padding-bottom: 150px; }
        #page-schedule { background-color: #fff; }
        .page-view.active { display: block; animation: fadeIn 0.25s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
        .page-data-loading { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; min-height: 260px; background: rgba(245,245,247,0.94); color: var(--text-sub); font-size: 0.86rem; font-weight: 650; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, visibility 0.2s ease; }
        .page-view.is-loading .page-data-loading { opacity: 1; visibility: visible; pointer-events: auto; }
        .forum-loader { --dur: 1s; position: relative; width: 84px; height: 84px; font-size: 7px; flex: 0 0 auto; }
        .forum-loader .wheel, .forum-loader .hamster, .forum-loader .hamster div, .forum-loader .spoke { position: absolute; }
        .forum-loader .wheel, .forum-loader .spoke { border-radius: 50%; top: 0; left: 0; width: 100%; height: 100%; }
        .forum-loader .wheel { background: radial-gradient(100% 100% at center, hsla(0,0%,60%,0) 47.8%, hsl(0,0%,60%) 48%); z-index: 2; }
        .forum-loader .hamster { animation: forumHamster var(--dur) ease-in-out infinite; top: 50%; left: calc(50% - 3.5em); width: 7em; height: 3.75em; transform: rotate(4deg) translate(-.8em,1.85em); transform-origin: 50% 0; z-index: 1; }
        .forum-loader .hamster__head { animation: forumHamsterHead var(--dur) ease-in-out infinite; background: hsl(30,90%,55%); border-radius: 70% 30% 0 100% / 40% 25% 25% 60%; box-shadow: 0 -.25em 0 hsl(30,90%,80%) inset, .75em -1.55em 0 hsl(30,90%,90%) inset; top: 0; left: -2em; width: 2.75em; height: 2.5em; transform-origin: 100% 50%; }
        .forum-loader .hamster__ear { animation: forumHamsterEar var(--dur) ease-in-out infinite; background: hsl(0,90%,85%); border-radius: 50%; box-shadow: -.25em 0 hsl(30,90%,55%) inset; top: -.25em; right: -.25em; width: .75em; height: .75em; transform-origin: 50% 75%; }
        .forum-loader .hamster__eye { animation: forumHamsterEye var(--dur) linear infinite; background: #000; border-radius: 50%; top: .375em; left: 1.25em; width: .5em; height: .5em; }
        .forum-loader .hamster__nose { background: hsl(0,90%,75%); border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%; top: .75em; left: 0; width: .2em; height: .25em; }
        .forum-loader .hamster__body { animation: forumHamsterBody var(--dur) ease-in-out infinite; background: hsl(30,90%,90%); border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%; box-shadow: .1em .75em 0 hsl(30,90%,55%) inset, .15em -.5em 0 hsl(30,90%,80%) inset; top: .25em; left: 2em; width: 4.5em; height: 3em; transform-origin: 17% 50%; transform-style: preserve-3d; }
        .forum-loader .hamster__limb--fr, .forum-loader .hamster__limb--fl { clip-path: polygon(0 0,100% 0,70% 80%,60% 100%,0% 100%,40% 80%); top: 2em; left: .5em; width: 1em; height: 1.5em; transform-origin: 50% 0; }
        .forum-loader .hamster__limb--fr { animation: forumHamsterFRLimb var(--dur) linear infinite; background: linear-gradient(hsl(30,90%,80%) 80%,hsl(0,90%,75%) 80%); transform: rotate(15deg) translateZ(-1px); }
        .forum-loader .hamster__limb--fl { animation: forumHamsterFLLimb var(--dur) linear infinite; background: linear-gradient(hsl(30,90%,90%) 80%,hsl(0,90%,85%) 80%); transform: rotate(15deg); }
        .forum-loader .hamster__limb--br, .forum-loader .hamster__limb--bl { border-radius: .75em .75em 0 0; clip-path: polygon(0 0,100% 0,100% 30%,70% 90%,70% 100%,30% 100%,40% 90%,0% 30%); top: 1em; left: 2.8em; width: 1.5em; height: 2.5em; transform-origin: 50% 30%; }
        .forum-loader .hamster__limb--br { animation: forumHamsterBRLimb var(--dur) linear infinite; background: linear-gradient(hsl(30,90%,80%) 90%,hsl(0,90%,75%) 90%); transform: rotate(-25deg) translateZ(-1px); }
        .forum-loader .hamster__limb--bl { animation: forumHamsterBLLimb var(--dur) linear infinite; background: linear-gradient(hsl(30,90%,90%) 90%,hsl(0,90%,85%) 90%); transform: rotate(-25deg); }
        .forum-loader .hamster__tail { animation: forumHamsterTail var(--dur) linear infinite; background: hsl(0,90%,85%); border-radius: .25em 50% 50% .25em; box-shadow: 0 -.2em 0 hsl(0,90%,75%) inset; top: 1.5em; right: -.5em; width: 1em; height: .5em; transform: rotate(30deg) translateZ(-1px); transform-origin: .25em .25em; }
        .forum-loader .spoke { animation: forumSpoke var(--dur) linear infinite; background: radial-gradient(100% 100% at center,hsl(0,0%,60%) 4.8%,hsla(0,0%,60%,0) 5%), linear-gradient(hsla(0,0%,55%,0) 46.9%,hsl(0,0%,65%) 47% 52.9%,hsla(0,0%,65%,0) 53%) 50% 50% / 99% 99% no-repeat; }
        .forum-shop-loading { grid-column: 1 / -1; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-sub); font-size: .84rem; }
        #iframe-page-loader { position: fixed; inset: 0; z-index: 10001; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--bg-main, #f5f5f7); color: var(--text-sub); font-size: .86rem; font-weight: 650; }
        #iframe-page-loader.show { display: flex; }
        #iframe-page-loader-progress { width: min(280px, 72vw); height: 8px; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,.08); }
        #iframe-page-loader-progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34c759, #30d158); transition: width .2s ease; }
        #iframe-page-loader-eta { color: var(--text-sub); font-size: .76rem; font-weight: 500; }
        /* 树叶商店父页面骨架层：点击立即显示，覆盖 iframe 加载期间的空白 */
        #market-page-loader { position: fixed; inset: 0; z-index: 10001; display: none; overflow-y: auto; background: var(--bg-main, #f5f5f7); padding: 16px; box-sizing: border-box; }
        #market-page-loader.show { display: block; }
        .market-loader-scroll { max-width: 600px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 60px 0 20px; }
        @media (max-width: 550px) { .market-loader-scroll { gap: 10px; padding: 56px 0 16px; } }
        .market-loader-card { background: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
        .market-loader-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
        #market-page-loader .sk { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(0,0,0,.045) 25%, rgba(0,0,0,.09) 50%, rgba(0,0,0,.045) 75%); background-size: 200% 100%; border-radius: 8px; animation: skeletonShimmer 1.5s ease-in-out infinite; }
        @keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

        /* ===== 通用父页面骨架层（按类型填充，覆盖 iframe 加载空白） ===== */
        #page-skeleton-loader { position: fixed; inset: 0; z-index: 10001; display: none; overflow-y: auto; background: var(--bg-main, #f5f5f7); }
        #page-skeleton-loader.show { display: block; }
        #page-skeleton-loader .ps-wrap { max-width: 680px; margin: 0 auto; padding: 64px 16px 24px; box-sizing: border-box; }
        #page-skeleton-loader .ps-navbar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
        #page-skeleton-loader .sk { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(0,0,0,.045) 25%, rgba(0,0,0,.09) 50%, rgba(0,0,0,.045) 75%); background-size: 200% 100%; border-radius: 8px; animation: skeletonShimmer 1.5s ease-in-out infinite; }
        /* 列表骨架 */
        #page-skeleton-loader .ps-list-item { display: flex; gap: 12px; background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
        /* 对话骨架 */
        #page-skeleton-loader .ps-chat-item { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
        #page-skeleton-loader .ps-chat-item.right { flex-direction: row-reverse; }
        #page-skeleton-loader .ps-chat-bubble { flex: 1; }
        /* 表单骨架 */
        #page-skeleton-loader .ps-form-group { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
        /* 通用卡片骨架 */
        #page-skeleton-loader .ps-card { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
        #page-skeleton-loader .farm-skeleton { max-width: 1100px; min-height: 100dvh; padding-top: 14px; display: flex; flex-direction: column; gap: 14px; }
        #page-skeleton-loader .farm-skeleton .sk { background: linear-gradient(90deg, rgba(74,113,73,.08) 25%, rgba(74,113,73,.16) 50%, rgba(74,113,73,.08) 75%); background-size: 200% 100%; }
        #page-skeleton-loader .farm-skeleton-topbar { display: flex; align-items: center; gap: 10px; min-height: 48px; }
        #page-skeleton-loader .farm-skeleton-map { position: relative; flex: 1; min-height: min(68dvh, 650px); overflow: hidden; border-radius: 22px; background: rgba(232,242,230,.64); border: 1px solid rgba(48,78,53,.08); }
        #page-skeleton-loader .farm-skeleton-profile { position: absolute; top: 18px; left: 18px; display: grid; grid-template-columns: 42px minmax(80px, 150px); gap: 8px; align-items: center; width: 230px; padding: 12px; background: rgba(255,255,255,.78); border-radius: 15px; }
        #page-skeleton-loader .farm-skeleton-profile .sk:nth-child(2), #page-skeleton-loader .farm-skeleton-profile .sk:nth-child(3) { grid-column: 2; }
        #page-skeleton-loader .farm-skeleton-plots { position: absolute; inset: 50% auto auto 50%; display: grid; grid-template-columns: repeat(3, 70px); column-gap: 12px; row-gap: 14px; transform: translate(-50%, -50%); }
        #page-skeleton-loader .farm-skeleton-plots > .sk { width: 100%; height: 62px; min-width: 0; min-height: 0; }
        #page-skeleton-loader .farm-skeleton-dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; background: rgba(255,255,255,.9); border: 1px solid rgba(48,78,53,.08); border-radius: 18px; }
        #page-skeleton-loader .farm-skeleton-dock > div { padding: 8px 4px; text-align: center; }
        @media (max-width: 550px) { #page-skeleton-loader .farm-skeleton { padding: 10px; } #page-skeleton-loader .farm-skeleton-map { min-height: 64dvh; } #page-skeleton-loader .farm-skeleton-profile { left: 12px; top: 12px; width: 195px; } #page-skeleton-loader .farm-skeleton-plots { grid-template-columns: repeat(3, 54px); column-gap: 8px; row-gap: 10px; } }
        @keyframes forumHamster { from, to { transform: rotate(4deg) translate(-.8em,1.85em); } 50% { transform: rotate(0) translate(-.8em,1.85em); } }
        @keyframes forumHamsterHead { from, 25%, 50%, 75%, to { transform: rotate(0); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(8deg); } }
        @keyframes forumHamsterEye { from, 90%, to { transform: scaleY(1); } 95% { transform: scaleY(0); } }
        @keyframes forumHamsterEar { from, 25%, 50%, 75%, to { transform: rotate(0); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(12deg); } }
        @keyframes forumHamsterBody { from, 25%, 50%, 75%, to { transform: rotate(0); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-2deg); } }
        @keyframes forumHamsterFRLimb { from, 25%, 50%, 75%, to { transform: rotate(50deg) translateZ(-1px); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-30deg) translateZ(-1px); } }
        @keyframes forumHamsterFLLimb { from, 25%, 50%, 75%, to { transform: rotate(-30deg); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(50deg); } }
        @keyframes forumHamsterBRLimb { from, 25%, 50%, 75%, to { transform: rotate(-60deg) translateZ(-1px); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(20deg) translateZ(-1px); } }
        @keyframes forumHamsterBLLimb { from, 25%, 50%, 75%, to { transform: rotate(20deg); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-60deg); } }
        @keyframes forumHamsterTail { from, 25%, 50%, 75%, to { transform: rotate(30deg) translateZ(-1px); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(10deg); } }
        @keyframes forumSpoke { from { transform: rotate(0); } to { transform: rotate(-1turn); } }
        @media (prefers-reduced-motion: reduce) { .forum-loader, .forum-loader * { animation-duration: 3s !important; } }
        /* ===== 论坛骨架屏覆盖层 ===== */
        #page-square .forum-sk-loading { display: block; padding: 20px 16px; overflow-y: auto; }
        #page-square .forum-sk-wrap { max-width: 600px; margin: 0 auto; }
        #page-square .forum-sk-stats { display: flex; gap: 10px; margin-bottom: 16px; }
        #page-square .forum-sk-stat { flex: 1; height: 64px; border-radius: 14px; }
        #page-square .forum-sk-search { height: 42px; border-radius: 21px; margin-bottom: 14px; }
        #page-square .forum-sk-cats { display: flex; gap: 8px; margin-bottom: 16px; }
        #page-square .forum-sk-cat { width: 56px; height: 28px; border-radius: 14px; }
        #page-square .forum-sk-posts { display: flex; gap: 12px; }
        #page-square .forum-sk-col { flex: 1; display: flex; flex-direction: column; gap: 12px; }
        #page-square .forum-sk-card { border-radius: 14px; }
        #page-square .forum-sk-loading > .forum-sk-wrap .sk { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(0,0,0,.045) 25%, rgba(0,0,0,.09) 50%, rgba(0,0,0,.045) 75%); background-size: 200% 100%; border-radius: 8px; animation: skeletonShimmer 1.5s ease-in-out infinite; }
        [data-theme="dark"] #page-square .forum-sk-loading > .forum-sk-wrap .sk { background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.05) 75%); background-size: 200% 100%; }
        @media (prefers-reduced-motion: reduce) { #page-square .forum-sk-loading .sk { animation-duration: 3s !important; } }
        /* ========== 信息页快捷跳转 ========== */
        .info-jump-bar {
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
            padding: 4px 0 10px; margin-bottom: 8px;
        }
        .info-jump-capsule {
            padding: 8px 6px; border-radius: 14px;
            background: var(--card-bg); backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            font-size: 0.75rem; font-weight: 600; text-align: center;
            color: var(--text-main); cursor: pointer;
            border: 0.5px solid rgba(128,128,128,0.14);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            transition: all 0.15s; letter-spacing: -0.01em;
        }
        .info-jump-capsule:active {
            background: var(--primary-light); color: var(--primary);
            border-color: rgba(0,113,227,0.2);
        }
        .info-empty-state {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            min-height: 42vh; padding: 48px 24px 80px; text-align: center;
            color: var(--text-sub);
        }
        .info-empty-icon {
            display: flex; align-items: center; justify-content: center;
            width: 58px; height: 58px; margin-bottom: 16px;
            border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
            border-radius: 50%; color: var(--primary); background: var(--primary-light);
        }
        .info-empty-icon svg { width: 27px; height: 27px; }
        .info-empty-state h2 { margin: 0; color: var(--text-main); font-size: 1rem; font-weight: 700; }
        .info-empty-state p { max-width: 240px; margin: 7px 0 0; color: var(--text-sub); font-size: 0.8rem; line-height: 1.55; }
        .info-back-top {
            position: fixed;
            right: 18px;
            bottom: calc(86px + env(safe-area-inset-bottom, 0px));
            width: 46px;
            height: 46px;
            border: 0.5px solid rgba(128,128,128,0.16);
            border-radius: 50%;
            background: rgba(255,255,255,0.82);
            color: var(--primary);
            backdrop-filter: blur(22px);
            -webkit-backdrop-filter: blur(22px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.10);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 450;
            transition: transform 0.2s, background 0.2s;
            -webkit-tap-highlight-color: transparent;
        }
        .info-back-top svg {
            width: 22px;
            height: 22px;
        }
        .info-back-top:active {
            transform: scale(0.94);
            background: rgba(255,255,255,0.92);
        }
        .toast { min-width: 220px; max-width: min(360px, calc(100vw - 32px)); background: rgba(255,255,255,0.66); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%); border: 0.5px solid rgba(255,255,255,0.78); border-radius: 22px; box-shadow: 0 18px 42px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.52); padding: 12px 14px; margin-bottom: 10px; font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; gap: 10px; pointer-events: auto; opacity: 0; transform: translateY(-10px) scale(0.96); transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); color: var(--text-main); }
        .toast.show { opacity: 1; transform: translateY(0) scale(1); }
        .toast-icon-wrap { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(0,113,227,0.12); color: var(--primary); }
        .toast.success .toast-icon-wrap { background: rgba(52,199,89,0.14); color: #34c759; }
        .toast.error .toast-icon-wrap { background: rgba(255,59,48,0.14); color: var(--danger); }
        .toast.info .toast-icon-wrap { background: rgba(0,113,227,0.12); color: var(--primary); }
        .toast-icon { width: 16px; height: 16px; flex-shrink: 0; }
        .toast-message { line-height: 1.35; word-break: break-word; }
        .toast.feedback-reply { align-items: flex-start; min-width: 280px; pointer-events: auto; }
        .toast.poll-toast { position: relative; align-items: flex-start; width: min(260px, calc(100vw - 32px)); max-width: min(260px, calc(100vw - 32px)); padding: 15px 38px 15px 15px; pointer-events: auto; }
        .toast.poll-toast.survey-mode { width: min(360px, calc(100vw - 20px)); max-width: min(360px, calc(100vw - 20px)); align-items: stretch; }
        .toast.poll-toast.survey-mode .toast-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
        .toast.poll-toast.survey-mode .toast-title, .toast.poll-toast.survey-mode .toast-subtitle { width: 100%; }
        .toast-content { min-width: 0; flex: 1; }
        .toast-title { font-size: 0.9rem; font-weight: 750; color: var(--text-main); margin-bottom: 3px; }
        .toast-subtitle { font-size: 0.78rem; font-weight: 500; color: var(--text-sub); line-height: 1.45; }
        .toast.poll-toast .toast-title { font-size: 1rem; line-height: 1.35; margin-bottom: 5px; }
        .toast.poll-toast .toast-subtitle { font-size: 0.84rem; line-height: 1.55; white-space: pre-wrap; }
        .toast-actions { display: flex; gap: 8px; margin-top: 10px; }
        .toast-action { border: 0; border-radius: 12px; padding: 7px 12px; font-size: 0.78rem; font-weight: 700; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
        .toast-action-icon { width: 14px; height: 14px; flex-shrink: 0; }
        .toast-action.secondary { background: rgba(0,0,0,0.06); color: var(--text-main); }
        .toast-action.primary { background: var(--primary); color: #fff; }
        #unread-toast-container { position: fixed; top: 54px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 10050; pointer-events: none; }
        .unread-notification-toast { pointer-events: auto; width: 268px; max-width: calc(100vw - 24px); background: rgba(255,255,255,0.66); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%); border: 0.5px solid rgba(255,255,255,0.78); border-radius: 22px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; box-shadow: 0 18px 42px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.52); color: var(--text-main); opacity: 0; transform: translateY(-30px); animation: unread-toast-drop-in 0.42s cubic-bezier(.21,1.02,.73,1) forwards; }
        .unread-notification-toast.hide { animation: unread-toast-drop-out 0.3s ease forwards; }
        @keyframes unread-toast-drop-in { to { transform: translateY(0); opacity: 1; } }
        @keyframes unread-toast-drop-out { to { transform: translateY(-24px); opacity: 0; } }
        .unread-toast-icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; }
        .unread-notification-toast.msg .unread-toast-icon { background: linear-gradient(135deg, #3a7dff, #6fa0ff); }
        .unread-notification-toast.mail .unread-toast-icon { background: linear-gradient(135deg, #ff8a5c, #ffb26b); }
        .unread-toast-icon-svg { width: 15px; height: 15px; flex-shrink: 0; }
        .unread-toast-body { flex: 1; min-width: 0; }
        .unread-toast-title { display: flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--text-main); }
        .unread-toast-badge { background: rgba(0,0,0,0.06); color: var(--text-sub); font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
        .unread-toast-desc { margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--text-sub); }
        .unread-toast-view { flex: 0 0 auto; border: 0; background: var(--primary); color: #fff; font-family: inherit; font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
        .unread-toast-close { flex: 0 0 auto; border: 0; background: none; color: #c6c8d0; padding: 2px 0 2px 2px; cursor: pointer; }
        .unread-toast-close-icon { display: block; width: 15px; height: 15px; }
        .unread-toast-view:active, .unread-toast-close:active { transform: scale(0.94); }
        .poll-result-card { display: none; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid rgba(0,113,227,0.12); }
        .poll-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
        .poll-result-title { font-weight: 750; color: var(--text-main); line-height: 1.35; }
        .poll-result-meta { color: var(--text-sub); font-size: 0.74rem; white-space: nowrap; }
        .poll-result-option { margin-top: 9px; }
        .poll-result-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.82rem; font-weight: 650; margin-bottom: 5px; }
        .poll-result-bar { height: 7px; border-radius: 999px; background: rgba(0,0,0,0.06); overflow: hidden; }
        .poll-result-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #34c759, var(--primary)); transition: width 0.25s ease; }
        .poll-modal-card { width: min(440px, 92vw); padding: 24px; text-align: left; }
        .poll-modal-title { margin: 0 0 8px; color: var(--text-main); font-size: 1.25rem; line-height: 1.35; }
        .poll-modal-content { color: var(--text-sub); font-size: 0.92rem; line-height: 1.6; white-space: pre-wrap; margin-bottom: 16px; }
        .poll-option-list { display: grid; gap: 10px; margin: 14px 0; }
        .privacy-modal-card { width:min(340px,88vw); padding:28px 24px; text-align:center; border-radius:28px; overflow:hidden; }
        .privacy-modal-head { display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:10px; }
        .privacy-modal-icon { width:54px; height:54px; display:grid; place-items:center; border-radius:18px; background:rgba(0,113,227,.1); color:var(--primary); }
        .privacy-modal-icon svg { width:30px; height:30px; }
        .privacy-modal-desc { margin:0 0 18px; color:var(--text-sub); font-size:.82rem; line-height:1.55; }
        .privacy-switch-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; text-align:left; border-radius:18px; background:rgba(118,118,128,.08); }
        .privacy-switch-title { color:var(--text-main); font-weight:750; font-size:.92rem; }
        .privacy-switch-hint { color:var(--text-sub); font-size:.73rem; line-height:1.45; margin-top:4px; }
        .privacy-switch { position:relative; width:51px; height:31px; flex:0 0 51px; }
        .privacy-switch input { position:absolute; opacity:0; width:0; height:0; }
        .privacy-slider { position:absolute; inset:0; cursor:pointer; border-radius:999px; background:#d1d1d6; transition:background .22s ease; }
        .privacy-slider:before { content:''; position:absolute; width:27px; height:27px; left:2px; top:2px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.22); transition:transform .22s cubic-bezier(.34,1.56,.64,1); }
        .privacy-switch input:checked + .privacy-slider { background:#34c759; }
        .privacy-switch input:disabled + .privacy-slider { opacity:.45; cursor:not-allowed; }
        .privacy-switch input:checked + .privacy-slider:before { transform:translateX(20px); }
        .privacy-modal-foot { margin-top:18px; }
        .privacy-modal-close { width:100%; min-height:46px; padding:13px 16px; border:0; border-radius:14px; background:rgba(118,118,128,.12); color:var(--text-main); font:inherit; font-size:.92rem; font-weight:750; cursor:pointer; }
        .privacy-modal-close:active { transform:scale(.98); }
        #privacy-settings-modal .modal-content { background:rgba(255,255,255,.72); border:0.5px solid rgba(255,255,255,.78); box-shadow:0 20px 40px rgba(0,0,0,.1),inset 0 1px 1px rgba(255,255,255,.7); backdrop-filter:blur(40px) saturate(180%); -webkit-backdrop-filter:blur(40px) saturate(180%); }
        [data-theme="dark"] #privacy-settings-modal .modal-content { background:rgba(28,28,30,.94); border-color:rgba(255,255,255,.08); }
        [data-theme="dark"] .privacy-modal-icon { background:rgba(90,160,255,.16); }
        .toast.poll-toast.survey-mode .poll-option-list { display: flex; flex-direction: column; width: 100%; margin: 8px 0 0; gap: 10px; }
        .poll-toast-options { display: flex; flex-wrap: wrap; gap: 7px; margin: 11px 0 0; }
        .poll-option-btn { border: 0; border-radius: 12px; padding: 9px 12px; font-family: inherit; font-size: 0.84rem; font-weight: 700; color: var(--primary); background: var(--primary-light); cursor: pointer; text-align: center; }
        .poll-toast .poll-option-btn { flex: 0 1 auto; min-width: 72px; border-radius: 999px; padding: 6px 12px; font-size: 0.78rem; line-height: 1.15; }
        .poll-option-btn.poll-yes { color: #0071e3; background: rgba(0,113,227,0.12); }
        .poll-option-btn.poll-no { color: #ff3b30; background: rgba(255,59,48,0.12); }
        .poll-toast-close { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0,0,0,0.06); color: var(--text-sub); font-size: 0.95rem; line-height: 24px; text-align: center; padding: 0; cursor: pointer; }
        .poll-toast-close:active { transform: scale(0.94); }
        .poll-option-btn:active { transform: scale(0.98); }
        .poll-option-btn[disabled] { opacity: 0.55; cursor: default; }
        .poll-modal-actions { display: flex; gap: 10px; margin-top: 12px; }
        .poll-modal-actions button { flex: 1; }
        /* 调研模式 */
        .survey-footer { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; width: 100%; flex: 1; }
        .survey-custom-textarea { width: 100%; min-height: 68px; max-height: 120px; padding: 10px 12px; border: 1px solid rgba(0,0,0,0.1); border-radius: 10px; font-family: inherit; font-size: 0.84rem; line-height: 1.5; resize: vertical; background: rgba(255,255,255,0.6); color: var(--text-main); box-sizing: border-box; flex: 1; }
        .survey-submit-btn { width: 100%; padding: 10px 0; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font-family: inherit; font-size: 0.84rem; font-weight: 700; cursor: pointer; }
        .survey-submit-btn:active { opacity: 0.85; }
        .survey-submit-btn:disabled { opacity: 0.55; cursor: default; }
        .survey-reward-hint { font-size: 0.78rem; color: var(--primary); text-align: center; }
        .survey-multi-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(0,113,227,0.06); cursor: pointer; font-size: 0.84rem; font-weight: 600; color: var(--text-main); }
        .survey-multi-item:active { background: rgba(0,113,227,0.14); }
        .survey-multi-cb { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }

        /* iOS 风格更新公告弹窗 */
        .bulletin-overlay { position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.2);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);display:none;align-items:center;justify-content:center;z-index:2000;opacity:0;overscroll-behavior:none;transition:opacity 0.25s ease; }
        .bulletin-overlay.active { opacity:1; }
        .bulletin-card { width:min(310px,85vw);background:rgba(250,250,252,0.72);backdrop-filter:blur(40px) saturate(180%);-webkit-backdrop-filter:blur(40px) saturate(180%);border:0.5px solid rgba(255,255,255,0.78);border-radius:22px;padding:28px 24px 0;text-align:left;position:relative;box-shadow:0 20px 50px rgba(0,0,0,0.22);transform:scale(0.75) translateY(20px);opacity:0; }
        .bulletin-overlay.active .bulletin-card { animation:popupBounce 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards; }
        .iframe-fullscreen { position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999;display:none;pointer-events:none;border:none;background:var(--bg-main); }
        .iframe-fullscreen.visible { display:block;pointer-events:auto; }
         .iframe-back-btn { position:fixed;top:12px;left:14px;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,0.86);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 8px 24px rgba(0,0,0,0.12);color:var(--text-main);z-index:10000;display:none;pointer-events:none;align-items:center;justify-content:center;cursor:pointer; }
         .iframe-back-btn.visible { display:flex;pointer-events:auto; }
         .iframe-back-btn.suppressed { display:none !important;pointer-events:none !important; }
         .iframe-back-btn svg { width:22px;height:22px; }
         .iframe-back-btn:active { transform:scale(0.96);background:rgba(255,255,255,0.96); }
         .iframe-pass-leaderboard-btn { position:fixed;top:12px;left:62px;width:88px;height:40px;padding:0 10px;border:0;border-radius:20px;background:rgba(255,255,255,0.86);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 8px 24px rgba(0,0,0,0.12);color:var(--text-main);z-index:10000;display:none;pointer-events:none;align-items:center;justify-content:center;gap:4px;font:inherit;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer; }
         .iframe-pass-leaderboard-btn.visible { display:flex;pointer-events:auto; }
         .iframe-pass-leaderboard-btn svg { width:19px;height:19px;flex:0 0 19px; }
         .iframe-pass-leaderboard-btn:active { transform:scale(0.96);background:rgba(255,255,255,0.96); }
         .pass-leaderboard-overlay { position:fixed;inset:0;z-index:10010;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,0.22);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px); }
         .pass-leaderboard-overlay.visible { display:flex; }
         .pass-leaderboard-card { width:min(440px,calc(100vw - 32px));max-height:min(700px,calc(100vh - 32px));max-height:min(700px,calc(100dvh - 32px));overflow:hidden;border:1px solid rgba(255,255,255,0.78);border-radius:24px;background:rgba(255,255,255,0.92);backdrop-filter:blur(28px) saturate(180%);-webkit-backdrop-filter:blur(28px) saturate(180%);box-shadow:0 20px 50px rgba(0,0,0,0.2);color:var(--text-main); }
         .pass-leaderboard-titlebar { display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 22px 16px;border-bottom:1px solid rgba(0,0,0,0.07); }
         .pass-leaderboard-titlebar h2 { margin:0;font-size:1.15rem;line-height:1.35; }
         .pass-leaderboard-titlebar p { margin:5px 0 0;color:var(--text-sub);font-size:0.78rem; }
         .pass-leaderboard-close { width:30px;height:30px;flex:0 0 30px;border:0;border-radius:50%;background:rgba(0,0,0,0.06);color:var(--text-sub);font-size:1.35rem;line-height:1;cursor:pointer; }
         .pass-leaderboard-close:active { background:rgba(0,0,0,0.12); }
         .pass-leaderboard-list { max-height:calc(min(700px,100vh - 32px) - 86px);max-height:calc(min(700px,100dvh - 32px) - 86px);overflow-y:auto;padding:4px 0; }
         .pass-leaderboard-row { display:flex;align-items:center;gap:10px;min-width:0;padding:12px 18px;border-bottom:1px solid rgba(0,0,0,0.055); }
         .pass-leaderboard-row:last-child { border-bottom:0; }
         .pass-leaderboard-rank { width:22px;flex:0 0 22px;color:var(--text-sub);font-size:0.82rem;font-weight:800;text-align:center; }
         .pass-leaderboard-row:nth-child(1) .pass-leaderboard-rank { color:#d97706; }
         .pass-leaderboard-row:nth-child(2) .pass-leaderboard-rank { color:#64748b; }
         .pass-leaderboard-row:nth-child(3) .pass-leaderboard-rank { color:#b45309; }
         .pass-leaderboard-avatar { width:42px;height:42px;flex:0 0 42px;overflow:hidden;border-radius:50%;background:#eef2f3; }
         .pass-leaderboard-avatar img { display:block;width:100%;height:100%;object-fit:cover; }
         .pass-leaderboard-user { min-width:0;flex:1; }
         .pass-leaderboard-name { overflow:hidden;color:var(--text-main);font-size:0.88rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap; }
         .pass-leaderboard-meta { display:flex;align-items:center;gap:6px;margin-top:5px; }
         .pass-leaderboard-edition { padding:2px 7px;border-radius:999px;font-size:0.68rem;font-weight:700;white-space:nowrap; }
         .pass-leaderboard-edition.basic { background:rgba(100,116,139,0.12);color:#64748b; }
         .pass-leaderboard-edition.elite { background:rgba(214,109,70,0.12);color:#c45d37; }
         .pass-leaderboard-exp { color:var(--text-sub);font-size:0.68rem; }
         .pass-leaderboard-level { flex:0 0 auto;color:var(--primary);font-size:0.92rem;font-weight:800; }
         .pass-leaderboard-state { padding:34px 20px;color:var(--text-sub);font-size:0.84rem;text-align:center; }
         @media (prefers-reduced-motion: reduce) { .pass-leaderboard-overlay { backdrop-filter:none;-webkit-backdrop-filter:none; } }
         .bulletin-close { position:absolute;top:10px;right:10px;width:28px;height:28px;border:0;border-radius:50%;background:rgba(0,0,0,0.06);color:#8e8e93;font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;pointer-events:auto; }
        .bulletin-close:active { background:rgba(0,0,0,0.12); }
        .bulletin-version { display:inline-block;padding:3px 12px;border-radius:999px;background:rgba(0,113,227,0.1);color:var(--primary);font-size:0.72rem;font-weight:700;margin-bottom:10px; }
        .bulletin-title { font-size:1.15rem;font-weight:750;color:#1c1c1e;margin:0 0 10px;line-height:1.35; }
        .bulletin-body { font-size:0.86rem;color:#636366;line-height:1.65;margin-bottom:20px;text-align:left;white-space:pre-wrap;max-height:40vh;overflow-y:auto; }
        .bulletin-btn { width:100%;padding:14px 0;border:0;border-radius:14px;background:var(--primary);color:#fff;font-size:1rem;font-weight:700;font-family:inherit;cursor:pointer; }
        .bulletin-btn:active { opacity:0.8; }
        .bulletin-footer { margin:0 -24px;padding:14px 24px;border-top:0.5px solid rgba(0,0,0,0.08); }

        /* 更新公告窗口皮肤必须放在旧版公告规则之后，确保覆盖生效。 */
        #bulletin-overlay .bulletin-card {
            width: min(440px, calc(100vw - 32px)); height: auto; max-height: 85vh; max-height: 85dvh; touch-action: pan-y;
            padding: 0; overflow: hidden; border: 1px solid rgba(0,0,0,0.12); border-radius: 24px !important; background-clip: padding-box;
            background: rgba(255,255,255,0.92); backdrop-filter: blur(25px) saturate(180%); -webkit-backdrop-filter: blur(25px) saturate(180%);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.2); color: #1d1d1f;
            display: flex; flex-direction: column; position: relative; transform: none;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
            -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-synthesis: none;
            animation: none;
        }
        #bulletin-overlay.active .bulletin-card { animation: bulletinWindowIn 220ms cubic-bezier(0.22,1,0.36,1) both; }
        @keyframes bulletinWindowIn { from { opacity: 0; transform: scale(0.98) translateY(6px); } to { opacity: 1; transform: none; } }
        #bulletin-overlay .bulletin-titlebar { background: transparent; border-bottom: 1px solid rgba(0,0,0,0.06); }
        #bulletin-overlay .bulletin-window-title { color: #3a3a3c; }
        #bulletin-overlay .bulletin-window-body { flex: 1; min-height: 0; padding: 24px 24px 20px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; background: transparent; font-family: inherit; }
        #bulletin-overlay .bulletin-window-body, #bulletin-overlay .bulletin-window-body * { font-family: inherit; }
        #bulletin-overlay .bulletin-version { display: inline-block; margin-top: 2px; margin-bottom: 16px; padding: 2px 8px; border-radius: 12px; background: rgba(0,122,255,0.1); color: #007aff; font-size: 12px; font-weight: 600; }
        #bulletin-overlay .bulletin-body { max-height: none; margin: 0; color: #636366; font-size: 13px; line-height: 1.5; overflow: visible; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
        #bulletin-overlay .bulletin-body .notice-heading,
        #bulletin-overlay .bulletin-body .notice-bold-card,
        #bulletin-overlay .bulletin-body .notice-oimg-wrap,
        #bulletin-overlay .bulletin-body .notice-divider,
        #bulletin-overlay .bulletin-body .notice-numbered-list,
        #bulletin-overlay .bulletin-body .forum-tip { display: block; }
        #bulletin-overlay .bulletin-body > .notice-heading { margin-top: 0; }
        #bulletin-overlay .notice-oimg-wrap {
            position: relative; width: min(100%, 520px); min-height: 160px; aspect-ratio: 4 / 3;
            margin: 10px 0; overflow: hidden; border-radius: 14px; background: #f2f2f7;
            box-shadow: 0 8px 24px rgba(0,0,0,0.10);
        }
        #bulletin-overlay .notice-oimg-wrap::before {
            content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
            background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.55) 50%, transparent 75%);
            transform: translateX(-100%);
        }
        #bulletin-overlay .notice-oimg-wrap.is-loading::before {
            opacity: 1; animation: bulletinImageShimmer 1.4s ease-in-out infinite;
        }
        #bulletin-overlay .notice-oimg-wrap .notice-oimg {
            position: relative; z-index: 1; width: 100%; height: 100%; max-height: none;
            object-fit: contain; opacity: 0; transition: opacity 180ms ease;
        }
        #bulletin-overlay .notice-oimg-wrap.is-loaded {
            aspect-ratio: auto; min-height: 0; background: transparent;
        }
        #bulletin-overlay .notice-oimg-wrap.is-loaded .notice-oimg {
            width: 100%; height: auto; object-fit: initial; opacity: 1;
        }
        #bulletin-overlay .notice-oimg-wrap.is-error::after {
            content: '图片加载失败'; position: absolute; inset: 0; z-index: 2; display: flex;
            align-items: center; justify-content: center; color: #8e8e93; font-size: 12px;
        }
        #bulletin-overlay .notice-image-retry {
            position: absolute; left: 50%; bottom: 18px; z-index: 3; transform: translateX(-50%);
            min-width: 76px; height: 28px; padding: 0 12px; border: 1px solid rgba(0,0,0,0.12);
            border-radius: 6px; background: rgba(255,255,255,0.88); color: #007aff;
            font: inherit; font-size: 12px; cursor: pointer;
        }
        #bulletin-overlay .notice-image-retry:hover { background: #fff; }
        @keyframes bulletinImageShimmer { to { transform: translateX(100%); } }
        @media (prefers-reduced-motion: reduce) {
            #bulletin-overlay .notice-oimg-wrap.is-loading::before { animation: none; opacity: 0; }
            #bulletin-overlay .notice-oimg-wrap .notice-oimg { transition: none; }
        }
        #bulletin-overlay .bulletin-video-container {
            position: relative; width: 100%; aspect-ratio: 1 / 1; margin: 0 auto 8px;
            overflow: hidden; border-radius: 16px; background: #000;
            box-shadow: 0 5px 16px rgba(0,0,0,0.14);
        }
        #bulletin-overlay .bulletin-video-container iframe {
            position: absolute; inset: 0; width: 100%; height: 100%;
            border: 0; background: #000;
        }
        #bulletin-overlay .bulletin-video-hint {
            display: block; margin: 0 0 16px; color: #8e8e93;
            font-size: 12px; line-height: 1.4; text-align: center;
        }
        #bulletin-overlay .bulletin-video-hint::before { content: '▶'; margin-right: 4px; font-size: 10px; }
        #bulletin-overlay .bulletin-footer { flex: 0 0 auto; margin: 0; padding: 12px 20px; border-top: 1px solid rgba(0,0,0,0.06); background: rgba(245,245,247,0.6); display: flex; justify-content: flex-end; align-items: center; }
        #bulletin-overlay .bulletin-btn { width: auto; min-width: 80px; height: 28px; padding: 0 16px; border: 0.5px solid rgba(0,0,0,0.15); border-radius: 6px; background: linear-gradient(180deg,#007aff 0%,#0062cc 100%); color: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.2); }
        #bulletin-overlay .bulletin-btn:hover { background: linear-gradient(180deg,#1a85ff 0%,#006be6 100%); }
        #bulletin-overlay .bulletin-btn:active { background: #0051b3; box-shadow: inset 0 1px 1px rgba(0,0,0,0.25); }
        @media (max-width: 480px) {
            #bulletin-overlay .bulletin-card { width: calc(100vw - 52px); max-height: 74vh; max-height: 74dvh; border-radius: 20px !important; }
            #bulletin-overlay .bulletin-window-body { padding: 24px 20px 18px; }
            #bulletin-overlay .bulletin-footer { padding: 12px 20px; }
        }

        /* 临时弹窗：安全系统巡查 START（最低弹窗层级，低于公告和紧急通知） */
        #temporary-security-modal {
            position: fixed;
            inset: 0;
            z-index: 900;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        #temporary-security-modal.active { display: flex; opacity: 1; }
        #temporary-security-modal .temporary-security-card {
            width: min(420px, 90vw);
            padding: 32px 24px 24px;
            border-radius: 16px;
            background: #fff;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            color: #111827;
            text-align: center;
            transform: scale(0.9) translateY(20px);
            opacity: 0;
            transition: transform 0.4s ease, opacity 0.4s ease;
        }
        #temporary-security-modal.active .temporary-security-card { transform: scale(1) translateY(0); opacity: 1; }
        #temporary-security-modal .temporary-security-icon-container {
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            border-radius: 50%;
            background-color: #ecfdf5;
            animation: temporarySecurityShieldBreath 2s infinite ease-in-out;
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
        }
        #temporary-security-modal .temporary-security-shield-icon { width: 44px; height: 44px; color: #10b981; }
        #temporary-security-modal .temporary-security-title,
        #temporary-security-modal .temporary-security-content,
        #temporary-security-modal .temporary-security-confirm {
            opacity: 0;
            transform: translateY(10px);
            transition: transform 0.4s ease, opacity 0.4s ease;
        }
        #temporary-security-modal.active .temporary-security-title { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
        #temporary-security-modal.active .temporary-security-content { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
        #temporary-security-modal.active .temporary-security-confirm { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
        #temporary-security-modal .temporary-security-title { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
        #temporary-security-modal .temporary-security-content { margin: 0 0 24px; color: #4b5563; font-size: 15px; line-height: 1.6; }
        #temporary-security-modal .temporary-security-highlight { color: #059669; font-weight: 600; }
        #temporary-security-modal .temporary-security-confirm {
            width: 100%;
            padding: 12px 24px;
            border: 0;
            border-radius: 24px;
            background: #2b2b2b;
            color: #fff;
            font: inherit;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s, transform 0.1s ease;
        }
        #temporary-security-modal .temporary-security-confirm:hover { background: #111; }
        #temporary-security-modal .temporary-security-confirm:active { transform: scale(0.98); }
        @keyframes temporarySecurityShieldBreath {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
            50% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
        }
        @media (max-width: 480px) {
            #temporary-security-modal { padding: 16px; }
            #temporary-security-modal .temporary-security-card {
                width: min(340px, calc(100vw - 48px));
                padding: 24px 18px 18px;
                border-radius: 14px;
            }
            #temporary-security-modal .temporary-security-icon-container {
                width: 64px;
                height: 64px;
                margin-bottom: 14px;
            }
            #temporary-security-modal .temporary-security-shield-icon { width: 36px; height: 36px; }
            #temporary-security-modal .temporary-security-title { margin-bottom: 8px; font-size: 18px; }
            #temporary-security-modal .temporary-security-content { margin-bottom: 16px; font-size: 13px; line-height: 1.5; }
            #temporary-security-modal .temporary-security-confirm { padding: 10px 18px; font-size: 13px; }
        }
        /* 临时弹窗：安全系统巡查 END */

        .weather-card { margin-bottom: 16px; padding: 16px; border-radius: var(--radius); }
        .weather-warning { background: rgba(255,59,48,0.1); border-left: 4px solid var(--danger); padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 0.85rem; display: flex; flex-direction: column; gap: 4px; }
        .weather-warning.hidden { display: none; }
        .weather-today { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
        .weather-today .main { display: flex; align-items: center; gap: 12px; }
        .weather-today .main i { font-size: 2.5rem; color: var(--primary); }
        .weather-today .temp { font-size: 2rem; font-weight: 700; }
        .weather-today .detail { font-size: 0.9rem; color: var(--text-sub); }
        .weather-forecast-slider { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 8px; }
        .weather-forecast-slider::-webkit-scrollbar { height: 4px; }
        .weather-forecast-slider::-webkit-scrollbar-thumb { background: rgba(0,113,227,0.2); border-radius: 2px; }
        .forecast-item { flex: 0 0 auto; text-align: center; min-width: 60px; padding: 8px; border-radius: 12px; background: rgba(0,113,227,0.05); }
        .forecast-item .day-label { font-size: 0.75rem; color: var(--text-sub); margin-bottom: 4px; }
        .forecast-item i { font-size: 1.6rem; color: var(--primary); }
        .forecast-item .fc-temp { font-size: 0.8rem; font-weight: 600; }
        .weather-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
        .weather-header .weather-title { font-weight: 600; color: var(--primary); }
        .weather-toggle { cursor: pointer; font-size: 0.8rem; color: var(--text-sub); background: rgba(0,0,0,0.04); padding: 4px 12px; border-radius: 12px; }
        .weather-card.collapsed .weather-warning,
        .weather-card.collapsed .weather-forecast-slider,
        .weather-card.collapsed .weather-today .detail,
        .weather-card.collapsed .weather-today .main { display: none; }
        .weather-card.collapsed .weather-today { margin-bottom: 0; }
        .weather-card.collapsed .weather-summary { display: flex; align-items: center; gap: 8px; }
        .weather-summary { display: none; }
        .weather-card.collapsed .weather-summary { display: flex; }

        @media (max-width: 480px) {
            .day-column { flex: 0 0 60vw; scroll-snap-stop: always; }
            .week-slider { padding-left: 0; padding-right: 40vw; }
            #clock { font-size: 2.4rem; }
            .now-next-row { gap: 8px; }
            .now-next-card { padding: 12px 10px; gap: 8px; }
            .class-progress-ring { width: 52px; }
            .class-progress-ring-label { font-size: 9px; }
            .class-progress-ring-value { font-size: 11px; }
            .week-badge { top: 8px; right: 8px; font-size: 0.65rem; }
             .quick-nav { padding: 6px; gap: 6px; }
             .nav-tag { gap: 5px; padding: 9px 4px; font-size: 12px; }
             .nav-tag svg { width: 14px; height: 14px; flex-basis: 14px; }
            .login-status-tag { font-size: 0.7rem; padding: 3px 10px; }
            #toast-container { top: 70px; right: 10px; }
        }

        .icp-footer {
            position: static;
            display: flex;
            justify-content: center;
            margin-top: 16px;
            margin-bottom: 16px;
        }
        .icp-footer-inner {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            padding: 10px 16px;
            border-radius: 16px;
            background: rgba(128,128,128,0.08);
            color: #86868b;
            font-size: 0.78rem;
            text-decoration: none;
            transition: color 0.2s;
            text-align: center;
            line-height: 1.6;
        }
        .icp-footer-inner:hover { color: #1d1d1f; }
        .icp-footer-icon { width: 14px; height: 14px; color: #34c759; flex-shrink: 0; }

        .icp-footer-inner a {
            color: #1d1d1f;
            text-decoration: none;
            pointer-events: auto;
        }
        .update-history-section {
            margin-top: 16px; padding: 14px 16px; border-radius: 16px;
            background: rgba(128,128,128,0.08); color: var(--text-main);
        }
        .update-history-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
        .update-history-title { font-size: 0.9rem; font-weight: 750; }
        .update-history-list { display: grid; gap: 7px; }
        .update-history-item {
            display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 11px;
            border: 0; border-radius: 12px; background: rgba(255,255,255,0.58);
            color: var(--text-main); font: inherit; text-align: left; cursor: pointer;
        }
        .update-history-item:active { transform: scale(0.99); background: rgba(0,113,227,0.08); }
        .update-history-version { flex: 0 0 auto; color: var(--primary); font-size: 0.76rem; font-weight: 750; }
        .update-history-item-title { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.82rem; }
        .update-history-date { flex: 0 0 auto; color: var(--text-sub); font-size: 0.7rem; }
        .update-history-arrow { flex: 0 0 auto; color: var(--text-sub); font-size: 1rem; line-height: 1; }
        .update-history-section:not(.expanded) .update-history-item:nth-child(n + 4) { display: none; }
        .update-history-toggle { display: none; width: 100%; margin-top: 9px; padding: 7px 0; border: 0; background: transparent; color: var(--primary); font: inherit; font-size: 0.78rem; font-weight: 650; cursor: pointer; }
        .update-history-section.has-more .update-history-toggle { display: block; }

        /* ========== 安卓紧凑布局 ========== */
        .is-android .container { padding-bottom: 150px; }
        #page-info .brand-header, #page-profile .brand-header { padding: 10px 0 8px 0; }
        #page-info .brand-header h1, #page-profile .brand-header h1 { font-size: 1.5rem; }
        .is-android .brand-header { padding: 30px 0 12px 0; }
        .is-android #page-info .brand-header, .is-android #page-profile .brand-header { padding: 8px 0 6px 0; }
        .is-android #page-info .brand-header h1, .is-android #page-profile .brand-header h1 { font-size: 1.3rem; }
        .is-android .brand-header h1 { font-size: 1.7rem; }
        .is-android .brand-header svg.logo { width: 30px; height: 30px; }
        .is-android .version-tag { font-size: 0.75rem; padding: 2px 10px; margin-left: 8px; }
        .is-android .beta-badge { font-size: 0.65rem; padding: 2px 8px; }
        .is-android .header-actions { right: 10px; top: 2px; gap: 14px; }
        .is-android .time-card { padding: 18px; margin-bottom: 8px; }
        .is-android .mac-dots { top: 8px; left: 10px; gap: 5px; }
        .is-android .mac-dot { width: 8px; height: 8px; }
        .is-android #clock { font-size: 2.2rem; }
        .is-android #date { font-size: 0.88rem; margin-top: 4px; }
        .is-android .week-badge { top: 6px; right: 6px; font-size: 0.6rem; padding: 2px 8px; }
        .is-android h2 { font-size: 1.2rem; margin: 10px 0 8px 4px; }
        .is-android .now-next-row { gap: 8px; margin-bottom: 6px; }
        .is-android .now-next-card { padding: 10px 12px; gap: 8px; }
        .is-android .class-progress-ring { width: 50px; }
        .is-android .class-progress-ring-label { font-size: 8px; }
        .is-android .class-progress-ring-value { font-size: 10px; }
        .is-android .quick-nav { padding: 6px 4px; margin-bottom: 12px; }
        .is-android .nav-tag { padding: 6px 8px; font-size: 0.72rem; }
        .is-android .week-slider { padding-left: 0; padding-right: 40vw; }
        .is-android .day-column { flex: 0 0 240px; }
        .is-android .day-header { padding: 14px 16px 8px 16px; font-size: 1rem; }
        .is-android .week-course-item { padding: 6px 12px 8px; }
        .is-android .week-course-item .w-name { font-size: 0.88rem; }
        .is-android .week-course-item .w-time { font-size: 0.72rem; }
        .is-android .exam-module { margin: 0 0 14px; padding: 4px; }
        .is-android .exam-item { padding: 8px 10px; }
        .is-android .exam-name { font-size: 0.88rem; }
        .is-android .homework-item { padding: 5px 7px; }
        .is-android .homework-name { font-size: 0.82rem; }
        .is-android .category-board { margin-bottom: 14px; }
        .is-android .notice-item { padding: 8px 10px; margin-bottom: 6px; }
        .is-android .notice-title { font-size: 0.9rem; }
        .is-android .ai-summary-card { padding: 10px 12px; margin: -1px 0 8px; }
        .is-android .glass { border-radius: 20px; }
        .is-android .urgent-card { padding: 12px 14px; margin-bottom: 10px; }
        .is-android .page-view { padding-bottom: 130px; }
        .is-android .profile-user-card { padding: 10px 12px; }
        .is-android .profile-avatar { width: 48px; height: 48px; flex: 0 0 48px; }
        .is-android .profile-account-name { font-size: 0.92rem; }
        .is-android .profile-action-card { padding: 14px 12px; min-height: 44px; }
        .is-android .profile-action-card.profile-action-compact { padding: 10px 11px; min-height: 42px; }
        .is-android .tab-bar { padding: 4px; gap: 2px; }
        .is-android .tab-item { padding: 5px 12px; min-width: 48px; font-size: 0.55rem; }
        .is-android .tab-item svg { width: 20px; height: 20px; }
        .is-android .weather-card { padding: 12px; margin-bottom: 12px; }
        .is-android .weather-today .main i { font-size: 2rem; }
        .is-android .weather-today .temp { font-size: 1.6rem; }
        .is-android .info-jump-bar { gap: 4px; padding: 2px 0 8px; }
        .is-android .info-jump-capsule { padding: 6px 4px; font-size: 0.7rem; }
        .is-android .modal-content { padding: 22px; }
        .is-android .detail-row { margin-bottom: 10px; font-size: 0.9rem; }
        .is-android .icp-footer { margin-top: 12px; margin-bottom: 12px; }
        .is-android .icp-footer-inner { padding: 8px 14px; font-size: 0.72rem; }

        /* iOS 添加到桌面引导 */
        .ios-a2hs-overlay {
            position: fixed; inset: 0; z-index: 100000;
            background: rgba(0,0,0,0.45);
            display: flex; align-items: flex-end; justify-content: center;
            opacity: 0; pointer-events: none;
            transition: opacity 0.3s;
        }
        .ios-a2hs-overlay.show { opacity: 1; pointer-events: auto; }
        .ios-a2hs-card {
            width: calc(100% - 32px); max-width: 380px;
            background: #fff; border-radius: 20px 20px 0 0;
            padding: 28px 24px 36px; text-align: center;
            transform: translateY(100%);
            transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
        }
        .ios-a2hs-overlay.show .ios-a2hs-card { transform: translateY(0); }
        .ios-a2hs-card h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 6px; }
        .ios-a2hs-card p { font-size: 0.85rem; color: #666; margin: 0 0 20px; line-height: 1.5; }
        .ios-a2hs-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
        .ios-a2hs-step { display: flex; align-items: center; gap: 12px; text-align: left; }
        .ios-a2hs-step-num {
            width: 28px; height: 28px; border-radius: 50%;
            background: var(--primary, #0071e3); color: #fff;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.8rem; font-weight: 600; flex-shrink: 0;
        }
        .ios-a2hs-step-text { font-size: 0.85rem; color: #333; }
        .ios-a2hs-step-text strong { color: #000; }
        .ios-a2hs-share-icon {
            width: 22px; height: 22px; display: inline-block; vertical-align: -4px;
        }
        .ios-a2hs-dismiss {
            width: 100%; padding: 14px; border: none; border-radius: 12px;
            background: var(--primary, #0071e3); color: #fff;
            font-size: 0.95rem; font-weight: 600; cursor: pointer;
        }
        .ios-a2hs-dismiss:active { opacity: 0.85; }

        /* ========== 罚单纸质弹窗 ========== */
        #penalty-overlay { opacity:0; pointer-events:none; background:rgba(0,0,0,0); transition:opacity .25s ease, background .25s ease; }
        #penalty-overlay.penalty-overlay-show { opacity: 1; pointer-events: auto; background: rgba(0,0,0,0.45); }
        .penalty-ticket {
            position: relative; width: 100%; max-width: 340px;
            background: #f6f0de; padding: 28px 24px 24px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.35);
            transform: translateY(-120px) rotate(-6deg) scale(0.9); opacity: 0;
            clip-path: polygon(
                0% 2%, 4% 0%, 9% 2%, 14% 0%, 19% 2%, 24% 0%, 29% 2%, 34% 0%, 39% 2%, 44% 0%,
                49% 2%, 54% 0%, 59% 2%, 64% 0%, 69% 2%, 74% 0%, 79% 2%, 84% 0%, 89% 2%, 94% 0%, 100% 2%,
                100% 98%, 96% 100%, 91% 98%, 86% 100%, 81% 98%, 76% 100%, 71% 98%, 66% 100%, 61% 98%, 56% 100%,
                51% 98%, 46% 100%, 41% 98%, 36% 100%, 31% 98%, 26% 100%, 21% 98%, 16% 100%, 11% 98%, 6% 100%, 0% 98%
            );
        }
        #penalty-overlay.penalty-overlay-show .penalty-ticket { animation: penaltyDropIn 0.55s cubic-bezier(.34,1.56,.64,1) forwards; }
        @keyframes penaltyDropIn {
            0%   { transform: translateY(-120px) rotate(-6deg) scale(0.9); opacity: 0; }
            60%  { transform: translateY(6px) rotate(2deg) scale(1.02); opacity: 1; }
            100% { transform: translateY(0) rotate(-1.5deg) scale(1); opacity: 1; }
        }
        .penalty-header-row { display:flex; justify-content:space-between; align-items:flex-start; border-bottom:2px dashed #c9bd98; padding-bottom:14px; margin-bottom:16px; }
        .penalty-brand { font-size:12px; letter-spacing:0.08em; color:#8a7c52; font-weight:600; }
        .penalty-title-cn { font-size:22px; font-weight:800; color:#3a3120; margin-top:4px; }
        .penalty-serial { font-family:"SF Mono",Menlo,monospace; font-size:11px; color:#a89b6f; text-align:right; line-height:1.5; }
        .penalty-row { display:flex; justify-content:space-between; font-size:13px; color:#5c5334; padding:7px 0; }
        .penalty-row .pk { color:#8a7c52; }
        .penalty-row .pv { font-weight:600; color:#3a3120; text-align:right; max-width:60%; }
        .penalty-deduction { margin-top:14px; padding-top:14px; border-top:2px dashed #c9bd98; display:flex; justify-content:space-between; align-items:center; }
        .penalty-dk { font-size:13px; color:#8a7c52; }
        .penalty-dv { font-size:26px; font-weight:800; color:#b8402b; }
        .penalty-stamp {
            position:absolute; top:50%; left:50%; width:190px; height:190px;
            border:5px solid rgba(184,64,43,0.4); border-radius:50%;
            color:rgba(184,64,43,0.4); display:flex; align-items:center; justify-content:center;
            font-weight:800; font-size:26px; letter-spacing:0.08em; text-align:center; line-height:1.4;
            z-index:0; pointer-events:none;
            transform:translate(-50%,-50%) rotate(-18deg) scale(0); opacity:0;
        }
        #penalty-overlay.penalty-overlay-show .penalty-stamp { animation: penaltyStampBang 0.4s cubic-bezier(.2,1.8,.4,1) 0.5s forwards; }
        @keyframes penaltyStampBang {
            0%   { transform: translate(-50%,-50%) rotate(-18deg) scale(2); opacity:0; }
            60%  { transform: translate(-50%,-50%) rotate(-18deg) scale(0.92); opacity:1; }
            100% { transform: translate(-50%,-50%) rotate(-18deg) scale(1); opacity:1; }
        }
        .penalty-content { position:relative; z-index:1; }
        .penalty-paper-close {
            margin-top:20px; width:100%; padding:12px;
            background:#3a3120; color:#f6f0de; border:none; border-radius:4px;
            font-size:14px; font-weight:600; letter-spacing:0.05em; cursor:pointer;
        }
        .penalty-paper-close:active { opacity:0.85; }
        .penalty-leaf-icon { width:14px; height:14px; vertical-align:-2px; margin-left:2px; }
        .penalty-deduction .penalty-leaf-icon { width:20px; height:20px; vertical-align:-3px; }

        /* ★ 签到弹窗（随机模式） */
        .checkin-popup-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000;
            display: flex; align-items: center; justify-content: center; padding: 20px;
            opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
            pointer-events: none;
        }
        .checkin-popup-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
        .checkin-popup-card {
            background: #fff; border-radius: 20px; padding: 28px 24px 22px;
            width: 100%; max-width: 340px; box-shadow: 0 24px 80px rgba(0,0,0,0.2);
            transform: translateY(30px) scale(0.95); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
            text-align: center;
        }
        .checkin-popup-overlay.show .checkin-popup-card { transform: translateY(0) scale(1); }
        .checkin-popup-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; }
        .checkin-popup-leaf {
            font-size: 3rem; font-weight: 800; margin: 10px 0;
            display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 6px;
        }
        .checkin-popup-leaf > span { flex: 0 0 auto; white-space: nowrap; }
        .checkin-popup-leaf-icon { font-size: inherit; font-weight: inherit; color: #34c759; }
        .checkin-popup-luck { font-size: 0.95rem; font-weight: 600; margin: 2px 0 4px; }
        .checkin-popup-luck.lucky { color: #f59e0b; }
        .checkin-popup-luck.normal { color: #3b82f6; }
        .checkin-popup-luck.unlucky { color: #9ca3af; }
        .checkin-popup-max { font-size: 0.82rem; color: #9ca3af; margin: 0 0 6px; }
        .checkin-popup-streak { font-size: 0.82rem; color: #f97316; font-weight: 600; margin: 0 0 16px; }
        .checkin-popup-btn {
            width: 100%; padding: 12px 0; border: 0; border-radius: 14px;
            background: var(--primary, #0071e3); color: #fff;
            font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: opacity 0.2s;
        }
        .checkin-popup-btn:active { opacity: 0.7; }

        .checkin-double-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2100;
            display: flex; align-items: center; justify-content: center; padding: 20px;
            opacity: 0; visibility: hidden; pointer-events: none;
            transition: opacity 0.25s, visibility 0.25s;
        }
        .checkin-double-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
        .checkin-double-card {
            width: 100%; max-width: 340px; padding: 26px 22px 20px;
            background: #fff; border-radius: 20px; text-align: center;
            box-shadow: 0 24px 80px rgba(0,0,0,0.2);
            transform: translateY(20px) scale(.96); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
        }
        .checkin-double-overlay.show .checkin-double-card { transform: translateY(0) scale(1); }
        .checkin-double-icon { color: #d66d46; margin-bottom: 8px; }
        .checkin-double-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
        .checkin-double-text { color: #6e6e73; font-size: .88rem; line-height: 1.55; margin-bottom: 18px; }
        .checkin-double-actions { display: flex; gap: 10px; }
        .checkin-double-actions button {
            flex: 1; border: 0; border-radius: 12px; padding: 11px 8px;
            font-size: .9rem; font-weight: 700; cursor: pointer;
        }
        .checkin-double-skip { background: #f2f2f7; color: #1d1d1f; }
        .checkin-double-use { background: var(--primary, #0071e3); color: #fff; }
        [data-theme="dark"] .checkin-double-card { background: #1c1c1e; }
        [data-theme="dark"] .checkin-double-skip { background: #2c2c2e; color: #f5f5f7; }

        [data-theme="dark"] .checkin-popup-card { background: #1c1c1e; }
        [data-theme="dark"] .checkin-popup-luck.unlucky { color: #6b7280; }
        [data-theme="dark"] .checkin-popup-max { color: #6b7280; }

        /* 用户头像统一为圆形；有图片时加载完成前不显示首字母。 */
        .forum-post-avatar, .detail-avatar, .c-avatar, .forum-profile-avatar {
            position: relative;
            overflow: hidden;
            aspect-ratio: 1 / 1;
            border-radius: 50% !important;
        }
        .forum-avatar-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
        .has-avatar-image.avatar-image-loading { background: linear-gradient(110deg, rgba(127,127,127,.10) 30%, rgba(127,127,127,.19) 50%, rgba(127,127,127,.10) 70%) !important; background-size: 220% 100% !important; animation: forum-avatar-shimmer 1.15s ease-in-out infinite; }
        .has-avatar-image.avatar-image-loading .forum-avatar-initial { visibility: hidden; }
        .avatar-image-loaded { animation: none; }
        .avatar-image-error { animation: none; }
        @keyframes forum-avatar-shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
        .forum-profile-page .forum-profile-avatar { border-radius: 50% !important; }
        .comment-thread { box-sizing: border-box; padding: 0 0 8px; margin: 0; border-bottom: 1px solid var(--border, #e5e5ea); }
        .comment-thread + .comment-thread { padding-top: 4px; }
        .comment-thread:last-child { border-bottom: 0; }
        .comment-node { min-width: 0; margin: 0; padding: 0; }
        #forum-detail-content .comment-item { box-sizing: border-box; align-items: flex-start; min-height: 0; height: auto; margin: 0; padding: 10px 0; }
        #forum-detail-content .c-avatar-holder { flex: 0 0 36px; width: 36px; height: 36px; min-height: 36px; line-height: 0; }
        #forum-detail-content .c-body { min-width: 0; min-height: 0; }
        #forum-detail-content .c-actions { min-height: 20px; height: auto; line-height: 1; }
        .comment-children { box-sizing: border-box; margin: 0 0 0 20px; padding: 0 0 0 12px; border-left: 2px solid color-mix(in srgb, var(--primary, #0071e3) 18%, transparent); }
        .comment-children .comment-item { border-bottom: 0; padding: 8px 0; }
        .comment-item.is-notification-target { border-radius: 10px; background: rgba(255,149,0,.12); transition: background .2s ease; }
        .forum-avatar-initial { position: relative; z-index: 0; }
        .profile-avatar.profile-avatar-custom { border: 0; border-radius: 50%; box-shadow: none; }
        .avatar-shop-entry { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; margin: 0 0 12px; border: 1px solid var(--border, #e5e5ea); border-radius: 14px; background: var(--card-bg, #fff); color: var(--text-main); text-align: left; cursor: pointer; }
        .avatar-shop-entry:active { transform: scale(.99); }
        .avatar-shop-entry img { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; object-fit: cover; }
        .avatar-shop-entry span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
        .avatar-shop-entry strong { font-size: .9rem; }
        .avatar-shop-entry small { color: var(--text-sub); font-size: .75rem; }
        .avatar-shop-entry-arrow { margin-left: auto; color: var(--text-sub); font-size: 1.5rem; line-height: 1; }
        .forum-creator-earnings { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 12px; padding: 18px 16px; border-radius: 18px; background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: #fff; box-shadow: 0 4px 20px rgba(15,23,42,.15); }
        .forum-creator-earnings::before { content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(59, 130, 246, 0) 70%); pointer-events: none; }
        .forum-creator-earnings::after { content: ''; position: absolute; bottom: -40px; left: -20px; width: 140px; height: 140px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0) 70%); pointer-events: none; }
        .forum-creator-earnings[hidden] { display: none; }
        .forum-creator-earnings-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
        .forum-creator-earnings-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
        .forum-creator-earnings-title strong { font-size: 15px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
        .forum-creator-earnings-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(255,255,255,.12); color: #ffd700; }
        .forum-creator-earnings-icon svg { width: 15px; height: 15px; }
        .forum-creator-earnings-tag { padding: 2px 6px; border-radius: 10px; background: linear-gradient(90deg,#f59e0b,#fbbf24); color: #78350f; font-size: 10px; font-weight: 700; white-space: nowrap; }
        .forum-creator-earnings-detail { flex-shrink: 0; padding: 4px 0; border: 0; background: transparent; color: #94a3b8; font: inherit; font-size: 12px; cursor: pointer; }
        .forum-creator-earnings-detail span { font-size: 1.1rem; vertical-align: -1px; }
        .forum-creator-earnings-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .forum-creator-earnings-box { min-width: 0; min-height: 98px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        .forum-creator-earnings-label { display: block; margin-bottom: 6px; color: #94a3b8; font-size: 11px; }
        .forum-creator-earnings-value { display: flex !important; align-items: baseline; gap: 2px; overflow: hidden; color: #fff !important; font-size: 20px !important; font-weight: 800; line-height: 1.15 !important; letter-spacing: 0; }
        .forum-creator-earnings-value span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .forum-creator-earnings-value em { flex-shrink: 0; color: #fbbf24; font-size: 13px; font-style: normal; font-weight: 600; letter-spacing: 0; }
        .forum-creator-earnings-box small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; color: #10b981; font-size: 10px; }
        .forum-creator-earnings-rules { margin-bottom: 14px; padding: 14px; border: 1px solid var(--border, #e5e5ea); border-radius: 16px; background: var(--card-bg, #f8fafc); }
        .forum-creator-earnings-rules[hidden] { display: none; }
        .forum-creator-earnings-rules-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--text-main); font-size: .88rem; font-weight: 750; }
        .forum-creator-earnings-rules-title small { color: #248a3d; font-size: .68rem; font-weight: 650; }
        .forum-creator-earnings-rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
        .forum-creator-earnings-rule { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 11px; background: rgba(0,113,227,.06); color: var(--text-sub); font-size: .72rem; }
        .forum-creator-earnings-rule strong { color: var(--primary, #0071e3); font-size: .78rem; }
        .forum-creator-earnings-rules-note { margin: 10px 1px 0; color: var(--text-sub); font-size: .7rem; line-height: 1.55; }
        .forum-creator-earnings-detail-list { display: flex; flex-direction: column; gap: 8px; }
        .forum-creator-earnings-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card-bg, #f5f5f7); }
        .forum-creator-earnings-detail-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
        .forum-creator-earnings-detail-row small { display: block; margin-top: 4px; color: var(--text-sub); font-size: .7rem; }
        .forum-creator-earnings-detail-amount { flex-shrink: 0; color: #248a3d; font-weight: 750; font-size: .86rem; }
        @media (max-width: 340px) {
            .forum-creator-earnings { padding: 14px 12px; }
            .forum-creator-earnings-title { gap: 6px; }
            .forum-creator-earnings-title strong { font-size: .88rem; }
            .forum-creator-earnings-tag { font-size: .58rem; }
            .forum-creator-earnings-box { padding: 10px; }
            .forum-creator-earnings-value { font-size: 1.25rem !important; }
            .forum-creator-earnings-value em { font-size: .62rem; }
            .forum-creator-earnings-rules { padding: 12px; }
        }
        .avatar-shop-balance { padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: rgba(52,199,89,.1); color: #248a3d; font-size: .84rem; font-weight: 650; }
        .avatar-shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
        .avatar-shop-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 10px; border: 1px solid var(--border, #e5e5ea); border-radius: 14px; background: var(--card-bg, #fff); }
        .avatar-shop-card img { display: block; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #f2f2f7; }
        .avatar-shop-card-body { width: 100%; min-width: 0; }
        .avatar-shop-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; font-size: .84rem; text-align: center; }
        .avatar-shop-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; }
        .avatar-shop-card-price { color: #248a3d; font-size: .76rem; font-weight: 700; white-space: nowrap; }
        .avatar-shop-card button { border: 0; border-radius: 8px; padding: 6px 8px; background: var(--primary, #0071e3); color: #fff; font-size: .72rem; font-weight: 650; cursor: pointer; }
        .avatar-shop-card button:disabled { background: #d1d1d6; color: #6e6e73; cursor: default; }
        .avatar-use-overlay { position: fixed; inset: 0; z-index: 10050; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.42); }
        .avatar-use-overlay.show { display: flex; }
        .avatar-use-dialog { width: min(340px, 100%); padding: 20px; border-radius: 18px; background: var(--card-bg, #fff); text-align: center; box-shadow: 0 18px 60px rgba(0,0,0,.2); }
        .avatar-use-dialog img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
        .avatar-use-dialog h3 { margin: 14px 0 5px; font-size: 1rem; }
        .avatar-use-dialog p { margin: 0 0 16px; color: var(--text-sub); font-size: .8rem; }
        .avatar-use-actions { display: flex; gap: 8px; }
        .avatar-use-actions button { flex: 1; border: 0; border-radius: 10px; padding: 10px; font-weight: 650; cursor: pointer; }
        .avatar-use-skip { background: #f2f2f7; color: var(--text-main); }
        .avatar-use-confirm { background: var(--primary, #0071e3); color: #fff; }

        .forum-profile-page {
            min-height: 100vh;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            background: var(--page-bg, #f5f5f7);
            color: var(--text-main);
        }
        .forum-profile-shell { width: min(100%, 720px); margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 14px 32px; }
        .forum-profile-topbar { position:relative; display:flex; align-items:center; justify-content:flex-end; gap:12px; height:48px; }
        .forum-profile-topbar h1 { position:absolute; left:50%; margin:0; transform:translateX(-50%); font-size:1rem; font-weight:800; }
        .forum-profile-home { display:inline-flex; align-items:center; justify-content:center; min-width:42px; height:34px; border:0; border-radius:12px; background:var(--card-bg,#fff); color:var(--text-main); text-decoration:none; font:inherit; font-size:.78rem; font-weight:700; cursor:pointer; box-shadow:0 3px 12px rgba(0,0,0,.06); }
        .forum-public-profile-card, .forum-profile-post-section { margin-top:12px; padding:24px 26px 22px; border:1px solid var(--border,rgba(0,0,0,.08)); border-radius:24px; background:var(--card-bg,#fff); box-shadow:0 5px 16px rgba(31,41,55,.07); }
        .forum-profile-main { display:flex; align-items:center; gap:16px; min-width:0; min-height:0; }
        .forum-profile-avatar { width:84px; height:84px; flex:0 0 84px; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:50% !important; color:#fff; font-size:30px; font-weight:800; }
        .forum-profile-avatar .forum-avatar-image { width:100%; height:100%; border-radius:50% !important; object-fit:cover; }
        .forum-profile-identity { min-width:0; flex:1 1 auto; }
        .forum-profile-name-row { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
        .forum-profile-name-row h2 { max-width:100%; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:1.2rem; line-height:1.2; }
        .forum-profile-account, .forum-profile-school { margin-top:7px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-sub); font-size:.84rem; }
        .forum-profile-vip, .forum-profile-role { display:inline-flex; align-items:center; padding:3px 7px; border-radius:999px; background:rgba(255,149,0,.13); color:#c77c00; font-size:.65rem; font-weight:800; }
        .forum-profile-role { background:var(--primary-light); color:var(--primary); }
        .forum-profile-online { display:inline-flex; align-items:center; gap:4px; }
        .forum-profile-school .forum-profile-online { margin-left:8px; }
        .forum-profile-online i { width:7px; height:7px; border-radius:50%; background:#8e8e93; }
        .forum-profile-online.online { color:#248a3d; }
        .forum-profile-online.online i { background:#34c759; }
        .forum-profile-actions { display:flex; flex:0 0 auto; margin-left:auto; }
        .forum-profile-follow, .forum-profile-edit { display:inline-flex; align-items:center; justify-content:center; min-width:92px; padding:9px 16px; border:0; border-radius:999px; background:var(--primary); color:#fff; text-decoration:none; font:inherit; font-size:.8rem; font-weight:750; cursor:pointer; }
        .forum-profile-follow.following { background:var(--primary-light); color:var(--primary); }
        .forum-profile-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:24px; padding-top:20px; border-top:1px solid rgba(0,0,0,.06); text-align:center; }
        .forum-profile-stats strong, .forum-profile-stats span { display:block; }
        .forum-profile-stats strong { font-size:1.35rem; font-variant-numeric:tabular-nums; }
        .forum-profile-stats span { margin-top:5px; color:var(--text-sub); font-size:.78rem; }
        .forum-profile-section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
        .forum-profile-section-head h2 { font-size:1rem; }
        .forum-profile-section-head span { color:var(--text-sub); font-size:.75rem; }
        .forum-profile-post-section .forum-posts-list { align-items:stretch; margin:0 -2px; }
        .forum-profile-post-author { display:flex; align-items:center; gap:7px; min-width:0; color:inherit; text-decoration:none; }
        .forum-profile-post-author .forum-post-author-name { max-width:130px; }
        .forum-profile-load-more { padding-top:14px; text-align:center; }
        .forum-profile-loading, .forum-profile-error { padding:24px 8px; color:var(--text-sub); text-align:center; font-size:.84rem; }
        .forum-profile-loading { display:flex; align-items:center; justify-content:center; gap:9px; min-height:120px; }
        .forum-profile-loading::before { content:''; width:18px; height:18px; flex:0 0 18px; border:2px solid rgba(0,113,227,.18); border-top-color:var(--primary,#0071e3); border-radius:50%; animation:forumProfileSpin .8s linear infinite; }
        @keyframes forumProfileSpin { to { transform:rotate(360deg); } }
        .forum-profile-error { color:var(--danger); }
        .forum-profile-retry { border:0; background:none; color:var(--primary); font:inherit; cursor:pointer; }
        .forum-profile-login-dialog[hidden] { display:none; }
        .forum-profile-login-dialog { position:fixed; inset:0; z-index:10020; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(0,0,0,.32); backdrop-filter:blur(12px); }
        .forum-profile-login-box { width:min(340px,100%); padding:22px; border-radius:22px; background:var(--card-bg,#fff); box-shadow:0 18px 60px rgba(0,0,0,.2); }
        .forum-profile-login-box h2 { font-size:1.05rem; }
        .forum-profile-login-box p { margin-top:8px; color:var(--text-sub); font-size:.82rem; }
        .forum-profile-login-actions { display:flex; gap:9px; margin-top:18px; }
        .forum-profile-login-actions button, .forum-profile-login-actions a { flex:1; padding:10px; border:0; border-radius:12px; text-align:center; text-decoration:none; font:inherit; font-size:.82rem; font-weight:700; cursor:pointer; }
        .forum-profile-cancel { background:rgba(118,118,128,.12); color:var(--text-main); }
        .forum-profile-login { background:var(--primary); color:#fff; }
        .forum-news-card { position:relative; overflow:hidden; border:1px solid rgba(102,95,235,.2); background:linear-gradient(140deg,rgba(246,247,255,.98),rgba(233,231,255,.94)); box-shadow:0 12px 26px rgba(92,97,232,.12); cursor:pointer; }
        .forum-news-card::before { content:''; position:absolute; inset:0; background:linear-gradient(120deg,rgba(255,255,255,.5),transparent 45%,rgba(157,118,244,.08)); pointer-events:none; }
        .forum-news-glow { position:absolute; width:116px; height:116px; right:-38px; top:-44px; border:1px solid rgba(113,104,233,.2); border-radius:50%; box-shadow:0 0 0 13px rgba(113,104,233,.045),0 0 0 27px rgba(113,104,233,.03); pointer-events:none; }
        .forum-news-card .forum-post-header, .forum-news-card .forum-news-title, .forum-news-card .forum-news-copy, .forum-news-card .forum-news-footer { position:relative; z-index:1; }
        .forum-news-badge { padding:5px 9px; border-radius:999px; color:#5a51cf; background:rgba(109,98,232,.12); font-size:.66rem; font-weight:850; white-space:nowrap; }
        .forum-news-title { margin:17px 0 7px; color:#25255c; font-size:1.04rem; font-weight:850; line-height:1.35; }
        .forum-news-copy { margin:0; color:#6f7193; font-size:.78rem; line-height:1.6; }
        .forum-news-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:17px; color:#8587a4; font-size:.68rem; }
        .forum-news-footer span { display:flex; align-items:center; gap:6px; min-width:0; white-space:nowrap; }
        .forum-news-footer i { width:6px; height:6px; border-radius:50%; background:#6d67e8; box-shadow:0 0 0 4px rgba(109,103,232,.12); }
        .forum-news-footer strong { display:inline-flex; align-items:center; gap:3px; color:#5d58d8; font-size:.72rem; white-space:nowrap; }
        .forum-news-footer b { margin-left:0; font-size:.9rem; line-height:1; }
        @media (prefers-color-scheme: dark) { .forum-news-card { background:linear-gradient(140deg,rgba(38,39,75,.98),rgba(48,39,83,.96)); border-color:rgba(151,139,255,.27); } .forum-news-title { color:#f3f1ff; } .forum-news-copy, .forum-news-footer { color:#b5b3d0; } .forum-news-badge { color:#d2cbff; background:rgba(154,137,255,.18); } .forum-news-footer strong { color:#c9c3ff; } }
        @media (max-width: 520px) {
            .forum-public-profile-card, .forum-profile-post-section { padding:20px 16px 18px; border-radius:20px; }
            .forum-profile-main { gap:12px; }
            .forum-profile-avatar { width:68px; height:68px; flex-basis:68px; font-size:26px; }
            .forum-profile-name-row h2 { font-size:1.05rem; }
            .forum-profile-account, .forum-profile-school { font-size:.76rem; }
            .forum-profile-edit, .forum-profile-follow { min-width:82px; padding:8px 12px; font-size:.74rem; }
            .forum-profile-stats { gap:4px; margin-top:20px; padding-top:16px; }
            .forum-profile-stats strong { font-size:1.15rem; }
            .forum-profile-stats span { font-size:.72rem; }
        }

        /* ===== 帖子投票卡片（样式来自用户提供的设计稿， 勿改视觉； 变量在组件内局部覆盖避免继承站内主题色） ===== */
        .poll-card {
            --text-sub: #64748b;
            --primary: #3b82f6;
            --primary-hover: #eff6ff;
            --border: #e2e8f0;
            --radius: 12px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 18px;
            margin-bottom: 20px;
        }
        .poll-question { font-size: 14px; font-weight: 650; color: #1e293b; margin: 0 0 12px; }
        .poll-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 14px;
            font-size: 13px;
            color: #64748b;
        }
        .poll-tag {
            background: #e0e7ff;
            color: #4338ca;
            font-size: 11px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 4px;
        }
        .poll-option {
            position: relative;
            background: #ffffff;
            border: 1.5px solid #e2e8f0;
            border-radius: 8px;
            padding: 14px 16px;
            margin-bottom: 10px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            overflow: hidden;
            transition: all 0.2s ease;
            user-select: none;
        }
        .poll-option:last-child { margin-bottom: 0; }
        /* 未投票时的 Hover 效果 */
        .poll-card:not(.has-voted):not(.is-ended) .poll-option:hover {
            border-color: #93c5fd;
            background: #fafcff;
            transform: translateY(-1px);
        }
        /* 投票后/已截止的选项状态 */
        .poll-card.has-voted .poll-option, .poll-card.is-ended .poll-option { cursor: default; }
        .poll-option.selected {
            border-color: #3b82f6;
            background: #eff6ff;
        }
        /* 进度条背景 - 默认宽度为 0 且隐藏 */
        .poll-bar {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 0%;
            background: rgba(59, 130, 246, 0.12);
            border-radius: 6px;
            transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .option-text {
            position: relative;
            font-size: 14px;
            font-weight: 500;
            color: #1e293b;
            z-index: 1;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        /* 单选圆圈图标 */
        .option-radio-visual {
            width: 16px;
            height: 16px;
            border: 1.5px solid #cbd5e1;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: border-color 0.2s;
            flex-shrink: 0;
        }
        .poll-option.selected .option-radio-visual { border-color: #3b82f6; }
        .poll-option.selected .option-radio-visual::after {
            content: "";
            width: 8px;
            height: 8px;
            background: #3b82f6;
            border-radius: 50%;
        }
        /* 结果数据（百分比/票数）- 默认隐藏 */
        .option-meta {
            position: relative;
            font-size: 13px;
            font-weight: 600;
            color: #64748b;
            z-index: 1;
            opacity: 0;
            transform: translateX(6px);
            transition: all 0.3s ease;
            display: none;
        }
        /* 投票后显示数据 */
        .poll-card.has-voted .option-meta, .poll-card.show-results .option-meta {
            display: block;
            opacity: 1;
            transform: translateX(0);
        }
        /* 多选确认按钮（设计稿 .btn-confirm 同款观感） */
        .fpv-multi-submit {
            width: 100%;
            margin-top: 12px;
            padding: 10px 16px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            background: #3b82f6;
            color: #ffffff;
            transition: all 0.2s;
        }
        .fpv-multi-submit:hover { background: #2563eb; }
        .fpv-multi-submit[disabled] { opacity: 0.55; cursor: default; }
        /* 确认弹窗（类名加 fpv- 前缀， 避免与站内既有 .modal-overlay 冲突） */
        .fpv-modal-overlay {
            --text-main: #0f172a;
            --text-sub: #64748b;
            --primary: #3b82f6;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.45);
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10030;
            animation: fpvFadeIn 0.15s ease-out;
        }
        .fpv-modal-overlay.active { display: flex; }
        .fpv-modal-box {
            background: #ffffff;
            border-radius: 14px;
            width: 90%;
            max-width: 380px;
            padding: 24px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
            transform: scale(0.95);
            animation: fpvScaleUp 0.15s ease-out forwards;
        }
        .fpv-modal-title {
            font-size: 16px;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 8px;
        }
        .fpv-modal-desc {
            font-size: 14px;
            color: #64748b;
            line-height: 1.5;
            margin-bottom: 20px;
        }
        .fpv-modal-target-option { color: #3b82f6; font-weight: 600; }
        .fpv-modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        .fpv-modal-btn {
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
        }
        .fpv-btn-cancel { background: #f1f5f9; color: #475569; }
        .fpv-btn-cancel:hover { background: #e2e8f0; }
        .fpv-btn-confirm { background: #3b82f6; color: #ffffff; }
        .fpv-btn-confirm:hover { background: #2563eb; }
        @keyframes fpvFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes fpvScaleUp {
            to { transform: scale(1); }
        }

