/* ==========================================================================
   回望江湖 · 主题样式（红蓝配色）
   主题色：红色 #D31D19（显） / 深蓝 #1e2f6e（隐·悬停）
   规则：红色为显、深蓝为隐；字体红色，悬停变深蓝字卡
   ========================================================================== */

:root {
  /* —— 主题配色 —— */
  --bg:            #fbf7ee;   /* 页面底色：米白 */
  --bg-panel:      #fffdf7;   /* 卡片/面板底色 */
  --bg-panel-2:    #ffffff;   /* 输入框底色 */
  --red:           #D31D19;   /* 主红（默认/显示色） */
  --red-dark:      #a31210;   /* 深红 */
  --red-light:     #e63624;   /* 亮红（渐变用） */
  --blue:          #1e2f6e;   /* 深蓝（悬停/隐藏色） */
  --blue-dim:      #14204a;   /* 深蓝暗部 */
  --blue-light:    #a8c8e8;   /* 淡蓝（古风边框） */
  --cyan:          #4fc3cf;   /* 青色（丝线边框） */
  --gold:          #ffffff;   /* 丝线颜色（当前：白色） */
  --text:          #3a2d22;   /* 正文墨色 */
  --text-dim:      #7a6a58;   /* 次要文字 */
  --text-mute:     #a89880;   /* 弱化文字 */
  --border:        rgba(211, 29, 25, 0.22);   /* 红色系边框 */

  /* —— 尺寸 —— */
  --header-h: 78px;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(163, 18, 16, 0.16);

  /* —— 字体（与原站一致，微软雅黑优先）—— */
  --font: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

/* ============================ 基础重置 ============================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================ 顶部导航 ============================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  /* 上实下虚：顶部近实心白，向下渐隐成半透明 */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .95) 0%,
    rgba(255, 255, 255, .80) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* 用 mask 让整个导航栏在底部自然淡出，消除清晰边缘 */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 97%);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  display: flex; align-items: flex-start; justify-content: center; padding: 10px 20px 0;
}

.main-nav { display: flex; gap: 44px; }
/* 导航项：红色大字号繁体、无背景；悬停变深蓝文字 */
.nav-link {
  position: relative; color: var(--red); font-size: 26px; font-weight: 700;
  letter-spacing: 6px; padding: 4px 8px;
  background: transparent; border: none;
  transition: color .18s;
}
.nav-link:hover { color: var(--blue); }
.nav-link.is-active { color: var(--red); }
/* 当前页用一条深蓝下划线标识（非方块背景） */
.nav-link.is-active::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px;
  background: var(--blue); border-radius: 2px;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; position: absolute; right: 20px; top: 14px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--red); border-radius: 2px; }

/* ============================ 首屏 Hero ============================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 20px 45px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 100px),
    url('../assets/images/hero/hero-bg.png') center/cover no-repeat;
  filter: brightness(1.06);
}
.hero-inner {
  max-width: 980px; margin: 0 auto; text-align: center; width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.hero-kicker { color: var(--blue-dim); letter-spacing: 4px; font-size: 15px; margin-bottom: 16px; }
.hero-title {
  font-size: clamp(44px, 8vw, 88px); font-weight: 900; letter-spacing: 10px;
  background: linear-gradient(180deg, var(--red-light) 20%, var(--red-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 20px;
}
.hero-slogan { color: rgba(255, 255, 255, .92); font-size: 18px; max-width: 640px; margin: 0 auto 24px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }

.download-panel {
  display: flex; align-items: center; gap: 20px;
  position: relative;
  z-index: 0;
  padding: 22px 38px;
  max-width: 1300px; margin: 0 auto;
}
/* 外层：黑色半透明背景 + 白色边框，四角内凹曲线 */
.download-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--gold);
  pointer-events: none;
  -webkit-mask-image:
    radial-gradient(circle at 0 0, transparent 28px, #000 29px),
    radial-gradient(circle at 100% 0, transparent 28px, #000 29px),
    radial-gradient(circle at 0 100%, transparent 28px, #000 29px),
    radial-gradient(circle at 100% 100%, transparent 28px, #000 29px);
  -webkit-mask-size: 51% 50%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: top left, top right, bottom left, bottom right;
  mask-image:
    radial-gradient(circle at 0 0, transparent 28px, #000 29px),
    radial-gradient(circle at 100% 0, transparent 28px, #000 29px),
    radial-gradient(circle at 0 100%, transparent 28px, #000 29px),
    radial-gradient(circle at 100% 100%, transparent 28px, #000 29px);
  mask-size: 51% 50%;
  mask-repeat: no-repeat;
  mask-position: top left, top right, bottom left, bottom right;
}
/* 内层直线方框：四角超过外层凹弧缺口 */
.download-panel::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold);
  opacity: .7;
  pointer-events: none;
}
.qr-group { display: flex; align-items: center; gap: 6px; }
.qr-box {
  position: relative;
  display: block;
  line-height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.qr-img {
  width: 125px; height: 125px; object-fit: cover; display: block;
}
/* 二维码扫光：一道白光从左到右循环扫过 */
.qr-box::after {
  content: "";
  position: absolute;
  top: -20%; left: -60%;
  width: 40%; height: 140%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: qr-shine 3s linear infinite;
  pointer-events: none;
}
@keyframes qr-shine {
  0% { left: -60%; }
  60%, 100% { left: 140%; }
}
.qr-tip {
  position: relative;
  color: #fff; font-size: 19px; font-weight: 900;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}
/* 扫光层：白色高光从上到下扫过竖排文字 */
.qr-tip::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(255,255,255,.8) 50%, transparent 58%);
  background-size: 100% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shine 3s linear infinite;
  pointer-events: none;
}
@keyframes text-shine {
  0% { background-position: 0 200%; }
  100% { background-position: 0 -200%; }
}
.download-buttons { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.download-col { display: flex; flex-direction: column; gap: 12px; }
.download-btn { display: block; line-height: 0; position: relative; overflow: hidden; border-radius: 12px; }
.download-btn img { width: 180px; height: 60px; object-fit: cover; background: transparent; display: block; }
.download-btn-pc img { height: 140px; width: auto; background: transparent; display: block; }
.download-btn-pc::after { display: none; }
.gift-box {
  position: relative;
  display: block;
  line-height: 0;
  overflow: hidden;
  border-radius: 12px;
}
.gift-img { height: 140px; width: auto; display: block; }
/* 下载图标扫光：一道白光从左到右循环扫过 */
.download-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%);
  border-radius: 12px;
  animation: download-shine 3s linear infinite;
  pointer-events: none;
}
@keyframes download-shine {
  0% { left: -60%; }
  60%, 100% { left: 140%; }
}

/* 按钮：红色（显），悬停变深蓝（隐） */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 6px; font-size: 18px; font-weight: 700; letter-spacing: 1px;
  color: #fff; background: var(--red);
  position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
  border: 1px solid rgba(255,255,255,.1);
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 47, 110, .4);
}
/* 扫光效果：一道光从左到右循环扫过按钮 */
.btn::after {
  content: "";
  position: absolute;
  top: -20%; left: -60%;
  width: 40%; height: 140%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.65) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: btn-shine 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shine {
  0% { left: -60%; }
  60%, 100% { left: 140%; }
}
.btn-primary { background: var(--red); }
.btn-block { width: 100%; }
.ico { width: 16px; height: 16px; display: inline-block; font-style: normal; opacity: .9; }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 28px; color: var(--red); animation: bob 1.6s infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ============================ 通用 Section ============================ */
.section { padding: 90px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: 34px; font-weight: 800; letter-spacing: 6px;
  margin-bottom: 40px; color: var(--red);
}
.section-title span {
  position: relative; display: inline-block; padding: 0 20px;
}
.section-title span::before, .section-title span::after {
  content: ""; position: absolute; top: 50%; width: 42px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue));
}
.section-title span::before { right: 100%; }
.section-title span::after { left: 100%; background: linear-gradient(90deg, var(--blue), transparent); }

/* ============================ 轮播通用 ============================ */
.news-carousel, .roles-carousel, .features-carousel { position: relative; }
.carousel-track { position: relative; display: flex; gap: 20px; overflow: hidden; scroll-snap-type: x mandatory; }
.carousel-track > * { flex: 0 0 auto; scroll-snap-align: center; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; font-size: 24px; line-height: 1;
  background: var(--red); color: #fff; border: 1px solid rgba(255,255,255,.3);
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.carousel-btn:hover { background: var(--blue); color: #fff; }
.carousel-btn.prev { left: -12px; }
.carousel-btn.next { right: -12px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%; background: var(--text-mute);
  transition: all .2s;
}
.carousel-dots button.is-active { background: var(--red); width: 26px; border-radius: 6px; }

/* ============================ 占位媒体图（红蓝交替）============================ */
/* 【占位】用 CSS 渐变模拟图片，正式上线时替换成真实 <img> 或 background-image */
[class*="media-"], [class*="avatar-"] { position: relative; overflow: hidden; }
[class*="media-"]::after {
  content: "占位图"; position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.85); font-size: 15px; letter-spacing: 2px;
}
.media-1 { background: linear-gradient(135deg, #a31210, #D31D19); }
.media-2 { background: linear-gradient(135deg, #14204a, #1e2f6e); }
.media-3 { background: linear-gradient(135deg, #D31D19, #1e2f6e); }
.media-4 { background: linear-gradient(135deg, #a31210, #e63624); }
.media-5 { background: linear-gradient(135deg, #14204a, #1e2f6e); }
.media-6 { background: linear-gradient(135deg, #D31D19, #14204a); }

/* 角色立绘占位：红蓝渐变 + 中央大字 */
.role-avatar { aspect-ratio: 3/4; border-radius: var(--radius); display: grid; place-items: center; }
.role-avatar::after {
  content: attr(data-glyph); position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 64px; color: rgba(255,255,255,.8);
}
.avatar-1 { background: linear-gradient(160deg, #a31210, #D31D19); }
.avatar-2 { background: linear-gradient(160deg, #14204a, #1e2f6e); }
.avatar-3 { background: linear-gradient(160deg, #D31D19, #1e2f6e); }
.avatar-4 { background: linear-gradient(160deg, #a31210, #e63624); }
.avatar-5 { background: linear-gradient(160deg, #14204a, #1e2f6e); }

/* ============================ 资讯板块 ============================ */
.news-section {
  background:
    linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, .45)),
    linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 100px),
    linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 120px),
    url('../assets/images/screen/screen2.png') center 0/cover no-repeat;
}
.roles-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, .45)),
    linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 150px),
    linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 150px),
    url('../assets/images/roles/roles-bg.png') center/cover no-repeat;
}
.motion-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 60%, transparent 95%);
  mask-image: radial-gradient(ellipse at center, #000 60%, transparent 95%);
  transform: translateX(100%);
  transition: transform 1.2s ease;
  pointer-events: none;
  z-index: 1;
}
.roles-section.is-visible .motion-right {
  transform: translateX(0);
}
.chapter-title, .chapter-title2 {
  display: block;
  margin: 0 auto 40px;
  width: 420px;
  height: auto;
  transform: scale(1.6);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}
.chapter-title.is-visible, .chapter-title2.is-visible {
  transform: scale(1);
  opacity: 1;
}
.chapter-title2 { margin-top: 40px; }

/* ============ 资讯内容（红色主题布局） ============ */
.news-demo {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  height: 640px;
}
.news-frame {
  position: absolute; inset: 0;
  background: rgba(255, 252, 248, .92);
  border: 1px solid #b82626;
  clip-path: polygon(0 10%, 6% 0, 100% 0, 100% 90%, 94% 100%, 0 100%);
}
.nd-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 51% 49%; height: 100%; }
.nd-left { padding: 30px 22px 26px 44px; display: flex; flex-direction: column; position: relative; z-index: 2; }
.nd-nav { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 22px; font-weight: 700; }
.nd-nav span { cursor: pointer; padding: 8px 14px; position: relative; color: #7a4a4a; transition: .2s; background: radial-gradient(ellipse at center, rgba(219,82,75,.3), transparent 72%); }
.nd-nav span.active { color: #7f1518; }
.nd-nav span.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: #b82626; }
.nd-nav i { font-style: normal; color: rgba(184,38,38,.35); font-size: 13px; }
.nd-search {
  height: 52px; display: grid; grid-template-columns: 1fr 70px;
  border: 1.5px solid rgba(184,38,38,.5); background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 4px rgba(184,38,38,.035); margin-bottom: 16px;
}
.nd-search input { border: 0; outline: none; padding: 0 16px; font-size: 17px; background: transparent; color: #27455f; }
.nd-search input::placeholder { color: #aaa1a0; }
.nd-search button { border: 0; background: linear-gradient(135deg,#c93a33,#8f1719); color: #fff; font-size: 24px; cursor: pointer; }
.nd-list { flex: 1; min-height: 0; }
.nd-item {
  min-height: 62px; display: grid; grid-template-columns: 70px 1fr 110px; align-items: center; gap: 10px;
  border-bottom: 1px dashed rgba(184,38,38,.48);
}
.nd-badge {
  justify-self: start; padding: 5px 10px; font-size: 14px; font-weight: 800; color: #7f1518;
  background: linear-gradient(90deg,rgba(219,82,75,.16),rgba(219,82,75,.03)); border-left: 3px solid #b82626;
}
.nd-headline { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; color: #244663; }
.nd-headline:hover { color: #7f1518; }
.nd-date { justify-self: end; color: #6f5a58; font-size: 15px; }
.nd-pager { display: flex; align-items: center; gap: 10px; padding-top: 20px; }
.page-pill {
  min-width: 38px; height: 38px; padding: 0 13px; border: 1px solid rgba(184,38,38,.36);
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.52);
  color: #7c4a48; font-size: 15px; cursor: pointer; transform: skewX(-8deg);
}
.page-pill > span { transform: skewX(8deg); }
.page-pill.active { background: #b82626; border-color: #b82626; color: #fff; }
.page-pill.arrow { min-width: 46px; font-size: 18px; }

.nd-right { position: relative; overflow: visible; }
.nd-decor { position: absolute; right: -21%; top: -20%; font-family: "STKaiti", "KaiTi", serif; color: rgba(184,38,38,.28); font-size: 176px; font-weight: 700; z-index: 1; }
.nd-paper-back {
  position: absolute; right: 5.5%; top: 10%; width: 83%; height: 76%;
  background: rgba(255,255,255,.74); border: 1px solid rgba(184,38,38,.17);
  box-shadow: 0 14px 24px rgba(73,42,34,.12); transform: rotate(2.8deg);
}
.nd-hero-card {
  position: absolute; right: -3%; top: 1%; width: 84%; height: 79%;
  background:
    radial-gradient(circle at 70% 18%,rgba(255,255,255,.88),transparent 33%),
    linear-gradient(155deg,#f2e5dc,#d9edf4 42%,#c8dfdc 100%);
  border: 10px solid rgba(255,255,255,.96); box-shadow: 0 17px 30px rgba(51,46,50,.24);
  transform: rotate(3.6deg); transform-origin: 78% 80%; overflow: hidden;
}
.nd-visual-label { position: absolute; left: 30px; top: 24px; z-index: 4; font-family: Georgia, serif; color: #7f1518; letter-spacing: 3px; font-weight: 700; font-size: 13px; }
.nd-visual-title { position: absolute; left: 30px; top: 44px; z-index: 4; color: #7f1518; font-family: "STKaiti","KaiTi",serif; font-size: 32px; font-weight: 800; text-shadow: 0 2px 0 rgba(255,255,255,.9); }
.nd-hero { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; transition: .42s ease; }
.nd-hero.hidden { opacity: 0; }
.nd-hero.active { opacity: 1; }
.nd-corner-line { position: absolute; right: 0; bottom: 0; width: 190px; height: 115px; pointer-events: none; z-index: 9; }
.nd-corner-line::before, .nd-corner-line::after { content: ""; position: absolute; background: #b82626; transform-origin: right bottom; }
.nd-corner-line::before { width: 145px; height: 3px; right: -2px; bottom: 2px; transform: rotate(-31deg); }
.nd-corner-line::after { width: 72px; height: 3px; right: 76px; bottom: 50px; transform: rotate(-31deg); opacity: .45; }

.nd-carousel { position: absolute; right: 26%; bottom: 5.5%; display: flex; gap: 16px; z-index: 8; }
.diamond-wrap {
  width: 22px; height: 22px; transform: rotate(45deg); border: 2px solid #b82626;
  display: grid; place-items: center; background: rgba(255,255,255,.7); cursor: pointer; transition: .2s;
}
.diamond-wrap span { width: 11px; height: 11px; background: #d8e4ee; display: block; }
.diamond-wrap.active span { background: #184f95; }
.diamond-wrap.active { box-shadow: 0 0 0 3px rgba(255,255,255,.86); }

@media (max-width: 768px) {
  .news-demo { height: auto; }
  .nd-layout { grid-template-columns: 1fr; }
  .nd-right { height: 420px; }
  .nd-left { padding: 20px 18px; }
}
.news-carousel { margin-bottom: 36px; }
.news-carousel .carousel-slide {
  width: 78%; max-width: 640px; display: block; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.slide-media { aspect-ratio: 16/9; }
.slide-caption {
  padding: 12px 16px; background: rgba(255, 253, 247, .95); font-size: 15px; color: var(--text-dim);
  border-top: 1px solid var(--border);
}

.news-panel {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
}
.tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs-center { justify-content: center; }
.tab {
  padding: 7px 20px; border-radius: 18px; font-size: 14px; color: var(--red);
  border: 1px solid var(--border); transition: all .2s;
}
.tab.is-active { background: var(--red); color: #fff; border-color: var(--red); }
.tab:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.search-box { margin-left: auto; }
.search-input {
  padding: 7px 14px; border-radius: 18px; border: 1px solid var(--border);
  background: var(--bg-panel-2); color: var(--text); font-size: 14px; width: 180px;
}
.search-input::placeholder { color: var(--text-mute); }
.more-link { color: var(--red); font-size: 14px; }
.more-link:hover { color: var(--blue-dim); }

.news-list, .guide-list { display: none; }
.news-list.is-active, .guide-list.is-active { display: block; }
.news-item a {
  display: flex; align-items: center; gap: 12px; padding: 13px 6px;
  border-bottom: 1px dashed rgba(211, 29, 25, .18); transition: background .2s;
}
.news-item a:hover { background: rgba(30, 47, 110, .16); }
.news-type {
  flex-shrink: 0; font-size: 12px; padding: 2px 9px; border-radius: 4px;
  background: rgba(211, 29, 25, .1); color: var(--red); border: 1px solid rgba(211, 29, 25, .3);
}
.news-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.news-item a:hover .news-title { color: var(--red); }
.news-time { flex-shrink: 0; color: var(--text-mute); font-size: 13px; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.page-btn {
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 6px; font-size: 14px;
  color: var(--red); border: 1px solid var(--border); transition: all .2s;
}
.page-btn.is-active { background: var(--red); color: #fff; border-color: var(--red); }
.page-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ============================ 攻略板块 ============================ */
.guide-section { background: linear-gradient(180deg, transparent, rgba(211, 29, 25, .05), transparent); }

/* ============================ 职业板块 ============================ */
.roles-section .section-inner {
  max-width: none;
  width: 100%;
  position: relative;
  z-index: 2;
}
.daoke-box {
  position: relative;
  width: 620px;
  max-width: 80%;
  margin: 20px auto 0;
  aspect-ratio: 1;
  transform: scale(1.6);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}
.daoke-box.is-visible {
  transform: scale(1);
  opacity: 1;
}
.daoke-shadow, .daoke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.daoke { z-index: 2; }
.daoke-shadow { z-index: 1; }

/* ===== 五大职业展示（wuxia 布局）===== */
.wuxia-layout {
  /* ===== 复用控制面板（改这里调三个模块的大小和位置）===== */
  --nav-width: 340px;
  --nav-height: 72%;
  --nav-item-height: 110px;
  --nav-item-gap: 26px;
  --nav-font-size: 30px;
  --nav-seal-size: 78px;
  --character-width: min(48vw, 640px);
  --character-max-height: 80vh;
  --character-area-left: 360px;
  --info-min-height: 500px;
  --info-padding-x: 52px;
  --info-title-size: clamp(44px, 4vw, 72px);
  --info-desc-size: clamp(20px, 1.4vw, 26px);

  display: grid;
  grid-template-columns: minmax(500px, 1.1fr) minmax(400px, .9fr);
  align-items: center;
  gap: 3vw;
  min-height: 100vh;
  padding: 6vh 6vw;
  margin-top: 0;
}
.wuxia-stage {
  position: relative;
  height: 78vh;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.wuxia-rail {
  width: var(--nav-width);
  height: var(--nav-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--nav-item-gap);
  position: relative;
  z-index: 4;
  margin-left: 130px;
}
.wuxia-role-btn {
  appearance: none; border: 0; background: transparent;
  cursor: pointer;
  display: grid;
  grid-template-columns: var(--nav-seal-size) 1fr;
  align-items: center;
  gap: 10px;
  min-height: var(--nav-item-height);
  padding: 7px 8px;
  color: #b51f24;
  font: 700 var(--nav-font-size)/1.2 "STKaiti", "KaiTi", serif;
  transition: .28s ease;
  text-align: left;
}
.wuxia-role-btn .seal {
  width: var(--nav-seal-size); height: var(--nav-seal-size); border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(181,31,36,.42);
  background: #b51f24;
  color: #fff;
  box-shadow: 0 8px 22px rgba(42,23,18,.08);
  font-size: 36px;
  transition: .28s ease;
}
.wuxia-role-btn.active { color: #1e2f6e; transform: translateX(8px); }
.wuxia-role-btn.active .seal {
  color: #1e2f6e; border-color: #b51f24; background: #fff;
  box-shadow: 0 10px 28px rgba(181,31,36,.25);
}
.wuxia-char-wrap {
  position: absolute;
  left: var(--character-area-left); right: 0; top: 0; bottom: 0;
  display: grid; place-items: center;
}
.wuxia-halo {
  position: absolute;
  width: min(92vw, 1180px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0 34%, rgba(235,219,199,.46) 35% 48%, transparent 70%);
  filter: blur(1px); opacity: .88;
}
.wuxia-brush-ring {
  position: absolute;
  width: min(64vw, 880px); aspect-ratio: 1;
  border: 3px solid rgba(181,31,36,.18);
  border-left-color: transparent;
  border-bottom-color: rgba(181,31,36,.08);
  border-radius: 50%;
  transform: rotate(-14deg);
}
.wuxia-character {
  position: relative; z-index: 3;
  width: var(--character-width); max-height: var(--character-max-height);
  object-fit: contain;
  filter: drop-shadow(0 28px 25px rgba(30,35,42,.22));
  transition: opacity .3s ease, transform .35s ease, filter .35s ease;
  user-select: none;
}
.wuxia-character.change {
  opacity: 0; transform: translateY(14px) scale(.975);
  filter: drop-shadow(0 16px 18px rgba(30,35,42,.12)) blur(3px);
}
.wuxia-info {
  position: relative;
  padding: 54px var(--info-padding-x) 48px;
  background: linear-gradient(145deg, rgba(255,253,249,.80), rgba(248,241,232,.62));
  border: 1px solid rgba(181,31,36,.18);
  box-shadow: 0 24px 70px rgba(61,37,25,.11);
  backdrop-filter: blur(8px);
  min-height: var(--info-min-height);
}
.wuxia-info::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(181,31,36,.12);
  pointer-events: none;
}
.wuxia-eyebrow { color: #b51f24; letter-spacing: .35em; font-size: 14px; margin-bottom: 17px; }
.wuxia-name {
  margin: 0; display: flex; align-items: center; gap: 17px;
  font-size: var(--info-title-size); line-height: 1; letter-spacing: .08em; font-weight: 900; color: #1d1714;
}
.wuxia-name .wuxia-stamp {
  width: 48px; height: 48px; display: inline-grid; place-items: center;
  border: 2px solid #b51f24; border-radius: 50%; color: #b51f24; font-size: 20px; transform: rotate(-8deg);
}
.wuxia-english { margin: 10px 0 34px 70px; font: 600 11px/1.1 Georgia, serif; letter-spacing: .38em; color: #99857c; }
.wuxia-desc {
  max-width: 560px; margin: 0; color: #3e3531;
  font-size: var(--info-desc-size); line-height: 1.95; letter-spacing: .06em;
  min-height: 112px; transition: opacity .25s ease, transform .3s ease;
}
.wuxia-desc.change { opacity: 0; transform: translateX(12px); }
.wuxia-divider {
  width: 100%; height: 1px; margin: 32px 0 25px;
  background: linear-gradient(90deg, #b51f24, rgba(181,31,36,.14), transparent);
}
.wuxia-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px 34px; font-size: 15px; color: #746158;
}
.wuxia-meta b { display: block; color: #382e29; font-size: 17px; margin-bottom: 6px; }
.wuxia-nav { display: flex; gap: 12px; margin-top: 34px; position: relative; z-index: 3; }
.wuxia-nav button {
  border: 1px solid rgba(181,31,36,.34); background: rgba(255,255,255,.5);
  width: 44px; height: 44px; cursor: pointer; color: #b51f24; font-size: 20px; transition: .2s ease;
}
.wuxia-nav button:hover { background: #b51f24; color: #fff; }
.wuxia-counter { display: flex; align-items: center; margin-left: 8px; color: #8c756b; font: 700 14px/1 Georgia, serif; letter-spacing: .2em; }

.role-card {
  width: 300px; background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: center; transition: transform .2s;
}
.role-card:hover { transform: translateY(-6px); border-color: var(--blue); }
.role-name { font-size: 20px; color: var(--red); margin: 16px 0 8px; letter-spacing: 2px; }
.role-desc { font-size: 14px; color: var(--text-dim); }

/* ============================ 特色板块 ============================ */
.features-section { background: linear-gradient(180deg, transparent, rgba(30, 47, 110, .10), transparent); }
.feature-slide { width: 300px; text-align: center; }
.feature-media { aspect-ratio: 16/10; border-radius: var(--radius); border: 1px solid var(--border); }
.feature-slide p { margin-top: 12px; color: var(--text-dim); font-size: 15px; }

/* ============================ 预约 / 社交 ============================ */
.reserve-section { text-align: center; }
.reserve-desc { color: var(--text-dim); margin-bottom: 26px; }
.social-links { display: flex; justify-content: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.social-link {
  padding: 8px 22px; border-radius: 20px; border: 1px solid var(--border);
  color: var(--red); font-size: 14px; transition: all .2s;
}
.social-link:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

/* ============================ 页脚 ============================ */
.site-footer {
  text-align: center; padding: 36px 20px; color: var(--text-mute); font-size: 13px;
  background: #fff;
}
.site-footer p + p { margin-top: 6px; }

/* ============================ 回到顶部 ============================ */
.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; font-size: 20px;
  background: var(--red); color: #fff; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s, background .2s, color .2s;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--blue); color: #fff; }

/* ============================ 弹窗 ============================ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(40, 30, 18, .45);
  display: grid; place-items: center; padding: 20px;
}
.modal-mask[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 380px; background: var(--bg-panel);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow); animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 10px; right: 14px; font-size: 26px; color: var(--text-mute);
  line-height: 1;
}
.modal-close:hover { color: var(--red); }
.modal-title { text-align: center; font-size: 22px; color: var(--red); margin-bottom: 8px; }
.modal-sub { text-align: center; color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }
.modal-input {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-panel-2); color: var(--text); font-size: 15px;
}
.modal-input:focus { outline: none; border-color: var(--blue); }
.modal-error { color: var(--red); font-size: 13px; min-height: 20px; margin: 6px 2px 0; }
.modal-note { text-align: center; color: var(--text-mute); font-size: 12px; margin-top: 18px; }

/* ============================ 响应式 ============================ */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h);
    left: 0; right: 0; background: rgba(255, 251, 240, .97); padding: 16px 24px;
    border-bottom: 1px solid var(--border); gap: 4px;
  }
  .download-panel { flex-direction: column; gap: 20px; padding: 24px; }
  .download-buttons { grid-template-columns: 1fr 1fr; width: 100%; }
  .section { padding: 60px 16px; }
  .news-carousel .carousel-slide { width: 100%; }
  .carousel-btn.prev { left: 4px; }
  .carousel-btn.next { right: 4px; }
  .search-box { margin-left: 0; width: 100%; }
  .search-input { width: 100%; }
  .role-card { width: 200px; }
  .feature-slide { width: 260px; }
}

/* ============================ 仙侠风下载侧边栏 ============================ */
.x-sidebar{
  position:fixed;
  right:14px;
  top:50%;
  width:347px;
  z-index:9999;
  transform:translate(125%,-50%);
  opacity:0;
  pointer-events:none;
  transition:transform .58s cubic-bezier(.2,.82,.2,1),opacity .3s ease;
  filter:drop-shadow(0 18px 28px rgba(30,55,65,.2));
}
.x-sidebar.show{
  transform:translate(0,-50%);
  opacity:1;
  pointer-events:auto;
}

.sidebar-art{
  position:relative;
  width:100%;
  aspect-ratio:941/1672;
  animation:floatPanel 4.8s ease-in-out infinite;
}

.sidebar-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  user-select:none;
  pointer-events:none;
  -webkit-user-drag:none;
}

/* =========================================================
   透明点击区域
   图片负责视觉，热点负责真正的链接和点击
   ========================================================= */
.hotspot{
  position:absolute;
  left:22.2%;
  width:55.6%;
  border:0;
  border-radius:999px;
  background:transparent;
  cursor:pointer;
  z-index:6;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.hotspot:hover{
  transform:scale(1.035);
  background:rgba(255,235,170,.05);
  box-shadow:0 0 0 2px rgba(255,215,115,.14),0 0 18px rgba(255,210,95,.15);
}
.hotspot:active{transform:scale(.985)}

/* 顶部二维码点击区域，可配置一个链接 */
.qr-hotspot{
  position:absolute;
  left:25.4%;
  top:13.2%;
  width:49.2%;
  height:25.7%;
  z-index:7;
  border-radius:8px;
  cursor:pointer;
  background:transparent;
}
.qr-slot{
  position:absolute;
  left:25.4%;
  top:11.6%;
  width:49.2%;
  height:25.7%;
  display:grid;
  place-items:center;
  padding:4%;
  overflow:hidden;
  z-index:6;
  pointer-events:none;
}
.qr-slot img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background:#fff;
  padding:2%;
  border-radius:4px;
  box-shadow:0 4px 14px rgba(80,104,110,.12);
}

/* 按钮位置，按这张图校准 */
.btn-apple{top:43.2%;height:8.25%}
.btn-android{top:52.95%;height:8.25%}
.btn-pc{top:62.7%;height:8.25%}
.btn-group{top:72.45%;height:8.25%}
.btn-top{top:83.0%;height:7.1%}

/* =========================================================
   极简收起 / 展开按钮
   ========================================================= */
.collapse-btn,
.reopen-btn{
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(255,255,255,.94);
  color:#8b7a62;
  box-shadow:0 2px 8px rgba(0,0,0,.10);
  cursor:pointer;
  font-size:14px;
  transition:all .18s ease;
}
.collapse-btn{
  position:absolute;
  left:-14px;
  top:45%;
  width:18px;
  height:38px;
  border-radius:10px 0 0 10px;
  z-index:10;
}
.reopen-btn{
  position:fixed;
  right:0;
  top:50%;
  width:18px;
  height:42px;
  border-radius:10px 0 0 10px;
  z-index:10000;
  transform:translateY(-50%) translateX(110%);
  opacity:0;
  pointer-events:none;
}
.reopen-btn.show{
  transform:translateY(-50%) translateX(0);
  opacity:1;
  pointer-events:auto;
}

/* =========================================================
   点击加群 -> QQ群二维码弹窗
   ========================================================= */
.group-modal{
  position:fixed;
  inset:0;
  z-index:20000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(17,24,29,.46);
  backdrop-filter:blur(5px);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}
.group-modal.show{
  opacity:1;
  pointer-events:auto;
}
.group-card{
  position:relative;
  width:min(430px,88vw);
  overflow:hidden;
  border-radius:18px;
  background:#fff;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
  transform:translateY(12px) scale(.98);
  transition:transform .25s ease;
}
.group-modal.show .group-card{
  transform:translateY(0) scale(1);
}
.group-card img{
  width:100%;
  height:auto;
  display:block;
}
.group-close{
  position:absolute;
  right:12px;
  top:12px;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:#555;
  font-size:22px;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(0,0,0,.14);
}

@keyframes floatPanel{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-5px)}
}

@media(max-width:768px){
  .x-sidebar{width:253px;right:5px}
}
