/* 博雅领航 · 基础样式（变量 / 重置 / 导航 / 按钮 / 表单 / 卡片） */
:root {
  --ink: #12222b;
  --ink-2: #1f3a44;
  --navy: #16324a;
  --pine: #1d5c4f;
  --pine-2: #2a6f5e;
  --pine-deep: #14402f;
  --gold: #c9a45c;
  --gold-2: #e6c98a;
  --gold-deep: #a87f35;
  --cream: #f7f4ed;
  --paper: #fffdf6;
  --line: #e6e0d4;
  --ink-soft: #6b7885;
  --ink-mute: #93a0a8;
  --rose: #c2555a;
  --amber: #d99a2d;
  --green: #3a9d6d;
  --sky: #3d82c4;
  --shadow: 0 6px 18px rgba(18, 34, 43, .12);
  --shadow-lg: 0 16px 40px rgba(18, 34, 43, .18);
  --r: 14px;
  --r-sm: 8px;
  --r-lg: 22px;
  --font: "PingFang SC", "Microsoft YaHei", "Source Han Sans CJK SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Songti SC", "SimSun", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; font-family: var(--font); background: var(--cream); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: rgba(201, 164, 92, .32); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
section { position: relative; }
@media (max-width: 768px) { .container { padding: 0 14px; } }
h1, h2, h3, h4 { color: var(--ink); }
.text-mute { color: var(--ink-mute); }
.text-soft { color: var(--ink-soft); }
.text-gold { color: var(--gold-deep); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ===== 导航 ===== */
.nav { position: sticky; top: 0; z-index: 80; background: rgba(18, 34, 43, .92); border-bottom: 1px solid rgba(201, 164, 92, .18); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 62px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .seal { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, var(--pine), var(--pine-deep)); color: var(--paper); font-weight: 800; font-family: var(--serif); }
.nav-logo .brand { font-weight: 800; letter-spacing: .04em; color: var(--paper); font-size: 19px; }
.nav-logo .brand small { display: block; font-size: 10.5px; letter-spacing: .3em; color: rgba(247, 244, 237, .65); margin-top: -2px; }
.nav-links { display: flex; flex: 1; gap: 6px; }
.nav-links a { color: rgba(247, 244, 237, .88); font-size: 15px; padding: 6px 10px; border-radius: var(--r-sm); transition: .18s; }
.nav-links a:hover { background: rgba(201, 164, 92, .14); color: var(--paper); }
.nav-links a.active { color: var(--gold-2); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-btn { border: 1px solid rgba(201, 164, 92, .65); background: transparent; color: var(--paper); padding: 7px 18px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: .2s; }
.nav-btn:hover { background: rgba(201, 164, 92, .18); }
.nav-btn-solid { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; border: none; padding: 8px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 3px 10px rgba(200, 164, 92, .35); transition: .2s; }
.nav-btn-solid:hover { filter: brightness(1.08); transform: translateY(-1px); }
.nav-user { position: relative; }
.nav-user-btn { background: rgba(201, 164, 92, .22); border: 1px solid rgba(201, 164, 92, .5); color: var(--paper); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.nav-user-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); }
.nav-user-panel { position: absolute; top: calc(100% + 6px); right: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); min-width: 190px; display: none; z-index: 90; }
.nav-user-panel.open { display: block; }
.nav-user-panel a, .nav-user-panel button { display: block; width: 100%; text-align: left; padding: 10px 16px; font-size: 14px; background: none; border: none; cursor: pointer; }
.nav-user-panel a:hover, .nav-user-panel button:hover { background: rgba(201, 164, 92, .1); }
.bell-wrap { position: relative; display: flex; }
.bell-btn { background: none; border: 1px solid rgba(201,164,92,.4); color: var(--paper); border-radius: 999px; font-size: 16px; cursor: pointer; padding: 6px 8px; line-height: 1; }
.bell-dot { position: absolute; top: -4px; right: -5px; min-width: 17px; height: 17px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; display: none; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.bell-dot.show { display: block; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(201,164,92,.4); color: var(--paper); border-radius: 8px; padding: 6px 10px; font-size: 17px; cursor: pointer; }
@media (max-width: 920px) { .nav-links { display: none; flex-direction: column; } .nav-toggle { display: block; } }
/* ===== 按钮 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 24px; border-radius: 999px; font-size: 14.5px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: .2s; line-height: 1.4; }
.btn.gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; box-shadow: 0 4px 14px rgba(201, 164, 92, .35); }
.btn.gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.dark { background: linear-gradient(135deg, var(--pine), var(--pine-deep)); color: var(--paper); box-shadow: 0 4px 14px rgba(29, 92, 79, .3); }
.btn.dark:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.blue { background: linear-gradient(135deg, #3d82c4, #2c6aa8); color: #fff; }
.btn.blue:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border: 1px solid rgba(29, 92, 79, .5); color: var(--pine-2); }
.btn.ghost:hover { background: rgba(29, 92, 79, .08); }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.btn.lg { padding: 13px 34px; font-size: 16px; }
.btn.block { display: flex; width: 100%; }
.btn.disabled, button:disabled { opacity: .55; cursor: not-allowed; }
.btn.danger { background: var(--paper); color: var(--rose); border: 1px solid rgba(194, 85, 90, .5); }
.btn.danger:hover { background: rgba(194, 85, 90, .1); }

/* ===== 徽章 ===== */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; }
.st-amber { background: rgba(217, 154, 45, .15); color: #b47a0e; }
.st-blue { background: rgba(61, 130, 196, .14); color: #2c6aa8; }
.st-violet { background: rgba(120, 100, 180, .14); color: #5c4a92; }
.st-green { background: rgba(58, 157, 109, .15); color: #2c7e55; }
.st-gray { background: rgba(120, 130, 140, .13); color: #6b7480; }

/* ===== 表单 ===== */
.field { margin-bottom: 6px; }
.field label { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 14.5px; color: var(--ink); outline: none; transition: .18s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .18); }
textarea { resize: vertical; min-height: 96px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row .btn { flex-shrink: 0; }

/* ===== 卡片与区块标题 ===== */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 22px 24px; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sec-title { font-size: 21px; font-weight: 800; letter-spacing: .05em; position: relative; }
.sec-title::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); position: absolute; left: 0; top: -7px; }
.sec-en { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); margin-top: 2px; }
.more-link { font-size: 13px; color: var(--pine-2); font-weight: 600; }
.more-link::after { content: " →"; }