/* ========== 九州仙剑传 官网样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #d8b36a;
  --gold-light: #f0d79a;
  --jade: #5ec8b8;
  --ink: #12141d;
  --ink-2: #1b1f2e;
  --paper: #f5efe3;
  --text-dark: #2b2b33;
  --text-light: #efe8d8;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Serif SC", "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  color: var(--text-dark);
  background: var(--ink);
  line-height: 1.7;
}

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

.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 通用标题 ---------- */
.section-title {
  text-align: center;
  font-size: 34px;
  letter-spacing: 8px;
  margin-bottom: 48px;
  color: var(--gold);
  position: relative;
}
.section-title span { position: relative; padding: 0 28px; }
.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-title::before { left: calc(50% - 220px); }
.section-title::after {
  right: calc(50% - 220px);
  transform: scaleX(-1);
}
.section-title.light { color: var(--gold-light); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 12, 20, .95), rgba(10, 12, 20, .75));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(216, 179, 106, .25);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--gold-light);
  text-shadow: 0 0 18px rgba(216, 179, 106, .5);
}
.logo-sub { font-size: 11px; letter-spacing: 3px; color: rgba(239, 232, 216, .6); }
.main-nav { display: flex; gap: 8px; flex: 1; }
.main-nav a {
  padding: 8px 18px;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--text-light);
  border-radius: 4px;
  transition: color .25s, background .25s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--ink); background: var(--gold); }

/* ---------- 主视觉 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=Epic%20Chinese%20xianxia%20fantasy%20game%20key%20art%2C%20immortal%20swordsman%20in%20white%20robe%20standing%20on%20floating%20mountain%20peak%2C%20sea%20of%20clouds%2C%20ancient%20pagodas%2C%20golden%20sunlight%2C%20glowing%20sword%20aura%2C%20cinematic%20digital%20painting&image_size=landscape_16_9") center/cover no-repeat;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10, 12, 20, .1) 30%, rgba(10, 12, 20, .72) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 60px;
}
.hero-title {
  font-size: clamp(56px, 9vw, 110px);
  letter-spacing: 26px;
  text-indent: 26px;
  color: #fff;
  text-shadow: 0 0 40px rgba(216, 179, 106, .8), 0 4px 12px rgba(0, 0, 0, .6);
}
.hero-slogan {
  margin-top: 12px;
  font-size: clamp(16px, 2.4vw, 24px);
  letter-spacing: 10px;
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.hero-clouds {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--ink) 85%);
  z-index: 1;
}

/* ---------- 新闻资讯 ---------- */
.news-section { padding: 90px 0; background: var(--ink); }
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}
.tab-btn {
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 4px;
  padding: 10px 34px;
  color: var(--text-light);
  background: transparent;
  border: 1px solid rgba(216, 179, 106, .4);
  border-radius: 24px;
  cursor: pointer;
  transition: all .25s;
}
.tab-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.tab-btn.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.news-body {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}
.news-feature {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(216, 179, 106, .35);
  display: block;
}
.news-feature img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.news-feature:hover img { transform: scale(1.05); }
.news-feature-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85));
}
.news-lists { min-height: 320px; }
.news-list { display: none; list-style: none; }
.news-list.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }
.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px dashed rgba(216, 179, 106, .25);
}
.news-list a {
  color: var(--text-light);
  font-size: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .2s;
}
.news-list a:hover { color: var(--gold-light); }
.news-list em { font-style: normal; color: var(--gold); margin-right: 6px; }
.news-list time { flex-shrink: 0; font-size: 13px; color: rgba(239, 232, 216, .45); }

/* ---------- 角色鉴赏 ---------- */
.chars-section {
  padding: 90px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(94, 200, 184, .08), transparent 60%),
    var(--ink-2);
}
.char-carousel { display: flex; align-items: center; gap: 12px; }
.char-viewport { overflow: hidden; flex: 1; }
.char-track {
  display: flex;
  gap: 20px;
  transition: transform .5s cubic-bezier(.22, .8, .3, 1);
}
.char-card {
  flex: 0 0 calc((100% - 60px) / 4);
  background: rgba(245, 239, 227, .04);
  border: 1px solid rgba(216, 179, 106, .3);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.char-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 0 20px rgba(216, 179, 106, .25);
}
.char-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.char-card h3 {
  margin-top: 14px;
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--gold-light);
}
.char-card p { padding: 4px 12px 16px; font-size: 13px; color: rgba(239, 232, 216, .65); }
.carousel-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  font-size: 18px;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(216, 179, 106, .5);
  border-radius: 50%;
  cursor: pointer;
  transition: all .25s;
}
.carousel-arrow:hover { background: var(--gold); color: var(--ink); }
.carousel-dots { margin-top: 28px; display: flex; justify-content: center; gap: 10px; }
.carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(216, 179, 106, .3);
  cursor: pointer;
  transition: all .25s;
}
.carousel-dots button.active { background: var(--gold); transform: scale(1.3); }

/* ---------- 游戏资料 ---------- */
.features-section { padding: 90px 0; background: var(--ink); }
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.feature-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(216, 179, 106, .3);
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .55);
}
.feature-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.feature-card:hover img { transform: scale(1.06); }
.feature-card-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .88));
}
.feature-card-text h3 { font-size: 20px; letter-spacing: 4px; color: var(--gold-light); }
.feature-card-text p { font-size: 13px; color: rgba(239, 232, 216, .75); }
.system-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.system-group {
  padding: 26px 24px;
  background: rgba(245, 239, 227, .04);
  border: 1px solid rgba(216, 179, 106, .25);
  border-radius: 10px;
}
.system-group h3 {
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(216, 179, 106, .3);
}
.system-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.system-links a {
  font-size: 14px;
  color: rgba(239, 232, 216, .8);
  padding-left: 14px;
  position: relative;
  transition: color .2s;
}
.system-links a::before {
  content: "◆";
  position: absolute;
  left: 0;
  font-size: 8px;
  top: 6px;
  color: var(--gold);
}
.system-links a:hover { color: var(--gold-light); }

/* ---------- 福利活动 ---------- */
.welfare-section {
  padding: 90px 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(216, 179, 106, .1), transparent 60%),
    var(--ink-2);
}
.welfare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.welfare-card {
  padding: 26px 22px;
  background: rgba(245, 239, 227, .04);
  border: 1px solid rgba(216, 179, 106, .3);
  border-radius: 10px;
  transition: transform .3s, border-color .3s, background .3s;
}
.welfare-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: rgba(216, 179, 106, .08);
}
.welfare-card h3 {
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.welfare-card p { font-size: 13px; color: rgba(239, 232, 216, .65); }

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 60px 0 40px;
  background: #0b0d14;
  border-top: 1px solid rgba(216, 179, 106, .2);
}
.footer-notice h4 {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}
/* CADPA 适龄提示徽章（16+ 黄色标识） */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: 14px;
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  color: #1a1a1a;
  background: #f5c518;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.age-caption { font-size: 13px; color: rgba(239, 232, 216, .7); margin-bottom: 10px; }
.footer-notice p { font-size: 13px; color: rgba(239, 232, 216, .55); margin-bottom: 6px; }
.footer-compliance {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 179, 106, .15);
  text-align: center;
}
.footer-compliance p { font-size: 12px; color: rgba(239, 232, 216, .5); margin-bottom: 4px; }
.footer-compliance a { color: rgba(240, 215, 154, .8); transition: color .2s; }
.footer-compliance a:hover { color: var(--gold-light); }
.footer-compliance .sep { margin: 0 8px; color: rgba(239, 232, 216, .25); }
.footer-links { margin: 28px 0 16px; display: flex; gap: 28px; justify-content: center; }
.footer-links a { font-size: 14px; color: rgba(239, 232, 216, .7); transition: color .2s; }
.footer-links a:hover { color: var(--gold-light); }
.copyright { text-align: center; font-size: 12px; color: rgba(239, 232, 216, .35); }

/* ---------- 回到顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 46px; height: 46px;
  font-size: 20px;
  color: var(--ink);
  background: var(--gold);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .news-body { grid-template-columns: 1fr; }
  .char-card { flex-basis: calc((100% - 20px) / 2); }
  .feature-cards, .system-groups { grid-template-columns: 1fr; }
  .welfare-grid { grid-template-columns: 1fr 1fr; }
  .section-title::before, .section-title::after { display: none; }
}
@media (max-width: 560px) {
  .welfare-grid { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: 12px; text-indent: 12px; }
}
