/* ==========================================================================
   基础层 base
   设计令牌 + 重置 + 排版 + 布局骨架 + 通用辅助类
   说明：全站公用，必须最先加载；组件 / 页面样式在此之后按需加载
   ========================================================================== */

/* --------------------------------------------------------------------------
   设计令牌
   -------------------------------------------------------------------------- */

:root {
    /* 主色：中国红（喜庆主调） */
    --brand: #c8333b;
    --brand-dark: #a8262e;
    --brand-soft: #fdeced;
    /* 点缀：亮朱红（深色底 CTA、小圆点） */
    --accent: #d94047;
    --accent-dark: #b82f37;
    --accent-soft: #fdedee;
    /* 金色（装饰线、描边、圆点） */
    --gold: #cda45f;
    --text: #2b1f20;
    --text-muted: #7d6c6c;
    --line: #efe4e2;
    --bg: #fffcf9;
    --bg-tint: #fdf4f1;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(43, 31, 32, 0.06);
    --shadow-hover: 0 18px 42px rgba(43, 31, 32, 0.13);
    --header-height: 80px;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
        'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    --font-serif: 'Songti SC', 'Source Han Serif SC', 'Noto Serif SC', 'STSong',
        'SimSun', serif;
    /* 暖深红棕（Hero / 页脚 / 区块底色） */
    --ink: #3a1a1c;
    --ink-soft: #4d2427;
}

/* --------------------------------------------------------------------------
   重置
   -------------------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
        'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background-color: var(--bg);
    padding-top: var(--header-height);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   标题排版
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   布局骨架
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 var(--radius) 0;
    z-index: 2000;
}

.skip-link:focus {
    left: 0;
}

/* --------------------------------------------------------------------------
   通用辅助类
   -------------------------------------------------------------------------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
}
