/* ===== 从 HTML 抽出的内联样式 ===== */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
            background: linear-gradient(135deg, #fef5e7 0%, #fde6cf 100%);
            min-height: 100vh;
            padding: 40px 24px;
        }

        /* 容器 */
        .dashboard {
            max-width: 1400px;
            margin: 0 auto;
        }

        /* 头部 */
        .header {
            text-align: center;
            margin-bottom: 48px;
        }

        .header h1 {
            font-size: 42px;
            font-weight: 700;
            background: linear-gradient(135deg, #e67e22, #d35400);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 12px;
        }

        .subtitle {
            font-size: 18px;
            color: #666;
        }

        .badge {
            display: inline-block;
            background: rgba(230, 126, 34, 0.1);
            padding: 6px 14px;
            border-radius: 40px;
            font-size: 13px;
            color: #e67e22;
            margin-top: 12px;
        }

        /* 统计卡片行 */
        .stats-row {
            display: flex;
            gap: 20px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .stat-card {
            flex: 1;
            min-width: 180px;
            background: white;
            border-radius: 20px;
            padding: 20px 24px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            transition: transform 0.2s;
        }

        .stat-card:hover {
            transform: translateY(-2px);
        }

        .stat-number {
            font-size: 42px;
            font-weight: 700;
            color: #e67e22;
            line-height: 1;
        }

        .stat-label {
            font-size: 14px;
            color: #888;
            margin-top: 8px;
        }

        .refresh-btn {
            background: #e67e22;
            color: white;
            border: none;
            padding: 0 32px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .refresh-btn:hover {
            background: #d35400;
        }

        .refresh-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

        /* 站点卡片网格 */
        .sites-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 28px;
            margin-bottom: 48px;
        }

        .site-card {
            background: white;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            border: 1px solid #f0f0f0;
        }

        .site-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        }

        .site-card.has-new {
            border: 2px solid #e67e22;
            box-shadow: 0 8px 28px rgba(230, 126, 34, 0.2);
        }

        .site-card.error {
            background: #fff5f5;
            border-color: #e74c3c;
        }

        /* 卡片头部 */
        .card-header {
            padding: 24px 24px 0 24px;
            text-align: center;
        }

        .card-title h3 {
            font-size: 20px;
            font-weight: 600;
            margin: 0 0 10px 0;
            color: #1a1a1a;
        }

        .status-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }

        .status-badge.checking {
            background: #f0f0f0;
            color: #888;
        }

        .status-badge.normal {
            background: #d4edda;
            color: #155724;
        }

        .status-badge.has-new {
            background: #fff3e0;
            color: #e67e22;
            animation: pulse 1.5s infinite;
        }

        .status-badge.error {
            background: #fee2e2;
            color: #e74c3c;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        /* 卡片主体 */
        .card-body {
            padding: 20px 24px;
            text-align: center;
            border-bottom: 1px solid #f0f0f0;
        }

        .count-number {
            font-size: 56px;
            font-weight: 800;
            color: #e67e22;
        }

        .count-label {
            font-size: 14px;
            margin-left: 6px;
            font-weight: normal;
            color: #666;
        }

        .update-time {
            font-size: 11px;
            color: #999;
            margin-top: 12px;
        }

        /* 卡片操作按钮 - 改小 */
        .card-actions {
            display: flex;
            gap: 12px;
            padding: 16px 24px 20px;
        }

        .btn {
            flex: 1;
            text-align: center;
            padding: 8px 12px;
            border-radius: 8px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .btn-front {
            background: #f5f5f5;
            color: #555;
            border: 1px solid #e0e0e0;
        }

        .btn-front:hover {
            background: #e8e8e8;
        }

        .btn-admin {
            background: #e67e22;
            color: white;
        }

        .btn-admin:hover {
            background: #d35400;
        }

        /* 底部 */
        .footer {
            text-align: center;
            padding-top: 32px;
            border-top: 1px solid rgba(0, 0, 0, 0.08);
            color: #888;
            font-size: 13px;
        }

        .footer p {
            margin: 8px 0;
        }

        .footer a {
            color: #e67e22;
            text-decoration: none;
        }

        .footer a:hover {
            text-decoration: underline;
        }

        /* 响应式 */
        @media (max-width: 768px) {
            body {
                padding: 24px 16px;
            }
            .header h1 {
                font-size: 32px;
            }
            .subtitle {
                font-size: 15px;
            }
            .sites-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            .stats-row {
                flex-direction: column;
            }
            .stat-card {
                width: 100%;
            }
            .refresh-btn {
                width: 100%;
                padding: 12px;
            }
            .count-number {
                font-size: 48px;
            }
        }

        /* 加载动画 */
        .loading-spinner {
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid #fff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 0.6s linear infinite;
            margin-right: 6px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }
