/* ==========================================================================
   青山智源线上OPC服务中心 —— 统一样式表
   浅色简约科技风：白底 + 蓝青主色 + 细线网格 + 卡片悬浮
   ========================================================================== */

:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #eaf1f8;
  --line: #e2e8f0;
  --line-2: #cbd8e6;

  --text: #0f172a;
  --text-2: #475569;
  --text-3: #8fa2b8;

  --brand: #2563eb;
  --brand-d: #1d4ed8;
  --brand-2: #0891b2;
  --accent: #7c3aed;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;

  --grad: linear-gradient(120deg, #2563eb 0%, #0891b2 60%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(37, 99, 235, .08), rgba(8, 145, 178, .08));
  --grid-line: rgba(37, 99, 235, .06);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;

  --sh-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --sh: 0 2px 4px rgba(15, 23, 42, .04), 0 8px 20px rgba(15, 23, 42, .06);
  --sh-lg: 0 8px 16px rgba(15, 23, 42, .06), 0 20px 40px rgba(37, 99, 235, .10);

  --nav-h: 66px;
  --max: 1220px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand-2); }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 4px 0; }

::selection { background: rgba(37, 99, 235, .16); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); position: relative; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 9px;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 4px;
  border-right-color: transparent; border-bottom-color: transparent;
  transform: rotate(45deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: var(--text-3); letter-spacing: .6px; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 13px; border-radius: 999px; font-size: 14.5px;
  color: var(--text-2); font-weight: 500; white-space: nowrap;
  transition: all .18s var(--ease);
}
.nav-links a:hover { color: var(--brand); background: var(--surface-3); }
.nav-links a.active { color: var(--brand); background: var(--grad-soft); font-weight: 600; }

.nav-cta {
  margin-left: 10px; padding: 9px 18px !important; border-radius: 999px;
  background: var(--grad) !important; color: #fff !important;
  font-weight: 600 !important; font-size: 14px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 99, 235, .4); }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px;
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 17px; height: 2px; background: var(--text-2); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 2px; background: var(--text-2);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------------- 公告条 ---------------- */
.notice-bar {
  background: linear-gradient(90deg, rgba(37, 99, 235, .9), rgba(8, 145, 178, .9));
  color: #fff; font-size: 13.5px; overflow: hidden;
}
.notice-inner { display: flex; align-items: center; gap: 12px; height: 40px; }
.notice-label {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 12.5px; padding: 3px 10px;
  background: rgba(255, 255, 255, .18); border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
}
.notice-label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #7dfcd0; box-shadow: 0 0 0 0 rgba(125, 252, 208, .8);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 252, 208, .7); }
  70% { box-shadow: 0 0 0 8px rgba(125, 252, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 252, 208, 0); }
}
.notice-scroll { flex: 1; overflow: hidden; height: 24px; position: relative; }
.notice-scroll div {
  position: absolute; inset: 0; opacity: 0; transform: translateY(100%);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 24px;
}
.notice-scroll div.on { opacity: 1; transform: translateY(0); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}
.hero-body { position: relative; padding: 74px 0 66px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--brand); background: var(--grad-soft);
  border: 1px solid rgba(37, 99, 235, .16); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: -.5px;
  margin-bottom: 16px; max-width: 15em;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lead {
  font-size: 17px; color: var(--text-2); max-width: 44em; margin-bottom: 26px;
}
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .2s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .3); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37, 99, 235, .38); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); background: var(--surface); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------------- 数据看板 ---------------- */
.stat-strip {
  position: relative; margin-top: 40px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.stat {
  background: var(--surface); padding: 18px 16px; text-align: center;
  transition: background .2s var(--ease);
}
.stat:hover { background: var(--surface-3); }
.stat-num {
  font-size: 27px; font-weight: 800; letter-spacing: -.5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.stat-num i { font-style: normal; font-size: 14px; font-weight: 600; margin-left: 2px; }
.stat-label { font-size: 13px; color: var(--text-2); font-weight: 600; margin-top: 2px; }
.stat-hint { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }

/* ---------------- 区块 ---------------- */
.section { padding: 62px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 30px; max-width: 46em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--brand-2); text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; letter-spacing: -.3px; }
.section-head p { color: var(--text-2); font-size: 15.5px; margin: 0; }
.section-head .head-actions { margin-top: 16px; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; transition: all .24s var(--ease); overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; background: var(--grad); opacity: 0;
  transition: opacity .24s var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 17.5px; margin-bottom: 6px; }
.card .card-sub { font-size: 13px; color: var(--brand-2); font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 14.5px; margin: 0; }

.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }
.card-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--brand);
}
.card-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.card:hover .card-arrow::after { transform: translateX(4px); }

.icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); border: 1px solid rgba(37, 99, 235, .12);
}
.icon svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 要素服务卡 */
.el-card { display: flex; flex-direction: column; }
.el-status {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
  margin-bottom: 12px;
}
.el-status.ready { background: rgba(5, 150, 105, .08); color: var(--ok); border-color: rgba(5, 150, 105, .22); }
.el-status.building { background: rgba(217, 119, 6, .08); color: var(--warn); border-color: rgba(217, 119, 6, .22); }
.el-status.depend { background: rgba(124, 58, 237, .08); color: var(--accent); border-color: rgba(124, 58, 237, .22); }
.el-doc { margin-top: 14px; font-size: 12px; color: var(--text-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* 服务流程 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: f; }
.flow-item {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px 18px; transition: all .24s var(--ease);
}
.flow-item:hover { border-color: var(--line-2); box-shadow: var(--sh); transform: translateY(-3px); }
.flow-step {
  font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--brand-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin-bottom: 8px;
}
.flow-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.flow-item p { font-size: 13.5px; color: var(--text-2); margin: 0; }
.flow-item:not(:last-child)::before {
  content: ""; position: absolute; top: 34px; right: -9px; width: 18px; height: 1px;
  background: var(--line-2); z-index: 1;
}

/* ---------------- 列表 / 筛选 ---------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 22px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  background: var(--surface-2); color: var(--text-2); cursor: pointer;
  border: 1px solid transparent; transition: all .18s var(--ease); font-family: inherit;
}
.chip:hover { color: var(--brand); background: var(--surface-3); }
.chip.on { background: var(--grad); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(37, 99, 235, .26); }

.search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px; min-width: 230px;
}
.search svg { width: 16px; height: 16px; stroke: var(--text-3); fill: none; stroke-width: 2; flex-shrink: 0; }
.search input {
  border: 0; background: transparent; outline: none; font-family: inherit;
  font-size: 14px; color: var(--text); width: 100%;
}
.search input::placeholder { color: var(--text-3); }

.list { display: grid; gap: 14px; }
.item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; transition: all .22s var(--ease); cursor: pointer;
}
.item:hover { border-color: var(--line-2); box-shadow: var(--sh); transform: translateY(-2px); }
.item-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 8px; }
.item-title { font-size: 17px; font-weight: 700; margin: 0; flex: 1; }
.item:hover .item-title { color: var(--brand); }
.item-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  font-size: 12.5px; color: var(--text-3); margin-top: 10px;
}
.item-meta span { display: inline-flex; align-items: center; gap: 5px; }
.item-excerpt {
  color: var(--text-2); font-size: 14.5px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.spec {
  font-size: 12.5px; padding: 4px 11px; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
}

.badge {
  flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 4px 11px;
  border-radius: 999px; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
}
.badge.blue { background: rgba(37, 99, 235, .09); color: var(--brand); border-color: rgba(37, 99, 235, .2); }
.badge.cyan { background: rgba(8, 145, 178, .09); color: var(--brand-2); border-color: rgba(8, 145, 178, .2); }
.badge.green { background: rgba(5, 150, 105, .09); color: var(--ok); border-color: rgba(5, 150, 105, .2); }
.badge.amber { background: rgba(217, 119, 6, .09); color: var(--warn); border-color: rgba(217, 119, 6, .2); }
.badge.purple { background: rgba(124, 58, 237, .09); color: var(--accent); border-color: rgba(124, 58, 237, .2); }
.badge.red { background: rgba(220, 38, 38, .08); color: var(--danger); border-color: rgba(220, 38, 38, .2); }

.tag {
  font-size: 12px; padding: 3px 10px; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text-2);
}

.empty {
  padding: 54px 20px; text-align: center; color: var(--text-3);
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r);
}
.empty strong { display: block; color: var(--text-2); font-size: 16px; margin-bottom: 4px; }

/* 公告/提示块 */
.callout {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r);
  background: var(--grad-soft); border: 1px solid rgba(37, 99, 235, .14);
  font-size: 14px; color: var(--text-2);
}
.callout .co-icon {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.callout strong { color: var(--text); }

/* ---------------- 弹层 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 400; background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 20px 40px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity .22s var(--ease);
}
.modal-mask.on { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); border-radius: var(--r-lg); width: 100%; max-width: 780px;
  box-shadow: var(--sh-lg); transform: translateY(16px) scale(.99);
  transition: transform .26s var(--ease); overflow: hidden;
}
.modal-mask.on .modal { transform: translateY(0) scale(1); }
.modal-head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px 26px 18px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--surface); z-index: 2;
}
.modal-head h3 { font-size: 20px; margin: 0 0 8px; line-height: 1.4; }
.modal-close {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: 18px; color: var(--text-2);
  line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: all .18s var(--ease); font-family: inherit;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body { padding: 22px 26px 26px; }
.modal-body h4 {
  font-size: 15px; margin: 22px 0 10px; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.modal-body h4::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--grad); }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { color: var(--text-2); font-size: 14.5px; }
.modal-body ul { color: var(--text-2); font-size: 14.5px; padding-left: 20px; }
.modal-foot {
  padding: 16px 26px 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px; background: var(--surface-2);
}
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 14px; font-size: 14px; margin-bottom: 16px; }
.kv dt { color: var(--text-3); font-size: 13px; }
.kv dd { margin: 0; color: var(--text); }
.answer-box {
  margin-top: 14px; padding: 16px 18px; border-radius: var(--r);
  background: var(--surface-2); border-left: 3px solid var(--brand);
}
.answer-box .ans-head { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.answer-box .ans-head strong { color: var(--brand); font-size: 13.5px; }
.answer-box p { margin: 0; font-size: 14.5px; color: var(--text-2); }

/* ---------------- 表单 ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field label i { font-style: normal; color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--text-3); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14.5px; color: var(--text);
  padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); outline: none; transition: all .18s var(--ease); width: 100%;
}
.field textarea { resize: vertical; min-height: 108px; line-height: 1.7; }
.field .check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.field .check input[type="checkbox"] {
  flex: none; width: 16px; height: 16px; margin: 2px 0 0; padding: 0;
  border-radius: 3px; accent-color: var(--brand); cursor: pointer;
}
.field .check span { font-size: 13.5px; font-weight: 500; line-height: 1.6; color: var(--text-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.form-note { font-size: 12.5px; color: var(--text-3); margin-top: 12px; }

/* Toast */
.toast-wrap {
  position: fixed; right: 22px; bottom: 22px; z-index: 500;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--r-sm); box-shadow: var(--sh-lg); padding: 13px 16px;
  max-width: 380px; font-size: 14px; color: var(--text-2);
  animation: toastIn .3s var(--ease);
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }
.toast strong { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 2px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 52px 0 26px; margin-top: 10px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 34px; }
.foot-brand p { color: var(--text-2); font-size: 14px; margin: 12px 0 0; max-width: 34em; }
.foot-col h4 { font-size: 14px; margin-bottom: 12px; color: var(--text); }
.foot-col a, .foot-col li {
  display: block; font-size: 13.5px; color: var(--text-2);
  padding: 4px 0; margin: 0; list-style: none;
}
.foot-col ul { padding: 0; margin: 0; }
.foot-col a:hover { color: var(--brand); }
.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center;
  font-size: 12.5px; color: var(--text-3);
}
.foot-bottom .spacer { margin-left: auto; }

/* 回到顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  box-shadow: var(--sh); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: all .24s var(--ease);
}
.to-top.on { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* 页面小头图 */
.page-hero {
  position: relative; overflow: hidden; background: var(--surface);
  border-bottom: 1px solid var(--line); padding: 46px 0 40px;
}
.page-hero .hero-grid { mask-image: radial-gradient(ellipse 70% 100% at 20% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 20% 0%, #000 20%, transparent 80%); }
.page-hero .breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 10px; position: relative; }
.page-hero .breadcrumb a { color: var(--text-3); }
.page-hero .breadcrumb a:hover { color: var(--brand); }
.page-hero h1 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; position: relative; }
.page-hero p { color: var(--text-2); max-width: 48em; margin: 0; position: relative; font-size: 15.5px; }

/* 滚动进入动画 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 页面级补充构件 ---------------- */
.quick-card {
  width: 100%; text-align: left; font-family: inherit; cursor: pointer;
  display: flex; gap: 14px; align-items: flex-start;
}
.quick-card .icon { margin-bottom: 0; flex-shrink: 0; }
.quick-card h4 { font-size: 16px; margin-bottom: 4px; }
.quick-card p { font-size: 13.5px; }
.quick-card .card-arrow { margin-top: 8px; font-size: 13px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.col-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.col-head h3 { font-size: 17px; }
.col-head a { font-size: 13px; font-weight: 600; }

.mini-list { display: grid; gap: 10px; }
.mini {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer; transition: all .2s var(--ease);
}
.mini:hover { border-color: var(--line-2); box-shadow: var(--sh); transform: translateY(-2px); }
.mini h4 { font-size: 14.5px; margin: 0 0 6px; line-height: 1.55; }
.mini:hover h4 { color: var(--brand); }
.mini-meta {
  font-size: 12px; color: var(--text-3);
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center;
}

.meta-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-3); align-items: center; }
.sec-note { font-size: 13px; color: var(--text-3); }
.role-list { display: flex; flex-wrap: wrap; gap: 8px; }

.task-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 0;
  border-bottom: 1px dashed var(--line); font-size: 14px;
}
.task-row:last-child { border-bottom: 0; padding-bottom: 0; }
.task-item { display: block; }
.task-item:last-child .task-row { border-bottom: 0; padding-bottom: 0; }
.claim-list { padding: 4px 0 12px 34px; display: flex; flex-direction: column; gap: 10px; }
.claim-line {
  background: var(--surface-2); border-left: 3px solid var(--ok);
  border-radius: var(--r-sm); padding: 11px 14px;
}
.claim-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 5px; }
.claim-head strong { font-size: 13.5px; color: var(--text); }
.claim-line p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.claim-line .claim-link { display: inline-block; margin-top: 6px; font-size: 13px; word-break: break-all; }
.task-row .task-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text-3); flex-shrink: 0; padding-top: 3px; }
.task-row .task-t { flex: 1; color: var(--text-2); line-height: 1.7; }
.diff {
  flex-shrink: 0; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
}
.diff.入门 { color: var(--ok); border-color: rgba(5, 150, 105, .25); background: rgba(5, 150, 105, .07); }
.diff.进阶 { color: var(--brand); border-color: rgba(37, 99, 235, .25); background: rgba(37, 99, 235, .07); }
.diff.挑战 { color: var(--accent); border-color: rgba(124, 58, 237, .25); background: rgba(124, 58, 237, .07); }

.stage-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stage-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.stage-card .stage-badge {
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #fff;
  font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; box-shadow: 0 4px 12px rgba(37, 99, 235, .26);
}
.stage-card h4 { font-size: 15.5px; margin-bottom: 6px; }
.stage-card p { font-size: 13.5px; color: var(--text-2); margin: 0; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-soft); border: 1px solid rgba(37, 99, 235, .16);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--brand);
}
.board-card { cursor: pointer; }
.board-card .board-count { font-size: 12.5px; color: var(--text-3); margin-top: 10px; }
.switch-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.switch-row .switch-label { font-size: 13px; color: var(--text-3); font-weight: 600; min-width: 60px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .stage-steps { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-item::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; box-shadow: var(--sh);
    margin-left: 0; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; border-radius: var(--r-sm); }
  .nav-cta { margin: 6px 0 0; text-align: center; }
  .grid-3, .grid-2, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .grid-2.keep { grid-template-columns: repeat(2, 1fr); }
  .search { margin-left: 0; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .hero-body { padding: 52px 0 46px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .modal-mask { padding: 0; align-items: stretch; }
  .modal { max-width: none; border-radius: 0; min-height: 100vh; }
  .kv { grid-template-columns: 82px 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .toast-wrap { right: 12px; left: 12px; bottom: 12px; align-items: stretch; }
  .toast { max-width: none; }
  .to-top { right: 14px; bottom: 84px; }
}

@media print {
  .site-header, .notice-bar, .to-top, .site-footer, .modal-foot { display: none; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
