/* ============================================================
   KORVIA Design System — 高级机构感
   深墨蓝 × 香槟金 × 暖灰纸感
   ============================================================ */

:root {
  /* 色彩令牌 */
  --ink: #0B1526;          /* 深墨蓝：门面底色 */
  --ink-2: #101B31;        /* 墨蓝浅一档 */
  --coal: #101319;         /* 炭黑 */
  --gold: #C8A96E;         /* 香槟金：核心记忆点 */
  --gold-soft: #E3D3B0;
  --gold-dim: rgba(200, 169, 110, .38);
  --paper: #F6F5F2;        /* 暖调浅灰内容底 */
  --paper-2: #EFEDE8;
  --white: #FFFFFF;
  --text-hi: #F4F2EC;      /* 深色底上的主文字 */
  --text-mid: #A9B0BD;     /* 深色底上的次级文字 */
  --ink-text: #1C2733;     /* 浅色底上的主文字 */
  --ink-text-2: #5B6673;   /* 浅色底上的次级文字 */
  --line: rgba(11, 21, 38, .10);   /* 浅色底细线 */
  --line-dark: rgba(244, 242, 236, .12); /* 深色底细线 */

  /* 三端身份色（低饱和） */
  --acc-ent: #4158D6;      /* 企业端 靛蓝 */
  --acc-gov: #1E3A5F;      /* 政务端 藏青 */
  --acc-gov-red: #B54A39;  /* 政务端 朱砂 */
  --acc-adm: #4A4E57;      /* 管理端 石墨 */

  --ok: #3E7C5B;
  --warn: #B98A3A;
  --pending: #7A8BA3;

  /* 投影：多层柔投影 */
  --shadow-sm: 0 1px 2px rgba(11, 21, 38, .05), 0 2px 8px rgba(11, 21, 38, .05);
  --shadow-md: 0 2px 4px rgba(11, 21, 38, .05), 0 8px 24px rgba(11, 21, 38, .08);
  --shadow-lg: 0 4px 8px rgba(11, 21, 38, .06), 0 20px 48px rgba(11, 21, 38, .12);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --font-sans: "Inter", "Noto Sans KR", "Noto Sans SC", -apple-system, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-serif: "Cormorant Garamond", "Noto Serif SC", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--gold); color: var(--ink); }

/* ---------- 排版 ---------- */
.display {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.kicker-c { /* 中文小标 */
  letter-spacing: .42em;
  text-transform: none;
}
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.text-dim { color: var(--ink-text-2); }
.on-dark { color: var(--text-hi); }
.on-dark-dim { color: var(--text-mid); }

h1, h2, h3 { line-height: 1.2; font-weight: 600; }

/* ---------- 布局 ---------- */
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.container-wide { width: min(1360px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }

.gold-hr {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 18%, var(--gold-dim) 82%, transparent);
}

/* 深色门面区 */
.facade {
  position: relative;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(65, 88, 214, .16), transparent 60%),
    radial-gradient(900px 500px at 8% 110%, rgba(200, 169, 110, .07), transparent 55%),
    linear-gradient(168deg, var(--ink-2), var(--ink) 55%, #091120);
  color: var(--text-hi);
}
.facade::after { /* 极淡噪点，避免深色大面积发闷 */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(135deg, #D8BC85, var(--gold) 55%, #B3924F);
  color: #241B08;
  box-shadow: 0 6px 20px rgba(200, 169, 110, .28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(200, 169, 110, .38); }

.btn-ink {
  background: var(--ink);
  color: var(--text-hi);
}
.btn-ink:hover { background: #16233C; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-line { /* 深色底上的描边按钮 */
  border: 1px solid var(--line-dark);
  color: var(--text-hi);
  background: rgba(255, 255, 255, .02);
}
.btn-line:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn-line-ink { /* 浅色底上的描边按钮 */
  border: 1px solid rgba(11, 21, 38, .18);
  color: var(--ink-text);
  background: var(--white);
}
.btn-line-ink:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-dim);
}

/* 深色底卡片 */
.card-dark {
  position: relative;
  background: rgba(255, 255, 255, .028);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  backdrop-filter: blur(6px);
}
.card-dark:hover { border-color: var(--gold-dim); }

/* ---------- 徽章 / 标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid transparent;
}
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-operating { color: var(--ok); background: rgba(62, 124, 91, .09); border-color: rgba(62, 124, 91, .25); }
.badge-reviewing { color: var(--pending); background: rgba(122, 139, 163, .10); border-color: rgba(122, 139, 163, .3); }
.badge-landing { color: var(--warn); background: rgba(185, 138, 58, .10); border-color: rgba(185, 138, 58, .3); }
.badge-gold { color: #8F7434; background: rgba(200, 169, 110, .13); border-color: rgba(200, 169, 110, .4); }
.badge-red { color: var(--acc-gov-red); background: rgba(181, 74, 57, .08); border-color: rgba(181, 74, 57, .28); }

/* ---------- 表格 ---------- */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: auto;
  box-shadow: var(--shadow-sm);
}
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #FBFAF7;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-text-2);
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(11, 21, 38, .06);
  vertical-align: middle;
}
.table tbody tr { transition: background .18s; }
.table tbody tr:hover { background: #FBF9F4; }
.table tbody tr.clickable { cursor: pointer; }
.table .t-num { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-text-2);
}
.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(11, 21, 38, .16);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, .18);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235B6673' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }

/* 深色底表单 */
.field-dark label { color: var(--text-mid); }
.input-dark {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
  color: var(--text-hi);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 14px;
}
.input-dark:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 169, 110, .14); }
.input-dark::placeholder { color: rgba(169, 176, 189, .55); }

/* 筛选胶囊（多选） */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 21, 38, .14);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-text-2);
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.chip:hover { border-color: var(--gold); color: var(--ink-text); }
.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-soft);
}

/* ---------- AI 洞察卡（全站统一组件） ---------- */
.ai-card {
  position: relative;
  background: linear-gradient(#FDFCF9, #FBF8F1);
  border: 1px solid rgba(200, 169, 110, .45);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: 0 0 0 4px rgba(200, 169, 110, .06), var(--shadow-sm);
  overflow: hidden;
}
.ai-card::before { /* 顶部金渐变细线 */
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ai-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-head .ai-name { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: #8F7434; }
.ai-spark { flex: none; color: var(--gold); }
.ai-conclusion { font-size: 15px; font-weight: 600; color: var(--ink-text); line-height: 1.6; }
.ai-reasons { margin: 12px 0 0; display: grid; gap: 7px; }
.ai-reasons li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink-text-2);
  line-height: 1.55;
}
.ai-reasons li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 7px; height: 7px;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}
.ai-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(200, 169, 110, .35);
  flex-wrap: wrap;
}
.ai-disclaimer { font-size: 11.5px; color: #A39B87; letter-spacing: .02em; }

/* 置信度环 */
.conf {
  --p: 80;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(200, 169, 110, .18) 0);
  display: grid;
  place-items: center;
  flex: none;
}
.conf::before {
  content: "";
  position: absolute;
}
.conf-inner {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #FCFAF5;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #8F7434;
  font-variant-numeric: tabular-nums;
}

/* 匹配度得分环 */
.score-ring {
  --p: 0;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(11, 21, 38, .08) 0);
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
  transition: --p 1s;
}
.score-ring .in {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
}
.score-ring .v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1; }
.score-ring .u { font-size: 10px; letter-spacing: .12em; color: var(--ink-text-2); }

/* ---------- 进场动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.typing-ind { display: inline-flex; gap: 5px; align-items: center; padding: 6px 2px; }
.typing-ind span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  animation: typing 1.2s infinite;
}
.typing-ind span:nth-child(2) { animation-delay: .18s; }
.typing-ind span:nth-child(3) { animation-delay: .36s; }

/* ---------- 通用导航（企业端页头） ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 21, 38, .78);
  border-bottom: 1px solid var(--line-dark);
}
.site-nav .inner { display: flex; align-items: center; gap: 34px; height: 68px; }
.site-nav .logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-serif); font-size: 21px; letter-spacing: .06em; color: var(--text-hi); }
.site-nav .nav-links { display: flex; gap: 28px; margin-left: auto; }
.site-nav .nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav .nav-links a:hover, .site-nav .nav-links a.on { color: var(--gold-soft); border-color: var(--gold); }

/* 语言切换（真实链接，利于 SEO） */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
}
.lang-switch a { padding: 5px 13px; color: var(--text-mid); transition: all .2s; letter-spacing: .04em; }
.lang-switch a.on { background: var(--gold); color: #241B08; }
.lang-switch a:not(.on):hover { color: var(--gold-soft); }

/* ---------- 页脚 ---------- */
.site-footer { background: #080E1A; color: var(--text-mid); padding: 64px 0 40px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h5 { color: var(--gold); font-size: 11px; letter-spacing: .26em; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; }
.site-footer a { font-size: 13px; display: inline-block; padding: 3px 0; transition: color .2s; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(11, 21, 38, .18); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(11, 21, 38, .3); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 工具类 ---------- */
.flex { display: flex; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.ai-c { align-items: center; }
.jc-b { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.hide { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .site-nav .nav-links { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
