/* =========================================
   1. 基础重置 (Reset & Variables)
   ========================================= */
:root {
    /* 核心色 */
    --primary: #1d4ed8;
    --primary-hover: #2563eb;

    /* 背景色 */
    --bg-body: #F1F5F9;
    --bg-white: #FFFFFF;

    /* 边框 */
    --border-light: rgba(0, 0, 0, 0.03);

    /* 文字色 */
    --text-main: #0f172a;
    --text-sub: #64748b;
    --text-light: #94a3b8;

    /* 功能色 */
    --red: #ef4444;
    --green: #10b981;
    --blue: #3b82f6;
    --yellow: #f59e0b;
    --purple: #8b5cf6;
    --cyan: #06b6d4;
    --orange: #f97316;

    /* 辅助色 */
    --blue-light: #eff6ff;
    --green-light: #f0fdf4;
    --yellow-light: #fefce8;
    --red-light: #fef2f2;
    --purple-light: #faf5ff;
    --cyan-light: #ecfeff;
    --orange-light: #fff7ed;

    /* 阴影系统 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(29, 78, 216, 0.08), 0 8px 10px -6px rgba(29, 78, 216, 0.05);

    --radius: 1px;
    --container: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* 网格系统 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* 颜色工具类 */
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }
.text-purple { color: var(--purple); }
.text-cyan { color: var(--cyan); }
.text-orange { color: var(--orange); }

.t-red { color: var(--red); }
.t-blue { color: var(--blue); }
.t-green { color: var(--green); }
.t-gray { color: var(--text-light); }
.t-purple { color: var(--purple); }
.t-cyan { color: var(--cyan); }

.bg-blue-light { background: var(--blue-light); }
.bg-green-light { background: var(--green-light); }
.bg-yellow-light { background: var(--yellow-light); }
.bg-red-light { background: var(--red-light); }
.bg-purple-light { background: var(--purple-light); }
.bg-cyan-light { background: var(--cyan-light); }
.bg-orange-light { background: var(--orange-light); }

.bg-gradient-blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.bg-gradient-purple { background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%); }
.bg-gradient-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }

.pt-10 { padding-top: 10px; }

/* =========================================
   分页样式 (Pagination)
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--text-sub);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pagination a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--blue-light);
}

.pagination .current,
.pagination span.current {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.pagination .disabled {
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination .disabled:hover {
    background: var(--bg-white);
    border-color: var(--border-light);
    color: var(--text-light);
}

/* =========================================
   顶部导航 (Header)
   ========================================= */
.site-header {
    background: #FFFFFF;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
}

.btn-login {
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    transition: 0.2s;
}

.btn-login:hover {
    background: var(--blue-light);
    color: var(--primary);
}

/* 24小时内更新标红 */
.time-new { color: #e53935; }

/* 页脚 (Footer) */
.site-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--bg-body);
    height: 64px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 60px;
}
.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.footer-right {
    text-align: right;
}
.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-sub); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

