/* ============================================================================
   components.css —— 组件层
   章节：01 导航 / 02 按钮 / 03 面板 / 04 首屏 / 05 特色 / 06 截图 /
        07 资讯 / 08 榜单 / 09 下载 / 10 表单 / 11 页脚 / 12 客服 / 13 正文 / 14 404
   ============================================================================ */


/* ==========================================================================
   01 顶部导航
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
/* 导航栏的容器放宽：logo 贴左、右上导航贴右（正文容器仍居中限宽） */
.site-nav .container {
  max-width: none;
  padding: 0 18px;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text b { color: var(--text-strong); font-size: 17px; letter-spacing: .5px; }
.logo-text i {
  font-style: normal;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-list { display: flex; align-items: center; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 15px;
  height: 100%;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}
.nav-item:hover > .nav-link,
.nav-item.is-active > .nav-link { color: var(--brand); }
.nav-item.is-active > .nav-link::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 0;
  height: 2px;
  background: var(--brand);
  box-shadow: var(--glow);
}
.caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--t);
}
.nav-item:hover .caret { transform: rotate(180deg); }

/* 下拉 */
.nav-dd {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: var(--gap-xs) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--t);
}
.nav-item:hover > .nav-dd,
.nav-item.is-open > .nav-dd { opacity: 1; visibility: visible; transform: none; }
.nav-dd a { display: block; padding: 9px 16px; font-size: 14px; }
.nav-dd a:hover { background: var(--brand-dim); color: var(--brand); }

/* 汉堡按钮 */
.nav-toggle { display: none; width: 34px; height: 30px; position: relative; }
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--text);
  transition: all var(--t);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-nav { height: var(--nav-h-sm); }
  .nav-toggle { display: block; }
  .logo img { height: 36px; }
  .logo-text i { display: none; }

  .nav-list {
    position: fixed;
    top: var(--nav-h-sm);
    left: 0; right: 0;
    height: auto;
    max-height: calc(100vh - var(--nav-h-sm));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    /* 只靠 translateY(-110%) 藏不干净：它是按「自身高度」的 110% 上移，
       元素顶端在 60px，减掉 110% 后底部仍在视口里露出约 30px，
       手机上一进页面就能看到最后一项（账号登陆）趴在顶上。
       所以收起时同时置为不可见；用 0s 延迟的过渡让滑动动画播完再隐藏。 */
    visibility: hidden;
    transition: transform var(--t), visibility 0s linear .25s;
    z-index: 99;
  }
  .nav-list.is-open {
    transform: none;
    visibility: visible;
    transition: transform var(--t), visibility 0s;
  }
  .nav-item { display: block; height: auto; border-bottom: 1px solid var(--border-soft); }
  .nav-link { height: 48px; padding: 0 var(--gap); justify-content: space-between; }
  .nav-item.is-active > .nav-link::after { display: none; }
  .nav-item.is-active > .nav-link { background: var(--brand-dim); }

  .nav-dd {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg-soft);
    display: none;
  }
  .nav-item.is-open > .nav-dd { display: block; }
  .nav-dd a { padding-left: var(--gap-xl); }
}


/* ==========================================================================
   02 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
}
.btn-brand {
  background: linear-gradient(180deg, var(--brand-hover), var(--brand));
  color: #fff;
  box-shadow: 0 6px 16px rgba(215, 100, 64, .3);
}
.btn-brand:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg-soft);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }


/* ==========================================================================
   03 面板 / 卡片
   ========================================================================== */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--gap-lg);
  margin-bottom: var(--gap-lg);
}
.panel-center { text-align: center; padding: var(--gap-xl) var(--gap-lg); }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-bottom: var(--gap-sm);
  margin-bottom: var(--gap);
  border-bottom: 1px solid var(--border-soft);
}
.panel-head h1, .panel-head h2 { font-size: 18px; }
.panel-head .more { font-size: 13px; color: var(--text-dim); }
.panel-head .more:hover { color: var(--brand); }

.empty { text-align: center; color: var(--text-dim); padding: var(--gap-lg) 0; }


/* ==========================================================================
   04 首屏主视觉
   ========================================================================== */
.hero {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gap-xl) var(--gap);
}
.hero-logo { height: 96px; width: auto; margin: 0 auto var(--gap-lg); }
.hero h1 {
  font-size: 46px;
  letter-spacing: 4px;
  background: linear-gradient(180deg, #fff 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme="light"] .hero h1 { background: linear-gradient(180deg, #2a2f34 30%, var(--brand) 100%); -webkit-background-clip: text; background-clip: text; }
.hero-slogan {
  margin-top: var(--gap);
  font-size: 17px;
  color: var(--text);
  letter-spacing: 1px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap-sm);
  margin-top: var(--gap);
}
.hero-tags span {
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin-top: var(--gap-xl);
}
.hero-actions .btn { min-width: 168px; padding: 14px 32px; font-size: 16px; }

.hero-scroll {
  margin-top: var(--gap-xl);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@media (max-width: 767px) {
  .hero { min-height: 78vh; }
  .hero-logo { height: 64px; }
  .hero h1 { font-size: 28px; letter-spacing: 2px; }
  .hero-slogan { font-size: 14px; }
  .hero-actions .btn { min-width: 136px; padding: 12px 20px; font-size: 14px; }
}


/* ==========================================================================
   05 游戏特色
   ========================================================================== */
.sec-title {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 22px;
  margin-bottom: var(--gap-lg);
  color: var(--text-strong);
}
.sec-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--brand);
  border-radius: var(--radius-pill);
  box-shadow: var(--glow);
}
.sec-title span { font-size: 12px; color: var(--text-dim); letter-spacing: 2px; font-weight: 400; }
/* 版块右下角的「查看更多」 */
.sec-more { text-align: right; margin-top: var(--gap-sm); }
.sec-more a { font-size: 13px; color: var(--text-dim); transition: color var(--t); }
.sec-more a:hover { color: var(--brand); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.feature-item {
  position: relative;
  padding: var(--gap-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all var(--t);
  overflow: hidden;
}
.feature-item::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.feature-item:hover { transform: translateY(-3px); border-color: var(--border); }
.feature-item:hover::after { opacity: 1; }
.feature-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-dim);
  color: var(--brand);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--gap-sm);
}
.feature-item h3 { color: var(--gold); margin-bottom: 6px; }
.feature-item p { font-size: 13.5px; color: var(--text-dim); }

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }


/* ==========================================================================
   06 截图 / 原画展示
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  cursor: zoom-in;
  background: var(--bg-soft);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 12px 10px;
  font-size: 13px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8));
  color: #fff;
  opacity: 0;
  transition: opacity var(--t);
}
.gallery-item:hover span { opacity: 1; }

/* 点击放大 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gap-lg);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 26px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.lightbox-close:hover { background: var(--brand); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 22px;
}
.lightbox-nav:hover { background: var(--brand); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } .lightbox-nav { display: none; } }


/* ==========================================================================
   07 资讯列表（新闻 / 活动）
   ========================================================================== */
.news-list li {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: 13px 4px;
  border-bottom: 1px dashed var(--border-soft);
  transition: background var(--t);
}
.news-list li:last-child { border-bottom: 0; }
.news-list li:hover { background: var(--bg-soft); }
.news-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-date { color: var(--text-dim); font-size: 13px; font-family: var(--font-num); white-space: nowrap; }
.hot { font-style: normal; color: var(--danger); font-size: 12px; }

.tag {
  flex-shrink: 0;
  display: inline-block;
  min-width: 46px;
  text-align: center;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.tag-notice { color: var(--brand); border-color: var(--brand); background: var(--brand-dim); }
.tag-event  { color: var(--success); border-color: var(--success); background: rgba(99, 153, 34, .12); }

/* 首页的新闻表头（对齐参考站的表格观感） */
.news-head {
  display: flex;
  gap: var(--gap);
  padding: 0 4px 8px;
  font-size: 12.5px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-soft);
}
.news-head i { font-style: normal; }
.news-head i:nth-child(1) { width: 62px; flex-shrink: 0; }
.news-head i:nth-child(2) { flex: 1; }
.news-head i:nth-child(3) { width: 140px; text-align: right; }

/* 分页 */
.pager {
  display: flex;
  justify-content: center;
  gap: var(--gap-sm);
  margin-top: var(--gap-lg);
}
.pager a {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-num);
  font-size: 13px;
  padding: 0 8px;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager a.is-cur { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (max-width: 600px) {
  .news-list li { flex-wrap: wrap; gap: var(--gap-sm); }
  .news-title { flex-basis: 100%; order: 3; white-space: normal; }
  .news-head { display: none; }
}


/* ==========================================================================
   07b 资讯列表页（新闻 / 活动列表 —— 比首页那几行更注重观感）
   ========================================================================== */
.count { font-size: 13px; color: var(--text-dim); }
.count b { color: var(--brand); font-family: var(--font-num); font-size: 15px; }




/* 其余条目：一行一张卡，左侧日期块。
   类名别叫 .notice-list —— 下载页的「注意事项」已经用了那个名字（带 disc 圆点），会串味 */
.notice-cards { display: grid; gap: var(--gap-sm); }
.nc-link {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: 14px var(--gap);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.nc-link:hover {
  border-color: var(--brand);
  background: var(--brand-dim);
  transform: translateX(3px);
}
.nc-link.is-plain { cursor: default; }
.nc-link.is-plain:hover {
  border-color: var(--border-soft);
  background: var(--bg-soft);
  transform: none;
}
.nc-date { flex-shrink: 0; width: 50px; text-align: center; }
.nc-date b {
  display: block;
  font-family: var(--font-num);
  font-size: 20px;
  line-height: 1.15;
  color: var(--text-strong);
}
.nc-date i { font-style: normal; font-size: 11px; color: var(--text-dim); }
/* 同一天：占位保留宽度，只放一个小点，避免一排重复日期 */
.nc-date.is-same span {
  display: block;
  width: 5px; height: 5px;
  margin: 15px auto 0;
  border-radius: 50%;
  background: var(--border);
}
.nc-main { flex: 1; min-width: 0; }
.nc-title { font-size: 15px; font-weight: 600; line-height: 1.65; }
.nc-sum {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.nc-go { flex-shrink: 0; font-size: 18px; color: var(--text-dim); transition: color var(--t); }
.nc-link:hover .nc-go { color: var(--brand); }

@media (max-width: 640px) {
  .nc-link { padding: 12px; gap: var(--gap-sm); }
  .nc-date { width: 42px; }
  .nc-sum { display: none; }
}


/* ==========================================================================
   08 排行榜
   ========================================================================== */
.rank-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
}
.rank-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.rank-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  padding: 12px var(--gap);
  border-bottom: 1px solid var(--border-soft);
}
.rank-card-head h3 { font-size: 16px; color: var(--gold); }
.rank-select {
  margin: 10px var(--gap);
  width: calc(100% - var(--gap) * 2);
  padding: 7px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.rank-table th {
  text-align: left;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.rank-table td {
  padding: 9px 10px;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 13.5px;
}
.rank-table tbody tr:last-child td { border-bottom: 0; }
.rank-table tbody tr:hover { background: var(--bg-soft); }
.rank-table .r-no { width: 44px; font-family: var(--font-num); }
.rank-table .r-score { text-align: right; font-family: var(--font-num); color: var(--gold); }
.rank-no {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-family: var(--font-num);
  font-size: 12px;
  background: var(--bg-soft);
  color: var(--text-dim);
}
.rank-table tr:nth-child(1) .rank-no { background: var(--gold);   color: #2a2000; font-weight: 700; }
.rank-table tr:nth-child(2) .rank-no { background: var(--silver); color: #1c1f22; font-weight: 700; }
.rank-table tr:nth-child(3) .rank-no { background: var(--bronze); color: #241505; font-weight: 700; }

/* 榜单页顶部的类型切换 */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-bottom: var(--gap);
}
.tabs a {
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  background: var(--bg-soft);
}
.tabs a:hover { border-color: var(--brand); color: var(--brand); }
.tabs a.is-cur { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (max-width: 900px) { .rank-cols { grid-template-columns: 1fr; } }
.table-scroll { overflow-x: auto; }


/* ==========================================================================
   09 下载
   ========================================================================== */
.down-list { display: grid; gap: var(--gap); }
.down-item {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: var(--gap);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.down-item .di-main { flex: 1; min-width: 0; }
.down-item h3 { display: flex; align-items: center; gap: var(--gap-sm); flex-wrap: wrap; }
.down-item p { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.badge {
  font-size: 11.5px;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  background: var(--brand-dim);
  color: var(--brand);
  border: 1px solid var(--border);
  font-weight: 400;
}
.down-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 6px;
}
.notice-list { padding-left: 20px; list-style: disc; color: var(--text-dim); font-size: 13.5px; }
.notice-list li { margin: 5px 0; }

@media (max-width: 600px) {
  .down-item { flex-direction: column; align-items: stretch; }
  .down-item .btn { width: 100%; }
}


/* ==========================================================================
   10 表单（注册 / 登录）
   ========================================================================== */
.form-panel { max-width: 520px; margin: 0 auto; }
.form-row { margin-bottom: var(--gap); }
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--text);
}
.form-row label em { font-style: normal; color: var(--danger); margin-left: 4px; }
.form-tip { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* 表单上方的状态横幅（例如「登录功能正在接入」）
   由 form.js 根据 data/site.json 里 api.* 是否配置来显示 / 隐藏 */
.banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--brand);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: var(--brand-dim);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.7;
}
.banner[hidden] { display: none; }
.banner b { color: var(--brand); }
.banner a { color: var(--brand); text-decoration: underline; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-strong);
  transition: border-color var(--t);
}
.input::placeholder { color: var(--text-dim); }
.input:focus { border-color: var(--brand); outline: none; }
.input.is-error { border-color: var(--danger); }

.form-msg {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: var(--gap);
}
.form-msg.is-show { display: block; }
.form-msg.is-ok   { background: rgba(99, 153, 34, .14);  border: 1px solid var(--success); color: var(--success); }
.form-msg.is-err  { background: rgba(163, 45, 45, .14);  border: 1px solid var(--danger);  color: var(--danger); }

.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap);
  margin-top: var(--gap-lg);
  font-size: 13px;
  color: var(--text-dim);
}
.checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-dim); }
.checkbox input { margin-top: 4px; }

/* 开发中提示条（第一批样稿用；接口接入后删掉这一段） */
.dev-note {
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px dashed var(--warn);
  color: var(--warn);
  background: rgba(241, 196, 15, .08);
  font-size: 13px;
  margin-bottom: var(--gap-lg);
}


/* ==========================================================================
   11 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
  padding: var(--gap-lg) 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 2;
}
.footer-links { margin-top: var(--gap-sm); }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--brand); }
.footer-links span { margin: 0 8px; opacity: .5; }


/* ==========================================================================
   12 客服 / 玩家群
   ========================================================================== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap-lg);
}
.service-card {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: var(--gap);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.service-card img.sc-qr { width: 78px; height: 78px; border-radius: var(--radius-sm); background: #fff; padding: 3px; }
.service-card .sc-meta { min-width: 0; }
.service-card .sc-meta b { display: block; color: var(--gold); font-size: 15px; }
.service-card .sc-meta span {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 20px;
  color: var(--text-strong);
  letter-spacing: 1px;
  cursor: pointer;
}
.service-card .sc-meta em { display: block; font-style: normal; font-size: 12px; color: var(--text-dim); }

/* 悬浮块 */
.float-service { position: fixed; right: 20px; bottom: 80px; z-index: 200; }
.fs-toggle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand-hover), var(--brand));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  transition: transform var(--t);
}
.fs-toggle:hover { transform: scale(1.06); }
.fs-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: 240px;
  padding: var(--gap);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: none;
}
.float-service.is-open .fs-panel { display: block; }
.fs-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border-soft); }
.fs-item:last-child { border-bottom: 0; }
.fs-qr { width: 62px; height: 62px; border-radius: var(--radius-sm); background: #fff; padding: 2px; flex-shrink: 0; }
.fs-meta { min-width: 0; }
.fs-meta b { display: block; font-size: 13px; color: var(--gold); }
.fs-meta span { font-family: var(--font-num); font-size: 15px; color: var(--text-strong); cursor: pointer; }
.fs-meta em { display: block; font-style: normal; font-size: 11.5px; color: var(--text-dim); }

@media (max-width: 767px) {
  .service-cards { grid-template-columns: 1fr; }
  .float-service { right: 12px; bottom: 62px; }
  .fs-panel { width: 210px; }
}


/* ==========================================================================
   13 正文（新闻 / 活动详情、游戏介绍）
   ========================================================================== */
/* 详情页顶部一道渐变亮线 + 面板底色略高于页面，避免整页陷在纯黑里 */
body[data-page="article"] .panel,
body[data-page="intro"] .panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035) 0%, transparent 320px),
    var(--bg-2);
}
body[data-page="article"] .panel::before,
body[data-page="intro"] .panel::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.article-head {
  text-align: center;
  padding-bottom: var(--gap);
  margin-bottom: var(--gap-lg);
  border-bottom: 1px solid var(--border-soft);
}
.article-head .tag { margin-bottom: 10px; }
.article-head h1 { font-size: 24px; line-height: 1.45; margin: var(--gap-sm) 0; }
.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.article-meta .dot { color: var(--border); }

/* 内容提要：进正文之前先给一句人话，别一上来就是一大坨 */
.article-lead {
  padding: var(--gap);
  margin-bottom: var(--gap-lg);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, var(--brand-dim), transparent 70%);
}
.article-lead b {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--brand);
}
.article-lead p { font-size: 14.5px; line-height: 1.85; color: var(--text-strong); }

/* 本文导航（小节 ≥3 个时才出） */
.article-toc {
  padding: var(--gap);
  margin-bottom: var(--gap-lg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.article-toc b {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
}
.toc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.toc-list a {
  padding: 5px 13px;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.toc-list a:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-dim); }

/* 正文 */
.article-body { font-size: 15px; line-height: 1.9; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: var(--gap) 0; }
.article-body h2, .article-body h3 {
  position: relative;
  margin: var(--gap-xl) 0 var(--gap);
  padding-left: 14px;
  font-size: 16.5px;
  letter-spacing: .3px;
  color: var(--text-strong);
}
.article-body h2::before, .article-body h3::before {
  content: '';
  position: absolute;
  left: 0; top: .38em;
  width: 3px; height: 1em;
  border-radius: 2px;
  background: var(--brand);
}
/* 无序列表：不要圆点，一行一行做成浅底卡，长清单读起来不糊 */
.article-body ul {
  display: grid;
  gap: 6px;
  margin: var(--gap) 0;
  padding: 0;
  list-style: none;
}
.article-body ul > li {
  position: relative;
  padding: 9px 14px 9px 30px;
  font-size: 14.5px;
  line-height: 1.75;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.article-body ul > li::before {
  content: '';
  position: absolute;
  left: 13px; top: 1.08em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .85;
}
.article-body ol { margin: var(--gap) 0; padding-left: 22px; list-style: decimal; }
.article-body ol > li { margin: 6px 0; }
.article-body img { border-radius: var(--radius); margin: var(--gap) auto; }
.article-body table { margin: var(--gap) 0; width: 100%; }
.article-body td, .article-body th { border: 1px solid var(--border); padding: 7px 10px; }
.article-body a { color: var(--brand); text-decoration: underline; }

.article-foot {
  display: flex;
  justify-content: center;
  gap: var(--gap);
  margin-top: var(--gap-xl);
}

@media (max-width: 640px) {
  .article-head h1 { font-size: 19px; }
  .article-body { font-size: 14.5px; }
  .article-body h2, .article-body h3 { font-size: 15.5px; }
  .article-body ul > li { font-size: 14px; padding: 8px 12px 8px 28px; }
  .article-foot { flex-direction: column-reverse; }
  .article-foot .btn { width: 100%; }
}


/* ==========================================================================
   14 404
   ========================================================================== */
.code-404 {
  font-family: var(--font-num);
  font-size: 84px;
  line-height: 1;
  color: var(--brand);
  letter-spacing: 6px;
  margin-bottom: var(--gap);
}
