:root {
            --primary: #3498db;
            --secondary: #2c3e50;
            --light-bg: #f5f7fa;
            --card-bg: #ffffff;
            --text-color: #333;
            --card-border: #eaeaea;
            --category-title: #2c3e50;
            --category-subtitle: #7f8c8d;
            --call-count: #3498db;
            --disable-bg: #f8f9fa;
        }

        [data-theme="dark"] {
            --primary: #5daae0;
            --secondary: #bdc3c7;
            --light-bg: #1e1f24;
            --card-bg: #25262e;
            --text-color: #e0e0e0;
            --card-border: #3a3b42;
            --category-title: #e0e0e0;
            --category-subtitle: #b0b0b0;
            --call-count: #5daae0;
            --disable-bg: #2d2e35;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        body {
            background-color: var(--light-bg);
            color: var(--text-color);
            line-height: 1.6;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 20px;
        }

        /* 顶部导航栏 */
        .top-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            margin-bottom: 40px;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .logo {
            font-size: 28px;
            font-weight: 800;
            color: var(--primary);
        }

        .official-site {
            color: var(--category-subtitle);
            text-decoration: none;
            padding: 6px 15px;
            border-radius: 20px;
            border: 1px solid var(--card-border);
        }

        .official-site:hover {
            background-color: var(--card-border);
        }

        .user-section {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .theme-toggle {
            background: none;
            border: none;
            color: var(--text-color);
            font-size: 24px;
            cursor: pointer;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .theme-toggle:hover {
            background-color: var(--card-border);
        }

        .user-info {
            padding: 8px 16px;
            border-radius: 20px;
            background-color: var(--card-bg);
            color: var(--text-color);
            font-weight: 600;
        }

        /* 头部信息区域 */
        .header {
            text-align: center;
            margin-bottom: 40px;
        }

        .tagline {
            font-size: 16px;
            color: var(--category-subtitle);
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 10px;
        }

        .main-title {
            font-size: 56px;
            font-weight: 900;
            margin-bottom: 15px;
            color: var(--category-title);
            letter-spacing: -1px;
        }

        .description {
            font-size: 19px;
            max-width: 700px;
            margin: 0 auto 30px;
            color: var(--category-subtitle);
        }

        .stats {
            background-color: var(--card-bg);
            padding: 15px 30px;
            border-radius: 50px;
            display: inline-flex;
            gap: 25px;
            margin-bottom: 30px;
            border: 1px solid var(--card-border);
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 16px;
        }

        .stat-value {
            font-weight: 800;
            color: var(--primary);
            font-size: 18px;
        }

        /* 搜索区域 */
        .search-container {
            max-width: 650px;
            margin: 0 auto 40px;
            position: relative;
        }

        .search-box {
            width: 100%;
            padding: 18px 25px;
            padding-left: 60px;
            border: none;
            border-radius: 50px;
            background-color: var(--card-bg);
            font-size: 17px;
            color: var(--text-color);
            transition: all 0.3s;
            border: 1px solid var(--card-border);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
        }

        .search-box:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
        }

        .search-icon {
            position: absolute;
            left: 25px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--category-subtitle);
        }

        /* API 类别区域 */
        .category-section {
            margin-bottom: 60px;
        }

        .category-title {
            margin: 50px 0 15px;
            font-size: 32px;
            color: var(--category-title);
            position: relative;
            display: inline-block;
        }

        .category-title::after {
            content: "";
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 80px;
            height: 4px;
            background: var(--primary);
            border-radius: 2px;
        }

        .category-subtitle {
            font-size: 18px;
            color: var(--category-subtitle);
            margin-bottom: 30px;
            padding-left: 5px;
        }

        /* API 卡片网格 */
        .api-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 28px;
            margin-bottom: 40px;
        }

        .api-card {
            background: var(--card-bg);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            flex-direction: column;
            height: 100%;
            padding: 30px;
            border: 1px solid var(--card-border);
            cursor: pointer;
        }

        .api-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            border-color: var(--primary);
        }

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

        .card-status {
            padding: 6px 18px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
        }

        .status-active {
            background-color: rgba(46, 204, 113, 0.15);
            color: #27ae60;
        }

        .status-inactive {
            background-color: rgba(231, 76, 60, 0.15);
            color: #c0392b;
        }

        .card-icon {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 15px;
            background: rgba(52, 152, 219, 0.12);
            color: var(--primary);
            font-size: 24px;
            margin-bottom: 20px;
        }

        .card-title {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 15px;
            line-height: 1.3;
        }

        .card-description {
            color: var(--category-subtitle);
            font-size: 16px;
            margin-bottom: 25px;
            flex: 1;
            min-height: 50px;
        }

        .card-meta {
            display: flex;
            gap: 25px;
            margin-top: 10px;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
        }

        .free-true {
            color: #2ecc71;
        }

        .free-false {
            color: #f39c12;
        }

        .token-true {
            color: #9b59b6;
        }

        .token-false {
            color: var(--category-subtitle);
        }

        .call-count {
            font-weight: 700;
            color: var(--call-count);
            font-size: 15px;
        }

        .stats-row {
            display: flex;
            justify-content: space-between;
            border-top: 1px solid var(--card-border);
            padding-top: 20px;
            margin-top: 15px;
            font-size: 14px;
        }

        .stats-item {
            display: flex;
            gap: 8px;
        }

        /* 页脚 */
        .footer {
            text-align: center;
            padding: 50px 0 30px;
            color: var(--category-subtitle);
            font-size: 15px;
            margin-top: 20px;
        }

        .footer-info {
            margin-top: 15px;
            font-size: 14px;
            color: var(--primary);
        }

        /* 禁用状态 */
        .api-card.disable {
            opacity: 0.7;
            background-color: var(--disable-bg);
        }

        .api-card.disable:hover {
            transform: none;
            box-shadow: none;
            border-color: var(--card-border);
        }

        /* 加载指示器 */
        .loader {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 200px;
            flex-direction: column;
            gap: 20px;
        }

        .spinner {
            border: 5px solid rgba(0, 0, 0, 0.1);
            border-top: 5px solid var(--primary);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 错误提示 */
        .error-message {
            background-color: #ffebee;
            color: #c62828;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            margin: 20px 0;
        }

        /* 移动端适配 */
        @media (max-width: 1100px) {
            .api-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .top-nav {
                flex-direction: column;
                gap: 20px;
                align-items: flex-start;
            }
            
            .main-title {
                font-size: 42px;
            }
            
            .description {
                font-size: 17px;
            }
            
            .stats {
                flex-wrap: wrap;
                justify-content: center;
                gap: 15px;
            }
            
            .category-title {
                font-size: 28px;
            }
            
            .search-box {
                padding: 16px 20px;
                padding-left: 50px;
            }
        }