/* ── 星跃跳棋 官网样式 ──
   主题：温润木纹 + 暖金 + 玻璃通透，呼应游戏本身的 2.5D 实体桌游质感 */

:root {
  --wood-deep:   #1a0f08;
  --wood-dark:   #2a1810;
  --wood-mid:    #3d2415;
  --wood-warm:   #6b3f1d;
  --amber:       #e89b3c;
  --amber-soft:  #f5c06a;
  --gold:        #ffd27a;
  --cream:       #f3e3c8;
  --ink:         #f7ecd8;
  --ink-dim:     #c7ad88;
  --ink-faint:   #9a8161;
  --line:        rgba(232, 155, 60, 0.18);
  --radius:      18px;
  --serif: "Noto Serif SC", Georgia, serif;
  --sans:  "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--wood-deep);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── 顶栏 ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgba(26, 15, 8, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.nav-logo { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: .95rem; }
.nav-links a { color: var(--ink-dim); transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-gh {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink) !important;
}
.nav-gh:hover { background: rgba(232,155,60,.12); border-color: var(--amber); }
@media (max-width: 620px) { .nav-links a:not(.nav-gh) { display: none; } }

/* ── 英雄区 ── */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 110px) clamp(18px, 5vw, 56px) 0;
  background:
    radial-gradient(120% 80% at 70% 0%, rgba(232,155,60,.10), transparent 55%),
    linear-gradient(180deg, var(--wood-dark), var(--wood-deep));
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -20%; right: -5%;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(255,210,122,.16), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  display: inline-block; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px; font-weight: 700;
}
.hero-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 6rem); line-height: 1; letter-spacing: .03em;
  background: linear-gradient(120deg, var(--cream) 20%, var(--gold) 55%, var(--amber) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  filter: drop-shadow(0 6px 24px rgba(232,155,60,.25));
}
.hero-sub { font-family: var(--serif); font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--ink); margin-bottom: 18px; }
.hero-desc { color: var(--ink-dim); max-width: 40ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.btn {
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  padding: 13px 30px; border-radius: 999px; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s; display: inline-block;
}
.btn-primary {
  color: var(--wood-deep);
  background: linear-gradient(135deg, var(--gold), var(--amber));
  box-shadow: 0 8px 26px rgba(232,155,60,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(232,155,60,.55); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(232,155,60,.1); border-color: var(--amber); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; color: var(--ink-faint); font-size: .88rem; }
.hero-badges li { position: relative; padding-left: 16px; }
.hero-badges li::before { content: "◆"; position: absolute; left: 0; color: var(--amber); font-size: .6rem; top: 4px; }

.hero-art { display: flex; justify-content: center; }
.hero-board {
  width: 100%; max-width: 520px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.marble-strip {
  position: relative; z-index: 1; margin-top: clamp(20px, 5vw, 50px);
  display: flex; justify-content: center; gap: clamp(10px, 3vw, 34px);
  padding-bottom: 10px;
}
.marble-strip img { width: clamp(34px, 6vw, 54px); opacity: .9; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.marble-strip img:nth-child(even) { transform: translateY(10px); }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-art { order: -1; }
  .hero-board { max-width: 340px; }
}

/* ── 通用 section ── */
.section { padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 56px); max-width: 1180px; margin: 0 auto; }
.section-alt { background: linear-gradient(180deg, var(--wood-dark), var(--wood-deep)); max-width: none; }
.section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); text-align: center; letter-spacing: .03em;
  color: var(--cream); margin-bottom: 14px;
}
.section-lead { text-align: center; color: var(--ink-dim); max-width: 56ch; margin: 0 auto 48px; }

/* ── 特色卡片 ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: linear-gradient(160deg, rgba(61,36,21,.7), rgba(42,24,16,.55));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s, border-color .2s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); border-color: var(--amber); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 1.4rem; color: var(--gold);
  background: radial-gradient(circle at 30% 30%, rgba(232,155,60,.25), rgba(232,155,60,.06));
  border: 1px solid var(--line);
}
.card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 10px; color: var(--ink); }
.card p { color: var(--ink-dim); font-size: .96rem; }

/* ── 玩法 ── */
.rule-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.rule-step {
  position: relative; padding: 28px 24px; border-radius: var(--radius);
  background: rgba(26,15,8,.5); border: 1px solid var(--line);
}
.rule-num {
  font-family: var(--serif); font-weight: 900; font-size: 2.4rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--amber); display: block; margin-bottom: 8px; line-height: 1;
}
.rule-step h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 8px; color: var(--gold); }
.rule-step p { color: var(--ink-dim); font-size: .93rem; }
.rule-foot {
  margin-top: 32px; text-align: center; color: var(--ink-dim);
  font-size: .95rem; padding: 16px 22px; border-radius: 14px;
  background: rgba(232,155,60,.07); border: 1px dashed var(--line); max-width: 70ch; margin-left: auto; margin-right: auto;
}

/* ── AI ── */
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.ai-card {
  padding: 32px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(61,36,21,.6), rgba(42,24,16,.4));
  border: 1px solid var(--line); text-align: center; transition: transform .2s, box-shadow .25s;
}
.ai-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.ai-card-mid { border-color: rgba(232,155,60,.35); }
.ai-card-hard { border-color: var(--amber); box-shadow: 0 0 0 1px rgba(232,155,60,.2) inset; }
.ai-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.ai-dots span { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--gold), var(--amber)); box-shadow: 0 2px 6px rgba(232,155,60,.5); }
.ai-card h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 10px; color: var(--ink); }
.ai-card p { color: var(--ink-dim); font-size: .95rem; }

/* ── 展示 ── */
.showcase-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 70px); align-items: center; }
.showcase-title { text-align: left; }
.showcase-text > p { color: var(--ink-dim); margin-bottom: 24px; }
.showcase-list { list-style: none; display: grid; gap: 12px; }
.showcase-list li { position: relative; padding-left: 26px; color: var(--ink); font-size: .96rem; }
.showcase-list li::before { content: "★"; position: absolute; left: 0; color: var(--amber); }
.showcase-art img { width: 100%; max-width: 460px; margin: 0 auto; filter: drop-shadow(0 24px 50px rgba(0,0,0,.6)); }
@media (max-width: 820px) { .showcase-inner { grid-template-columns: 1fr; } .showcase-title { text-align: center; } }

/* ── 下载 ── */
.download .section-lead { margin-bottom: 44px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.dl-card {
  display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(61,36,21,.7), rgba(42,24,16,.5));
  border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .25s;
}
.dl-card:hover { transform: translateY(-5px); border-color: var(--amber); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.dl-os { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--gold); margin-bottom: 12px; }
.dl-card p { color: var(--ink-dim); font-size: .95rem; margin-bottom: 18px; }
.dl-card code { background: rgba(0,0,0,.35); padding: 1px 7px; border-radius: 6px; color: var(--amber-soft); font-size: .88em; }
.dl-link { display: inline-block; margin-top: auto; color: var(--amber); font-weight: 700; font-size: .95rem; transition: color .2s; }
.dl-link:hover { color: var(--gold); }
.dl-alt { display: inline-block; margin-top: 10px; color: var(--amber-soft); text-decoration: underline; text-underline-offset: 2px; font-size: .9rem; transition: color .2s; }
.dl-alt:hover { color: var(--gold); }
.dl-card-web { background: linear-gradient(160deg, rgba(74,44,22,.8), rgba(45,26,15,.6)); border-color: rgba(232,155,60,.4); }

/* ── 页脚 ── */
.footer {
  text-align: center; padding: 56px 20px 48px;
  background: var(--wood-deep); border-top: 1px solid var(--line);
}
.footer-logo { width: 56px; height: 56px; border-radius: 13px; margin: 0 auto 16px; box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: 8px; }
.footer-note { color: var(--ink-faint); font-size: .9rem; max-width: 50ch; margin: 0 auto 18px; }
.footer-links { display: flex; gap: 12px; justify-content: center; align-items: center; color: var(--ink-faint); font-size: .92rem; }
.footer-links a { color: var(--ink-dim); transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
