/* ==========================================================================
   桌面战争兵棋 · 门户主页
   视觉语言继承 Conquest 官网：暗油画底 + 磨损石板卡片 + 暗金描边 + 古典衬线
   （磨损边缘直接复用官网的 rips-square 遮罩，因此质感与官网同源）
   ========================================================================== */

/* ---------- 字体：西文 EB Garamond（官网同款）、中文思源宋体子集 ---------- */
@font-face {
  font-family: 'EB Garamond';
  src: url('assets/eb-garamond.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif SC';
  src: url('assets/noto-serif-sc.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 色板 ---------- */
:root {
  --bg:        #14120E;   /* 暖黑（不用纯黑） */
  --panel-hi:  #4E5B69;   /* 石板亮面 */
  --panel:     #3B4652;   /* 石板主面 */
  --panel-lo:  #2A323A;   /* 石板暗面 */
  --gold:      #C9A961;   /* 暗金 */
  --gold-hi:   #EBD9A8;   /* 亮金 */
  --ink:       #F2EDE2;   /* 象牙白 */
  --ink-dim:   #B4AE9F;   /* 暖灰 */
  --ink-faint: #6E6A60;   /* 次级灰 */
}

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

/* 兜底：任何被标记 hidden 的元素都不显示（避免遮罩层常驻挡点击） */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'EB Garamond', 'Noto Serif SC', Georgia, 'Songti SC', 'SimSun', serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 背景：官网战场油画 + 暗角压暗 ---------- */
.bg-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('assets/bg.jpg') center top / cover no-repeat;
}
.bg-veil::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(125% 78% at 50% 0%, rgba(20,18,14,.20) 0%, rgba(20,18,14,.62) 52%, rgba(20,18,14,.96) 100%),
    linear-gradient(180deg, rgba(20,18,14,.40) 0%, rgba(20,18,14,.80) 44%, var(--bg) 74%);
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(20,18,14,.94) 0%, rgba(20,18,14,.70) 100%);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid rgba(201,169,97,.18);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 96px;
}
.brand { display: block; line-height: 0; }
.brand img {
  height: 62px;
  width: auto;
  display: block;
  /* logo 已去底为透明 PNG，直接叠加；轻微投影让它从背景里浮起来 */
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.55));
}
.nav { display: flex; gap: 30px; }
.nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .18em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--gold-hi); border-bottom-color: rgba(201,169,97,.5); }

/* ---------- Hero ---------- */
.hero { padding: 122px 0 96px; text-align: center; }
.hero-kicker {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: .58em;
  text-transform: uppercase;
  color: rgba(201,169,97,.78);
}
.hero-title {
  margin: 0;
  font-size: 42px;
  font-size: clamp(29px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: .1em;
  color: #FBF8F1;
  text-shadow: 0 2px 26px rgba(0,0,0,.72), 0 0 70px rgba(201,169,97,.13);
}
.hero-sub {
  max-width: 640px;
  margin: 30px auto 0;
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: .06em;
  color: var(--ink-dim);
}

/* 金色分隔线（中间一枚菱形，呼应品牌 logo） */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  max-width: 330px;
  margin: 32px auto 0;
}
.rule i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.72));
}
.rule i:last-child {
  background: linear-gradient(90deg, rgba(201,169,97,.72), transparent);
}
.rule b {
  flex: none;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.rule-sm { max-width: 190px; margin: 0 auto; }

/* ---------- 区块标题 ---------- */
.sec-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .36em;
  color: rgba(201,169,97,.82);
}
.sec-title::before,
.sec-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.3), transparent);
}

/* ---------- 模块卡片 ---------- */
.modules { padding: 18px 0 96px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;      /* 所有行等高，卡片尺寸统一 */
  gap: 26px;
  margin-top: 40px;
}

/* 只有一张卡时：整体居中，且不要拉满整行 */
.grid.is-single {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}

.mod {
  position: relative;
  display: block;
  padding: 32px 30px 26px;
  text-decoration: none;
  color: inherit;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.55));
  transition: transform .2s ease, filter .2s ease;
}

/* 石板底：用官网撕裂边缘当遮罩，所以卡片边缘是"磨损的" */
.mod-plate {
  position: absolute;
  inset: 0;
  background: linear-gradient(158deg, var(--panel-hi) 0%, var(--panel) 44%, var(--panel-lo) 100%);
  -webkit-mask-image: var(--rip);
          mask-image: var(--rip);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  transition: background .2s ease;
}
.mod-plate::after {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(201,169,97,.14);
}

.mod-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 194px;
}

/* 图标：用遮罩上金色渐变，因此任意单色 SVG 都能一键变金 */
.mod-icon {
  width: 52px;
  height: 52px;
  flex: none;
  background: linear-gradient(160deg, #EBD9A8 0%, #B08D46 100%);
  -webkit-mask: var(--ico) center / contain no-repeat;
          mask: var(--ico) center / contain no-repeat;
}

.mod-title {
  display: block;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .09em;
  color: #FBF8F1;
}
.mod-title-en {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(201,169,97,.6);
}
.mod-desc {
  flex: 1;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .03em;
  color: #C0BAAB;
}
.mod-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  font-size: 12px;
  letter-spacing: .2em;
  padding: 4px 13px;
  border: 1px solid;
}
.badge-live {
  color: var(--gold-hi);
  border-color: rgba(201,169,97,.5);
  background: rgba(201,169,97,.09);
}
.badge-soon {
  color: #8E97A3;
  border-color: rgba(142,151,163,.28);
}

/* 「进入」按钮：鼠标移到卡片上时填充金色 */
.badge-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.badge-cta i { font-style: normal; font-size: 16px; line-height: 1; margin-top: -2px; }
.mod.is-live:hover .badge-cta {
  color: #1A1712;
  background: linear-gradient(160deg, var(--gold-hi) 0%, #B08D46 100%);
  border-color: var(--gold);
}

.mod-go {
  font-size: 14px;
  letter-spacing: .16em;
  color: rgba(201,169,97,.85);
  transition: transform .2s ease;
}
.mod-go b { font-weight: 400; margin-left: 4px; }

/* 交互态 */
.mod.is-live { cursor: pointer; }
.mod.is-live:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.62)) drop-shadow(0 0 24px rgba(201,169,97,.16));
}
.mod.is-live:hover .mod-plate {
  background: linear-gradient(158deg, #5B6876 0%, #45515E 44%, #2F3841 100%);
}
.mod.is-live:hover .mod-go { transform: translateX(5px); }

.mod.is-pending { cursor: default; }
.mod.is-soon {
  cursor: default;
  opacity: .56;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.42));
}
.mod.is-soon:hover { transform: none; }

/* ---------- 关于 ---------- */
.about { padding: 6px 0 84px; }
.about-inner { max-width: 900px; }
.about p {
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: .03em;
  color: var(--ink-dim);
}
.about strong { color: var(--gold-hi); font-weight: 600; }

.facts { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 15px; }
.facts li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  letter-spacing: .03em;
  color: #A9A395;
}
.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.facts span { color: var(--gold-hi); margin-right: 12px; letter-spacing: .12em; }

/* ---------- 页脚 ---------- */
.footer { padding: 8px 0 68px; text-align: center; }
.foot-brand {
  margin: 28px 0 0;
  font-size: 13.5px;
  letter-spacing: .32em;
  color: rgba(201,169,97,.72);
}
.foot-note {
  max-width: 740px;
  margin: 20px auto 0;
  font-size: 12.5px;
  line-height: 1.95;
  letter-spacing: .02em;
  color: var(--ink-faint);
}

/* 隐私说明：比版权声明更小、更淡，不抢视觉 */
.foot-privacy {
  max-width: 740px;
  margin: 10px auto 0;
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: .02em;
  color: var(--ink-faint);
  opacity: .72;
}

.notice {
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px solid rgba(201,169,97,.25);
  background: rgba(201,169,97,.05);
  color: var(--ink-dim);
  font-size: 14px;
}

/* ---------- 入场动画 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-kicker { animation: rise .7s .04s ease-out both; }
.hero-title  { animation: rise .8s .16s ease-out both; }
.hero .rule  { animation: rise .8s .30s ease-out both; }
.hero-sub    { animation: rise .8s .42s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .hero-kicker, .hero-title, .hero .rule, .hero-sub { animation: none; }
  .mod, .mod-plate, .mod-go, .nav a { transition: none; }
  .mod.is-live:hover { transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .topbar-inner { height: 68px; }
  .brand img { height: 38px; }
  .nav { gap: 18px; }
  .nav a { font-size: 14px; letter-spacing: .12em; }
  .hero { padding: 78px 0 62px; }
  .hero-kicker { letter-spacing: .38em; }
  .hero-sub { font-size: 15.5px; }
  .modules { padding-bottom: 64px; }
  .about { padding-bottom: 56px; }
  .footer { padding-bottom: 48px; }
  .foot-brand { font-size: 12px; letter-spacing: .2em; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .mod { padding: 30px 26px 24px; }
  .mod-body { min-height: 0; }
}
