/* =============================================================
   璀璨宝石 Splendor — 站点基础样式
   主题：宝石矿业 / 暖木底 + 金饰点缀
   ============================================================= */

:root {
  /* 底色：深邃矿洞 */
  --bg:          #14100e;
  --bg-soft:     #1c1713;
  --bg-card:     #221b16;
  --bg-elev:     #2b221b;
  --line:        #3a2f26;
  --line-soft:   #2c241d;

  /* 文字 */
  --text:        #f0e6d8;
  --text-dim:    #b6a794;
  --text-faint:  #857868;

  /* 金色（贵金属标识色） */
  --gold:        #d9a84e;
  --gold-bright: #f2cd7c;
  --gold-dim:    #8a6a2c;

  /* 六大宝石 */
  --ruby:        #e0523c;
  --emerald:     #2f9e63;
  --sapphire:    #3a76d8;
  --topaz:       #eda52c;
  --diamond:     #6ec3df;

  --radius:      14px;
  --radius-sm:   9px;
  --maxw:        1140px;

  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB",
          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-num: "DIN Alternate", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景：矿脉纹理 + 光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -8%,  rgba(217,168,78,.10), transparent 62%),
    radial-gradient(760px 460px at 92% 4%,   rgba(58,118,216,.09), transparent 60%),
    radial-gradient(680px 520px at 50% 108%, rgba(47,158,99,.07),  transparent 62%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 62px 62px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

/* ---------------- 布局 ---------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.section { padding: 82px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }

.section-head { margin-bottom: 40px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-head h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .02em;
}
.section-head p {
  margin: 10px 0 0;
  color: var(--text-dim);
  max-width: 640px;
}

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(20,16,14,.82);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .04em;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand .gem {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--gold-bright), var(--gold) 45%, var(--gold-dim));
  box-shadow: 0 0 16px rgba(217,168,78,.4);
  flex: none;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--text-faint);
  line-height: 1;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dim);
  transition: .18s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-elev); }
.nav-links a.active { color: var(--gold-bright); background: rgba(217,168,78,.1); }
.nav-links a.soon { opacity: .55; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 92px 0 74px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 6px 15px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero .kicker i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: .01em;
}
.hero h1 .g {
  background: linear-gradient(105deg, var(--gold-bright), var(--gold) 38%, #b8862f 72%, var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brk { display: none; }
@media (min-width: 640px) { .brk { display: inline; } }

.hero .sub {
  margin: 20px auto 0;
  max-width: 620px;
  color: var(--text-dim);
  font-size: 17px;
}
.hero .en {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 13px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: .2s;
}
.btn-primary {
  background: linear-gradient(140deg, var(--gold-bright), var(--gold) 55%, #b9862c);
  color: #241a09;
  box-shadow: 0 8px 26px rgba(217,168,78,.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(217,168,78,.34); color: #241a09; }
.btn-ghost { border-color: var(--line); color: var(--text-dim); background: var(--bg-card); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold-dim); }
.btn.disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- 卡片 ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.card {
  background: linear-gradient(165deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: .25s;
}
.card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}
.card .num {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: .1em;
}
.card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.card p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }
.card .gem-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
}

/* ---------------- 进度时间轴 ---------------- */
.timeline { position: relative; padding-left: 0; }
.stage {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 26px;
  padding-bottom: 30px;
  position: relative;
}
.stage::before {
  content: "";
  position: absolute;
  left: 132px; top: 30px; bottom: -4px;
  width: 2px;
  background: var(--line);
}
.stage:last-child::before { display: none; }
.stage .when {
  text-align: right;
  padding-top: 2px;
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: .05em;
}
.stage .dot {
  position: absolute;
  left: 126px;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  z-index: 2;
}
.stage.done .dot { background: var(--emerald); border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(47,158,99,.16); }
.stage.active .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(217,168,78,.18); animation: pulse 2.2s infinite; }
.stage.todo .dot { border-style: dashed; }
.stage .body {
  background: linear-gradient(165deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.stage.active .body { border-color: rgba(217,168,78,.45); }
.stage .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .12em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  color: var(--text-faint);
}
.stage.done   .tag { color: var(--emerald);  border-color: rgba(47,158,99,.4);  background: rgba(47,158,99,.08); }
.stage.active .tag { color: var(--gold-bright); border-color: rgba(217,168,78,.4); background: rgba(217,168,78,.08); }
.stage h3 { margin: 0 0 8px; font-size: 19px; }
.stage p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.stage .items {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stage .items li {
  font-size: 12.5px;
  color: var(--text-dim);
  border: 1px solid var(--line-soft);
  background: var(--bg-elev);
  padding: 4px 11px;
  border-radius: 7px;
}

/* ---------------- 进度环 / 指标 ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-num);
  font-size: 34px;
  line-height: 1.1;
  color: var(--gold-bright);
}
.stat span { font-size: 13px; color: var(--text-faint); letter-spacing: .06em; }

/* 进度条 */
.meter { height: 6px; background: var(--bg-elev); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright)); border-radius: 999px; width: 0; transition: width 1.2s ease; }

/* ---------------- 宝石图标 ---------------- */
.gem {
  display: inline-block;
  width: 13px; height: 13px;
  border-radius: 3px;
  vertical-align: -1px;
  margin-right: 5px;
}
.g-ruby     { background: var(--ruby); }
.g-emerald  { background: var(--emerald); }
.g-sapphire { background: var(--sapphire); }
.g-topaz    { background: var(--topaz); }
.g-diamond  { background: var(--diamond); }
.g-gold     { background: var(--gold); }

/* ---------------- 资料页 ---------------- */
.doc { padding: 56px 0 90px; }
.doc h1 {
  font-size: 34px;
  margin: 0 0 6px;
}
.doc .lede { color: var(--text-dim); margin: 0 0 34px; font-size: 16px; }
.doc h2 {
  font-size: 22px;
  margin: 46px 0 14px;
  padding-left: 13px;
  border-left: 3px solid var(--gold);
}
.doc h3 { font-size: 17px; margin: 28px 0 8px; color: var(--gold-bright); }
.doc p, .doc li { color: var(--text-dim); }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}
.doc th, .doc td {
  border: 1px solid var(--line-soft);
  padding: 10px 13px;
  text-align: left;
}
.doc th { background: var(--bg-elev); color: var(--text); font-weight: 600; }
.doc td { color: var(--text-dim); }
.doc tbody tr:nth-child(even) { background: rgba(255,255,255,.015); }
.doc code {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--gold-bright);
}
.callout {
  border: 1px solid rgba(217,168,78,.3);
  background: rgba(217,168,78,.06);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  margin: 20px 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* 资料页导航列表 */
.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px,1fr)); gap: 16px; }
.doc-cards a.card:hover { border-color: var(--gold-dim); }

/* ---------------- 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0;
  color: var(--text-faint);
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------- 滚动淡入 ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 720px) {
  .stage { grid-template-columns: 1fr; gap: 8px; }
  .stage::before { display: none; }
  .stage .dot { display: none; }
  .stage .when { text-align: left; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 7px 9px; font-size: 13px; }
  .section { padding: 56px 0; }
  .doc h1 { font-size: 27px; }
}
