/* ============================================================
   base.css —— 全局变量 / Reset / 页面布局 / 排版
   （由 style.css 拆分而来，未改动样式规则）
   ============================================================ */

:root {
    --primary: #b3415f;
    --primary-dark: #8c2e46;
    --bg: #faf6f0;
    --card: #ffffff;
    --text: #3a2b2b;
    --muted: #8a7a78;
    --border: #eadcd2;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: inherit;
    max-width: 100%;
    margin: 1em 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: "Hiragino Sans", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

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

/* ---------- 顶栏 ---------- */

.site-header {
    background: linear-gradient(135deg, #5b2333, #b3415f);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.brand-mark {
    font-size: 2rem;
}

.brand small {
    display: block;
    font-size: .7rem;
    opacity: .85;
}

.main-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    transition: background .2s;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, .18);
}

.main-content {
    flex: 1 0 auto;
    padding: 32px 20px 48px;
}

/* ---------- 页脚 ---------- */

.site-footer {
    flex-shrink: 0;
    background: #3b2a2a;
    color: #e6d7d2;
    padding: 22px 0;
    text-align: center;
    font-size: .9rem;
}

.site-footer p {
    margin: 0;
}

/* ---------- 通用排版 ---------- */

.muted {
    color: var(--muted);
    font-size: .9rem;
}
