/* ==========================================================================
   星辰回响 · Echoes of Astra | 全站设计系统与样式规范
   Cinematic Tactical Anime TCG - Dark Navy + Hairline Gold Aesthetic
   ========================================================================== */

/* --- 1. 设计令牌 (Design Tokens) --- */
:root {
  --ink-900: #010A12;   /* 最深，页脚/遮罩/压暗层 */
  --ink-800: #05101C;   /* 主背景（原站 body 色） */
  --ink-700: #0A1A2B;   /* 卡片/面板/抬起层底色 */
  --ink-600: #12253A;   /* 交互层、输入框、悬停底色 */
  --ink-500: #1C3550;   /* 高亮边框底色 */

  --line:        rgba(246, 217, 138, 0.22);  /* 金色发丝线 */
  --line-strong: rgba(246, 217, 138, 0.55);  /* 强化金线 */
  --line-subtle: rgba(246, 217, 138, 0.12);

  --gold:     #F6D98A;  /* 主强调金色 */
  --gold-dim: #C8A96A;  /* 暗金/眉标强调 */
  --gold-light: #FFF1C5;

  --text:     #E8EEF6;  /* 主文字（亮米白） */
  --text-mute:#8FA0B6;  /* 次级文字（蓝灰） */
  --text-dim: #64748B;  /* 弱化说明/日期/元数据 */

  --font-latin: "Georama", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-zh:    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono:  "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 4px;
  --radius-md: 6px;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.65);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.85);

  --site-max-w: 1200px;
  --header-h: 76px;
}

/* --- 2. 字体定义 (@font-face) --- */
@font-face {
  font-family: "Georama";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/georama-400.woff2") format("woff2");
}
@font-face {
  font-family: "Georama";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/georama-700.woff2") format("woff2");
}
@font-face {
  font-family: "Georama";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/georama-900.woff2") format("woff2");
}
@font-face {
  font-family: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fragmentmono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-sc-400.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/noto-sans-sc-500.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-sans-sc-700.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/noto-sans-sc-900.woff2") format("woff2");
}

/* --- 3. 重置与基础设置 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 中文书名号/引号内不换行，避免出现「《帝国崛 / 起》」这类断行 */
.nowrap { white-space: nowrap; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--ink-800);
  color: var(--text);
  font-family: var(--font-zh);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

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

/* --- 4. 版式规则 (Typography) --- */
.font-latin { font-family: var(--font-latin); }
.font-mono  { font-family: var(--font-mono); }
.font-zh    { font-family: var(--font-zh); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 8px;
}

.heading-section {
  font-family: var(--font-zh);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 12px;
}

.lead-text {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-mute);
  line-height: 1.7;
  max-width: 760px;
}

.text-gold { color: var(--gold); }
.text-mute { color: var(--text-mute); }
.text-dim  { color: var(--text-dim); }

/* --- 5. 核心布局容器 --- */
.container {
  width: 100%;
  max-width: var(--site-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-block {
  padding-top: clamp(64px, 8vw, 108px);
  padding-bottom: clamp(64px, 8vw, 108px);
  position: relative;
  border-bottom: 1px solid var(--line-subtle);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- 6. 顶栏导航 (Header & Nav) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 16, 28, 0.92);
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease;
}

.site-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title-en {
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-title-zh {
  font-family: var(--font-zh);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-zh);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mute);
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s ease;
}

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

.nav-link.active {
  color: var(--gold);
  font-weight: 700;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--gold);
  box-shadow: 0 0 8px rgba(246, 217, 138, 0.6);
}

.header-cta-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 汉堡按钮 */
.menu-toggle-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink-700);
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle-btn.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle-btn.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 移动端菜单抽屉 */
.nav-mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-strong);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-modal);
}

.nav-mobile-drawer.is-open {
  display: flex;
}

.nav-mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: var(--gold);
  background: var(--ink-700);
  border-left-color: var(--gold);
}

/* --- 7. 按钮规范 (Buttons) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-family: var(--font-zh);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink-700);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--ink-900);
  border-color: var(--gold);
  box-shadow: 0 4px 18px rgba(246, 217, 138, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(10, 26, 43, 0.45);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--ink-700);
  border-color: var(--line-strong);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-arrow {
  display: inline-block;
  font-family: var(--font-latin);
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* --- 8. 徽标与装饰元 (Tags & Dividers) --- */
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--gold-dim);
  background: rgba(5, 16, 28, 0.85);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.tag-badge.tag-intel  { color: #F6D98A; border-color: rgba(246, 217, 138, 0.4); }
.tag-badge.tag-update { color: #82B1FF; border-color: rgba(130, 177, 255, 0.4); }
.tag-badge.tag-lore   { color: #C5A3FF; border-color: rgba(197, 163, 255, 0.4); }
.tag-badge.tag-strat  { color: #A7F3D0; border-color: rgba(167, 243, 208, 0.4); }

.tag-en {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid var(--line-subtle);
  border-radius: 2px;
  color: var(--text-dim);
  margin-left: 6px;
}

/* 外链标记（导航 / 外部跳转） */
.ext-mark {
  font-size: 0.8em;
  opacity: 0.7;
  margin-left: 2px;
}

.hairline-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.hairline-divider::before,
.hairline-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.hairline-divider .divider-mark {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* --- 9. 资讯卡片 (News Cards) --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease-out, border-color 0.25s ease-out, box-shadow 0.25s ease-out;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.news-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-900);
  overflow: hidden;
}

.news-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

.news-card:hover .news-card-thumb {
  transform: scale(1.03);
}

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.news-card-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.news-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.news-card:hover .news-card-title {
  color: var(--gold);
}

.news-card-excerpt {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-link-text {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-dim);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-card:hover .news-card-link-text {
  color: var(--gold);
}

/* --- 10. 页脚 (Footer) --- */
.site-footer {
  margin-top: auto;
  background-color: var(--ink-900);
  border-top: 1px solid var(--line);
  padding-top: 48px;
  padding-bottom: 48px;
  color: var(--text-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 40px;
  align-items: center;
}

.footer-brand-logo {
  width: 120px;
  height: auto;
  opacity: 0.85;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-info-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.footer-info-copy {
  color: var(--text-mute);
}

.footer-info-disclaimer {
  color: var(--text-dim);
  font-size: 12px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-btn {
  width: 48px;
  height: 48px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.2s ease;
}

.social-btn:hover {
  border-color: var(--line-strong);
  background: var(--ink-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.social-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.social-btn:hover .social-icon-img {
  opacity: 1;
}

/* --- 11. 首页特定区块样式 --- */
/* 11.1 Hero Section */
.hero-section {
  position: relative;
  min-height: clamp(580px, 88vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-overlay-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(5, 16, 28, 0.75) 0%,
    rgba(5, 16, 28, 0.35) 45%,
    rgba(5, 16, 28, 0.85) 85%,
    var(--ink-800) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-logo-main {
  width: min(560px, 68vw);
  height: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}

.hero-tag-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(520px, 75vw);
  margin-bottom: 16px;
}

.hero-tag-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-tag-text {
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-tag-gem {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-logo-imperion {
  width: min(520px, 62vw);
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5));
}

.hero-title-zh {
  font-family: var(--font-zh);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
  text-wrap: balance;
}

.hero-subtitle-zh {
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 11.2 玩法区块 (#gameplay) */
.gameplay-section {
  position: relative;
  overflow: hidden;
}

.gameplay-figure {
  position: absolute;
  right: -2%;
  bottom: 0;
  height: min(560px, 88%);
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 82%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* 文字与视频始终压在立绘之上 */
.gameplay-section > .container {
  position: relative;
  z-index: 2;
}

.gameplay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.video-card {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease;
}

.video-card:hover {
  border-color: var(--line-strong);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.video-elem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 10, 18, 0.45);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.video-card.is-playing .video-play-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink-700);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-play-overlay:hover .video-play-btn {
  transform: scale(1.08);
  background: var(--gold);
  color: var(--ink-900);
}

.video-play-icon {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid currentColor;
  margin-left: 3px;
}

.video-caption {
  padding: 12px 16px;
  font-size: 12px;
  font-family: var(--font-zh);
  color: var(--text-dim);
  border-top: 1px solid var(--line-subtle);
  background: var(--ink-800);
}

.gameplay-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.point-item {
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
}

/* 11.3 卡牌工艺 (#cards-quality) */
.craft-section {
  position: relative;
  display: flow-root;
  background-color: var(--ink-800);
  padding: 0;
  border-bottom: none;
}

/* 裁切舞台：金框内区域，overflow: hidden 严密裁切角色与跑马灯 */
.craft-stage {
  position: relative;
  height: 580px;
  margin: 8px 8px 0 8px;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 1px 金色外框：精准贴合 stage 四边，z-index 高于角色与内容，保证框线完整不被遮挡 */
.craft-frame {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 580px;
  border: 1px solid rgba(246, 217, 138, 0.35);
  pointer-events: none;
  z-index: 4;
}

.craft-frame::before,
.craft-frame::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
}

.craft-frame::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.craft-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

/* 底纹：pattern-light.svg 平铺 + 渐变遮罩 */
.craft-pattern-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern-light.svg");
  background-repeat: repeat;
  background-size: 126px 126px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.craft-gradient-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 10, 18, 0.85) 0%, rgba(5, 16, 28, 0.25) 25%, rgba(5, 16, 28, 0.25) 75%, rgba(1, 10, 18, 0.85) 100%);
  pointer-events: none;
  z-index: 0;
}

/* 左右立绘：严格按 prompt 要求，相对 stage 定位，height: 100%，overflow: hidden 裁切 */
.craft-char {
  position: absolute;
  bottom: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
  z-index: 3; /* 压住卡片两端 */
  user-select: none;
}

.craft-char-left {
  left: -6%;
  height: 96%;
  object-fit: contain;
  object-position: bottom left;
}

.craft-char-right {
  right: -6%;
  object-fit: contain;
  object-position: bottom right;
}

/* 内容层 */
.craft-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 标题与副标 */
.craft-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 24px;
  padding: 0 20px;
}

.craft-title {
  font-family: var(--font-latin);
  font-size: clamp(24px, 2.8vw, 56px);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
}

.craft-subtitle {
  font-family: var(--font-zh);
  font-size: clamp(13px, 1.15vw, 22px);
  color: #E8EEF6;
  text-align: center;
  margin-top: 8px;
}

/* 无限滚动卡牌行 (Marquee) */
.craft-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  padding: 0 0 16px;
}

.craft-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: craftMarquee 48s linear infinite;
}

.craft-marquee-track:hover {
  animation-play-state: paused;
}

.craft-marquee-group {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
}

@keyframes craftMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.craft-card-item {
  width: 300px;
  aspect-ratio: 600 / 840;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  border: 1px solid var(--line);
  background: var(--ink-700);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.craft-card-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
}

.craft-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 框外居中说明与操作条 */
.craft-actions {
  padding: 18px 0 28px;
  background-color: var(--ink-800);
  border-bottom: 1px solid var(--line-subtle);
  position: relative;
  z-index: 2;
}

.craft-outside-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}

.craft-outside-text {
  font-size: 14px;
  color: var(--text-mute);
}

/* 11.4 立即上手 (#start) */
.start-section {
  position: relative;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.start-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink-800) 0%, rgba(5,16,28,0.92) 50%, rgba(5,16,28,0.5) 100%);
  z-index: 1;
}

.start-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.start-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 16px;
}

.start-note {
  font-size: 13px;
  color: var(--text-dim);
}

/* 11.5 合作与预购 (#contact) */
.contact-section {
  background: var(--ink-900);
}

.contact-card {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  background: var(--ink-700);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.contact-title {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-lead {
  font-size: 15px;
  color: var(--text-mute);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  width: 100%;
  max-width: 440px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-dim);
  min-width: 64px;
  text-align: left;
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
}

/* --- 12. 卡牌图鉴页 (cards.html) --- */
.cards-sticky-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(5, 16, 28, 0.95);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 36px;
}

.cards-filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-family: var(--font-zh);
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.filter-chip {
  padding: 5px 12px;
  font-family: var(--font-zh);
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink-700);
  color: var(--text-mute);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-900);
  font-weight: 700;
}

.filter-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-dim);
}

/* 卡牌网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.card-item {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.card-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 600 / 840;
  overflow: hidden;
  background: var(--ink-900);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--ink-800);
  border-top: 1px solid var(--line-subtle);
}

.card-name-en {
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-type-zh {
  font-size: 12px;
  color: var(--text-mute);
}

.card-cost-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-700);
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* 阵营角标色 */
.card-item[data-affinity="blue"] .card-cost-badge { border-color: #60A5FA; color: #93C5FD; }
.card-item[data-affinity="red"] .card-cost-badge { border-color: #F87171; color: #FCA5A5; }
.card-item[data-affinity="purple"] .card-cost-badge { border-color: #C084FC; color: #E9D5FF; }
.card-item[data-affinity="green"] .card-cost-badge { border-color: #4ADE80; color: #86EFAC; }
.card-item[data-affinity="gold"] .card-cost-badge { border-color: #FBBF24; color: #FDE68A; }
.card-item[data-affinity="neutral"] .card-cost-badge { border-color: #94A3B8; color: #CBD5E1; }

.cards-footer-note {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cards-footer-text {
  font-size: 14px;
  color: var(--text-mute);
}

/* 12.1 灯箱 (Modal / Lightbox) */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(1, 10, 18, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-backdrop.is-open {
  display: flex;
}

.lightbox-modal {
  background: var(--ink-700);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 32px;
  padding: 32px;
}

.lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--ink-600);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox-img-wrap {
  width: 100%;
  aspect-ratio: 600 / 840;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox-card-name {
  font-family: var(--font-latin);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.lightbox-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

.lightbox-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.lightbox-meta-key {
  color: var(--text-dim);
}

.lightbox-meta-val {
  color: var(--text);
  font-weight: 500;
}

/* --- 13. 资讯列表页 (articles.html) --- */
.article-filter-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.article-list-wrap {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.article-row-item {
  display: grid;
  grid-template-columns: 180px 1fr 40px;
  gap: 24px;
  align-items: center;
  padding: 20px 16px;
  border-bottom: 1px solid var(--line-subtle);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border-radius: var(--radius-sm);
}

.article-row-item:hover {
  background-color: var(--ink-700);
  border-color: var(--line);
}

.article-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-row-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.article-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-row-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.article-row-item:hover .article-row-title {
  color: var(--gold);
}

.article-row-excerpt {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.6;
}

.article-row-arrow {
  font-family: var(--font-latin);
  font-size: 18px;
  color: var(--text-dim);
  text-align: right;
  transition: transform 0.2s ease, color 0.2s ease;
}

.article-row-item:hover .article-row-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

/* --- 14. 资讯详情页模板 (Article Details) --- */
.article-detail-wrap {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(32px, 5vw, 48px);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.breadcrumb-nav a:hover {
  color: var(--gold);
}

.article-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.article-title-detail {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.article-body-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.article-body-content p {
  margin-bottom: 24px;
}

.article-body-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}

.article-body-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-dim);
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-body-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
  color: var(--text-mute);
}

.article-body-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-footer-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- 15. 新手上手页 (start.html) --- */
.start-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.start-step-card {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.start-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 400;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.print-table-wrap {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 24px;
}

.print-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-subtle);
  transition: background-color 0.2s ease;
}

.print-row:last-child {
  border-bottom: none;
}

.print-row:hover {
  background-color: var(--ink-600);
}

.print-item-name {
  font-family: var(--font-latin);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* --- 16. 404 页面 --- */
.page-404-wrap {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.num-404 {
  font-family: var(--font-latin);
  font-size: clamp(72px, 12vw, 130px);
  font-weight: 900;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

/* --- 17. 响应式规则 (Media Queries) --- */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .start-steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }
  .footer-brand-logo {
    margin: 0 auto;
  }
  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 899px) {
  .gameplay-figure {
    display: none;
  }
  .craft-char {
    display: none;
  }
  .craft-stage {
    height: 380px;
    margin: 8px 8px 0;
  }
  .craft-frame {
    height: 380px;
  }
  .craft-title {
    font-size: clamp(22px, 6vw, 30px);
  }
  .craft-card-item {
    width: 168px;
  }
  .craft-marquee-track {
    animation-duration: 30s;
  }
}

@media (max-width: 820px) {
  .nav-desktop {
    display: none;
  }
  .header-cta-wrap .btn {
    display: none; /* 移动端顶栏隐藏独立 CTA 按钮，放入抽屉菜单，避免挤占汉堡按钮 */
  }
  .menu-toggle-btn {
    display: flex;
  }
  .gameplay-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-modal {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }
  .lightbox-img-wrap {
    max-width: 240px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .brand-title-en {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .brand-title-zh {
    font-size: 11px;
  }
  .brand-logo-img {
    width: 110px;
    height: auto;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .article-row-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .article-row-arrow {
    display: none;
  }
  .cards-sticky-bar {
    top: var(--header-h);
    padding: 10px 0;
  }
  .cards-filter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-section {
    min-height: 82vh;
  }
  .hero-content {
    max-width: 100%;
    padding-inline: 20px;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }
  .hero-title-zh {
    font-size: clamp(20px, 5.6vw, 30px);
    padding: 0;
    line-height: 1.45;
    text-wrap: balance;
  }
  .hero-subtitle-zh {
    font-size: 13px;
    padding: 0 12px;
  }
  .hero-tag-divider {
    width: 90vw;
  }
  .hero-tag-text {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .start-actions {
    flex-direction: column;
  }
  .start-actions .btn {
    width: 100%;
  }
  .print-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* --- 18. 减弱动态偏好 (prefers-reduced-motion) --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .craft-marquee-container {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .craft-marquee-track {
    animation: none !important;
  }
}
