/* ========================================
   global.css — 全局重置与公共样式
   ======================================== */

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1e1e2a;
    background-color: #fafaf8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- 链接 ---------- */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}
a:hover {
    color: #4a6cf7;
}

/* ---------- 图片 ---------- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- 容器 ---------- */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #1e1e2a;
    color: #fafaf8;
    border-color: #1e1e2a;
}
.btn-primary:hover {
    background-color: #4a6cf7;
    border-color: #4a6cf7;
    color: #fafaf8;
}

.btn-outline {
    background-color: transparent;
    color: #1e1e2a;
    border-color: #1e1e2a;
}
.btn-outline:hover {
    background-color: #1e1e2a;
    color: #fafaf8;
}

/* ---------- 通用标题 ---------- */
.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1e1e2a;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}
.view-all {
    font-size: 0.95rem;
    color: #4a6cf7;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.view-all:hover {
    color: #1e1e2a;
}

/* ---------- 标签 ---------- */
.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 12px;
    border-radius: 20px;
    background-color: #f0f0ed;
    color: #4a4a5a;
    letter-spacing: 0.3px;
}

/* ---------- 响应式通用 ---------- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}