/* ============================================================
   安语通 Lingu Design System  （色板取自参考站设计变量）
   ============================================================ */
:root {
  --ink-900: #18332d;
  --ink-700: #244d43;
  --ink-600: #3d5a51;
  --ink-500: #667a74;
  --ink-300: #9bb0a9;
  --forest: #0d3f34;          /* 顶部导航深墨绿 */
  --jade-800: #0d624e;
  --jade-600: #147d64;        /* 主色 */
  --jade-500: #0d795f;
  --jade-300: #b8e0d4;
  --jade-075: #e8f5ef;
  --paper: #f7faf8;           /* 页面纸白 */
  --card: #ffffff;
  --gold-700: #805319;
  --gold-600: #b47a23;
  --gold-300: #f3d897;
  --gold-100: #fff2d8;
  --vermilion-700: #962f29;
  --vermilion-600: #b53a32;
  --vermilion-050: #fde7e4;
  --sky-800: #164769;
  --echo: #346a80;
  --sky-100: #e7f4fb;
  --danger: #b42318;
  --line: #e3ede9;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
  --shadow-soft: 0 6px 18px rgba(24,51,45,.06);
  --shadow-100: 0 3px 9px rgba(24,51,45,.06);
  --shadow-200: 0 6px 24px rgba(24,51,45,.08);
  --shadow-raised: 0 16px 42px rgba(24,51,45,.12);
  --shadow-brand: 0 8px 24px rgba(20,125,100,.16);

  --font: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
    'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--jade-075);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--ink-900); }
img { max-width: 100%; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px;
  transition: transform .12s ease, box-shadow .2s ease, background .2s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--jade-600); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--jade-500); }
.btn-gold { background: var(--gold-600); color: #fff; }
.btn-ghost { background: rgba(20,125,100,.08); color: var(--jade-700, var(--jade-600)); }
.btn-ghost:hover { background: rgba(20,125,100,.15); }
.btn-outline { border-color: var(--jade-300); color: var(--jade-600); background: #fff; }
.btn-danger-ghost { background: var(--vermilion-050); color: var(--vermilion-600); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.card {
  background: var(--card); border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft); padding: 20px;
}
.kicker {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--jade-600); font-weight: 700;
}
.section-title { font-size: 18px; font-weight: 800; margin: 4px 0 2px; }
.muted { color: var(--ink-500); }
.tiny { font-size: 12px; color: var(--ink-500); }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600; background: var(--jade-075); color: var(--jade-700, var(--jade-600));
}
.tag-gold { background: var(--gold-100); color: var(--gold-700); }
.tag-red { background: var(--vermilion-050); color: var(--vermilion-600); }
.tag-blue { background: var(--sky-100); color: var(--sky-800); }
.tag-gray { background: #eef2f1; color: var(--ink-500); }

.input, .textarea, .select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 14px; background: #fff; outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--jade-600); box-shadow: 0 0 0 3px rgba(20,125,100,.12);
}
.textarea { resize: vertical; line-height: 1.7; }
.label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: var(--ink-700); }

/* 进度条 */
.progress { height: 8px; border-radius: var(--r-full); background: var(--jade-075); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, #e8893f, var(--gold-600)); transition: width .5s; }
.progress.jade > i { background: linear-gradient(90deg, var(--jade-500), var(--jade-600)); }

/* 徽标小点 */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Toast */
#toast-root { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(24,51,45,.94); color: #fff; padding: 10px 20px; border-radius: var(--r-full);
  font-size: 13px; box-shadow: var(--shadow-200); animation: toast-in .25s ease; max-width: 86vw;
}
.toast.error { background: var(--vermilion-600); }
.toast.success { background: var(--jade-600); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Modal */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,35,30,.45); z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade-in .2s ease;
}
.modal-mask.centered { align-items: center; }
.modal {
  background: #fff; width: 100%; max-width: 560px; border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 22px; max-height: 84vh; overflow: auto; animation: sheet-up .25s ease;
}
.modal-mask.centered .modal { border-radius: var(--r-xl); margin: 16px; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal h3 { margin: 0 0 12px; font-size: 17px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.modal-mask[hidden] { display: none; }
.f-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin: 12px 0 5px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }

/* 骨架屏 */
.skeleton { background: linear-gradient(90deg,#eef4f2 25%,#f7faf8 37%,#eef4f2 63%);
  background-size: 400% 100%; animation: sk 1.3s infinite; border-radius: 8px; }
@keyframes sk { 0%{background-position:100% 0} 100%{background-position:0 0} }

/* 空状态 */
.empty { text-align: center; padding: 40px 20px; color: var(--ink-500); }
.empty .emoji { font-size: 40px; display: block; margin-bottom: 8px; }

/* 顶栏通用 */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,63,52,.96); backdrop-filter: blur(10px); color: #fff;
}
.topbar-inner { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.topbar .brand .logo-mark {
  width: 38px; height: 38px; border-radius: 11px; border: 1.5px solid rgba(255,255,255,.55);
  display: grid; place-items: center;
}
.topbar .brand small { display: block; font-size: 11px; font-weight: 400; opacity: .75; letter-spacing: .04em; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); color: #fff; position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn .badge-num {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--vermilion-600); border-radius: 9px; font-size: 10px; line-height: 17px; text-align: center;
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 15px;
}

/* 山水 Hero 背景（CSS+SVG 层叠，模仿青绿山水插画氛围） */
.hero-scene {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(165deg, #0e4a3c 0%, #17695480 45%, #2b8a7233 100%),
    radial-gradient(120% 90% at 80% 0%, #3a9d8355, transparent 60%),
    var(--forest);
}
.hero-scene .hills { position: absolute; inset: auto 0 0 0; pointer-events: none; line-height: 0; opacity: .9; }
.hero-scene .cloud { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); filter: blur(2px); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c9d8d2; border-radius: 8px; }
