        :root {
            --bg-primary: #0a0a0f;
            --bg-secondary: #12121a;
            --bg-card: #1a1a24;
            --bg-card-hover: #22222e;
            --border: rgba(255, 255, 255, 0.06);
            --border-light: rgba(255, 255, 255, 0.1);
            --text: #ffffff;
            --text-secondary: rgba(255, 255, 255, 0.6);
            --text-muted: rgba(255, 255, 255, 0.4);
            --accent: #6366f1;
            --accent-light: #818cf8;
            --accent-glow: rgba(99, 102, 241, 0.3);
            --success: #22c55e;
            --warning: #f59e0b;
            --danger: #ef4444;
            --info: #3b82f6;
            --purple: #a855f7;
            --cyan: #06b6d4;
        }

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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-primary);
            color: var(--text);
            min-height: 100vh;
            line-height: 1.5;
            overflow-x: hidden;
        }

        /* 背景装饰 */
        .bg-gradient {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(ellipse 80% 50% at 20% -20%, rgba(99, 102, 241, 0.15), transparent),
                radial-gradient(ellipse 60% 40% at 80% 100%, rgba(168, 85, 247, 0.1), transparent);
            pointer-events: none;
            z-index: 0;
        }

        /* 主容器 */
        .app {
            position: relative;
            z-index: 1;
            display: flex;
            min-height: 100vh;
        }

        /* ===== 侧边栏 ===== */
        .sidebar {
            width: 280px;
            background: var(--bg-secondary);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            z-index: 100;
            transition: transform 0.3s;
        }

        .sidebar-header {
            padding: 24px;
            border-bottom: 1px solid var(--border);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, var(--accent), var(--purple));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            box-shadow: 0 4px 20px var(--accent-glow);
        }

        .logo-text {
            font-size: 1.4rem;
            font-weight: 700;
            letter-spacing: -0.5px;
        }

        .logo-sub {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* 用户信息 */
        .user-info {
            padding: 20px 24px;
            border-bottom: 1px solid var(--border);
        }

        .user-ip {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            background: var(--bg-card);
            border-radius: 12px;
            font-size: 0.85rem;
        }

        .user-ip-icon {
            width: 32px;
            height: 32px;
            background: rgba(99, 102, 241, 0.15);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .user-ip-label {
            color: var(--text-muted);
            font-size: 0.75rem;
        }

        .user-ip-value {
            color: var(--accent-light);
            font-weight: 600;
        }

        /* 导航菜单 */
        .nav-menu {
            flex: 1;
            padding: 16px 12px;
            overflow-y: auto;
        }

        .nav-section {
            margin-bottom: 24px;
        }

        .nav-section-title {
            font-size: 0.7rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 0 12px;
            margin-bottom: 8px;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text-secondary);
            font-size: 0.9rem;
            font-weight: 500;
        }

        .nav-item:hover {
            background: var(--bg-card);
            color: var(--text);
        }

        .nav-item.active {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
            color: var(--text);
            border: 1px solid rgba(99, 102, 241, 0.2);
        }

        .nav-item-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            background: var(--bg-card);
        }

        .nav-item.active .nav-item-icon {
            background: linear-gradient(135deg, var(--accent), var(--purple));
        }

        .nav-item-badge {
            margin-left: auto;
            padding: 2px 8px;
            background: var(--accent);
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
        }

        /* 侧边栏底部 */
        .sidebar-footer {
            padding: 16px 24px;
            border-top: 1px solid var(--border);
        }

        .weather-mini {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--bg-card);
            border-radius: 12px;
        }

        .weather-mini-icon {
            font-size: 2rem;
        }

        .weather-mini-info {
            flex: 1;
        }

        .weather-mini-city {
            font-size: 0.85rem;
            font-weight: 600;
        }

        .weather-mini-temp {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        /* ===== 主内容区 ===== */
        .main {
            flex: 1;
            margin-left: 280px;
            padding: 24px;
        }

        /* 页面头部 */
        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 32px;
        }

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

        .page-subtitle {
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-top: 4px;
        }

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

        .btn {
            padding: 12px 24px;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            font-family: inherit;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent), var(--purple));
            color: white;
            box-shadow: 0 4px 20px var(--accent-glow);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px var(--accent-glow);
        }

        .btn-secondary {
            background: var(--bg-card);
            color: var(--text);
            border: 1px solid var(--border-light);
        }

        .btn-secondary:hover {
            background: var(--bg-card-hover);
        }

        /* 页面容器 */
        .page {
            display: none;
        }

        .page.active {
            display: block;
        }

        /* ===== 测速页面 ===== */
        .speed-grid {
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 24px;
        }

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

        /* 测速主区域 */
        .speed-main {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 48px;
            text-align: center;
        }

        .speed-gauge {
            position: relative;
            width: 320px;
            height: 320px;
            margin: 0 auto 32px;
        }

        .gauge-svg {
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }

        .gauge-bg-arc {
            fill: none;
            stroke: var(--bg-secondary);
            stroke-width: 12;
        }

        .gauge-progress-arc {
            fill: none;
            stroke: url(#gaugeGradient);
            stroke-width: 12;
            stroke-linecap: round;
            stroke-dasharray: 754;
            stroke-dashoffset: 754;
            transition: stroke-dashoffset 0.3s ease;
        }

        .gauge-pointer {
            transform-origin: 160px 160px;
            transition: transform 0.3s ease;
        }

        .gauge-pointer polygon {
            fill: var(--accent);
            filter: drop-shadow(0 2px 6px rgba(99, 102, 241, 0.6));
        }

        .gauge-pointer-center {
            fill: var(--bg-card);
            stroke: var(--accent);
            stroke-width: 3;
        }

        .gauge-tick {
            stroke: rgba(255, 255, 255, 0.2);
            stroke-width: 2;
        }

        .gauge-tick-major {
            stroke: rgba(255, 255, 255, 0.4);
            stroke-width: 3;
        }

        .gauge-tick-label {
            fill: var(--text-muted);
            font-size: 12px;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
        }

        .gauge-center {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            width: 200px;
        }

        .gauge-value {
            font-size: 4.5rem;
            font-weight: 800;
            line-height: 1;
            background: linear-gradient(135deg, var(--text), var(--accent-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .gauge-unit {
            font-size: 1.2rem;
            color: var(--text-muted);
            margin-top: 4px;
        }

        .gauge-label {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-top: 8px;
        }

        .gauge-label {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-top: 8px;
        }

        /* 开始按钮 */
        .start-btn {
            width: 100%;
            max-width: 320px;
            padding: 20px 40px;
            border-radius: 16px;
            border: none;
            background: linear-gradient(135deg, var(--accent), var(--purple));
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-family: inherit;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            box-shadow: 0 8px 30px var(--accent-glow);
        }

        .start-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 12px 40px var(--accent-glow);
        }

        .start-btn.running {
            background: linear-gradient(135deg, var(--danger), #f87171);
            box-shadow: 0 8px 30px rgba(239, 68, 68, 0.3);
        }

        .start-btn-icon {
            font-size: 1.3rem;
        }

        /* 结果卡片 */
        .results-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-top: 40px;
        }

        @media (max-width: 800px) {
            .results-row {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .result-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 24px 16px;
            text-align: center;
            transition: all 0.3s;
        }

        .result-card.active {
            border-color: var(--accent);
            background: rgba(99, 102, 241, 0.05);
            box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
        }

        .result-icon {
            width: 48px;
            height: 48px;
            margin: 0 auto 12px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .result-card:nth-child(1) .result-icon { background: rgba(34, 211, 238, 0.15); }
        .result-card:nth-child(2) .result-icon { background: rgba(168, 85, 247, 0.15); }
        .result-card:nth-child(3) .result-icon { background: rgba(34, 197, 94, 0.15); }
        .result-card:nth-child(4) .result-icon { background: rgba(245, 158, 11, 0.15); }

        .result-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
        }

        .result-value {
            font-size: 2rem;
            font-weight: 700;
        }

        .result-card:nth-child(1) .result-value { color: var(--cyan); }
        .result-card:nth-child(2) .result-value { color: var(--purple); }
        .result-card:nth-child(3) .result-value { color: var(--success); }
        .result-card:nth-child(4) .result-value { color: var(--warning); }

        .result-unit {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        /* 侧边面板 */
        .speed-sidebar {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .panel {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 24px;
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .panel-title {
            font-size: 1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .panel-title-icon {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
        }

        .panel-action {
            font-size: 0.8rem;
            color: var(--accent-light);
            cursor: pointer;
        }

        /* 统计网格 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .stat-card {
            background: var(--bg-secondary);
            border-radius: 14px;
            padding: 16px;
            text-align: center;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .stat-label {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-top: 4px;
        }

        /* 排名列表 */
        .rank-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .rank-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--bg-secondary);
            border-radius: 12px;
            transition: all 0.2s;
        }

        .rank-item:hover {
            background: var(--bg-card-hover);
        }

        .rank-item.is-me {
            background: rgba(99, 102, 241, 0.1);
            border: 1px solid rgba(99, 102, 241, 0.2);
        }

        .rank-pos {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 700;
            background: var(--bg-card);
        }

        .rank-pos.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #000; }
        .rank-pos.silver { background: linear-gradient(135deg, #9ca3af, #6b7280); color: #000; }
        .rank-pos.bronze { background: linear-gradient(135deg, #f97316, #ea580c); color: #000; }

        .rank-avatar {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--accent), var(--purple));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.85rem;
        }

        .rank-info { flex: 1; }
        .rank-name { font-size: 0.85rem; font-weight: 500; }
        .rank-isp { font-size: 0.7rem; color: var(--text-muted); }
        .rank-speed { font-size: 0.95rem; font-weight: 700; color: var(--accent-light); }

        /* 历史列表 */
        .history-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 200px;
            overflow-y: auto;
        }

        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px;
            background: var(--bg-secondary);
            border-radius: 12px;
        }

        .history-left { display: flex; align-items: center; gap: 12px; }
        .history-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(99, 102, 241, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .history-date { font-size: 0.85rem; font-weight: 500; }
        .history-time { font-size: 0.7rem; color: var(--text-muted); }
        .history-dl { font-size: 0.85rem; font-weight: 600; color: var(--cyan); }
        .history-ul { font-size: 0.7rem; color: var(--purple); }

        .empty {
            text-align: center;
            padding: 24px;
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        /* ===== 天气页面 ===== */
        .weather-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .weather-hero {
            grid-column: 1 / -1;
            background: linear-gradient(135deg, var(--accent), var(--purple));
            border-radius: 24px;
            padding: 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 24px;
        }

        .weather-hero-left {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .weather-hero-icon {
            font-size: 5rem;
            text-shadow: 0 4px 20px rgba(0,0,0,0.2);
        }

        .weather-hero-temp {
            font-size: 4rem;
            font-weight: 800;
        }

        .weather-hero-temp-unit {
            font-size: 2rem;
            vertical-align: top;
        }

        .weather-hero-desc {
            font-size: 1.5rem;
            opacity: 0.9;
        }

        .weather-hero-city {
            font-size: 1rem;
            opacity: 0.7;
            margin-top: 8px;
        }

        .weather-hero-right {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .weather-stat {
            background: rgba(255,255,255,0.15);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 16px 24px;
            text-align: center;
        }

        .weather-stat-icon { font-size: 1.5rem; margin-bottom: 4px; }
        .weather-stat-label { font-size: 0.75rem; opacity: 0.8; }
        .weather-stat-value { font-size: 1.1rem; font-weight: 600; }

        /* 天气预报卡片 */
        .forecast-card {
            grid-column: 1 / -1;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 24px;
        }

        .forecast-card-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .forecast-list {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 16px;
        }

        @media (max-width: 900px) {
            .forecast-list {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 500px) {
            .forecast-list {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .forecast-item {
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 20px 12px;
            text-align: center;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .forecast-item:hover {
            background: var(--bg-card-hover);
            transform: translateY(-2px);
        }

        .forecast-item.today {
            background: rgba(99, 102, 241, 0.1);
            border: 1px solid rgba(99, 102, 241, 0.2);
        }

        .forecast-date { 
            font-size: 0.85rem; 
            font-weight: 600; 
            margin-bottom: 12px;
            color: var(--text);
        }
        
        .forecast-icon { 
            font-size: 2.5rem; 
            margin: 8px 0 12px;
        }
        
        .forecast-temp { 
            font-size: 1.1rem; 
            font-weight: 700;
            color: var(--text);
        }
        
        .forecast-weather { 
            font-size: 0.8rem; 
            color: var(--text-muted); 
            margin-top: 6px;
        }
        
        .forecast-wind {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-top: 4px;
        }

        .forecast-pm {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            margin-top: 10px;
            background: rgba(34, 197, 94, 0.15);
            color: var(--success);
            font-weight: 500;
        }

        .forecast-pm.good { background: rgba(59, 130, 246, 0.15); color: var(--info); }
        .forecast-pm.moderate { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

        /* 城市搜索 */
        .city-search {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
        }

        .city-search input {
            flex: 1;
            padding: 14px 20px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            font-size: 0.95rem;
            color: var(--text);
            font-family: inherit;
        }

        .city-search input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .city-search input::placeholder {
            color: var(--text-muted);
        }

        /* ===== 快递查询页面 ===== */
        .express-search {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
        }

        .express-search input {
            flex: 1;
            padding: 14px 20px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            font-size: 0.95rem;
            color: var(--text);
            font-family: inherit;
        }

        .express-search input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .express-search input::placeholder {
            color: var(--text-muted);
        }

        .express-select {
            padding: 14px 16px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            font-size: 0.9rem;
            color: var(--text);
            font-family: inherit;
            cursor: pointer;
            min-width: 140px;
        }

        .express-select:focus {
            outline: none;
            border-color: var(--accent);
        }

        .express-result {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 24px;
        }

        .express-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
            margin-bottom: 24px;
            flex-wrap: wrap;
            gap: 16px;
        }

        .express-courier {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .express-courier-icon {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, var(--accent), var(--purple));
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
        }

        .express-courier-name {
            font-size: 1.25rem;
            font-weight: 700;
        }

        .express-courier-number {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 4px;
        }

        .express-status {
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .express-status.delivered {
            background: rgba(34, 197, 94, 0.15);
            color: var(--success);
        }

        .express-status.transit {
            background: rgba(59, 130, 246, 0.15);
            color: var(--info);
        }

        .express-status.pending {
            background: rgba(245, 158, 11, 0.15);
            color: var(--warning);
        }

        .express-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        .express-info-item {
            background: var(--bg-secondary);
            border-radius: 14px;
            padding: 16px;
        }

        .express-info-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 6px;
        }

        .express-info-value {
            font-size: 1rem;
            font-weight: 600;
        }

        .express-timeline {
            margin-top: 24px;
        }

        .express-timeline-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .timeline-list {
            position: relative;
            padding-left: 32px;
        }

        .timeline-list::before {
            content: '';
            position: absolute;
            left: 11px;
            top: 24px;
            bottom: 24px;
            width: 2px;
            background: var(--border);
        }

        .timeline-item {
            position: relative;
            padding: 16px 0;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -24px;
            top: 22px;
            width: 12px;
            height: 12px;
            background: var(--bg-secondary);
            border: 2px solid var(--border-light);
            border-radius: 50%;
        }

        .timeline-item:first-child::before {
            background: var(--accent);
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
        }

        .timeline-time {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .timeline-content {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .timeline-item:first-child .timeline-content {
            color: var(--text);
            font-weight: 500;
        }

        .express-empty {
            text-align: center;
            padding: 60px 24px;
            color: var(--text-muted);
        }

        .express-empty-icon {
            font-size: 4rem;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .express-empty-text {
            font-size: 0.95rem;
        }

        .express-empty-hint {
            font-size: 0.8rem;
            margin-top: 8px;
            opacity: 0.7;
        }

        .express-loading {
            text-align: center;
            padding: 60px 24px;
        }

        .express-loading .loader-spinner {
            margin: 0 auto 16px;
        }

        /* ===== 汇率转换页面 ===== */
        .converter-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 32px;
            max-width: 600px;
        }

        .converter-row {
            display: flex;
            gap: 12px;
            align-items: flex-end;
            margin-bottom: 20px;
        }

        .converter-field {
            flex: 1;
        }

        .converter-field label {
            display: block;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .converter-field input,
        .converter-field select {
            width: 100%;
            padding: 14px 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            font-size: 0.95rem;
            color: var(--text);
            font-family: inherit;
        }

        .converter-field input:focus,
        .converter-field select:focus {
            outline: none;
            border-color: var(--accent);
        }

        .converter-swap {
            width: 48px;
            height: 48px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.2rem;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .converter-swap:hover {
            background: var(--accent);
            border-color: var(--accent);
        }

        .converter-result {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
            border: 1px solid rgba(99, 102, 241, 0.2);
            border-radius: 16px;
            padding: 24px;
            text-align: center;
            margin-top: 24px;
        }

        .converter-result-label {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .converter-result-value {
            font-size: 2.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-light), var(--purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .converter-result-rate {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-top: 8px;
        }

        .converter-quick {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .converter-quick-btn {
            padding: 8px 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.8rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
        }

        .converter-quick-btn:hover {
            background: var(--accent);
            border-color: var(--accent);
            color: white;
        }

        /* ===== 图片压缩页面 ===== */
        .compress-upload {
            border: 2px dashed var(--border);
            border-radius: 20px;
            padding: 60px 40px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            background: var(--bg-card);
            margin-bottom: 24px;
        }

        .compress-upload:hover {
            border-color: var(--accent);
            background: rgba(99, 102, 241, 0.05);
        }

        .compress-upload.dragover {
            border-color: var(--accent);
            background: rgba(99, 102, 241, 0.1);
        }

        .compress-upload-icon {
            font-size: 4rem;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .compress-upload-text {
            font-size: 1.1rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .compress-upload-hint {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .compress-settings {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 24px;
        }

        .compress-setting-row {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .compress-setting-item {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .compress-setting-item label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .compress-quality {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .compress-quality input[type="range"] {
            width: 200px;
            height: 6px;
            -webkit-appearance: none;
            background: var(--bg-secondary);
            border-radius: 3px;
            outline: none;
        }

        .compress-quality input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            background: var(--accent);
            border-radius: 50%;
            cursor: pointer;
        }

        .compress-quality-value {
            min-width: 50px;
            padding: 6px 12px;
            background: var(--bg-secondary);
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            text-align: center;
        }

        .compress-format select {
            padding: 10px 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 10px;
            font-size: 0.9rem;
            color: var(--text);
            font-family: inherit;
            cursor: pointer;
        }

        .compress-preview {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 24px;
        }

        @media (max-width: 768px) {
            .compress-preview {
                grid-template-columns: 1fr;
            }
        }

        .compress-preview-item {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
        }

        .compress-preview-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .compress-preview-title {
            font-size: 0.9rem;
            font-weight: 600;
        }

        .compress-preview-size {
            font-size: 0.8rem;
            padding: 4px 10px;
            border-radius: 6px;
        }

        .compress-preview-size.original {
            background: rgba(245, 158, 11, 0.15);
            color: var(--warning);
        }

        .compress-preview-size.compressed {
            background: rgba(34, 197, 94, 0.15);
            color: var(--success);
        }

        .compress-preview-image {
            padding: 20px;
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-secondary);
        }

        .compress-preview-image img {
            max-width: 100%;
            max-height: 300px;
            border-radius: 8px;
        }

        .compress-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 24px;
        }

        @media (max-width: 600px) {
            .compress-stats {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .compress-stat {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px;
            text-align: center;
        }

        .compress-stat-value {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--accent-light);
        }

        .compress-stat-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 4px;
        }

        .compress-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        .compress-file-list {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 24px;
        }

        .compress-file-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--bg-secondary);
            border-radius: 10px;
            margin-bottom: 8px;
        }

        .compress-file-item:last-child {
            margin-bottom: 0;
        }

        .compress-file-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--accent), var(--purple));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .compress-file-info {
            flex: 1;
        }

        .compress-file-name {
            font-size: 0.9rem;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .compress-file-meta {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .compress-file-status {
            font-size: 0.8rem;
            padding: 4px 12px;
            border-radius: 6px;
        }

        .compress-file-status.done {
            background: rgba(34, 197, 94, 0.15);
            color: var(--success);
        }

        .compress-file-status.pending {
            background: rgba(245, 158, 11, 0.15);
            color: var(--warning);
        }

        /* ===== 文件转换页面 ===== */
        .convert-tabs {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
            flex-wrap: wrap;
        }

        .convert-tab {
            padding: 12px 24px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            font-size: 0.9rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .convert-tab:hover {
            background: var(--bg-card-hover);
        }

        .convert-tab.active {
            background: linear-gradient(135deg, var(--accent), var(--purple));
            border-color: transparent;
            color: white;
        }

        .convert-panel {
            display: none;
        }

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

        .convert-upload {
            border: 2px dashed var(--border);
            border-radius: 20px;
            padding: 48px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            background: var(--bg-card);
            margin-bottom: 24px;
        }

        .convert-upload:hover {
            border-color: var(--accent);
            background: rgba(99, 102, 241, 0.05);
        }

        .convert-upload-icon {
            font-size: 3rem;
            margin-bottom: 12px;
            opacity: 0.5;
        }

        .convert-upload-text {
            font-size: 1rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .convert-upload-hint {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .convert-options {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .convert-option {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .convert-option label {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .convert-option select {
            padding: 10px 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 10px;
            font-size: 0.9rem;
            color: var(--text);
            font-family: inherit;
            cursor: pointer;
        }

        .convert-file-list {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 24px;
            max-height: 300px;
            overflow-y: auto;
        }

        .convert-file-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--bg-secondary);
            border-radius: 10px;
            margin-bottom: 8px;
        }

        .convert-file-item:last-child {
            margin-bottom: 0;
        }

        .convert-file-thumb {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            object-fit: cover;
            background: var(--bg-card);
        }

        .convert-file-info {
            flex: 1;
        }

        .convert-file-name {
            font-size: 0.9rem;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .convert-file-meta {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .convert-file-status {
            font-size: 0.8rem;
            padding: 4px 12px;
            border-radius: 6px;
        }

        .convert-file-status.done {
            background: rgba(34, 197, 94, 0.15);
            color: var(--success);
        }

        .convert-file-status.pending {
            background: rgba(245, 158, 11, 0.15);
            color: var(--warning);
        }

        .convert-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        .convert-result {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 24px;
            text-align: center;
        }

        .convert-result-icon {
            font-size: 4rem;
            margin-bottom: 16px;
        }

        .convert-result-text {
            font-size: 1rem;
            color: var(--text-secondary);
            margin-bottom: 16px;
        }

        /* ===== 黄金汇率页面 ===== */
        .gold-header {
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            border-radius: 20px;
            padding: 32px;
            margin-bottom: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .gold-price-main {
            display: flex;
            align-items: baseline;
            gap: 8px;
        }

        .gold-price-value {
            font-size: 3rem;
            font-weight: 800;
            color: white;
        }

        .gold-price-unit {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.8);
        }

        .gold-price-label {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
            margin-top: 4px;
        }

        .gold-change {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;
        }

        .gold-change-value {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .gold-change-value.up {
            color: #22c55e;
        }

        .gold-change-value.down {
            color: #ef4444;
        }

        .gold-change-percent {
            font-size: 0.9rem;
            padding: 4px 12px;
            border-radius: 8px;
        }

        .gold-change-percent.up {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
        }

        .gold-change-percent.down {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .gold-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
        }

        .gold-tab {
            padding: 10px 24px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            font-size: 0.9rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
        }

        .gold-tab:hover {
            background: var(--bg-card-hover);
        }

        .gold-tab.active {
            background: linear-gradient(135deg, var(--accent), var(--purple));
            border-color: transparent;
            color: white;
        }

        .gold-chart {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 24px;
            margin-bottom: 24px;
        }

        .gold-chart-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .gold-chart-canvas {
            width: 100%;
            height: 300px;
        }

        .gold-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-bottom: 24px;
        }

        @media (max-width: 800px) {
            .gold-stats {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .gold-stat-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px;
        }

        .gold-stat-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .gold-stat-value {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .gold-stat-value.high {
            color: var(--success);
        }

        .gold-stat-value.low {
            color: var(--danger);
        }

        .gold-stat-value.avg {
            color: var(--accent-light);
        }

        .gold-stat-value.range {
            color: var(--warning);
        }

        .gold-table {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            overflow: hidden;
        }

        .gold-table-header {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            padding: 16px 20px;
            background: var(--bg-secondary);
            font-size: 0.8rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        .gold-table-row {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            padding: 14px 20px;
            border-bottom: 1px solid var(--border);
            font-size: 0.9rem;
        }

        .gold-table-row:last-child {
            border-bottom: none;
        }

        .gold-table-row:hover {
            background: var(--bg-secondary);
        }

        /* ===== 开发工具页面 ===== */
        .dev-tools-sidebar {
            width: 220px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 12px;
            position: sticky;
            top: 24px;
            max-height: calc(100vh - 48px);
            overflow-y: auto;
        }

        .dev-tool-item {
            padding: 12px 16px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text-secondary);
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .dev-tool-item:hover {
            background: var(--bg-secondary);
            color: var(--text);
        }

        .dev-tool-item.active {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
            color: var(--text);
            border: 1px solid rgba(99, 102, 241, 0.2);
        }

        .dev-tool-icon {
            font-size: 1.1rem;
        }

        .dev-tools-content {
            flex: 1;
            min-width: 0;
        }

        .dev-tool-panel {
            display: none;
        }

        .dev-tool-panel.active {
            display: block;
        }

        .tool-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 20px;
        }

        .tool-card-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tool-input {
            width: 100%;
            padding: 14px 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            font-size: 0.9rem;
            color: var(--text);
            font-family: inherit;
            resize: vertical;
        }

        .tool-input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .tool-textarea {
            min-height: 150px;
            font-family: 'Consolas', 'Monaco', monospace;
        }

        .tool-output {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px;
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 0.85rem;
            word-break: break-all;
            white-space: pre-wrap;
            max-height: 300px;
            overflow-y: auto;
        }

        .tool-row {
            display: flex;
            gap: 12px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .tool-row > * {
            flex: 1;
            min-width: 200px;
        }

        .tool-btn-group {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .tool-label {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
            display: block;
        }

        .color-picker-wrapper {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .color-picker-preview {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            border: 2px solid var(--border);
            cursor: pointer;
        }

        .color-picker-input {
            width: 60px;
            height: 60px;
            border: none;
            padding: 0;
            cursor: pointer;
            background: transparent;
        }

        .color-values {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 12px;
            margin-top: 16px;
        }

        .color-value-item {
            background: var(--bg-secondary);
            border-radius: 10px;
            padding: 12px;
        }

        .color-value-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .color-value-text {
            font-size: 0.9rem;
            font-family: 'Consolas', monospace;
            cursor: pointer;
        }

        .color-value-text:hover {
            color: var(--accent-light);
        }

        .password-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }

        .password-option {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .password-option input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: var(--accent);
        }

        .password-result {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            font-size: 1.5rem;
            font-family: 'Consolas', monospace;
            text-align: center;
            letter-spacing: 2px;
            word-break: break-all;
        }

        .diff-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        @media (max-width: 800px) {
            .diff-container {
                grid-template-columns: 1fr;
            }
        }

        .diff-panel {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
        }

        .diff-panel-header {
            padding: 12px 16px;
            background: var(--bg-card);
            border-bottom: 1px solid var(--border);
            font-size: 0.85rem;
            font-weight: 600;
        }

        .diff-panel-content {
            padding: 16px;
            font-family: 'Consolas', monospace;
            font-size: 0.85rem;
            line-height: 1.6;
            max-height: 400px;
            overflow-y: auto;
            white-space: pre-wrap;
        }

        .diff-added {
            background: rgba(34, 197, 94, 0.15);
            color: var(--success);
        }

        .diff-removed {
            background: rgba(239, 68, 68, 0.15);
            color: var(--danger);
        }

        .qr-preview {
            background: white;
            padding: 20px;
            border-radius: 12px;
            display: inline-block;
        }

        .qr-preview canvas {
            display: block;
        }

        .encryption-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }

        .encryption-tab {
            padding: 8px 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.85rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
        }

        .encryption-tab.active {
            background: var(--accent);
            border-color: var(--accent);
            color: white;
        }

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

        /* ===== 加载状态 ===== */
        #loading {
            position: fixed;
            inset: 0;
            background: var(--bg-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .loader {
            text-align: center;
        }

        .loader-spinner {
            width: 50px;
            height: 50px;
            border: 3px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin { to { transform: rotate(360deg); } }
        .loader-text { color: var(--text-muted); font-size: 0.9rem; }

        .hidden { display: none !important; }

        /* 响应式 */
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }
            .sidebar.open {
                transform: translateX(0);
            }
            .main {
                margin-left: 0;
            }
            .mobile-menu-btn {
                display: flex !important;
            }
        }

        .mobile-menu-btn {
            display: none;
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 101;
            width: 44px;
            height: 44px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.2rem;
        }

        /* ===== 热搜榜页面 ===== */
        .hotsearch-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            flex-wrap: wrap;
        }

        .hotsearch-tab {
            padding: 10px 20px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
        }

        .hotsearch-tab:hover {
            background: var(--bg-card-hover);
            color: var(--text);
        }

        .hotsearch-tab.active {
            background: linear-gradient(135deg, var(--accent), var(--purple));
            color: white;
            border-color: transparent;
        }

        .hotsearch-content {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 24px;
        }

        .hotsearch-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .hotsearch-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px;
            background: var(--bg-secondary);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .hotsearch-item:hover {
            background: var(--bg-card-hover);
            transform: translateX(4px);
        }

        .hotsearch-rank {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
            background: var(--bg-card);
        }

        .hotsearch-item:nth-child(1) .hotsearch-rank {
            background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
            color: white;
        }

        .hotsearch-item:nth-child(2) .hotsearch-rank {
            background: linear-gradient(135deg, #ffa94d, #ff922b);
            color: white;
        }

        .hotsearch-item:nth-child(3) .hotsearch-rank {
            background: linear-gradient(135deg, #ffd43b, #fab005);
            color: white;
        }

        .hotsearch-title {
            flex: 1;
            font-size: 0.95rem;
        }

        .hotsearch-hot {
            font-size: 0.8rem;
            color: var(--accent-light);
            font-weight: 500;
        }

        /* ===== 每日一言 ===== */
        .hitokoto-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 32px;
        }

        .hitokoto-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 48px;
            max-width: 700px;
            width: 100%;
            text-align: center;
            position: relative;
        }

        .hitokoto-quote {
            font-size: 4rem;
            color: var(--accent);
            opacity: 0.3;
            line-height: 1;
            position: absolute;
            left: 24px;
            top: 16px;
        }

        .hitokoto-quote-end {
            left: auto;
            right: 24px;
            top: auto;
            bottom: 16px;
        }

        .hitokoto-text {
            font-size: 1.5rem;
            line-height: 1.8;
            color: var(--text);
            margin: 32px 0;
            min-height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hitokoto-meta {
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid var(--border);
        }

        .hitokoto-from {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        .hitokoto-types {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
        }

        .hitokoto-type {
            padding: 10px 20px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--text-secondary);
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .hitokoto-type:hover {
            background: var(--bg-card-hover);
            color: var(--text);
        }

        .hitokoto-type.active {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
            border-color: var(--accent);
            color: var(--accent-light);
        }

        /* ===== 星座运势 ===== */
        .horoscope-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
        }

        .zodiac-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
        }

        .zodiac-item {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .zodiac-item:hover {
            background: var(--bg-card-hover);
            border-color: var(--accent);
            transform: translateY(-2px);
        }

        .zodiac-item.active {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
            border-color: var(--accent);
        }

        .zodiac-icon {
            font-size: 2rem;
            margin-bottom: 8px;
        }

        .zodiac-name {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .zodiac-item.active .zodiac-name {
            color: var(--accent-light);
        }

        .horoscope-result {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 32px;
        }

        .horoscope-empty {
            text-align: center;
            color: var(--text-muted);
            padding: 60px 20px;
            font-size: 1.1rem;
        }

        .horoscope-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
        }

        .horoscope-zodiac-icon {
            font-size: 3rem;
        }

        .horoscope-zodiac-name {
            font-size: 1.5rem;
            font-weight: 600;
        }

        .horoscope-date {
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .horoscope-grade {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 20px;
        }

        .horoscope-grade-label {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .horoscope-grade-stars {
            color: #fbbf24;
            font-size: 1.2rem;
        }

        .horoscope-content {
            line-height: 1.8;
            color: var(--text-secondary);
        }

        .horoscope-content p {
            margin-bottom: 12px;
        }

        /* ===== 趣味文案 ===== */
        .funny-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 24px;
            max-width: 600px;
            margin: 0 auto;
        }

        .funny-tabs {
            display: flex;
            gap: 12px;
        }

        .funny-tab {
            padding: 12px 24px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .funny-tab:hover {
            background: var(--bg-card-hover);
            color: var(--text);
        }

        .funny-tab.active {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
            border-color: var(--accent);
            color: var(--accent-light);
        }

        .funny-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 48px 32px;
            width: 100%;
            text-align: center;
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .funny-text {
            font-size: 1.25rem;
            line-height: 1.8;
            color: var(--text);
        }

        .funny-btn {
            min-width: 160px;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 40px auto;
        }
    </style>
