/* ============================================================
   久赢平台 · 中国区服务门户 —— /assets/site.css
   共享外壳：tokens / reset / 排版 / 页头 / 页脚 / 通用组件
   ============================================================ */

:root {
  --ink: #0B1B33;
  --ink-2: #12294A;
  --steel: #1D3B63;
  --gold: #F2A03D;
  --gold-deep: #C97A1E;
  --teal: #2FBF9F;
  --mist: #A8D8CE;
  --paper: #F7F4EC;
  --paper-2: #E6E1D3;
  --graphite: #2A2E35;
  --white: #FFFFFF;

  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bw: 2px;
  --wrap: 1240px;
  --header-h: 74px;
  --shadow-hard: 6px 6px 0 rgba(29, 59, 99, 0.16);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

#main-content { scroll-margin-top: 132px; }

/* ---------- 排版工具 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------- 容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 跳跃链接 ---------- */
.skip-link {
  position: fixed;
  top: -140px;
  left: 16px;
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: var(--bw) solid var(--ink);
  transition: top 0.16s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink);
  border-bottom: var(--bw) solid var(--steel);
}

.site-header[data-scrolled="true"] {
  box-shadow: 0 12px 26px rgba(11, 27, 51, 0.34);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-h);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- 品牌 --- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
  color: var(--paper);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--gold);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  border: var(--bw) solid var(--ink);
  box-shadow: 3px 3px 0 var(--steel);
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  background: var(--gold-deep);
  color: var(--white);
  box-shadow: 1px 1px 0 var(--steel);
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--white);
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: rgba(247, 244, 236, 0.62);
}

/* --- 回访控制台索引 --- */
.console-index {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.console-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 191, 159, 0.18);
}

.console-label { color: rgba(247, 244, 236, 0.6); }
.console-value { color: var(--gold); }

/* --- 导航 --- */
.site-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(247, 244, 236, 0.8);
  text-decoration: none;
  transition: color 0.16s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--white); }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--gold); }

.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* --- 页头 CTA --- */
.header-cta {
  flex: none;
  margin-left: 14px;
}

/* --- 汉堡按钮 --- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 44px;
  flex: none;
  border: var(--bw) solid var(--steel);
  background: var(--ink-2);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.nav-toggle:hover { border-color: var(--gold); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  transition: background-color 0.18s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
  background: var(--gold);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--gold);
}

/* --- 公告通栏 --- */
.announce {
  background:
    radial-gradient(120% 200% at 10% 0%, rgba(242, 160, 61, 0.16), transparent 58%),
    radial-gradient(90% 180% at 88% 120%, rgba(47, 191, 159, 0.15), transparent 62%),
    var(--ink-2);
  border-top: 1px solid var(--steel);
  border-bottom: var(--bw) solid var(--steel);
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding-block: 8px;
}

.announce-tag {
  flex: none;
  padding: 2px 9px;
  border: 1px solid rgba(242, 160, 61, 0.55);
  background: rgba(242, 160, 61, 0.14);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  white-space: nowrap;
}

.announce-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(247, 244, 236, 0.82);
}

.announce-toggle {
  flex: none;
  margin-left: auto;
  padding: 2px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  border-bottom: 1px solid rgba(242, 160, 61, 0.5);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.announce-toggle:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.announce-panel {
  background: rgba(11, 27, 51, 0.55);
  border-top: 1px solid var(--steel);
  padding: 14px 0 18px;
}

.announce-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.announce-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13.5px;
}

.announce-date {
  flex: none;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.announce-link {
  color: rgba(247, 244, 236, 0.86);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 160, 61, 0.4);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.announce-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* --- 滚动进度 --- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--bw) * -1);
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transform-origin: left center;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background:
    linear-gradient(180deg, rgba(47, 191, 159, 0.07), transparent 42%),
    var(--ink);
  color: rgba(247, 244, 236, 0.78);
  border-top: 3px solid var(--gold);
  font-size: 14px;
}

.footer-top { padding: 54px 0 40px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 32px;
}

.footer-col { min-width: 0; }

.footer-col-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--steel);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-brand {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--white);
}

.footer-brand-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.footer-desc {
  margin-top: 16px;
  max-width: 32ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(247, 244, 236, 0.62);
}

.footer-icp {
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(247, 244, 236, 0.5);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: inline-block;
  padding-bottom: 1px;
  font-size: 14px;
  color: rgba(247, 244, 236, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.footer-contact li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(168, 216, 206, 0.72);
}

.footer-value {
  font-size: 13.5px;
  color: rgba(247, 244, 236, 0.88);
  overflow-wrap: anywhere;
}

.footer-hours {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid var(--steel);
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(247, 244, 236, 0.5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal-link {
  font-size: 12.5px;
  color: rgba(247, 244, 236, 0.62);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-legal-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ============================================================
   通用组件
   ============================================================ */

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  border: var(--bw) solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease,
              border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(11, 27, 51, 0.34);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--white);
  box-shadow: 2px 2px 0 rgba(11, 27, 51, 0.42);
  transform: translate(2px, 2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--steel);
  color: var(--paper);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

/* --- 标签 --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.tag-gold {
  color: var(--gold-deep);
  border-color: rgba(201, 122, 30, 0.45);
  background: rgba(242, 160, 61, 0.14);
}

.tag-teal {
  color: #0F6B58;
  border-color: rgba(47, 191, 159, 0.45);
  background: rgba(47, 191, 159, 0.14);
}

.tag-dark {
  color: var(--mist);
  border-color: var(--steel);
  background: rgba(168, 216, 206, 0.08);
}

/* --- 区段标题 --- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: var(--bw) solid var(--steel);
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--ink);
}

.section-kicker {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section-head--dark { border-bottom-color: var(--steel); }
.section-head--dark .section-title { color: var(--paper); }
.section-head--dark .section-kicker { color: var(--gold); }

/* --- 卡片 --- */
.card {
  position: relative;
  padding: 22px;
  background: var(--white);
  border: var(--bw) solid var(--steel);
  box-shadow: var(--shadow-hard);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.card:hover {
  border-color: var(--gold);
  box-shadow: 4px 4px 0 rgba(201, 122, 30, 0.24);
}

.card-dark {
  background: var(--ink-2);
  border-color: var(--steel);
  color: var(--paper);
  box-shadow: 6px 6px 0 rgba(11, 27, 51, 0.5);
}

.card-title {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.card-dark .card-title { color: var(--white); }

/* --- 面包屑 --- */
.breadcrumb { padding-block: 16px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(247, 244, 236, 0.6);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--gold);
  opacity: 0.8;
}

.breadcrumb-link {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.breadcrumb-link:hover {
  color: var(--white);
  border-bottom-color: var(--gold);
}

/* --- 档案列表 --- */
.archive-list {
  border: var(--bw) solid var(--steel);
  background: var(--white);
}

.archive-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(29, 59, 99, 0.18);
  transition: background-color 0.12s ease;
}

.archive-row:last-child { border-bottom: 0; }

.archive-row:hover { background: var(--paper-2); }

.archive-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #4A5560;
}

.archive-name {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.archive-name:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

.archive-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: right;
  color: #5A6470;
}

/* --- 图片容器（页面阶段放图使用） --- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--bw) solid var(--steel);
  box-shadow: var(--shadow-hard);
  background:
    repeating-linear-gradient(0deg, rgba(168, 216, 206, 0.1) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(168, 216, 206, 0.1) 0 1px, transparent 1px 32px),
    radial-gradient(120% 130% at 18% 0%, rgba(242, 160, 61, 0.2), transparent 56%),
    radial-gradient(110% 120% at 92% 108%, rgba(47, 191, 159, 0.18), transparent 58%),
    var(--ink-2);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(42, 46, 53, 0.7);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1120px) {
  .console-index { display: none; }
  .nav-link { padding-inline: 9px; font-size: 14.5px; }
  .nav-link::after { left: 9px; right: 9px; }
}

@media (max-width: 980px) {
  .header-bar { min-height: 66px; gap: 16px; }

  .nav-toggle { display: flex; }

  .header-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    margin-left: 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--ink-2);
    border-top: var(--bw) solid var(--steel);
    border-bottom: var(--bw) solid var(--gold);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: 0 18px 30px rgba(11, 27, 51, 0.42);
  }

  .site-nav[data-open="true"] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 6px;
  }

  .nav-link {
    display: block;
    padding: 15px 24px;
    font-size: 16px;
    border-bottom: 1px solid rgba(29, 59, 99, 0.7);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    background: rgba(242, 160, 61, 0.12);
    box-shadow: inset 3px 0 0 var(--gold);
  }

  .announce-text { font-size: 13px; }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .archive-row {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
    padding: 14px 16px;
  }

  .archive-meta { text-align: left; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }

  .announce-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-block: 10px;
  }

  .announce-text { flex: 1 1 100%; order: 3; }

  .announce-toggle { margin-left: auto; }

  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand-sub { font-size: 10px; letter-spacing: 0.08em; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }
  .brand-name { font-size: 15.5px; }
  .footer-top { padding: 40px 0 32px; }
}

/* ============================================================
   动效收敛
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn-primary:hover,
  .btn-primary:focus-visible { transform: none; }
}
