/* ============================================================
   冰雪传奇官网样式
   ============================================================ */
:root {
  --navy: #0b2237;
  --navy-2: #112f4d;
  --blue: #2f6fb0;
  --blue-light: #5aa0e0;
  --ice: #eef4fb;
  --ice-2: #e3edf8;
  --gold: #d8a64a;
  --gold-light: #ffd79a;
  --card: #182b3f;
  --ink: #23364a;
  --muted: #6b7f95;
  --line: #d8e3f0;
  --red: #d6453a;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 34, 55, .12);
  --w: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--ice);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(8, 24, 41, .55);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img { height: 46px; width: auto; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block;
  padding: 10px 22px;
  color: #dce7f4;
  font-size: 16px;
  letter-spacing: 1px;
  position: relative;
  transition: color .2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width .25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-light); }
.main-nav a:hover::after, .main-nav a.active::after { width: 60%; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  padding: 9px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: .3s;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-slider, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1s; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,24,41,.45) 0%, rgba(8,24,41,.15) 45%, rgba(8,24,41,.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--w);
  margin: 0 auto;
  padding: 110px 20px 60px;
  width: 100%;
}
.hero-title {
  font-size: 64px;
  color: #fff;
  letter-spacing: 6px;
  text-shadow: 0 4px 18px rgba(0,0,0,.5), 0 0 2px var(--gold);
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 24px;
  color: var(--gold-light);
  letter-spacing: 4px;
  margin-bottom: 44px;
}
.hero-down { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.hero-qr {
  background: rgba(255,255,255,.96);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
}
.hero-qr img { width: 130px; height: 130px; }
.hero-qr span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink); }
.hero-btns { display: flex; flex-direction: column; gap: 14px; }
.down-btn {
  display: flex; align-items: center; gap: 10px;
  min-width: 210px;
  padding: 12px 22px;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  background: linear-gradient(180deg, var(--blue-light), var(--blue));
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .15s, box-shadow .15s;
}
.down-btn img { width: 26px; height: 26px; }
.down-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.35); }
.down-btn.down-android { background: linear-gradient(180deg, #43a047, #2e7d32); }
.down-btn.down-ios { background: linear-gradient(180deg, #4a5568, #2d3748); }
.down-btn.down-pc { background: linear-gradient(180deg, var(--gold), #b07f2c); color: #1a1206; }

/* ---------------- 区块标题 ---------------- */
.block { max-width: var(--w); margin: 0 auto; padding: 80px 20px; }
.block-head { text-align: center; margin-bottom: 46px; position: relative; }
.block-no {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  transform: rotate(45deg);
  background: var(--navy);
  color: var(--gold-light);
  font-size: 20px;
  margin-bottom: 22px;
}
.block-no { font-family: Georgia, serif; }
.block-no-img {
  display: block;
  width: 56px;
  height: auto;
  margin: 0 auto 22px;
}
.block-head h2 { font-size: 34px; letter-spacing: 4px; color: var(--navy); }
.block-head small { display: block; color: var(--muted); letter-spacing: 3px; margin-top: 4px; }

/* ---------------- 资讯 tabs ---------------- */
.news-tabs {
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  flex-wrap: wrap;
}
.tab {
  padding: 14px 30px;
  color: #cdd9e8;
  font-size: 16px;
  transition: background .2s, color .2s;
}
.tab:hover { color: var(--gold-light); }
.tab.active { background: var(--gold); color: #1a1206; font-weight: bold; }
.tab-more { margin-left: auto; padding: 14px 22px; color: #9fb4cc; font-size: 14px; }

/* 首页资讯网格 */
.news-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  background: #fff;
  padding: 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.news-focus { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16/10; min-width: 0; }
.focus-item { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; }
.focus-item.active { opacity: 1; }
.focus-item img { width: 100%; height: 100%; object-fit: cover; }
.focus-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(8,20,35,.85));
  color: #fff;
  font-size: 17px;
}
.focus-dots { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 3; }
.focus-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}
.focus-dots span.active { background: var(--gold); }
.news-list-home li { border-bottom: 1px dashed var(--line); }
.news-list-home a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 6px;
  min-width: 0;
}
.news-list-home .nl-title {
  font-size: 16px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.news-list-home a:hover .nl-title { color: var(--blue); }
.news-list-home time { color: var(--muted); font-size: 14px; flex-shrink: 0; }

/* ---------------- 特色 ---------------- */
.feature-block { background: linear-gradient(180deg, var(--ice-2), var(--ice)); max-width: 100%; }
.feature-block .block-head { /* 保持居中 */ }
.feature-grid {
  max-width: var(--w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 0 0 26px;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(11,34,55,.18); }
.fc-img { aspect-ratio: 4/3; overflow: hidden; }
.fc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feature-card:hover .fc-img img { transform: scale(1.06); }
.fc-no {
  width: 44px; height: 44px;
  line-height: 44px;
  margin: -22px auto 12px;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 18px;
  position: relative;
}
.feature-card h3 { font-size: 21px; letter-spacing: 2px; margin-bottom: 10px; color: var(--navy); }
.feature-card p { font-size: 14px; color: var(--muted); padding: 0 18px; }

/* ---------------- 面包屑 ---------------- */
.breadcrumb {
  max-width: var(--w);
  margin: 0 auto;
  padding: 18px 20px 0;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb li { display: flex; align-items: center; font-size: 13px; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--muted); }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--ink); }

/* ---------------- 内页布局 ---------------- */
.site-main { padding-top: 72px; }
.inner-wrap {
  max-width: var(--w);
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.side-bar { position: sticky; top: 90px; }
.side-down {
  background: linear-gradient(180deg, #f3e7d2, #e7d4b3);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.side-down h3 { font-size: 22px; letter-spacing: 3px; color: #6b4a1e; margin-bottom: 18px; }
.side-qr { background: #fff; padding: 12px; border-radius: 8px; margin-bottom: 16px; }
.side-qr img { width: 160px; height: 160px; margin: 0 auto; }
.side-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  transition: filter .2s, transform .15s;
}
.side-btn img { width: 22px; height: 22px; }
.side-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.side-android { background: #2e7d32; }
.side-ios { background: #2d3748; }
.side-pc { background: var(--gold); color: #1a1206; }

.inner-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: var(--shadow);
}
.inner-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 24px;
}
.inner-title h2 { font-size: 28px; letter-spacing: 2px; color: var(--navy); }
.inner-cate { color: var(--blue); font-size: 14px; }
.inner-tabs { border-radius: 8px; margin-bottom: 26px; }

/* 文章列表（内页） */
.news-list-article li { border-bottom: 1px dashed var(--line); }
.news-list-article a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 8px;
}
.na-title { font-size: 16px; flex: 1; }
.news-list-article a:hover .na-title { color: var(--blue); }
.news-list-article time { color: var(--muted); font-size: 14px; flex-shrink: 0; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pagination a {
  min-width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination a.current { background: var(--gold); border-color: var(--gold); color: #1a1206; font-weight: bold; }

/* ---------------- 文章详情 ---------------- */
.article-title { font-size: 28px; text-align: center; color: var(--navy); margin-bottom: 16px; line-height: 1.4; }
.article-meta {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.article-cover { margin: 26px 0; border-radius: 8px; overflow: hidden; }
.article-content { padding: 24px 4px; font-size: 16px; color: #2c3e50; }
.article-content p { margin-bottom: 16px; }
.article-content strong { color: var(--navy); }
.article-content img { border-radius: 8px; margin: 18px auto; }
.article-content h2, .article-content h3 { margin: 24px 0 12px; color: var(--navy); }
.article-near {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  font-size: 14px;
  flex-wrap: wrap;
}
.near-prev, .near-next { color: var(--muted); max-width: 48%; }
.near-prev a, .near-next a, .article-near a { color: var(--blue); }
.related { background: var(--ice-2); border-radius: 8px; padding: 20px 24px; margin-top: 20px; }
.related h3 { font-size: 17px; color: var(--navy); margin-bottom: 12px; }
.related ul { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 18px; }
.related a { font-size: 14px; color: var(--blue); }
.related a:hover { text-decoration: underline; }

/* 单页 */
.single-page { font-size: 16px; color: #2c3e50; }
.single-page p { margin-bottom: 14px; }

/* ---------------- 404 ---------------- */
.page-404 { text-align: center; padding: 110px 20px; }
.p404-code { font-size: 120px; font-family: Georgia, serif; color: var(--gold); line-height: 1; }
.page-404 h1 { font-size: 30px; margin: 16px 0 10px; color: var(--navy); }
.page-404 p { color: var(--muted); margin-bottom: 30px; }
.p404-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.p404-actions a {
  padding: 12px 30px;
  border-radius: 8px;
  background: var(--gold);
  color: #1a1206;
  font-weight: bold;
}
.p404-actions a:last-child { background: var(--navy); color: #fff; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--navy); color: #b9cbe0; margin-top: 60px; }
.footer-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 50px 20px 30px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.footer-brand img { height: 56px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.footer-links a { font-size: 15px; color: #d4e0ee; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact, .footer-copy, .footer-record { font-size: 13px; color: #8fa6c0; margin-bottom: 8px; }
.footer-record a:hover { color: var(--gold-light); }
.age-tip {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: #8fa6c0;
  max-width: var(--w);
  margin: 0 auto;
}
.age-tip img { height: 40px; width: auto; }

/* ---------------- 悬浮工具 ---------------- */
.float-tools {
  position: fixed;
  right: 18px; bottom: 60px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft-item {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,34,55,.85);
  color: #fff;
  border-radius: 8px;
  transition: background .2s;
}
.ft-item:hover { background: var(--gold); color: #1a1206; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 992px) {
  .hero-title { font-size: 48px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-home-grid { grid-template-columns: minmax(0, 1fr); }
  .inner-wrap { grid-template-columns: minmax(0, 1fr); }
  .side-bar { position: static; }
  .side-qr img { width: 140px; height: 140px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(8,24,41,.97);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s;
  }
  .main-nav.open { max-height: 70vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
  .main-nav a { padding: 16px 28px; }
  .main-nav a::after { display: none; }

  .hero { min-height: auto; }
  .hero-content { padding: 120px 20px 50px; }
  .hero-title { font-size: 36px; letter-spacing: 3px; }
  .hero-sub { font-size: 18px; letter-spacing: 2px; margin-bottom: 30px; }
  .hero-down { gap: 22px; }
  .hero-qr img { width: 110px; height: 110px; }
  .down-btn { min-width: 180px; font-size: 16px; }

  .block { padding: 56px 16px; }
  .block-head h2 { font-size: 27px; }
  .tab { padding: 12px 18px; font-size: 15px; }
  .tab-more { margin-left: 0; }
  .inner-content { padding: 24px 18px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .related ul { grid-template-columns: minmax(0, 1fr); }
  .near-prev, .near-next { max-width: 100%; }
  .float-tools { right: 12px; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-title { font-size: 30px; }
  .p404-code { font-size: 88px; }
  .age-tip { flex-direction: column; text-align: center; }
}
