/* 顾问工作台 · 视觉体系 v3「海港导视」（2026-07-19，按 frontend-design skill 重设计）
   —— 交付级产品面，不是内部系统 ——
   主题语汇：香港双语导视（eyebrow 体系）+ 纸本表格的印章文化（觀察印=签名元素）
   色彩（dataviz 验证器全项通过）：
     light  渡轮青#0480A0 · 開放綠#1B7A4D · 截止琥珀#A85B12 · 印章紅#B5342A · 情報藍#2B5FA8  on #FFF
     dark   #2BA0B4 · #2FA06B · #C57F2C · #CE6552 · #6A8FE0  on #141D24
   纪律：印章红只出现在「觀察印」与紧迫倒数两处，别处不用 */

:root {
  --bg: #F1F4F5;             /* 冷瓷白，非奶油 */
  --card: #FFFFFF;
  --ink: #1E2B31;
  --muted: #5E7278;
  --line: #D8E1E4;
  --line-soft: #E7EDEF;
  --brand: #0480A0;          /* 渡轮青 */
  --brand-ink: #056378;
  --brand-tint: #E3F1F5;
  --seal: #B5342A;           /* 印章红：僅限觀察印+緊迫倒數 */
  --seal-tint: rgba(181, 52, 42, .06);
  --topbar: #0A2A33;         /* 深港夜青 */
  --topbar-ink: #9FBCC4;
  --good: #1B7A4D;   --good-bg: #E4F2EA;
  --warn: #A85B12;   --warn-bg: #F9EEDF;
  --crit: #B5342A;   --crit-bg: #F8E9E6;
  --info: #2B5FA8;   --info-bg: #E8EEF9;
  --neutral-bg: #ECF1F2;
  --shadow: 0 1px 2px rgba(10, 42, 51, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10181D;
    --card: #141D24;
    --ink: #E2EAED;
    --muted: #8DA4AC;
    --line: #263640;
    --line-soft: #1E2C34;
    --brand: #2BA0B4;
    --brand-ink: #5FBCCB;
    --brand-tint: #12313A;
    --seal: #CE6552;
    --seal-tint: rgba(206, 101, 82, .1);
    --topbar: #0A161C;
    --topbar-ink: #7F98A1;
    --good: #2FA06B;   --good-bg: #142B21;
    --warn: #C57F2C;   --warn-bg: #2E2314;
    --crit: #CE6552;   --crit-bg: #2E1915;
    --info: #6A8FE0;   --info-bg: #17233A;
    --neutral-bg: #1C2830;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang TC",
        "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ── 双语导视：eyebrow 体系（英文小标压中文标题，香港路牌语汇） ── */
.eyebrow { display: block; font-size: 10.5px; font-weight: 650;
  letter-spacing: .15em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 2px; font-variant-numeric: tabular-nums; }
h2 .eyebrow { margin-bottom: 0; }

/* ── 觀察印：实地观察日期章（签名元素，印章红专属） ── */
.stamp { display: inline-flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--seal); color: var(--seal);
  background: var(--seal-tint); border-radius: 4px;
  padding: 0 7px; font-size: 11.5px; font-weight: 650;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .04em; transform: rotate(-2deg);
  white-space: nowrap; line-height: 1.7; }

/* ── 顶栏：深港夜青导视带 ─────────────── */
/* 暗色主題下 topbar 與頁面底色極接近，靠下邊框劃出邊界；淺色主題該邊框與頁面同色，等於隱形 */
.topbar { background: var(--topbar); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; min-height: 56px; }
.brand { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; gap: 2px; flex: 1; }
.topbar nav a { color: var(--topbar-ink); padding: 16px 13px; font-size: 14px;
  white-space: nowrap; transition: color .15s; }
.topbar nav a.active { color: #fff; box-shadow: inset 0 -3px 0 var(--brand); }
.topbar nav a:hover { color: #fff; text-decoration: none; }
/* margin-left:auto 讓右側入口自己靠右——不再依賴中間的 nav 當彈簧（落地頁沒有 nav） */
.topbar .user { color: var(--topbar-ink); font-size: 13px; display: flex; gap: 12px;
  margin-left: auto; }
.topbar .user a { color: #fff; }
@media (max-width: 700px) {
  .topbar-inner { gap: 10px; padding: 8px 12px; }
  .topbar nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .topbar nav a { padding: 8px 10px; }
}

/* ── 版面 ─────────────────────────────── */
.container { max-width: 1100px; margin: 28px auto 64px; padding: 0 16px; }
.footer { max-width: 1100px; margin: 0 auto 32px; padding: 0 16px;
  color: var(--muted); font-size: 12px; }

h1 { font-size: 22px; font-weight: 750; margin: 0 0 6px;
  letter-spacing: .01em; text-wrap: balance; }
h2 { font-size: 16.5px; font-weight: 650; margin: 28px 0 10px; }
.sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.hint { color: var(--muted); font-size: 12.5px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }

.card { background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 14px;
  box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .grid.cols-2 { grid-template-columns: 1fr; } }

/* 入场：卡片依次浮现（一次编排的动效，其余保持安静） */
@media (prefers-reduced-motion: no-preference) {
  .container > .card, .container > .grid > .card {
    animation: rise .38s cubic-bezier(.2,.7,.3,1) backwards; }
  .container > .card:nth-child(2), .container > .grid > .card:nth-child(1) { animation-delay: .05s; }
  .container > .card:nth-child(3), .container > .grid > .card:nth-child(2) { animation-delay: .1s; }
  .container > .card:nth-child(4), .container > .grid > .card:nth-child(3) { animation-delay: .15s; }
  .container > .card:nth-child(5), .container > .grid > .card:nth-child(4) { animation-delay: .2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.flash-error { background: var(--crit-bg); color: var(--crit); }
.flash-message, .flash-success { background: var(--good-bg); color: var(--good); }

/* ── 状态徽章：色点+文字双编码 ─────────── */
.badge { display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 9px; border-radius: 20px; font-size: 12px; font-weight: 550;
  white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: none; }
.badge-open     { background: var(--good-bg); color: var(--good); }
.badge-closing  { background: var(--warn-bg); color: var(--warn); }
.badge-closed   { background: var(--neutral-bg); color: var(--muted); }
.badge-upcoming { background: var(--info-bg); color: var(--info); }
.badge-doc      { background: var(--brand-tint); color: var(--brand-ink); }
.badge-doc::before { display: none; }

.days-left { font-weight: 750; color: var(--warn);
  font-variant-numeric: tabular-nums; }
.days-left.urgent { color: var(--seal); }

/* ── 表格 ─────────────────────────────── */
table.list { width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  font-size: 14px; box-shadow: var(--shadow); }
table.list th, table.list td { padding: 9px 12px; text-align: left;
  border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.list th { background: var(--bg); font-size: 12px; font-weight: 650;
  color: var(--muted); white-space: nowrap; letter-spacing: .05em; }
table.list td { font-variant-numeric: tabular-nums; }
table.list tbody tr:hover td, table.list tr:hover td { background: var(--line-soft); }
table.list tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: 10px; }
table.list td.notes-col { min-width: 280px; max-width: 420px; }
table.list td.notes-col > span { display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden; }

/* ── 筛选条 ───────────────────────────── */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 16px; font-size: 14px;
  box-shadow: var(--shadow); }
.filters select, .filters input[type=text], .filters input[type=search] {
  padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 14px; background: var(--card); color: var(--ink); }

/* ── 按钮 ─────────────────────────────── */
.btn { display: inline-block; padding: 8px 16px; border-radius: 8px; border: 0;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 550;
  cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-ink); text-decoration: none; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--brand-ink);
  border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }

/* ── 表单 ─────────────────────────────── */
form.stack label { display: block; font-weight: 600; font-size: 13.5px; margin: 14px 0 4px; }
form.stack input[type=text], form.stack input[type=number], form.stack input[type=email],
form.stack input[type=password], form.stack select, form.stack textarea {
  width: 100%; max-width: 480px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 7px; font-size: 14px; font-family: inherit;
  background: var(--card); color: var(--ink); }
.checks { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; max-width: 640px; }
.checks label { font-weight: 400; margin: 0; white-space: nowrap; }
.auth-card { max-width: 400px; margin: 60px auto; }
.auth-card h1 { text-align: center; }
.auth-card .eyebrow { text-align: center; }

/* ── 数据底盘 stat tiles（双语标签） ────── */
.stat-strip { display: flex; gap: 0; flex-wrap: wrap; font-size: 12.5px;
  color: var(--muted); padding: 12px 0; }
.stat-strip > div { padding: 2px 22px; border-left: 1px solid var(--line-soft); }
.stat-strip > div:first-child { border-left: 0; }
.stat-strip b { display: block; font-size: 28px; font-weight: 800;
  color: var(--ink); line-height: 1.25; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; }

/* ── 雷达条目：左侧状态条纹编码桶 ───────── */
.radar-item { display: flex; gap: 12px; padding: 9px 0 9px 12px;
  border-bottom: 1px solid var(--line-soft); border-left: 3px solid transparent;
  align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.radar-item:last-of-type { border-bottom: 0; }
.radar-item .name { font-weight: 600; min-width: 180px; }
.radar-item .meta { color: var(--muted); font-size: 12.5px;
  font-variant-numeric: tabular-nums; }
.bucket-ongoing  .radar-item { border-left-color: var(--good); }
.bucket-closing  .radar-item { border-left-color: var(--warn); }
.bucket-upcoming .radar-item { border-left-color: var(--info); }
.bucket-observed .radar-item { border-left-color: var(--line); }
.bucket-closed   .radar-item { border-left-color: var(--line); }

/* ── 键值/芯片/量表 ─────────────────────── */
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--neutral-bg); border-radius: 16px; padding: 2px 10px;
  font-size: 13px; font-variant-numeric: tabular-nums; }
.chip .b1 { color: var(--good); font-weight: 600; }

.meter { position: relative; height: 6px; background: var(--neutral-bg);
  border-radius: 4px; overflow: hidden; min-width: 72px; max-width: 120px;
  margin-top: 5px; }
.meter > span { position: absolute; inset: 0 auto 0 0; border-radius: 4px;
  background: var(--brand); }

.progress { height: 8px; background: var(--neutral-bg); border-radius: 6px;
  overflow: hidden; max-width: 260px; }
.progress span { display: block; height: 100%; background: var(--brand); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line);
  border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 12px;
  animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pagination { margin: 16px 0; display: flex; gap: 8px; align-items: center; font-size: 14px; }

/* ---------------------------------------------------------------- 首頁（落地頁） */
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid.cols-3 { grid-template-columns: 1fr; } }

.hero { padding: 54px 0 26px; max-width: 720px; }
.hero h1 { font-size: 40px; line-height: 1.25; margin: 6px 0 16px; letter-spacing: -.01em; }
.hero-sub { font-size: 17px; line-height: 1.75; color: var(--muted); margin: 0 0 26px; }
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn { padding: 11px 22px; font-size: 15px; }

.landing-section { margin: 44px 0; }
.landing-section > h2 { margin: 4px 0 18px; font-size: 24px; }

.feature { display: flex; flex-direction: column; }
.feature h3 { margin: 6px 0 10px; font-size: 18px; }
.feature p { color: var(--muted); line-height: 1.7; margin: 0 0 10px; }
.feature p b { color: var(--ink); font-weight: 600; }
.feature-tag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-soft);
  padding-top: 10px; margin-top: auto; }

.stance { margin: 44px 0; }
.stance h2 { margin: 4px 0 18px; font-size: 24px; }
.stance .grid { gap: 22px; }
.stance h3 { font-size: 16px; margin: 0 0 8px; }
.stance p { color: var(--muted); line-height: 1.7; margin: 0; font-size: 14px; }

.section-lead { color: var(--muted); line-height: 1.75; max-width: 760px; margin: 0 0 20px; }
.section-lead b { color: var(--ink); font-weight: 600; }

.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(10, 42, 51, .10); background: var(--card); }
.shot figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.shot figcaption b { color: var(--ink); font-weight: 600; }

.compare { border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--card); }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-head { background: var(--neutral-bg); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); }
.compare-head span { padding: 9px 16px; }
.compare-head span + span, .compare-row div + div { border-left: 1px solid var(--line-soft); }
.compare-row { border-top: 1px solid var(--line-soft); }
.compare-row div { padding: 13px 16px; font-size: 14px; line-height: 1.65; }
.compare-row div:first-child { color: var(--muted); }
.compare-row div:last-child { color: var(--ink); font-weight: 500; }
@media (max-width: 680px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row div + div { border-left: 0; border-top: 1px solid var(--line-soft); }
}

.steps { margin: 0; padding-left: 20px; }
.steps li { color: var(--muted); line-height: 1.75; margin-bottom: 6px; font-size: 14px; }
.plan-line { font-size: 16px; }
.plan-line b { color: var(--brand-ink); }

.landing-cta { text-align: center; margin: 44px 0; }
.landing-cta h2 { margin: 0 0 8px; font-size: 22px; }
.landing-cta .hero-cta { justify-content: center; margin-top: 16px; }

.footer a { color: var(--muted); }
@media (max-width: 680px) {
  .hero { padding: 34px 0 18px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
