/* ============================================================
   疾风之刃 KRITIKA 官网 · 全局样式 v2
   官方原画全屏沉浸式 · 深色底 + 品牌红 #e63e36 · 金色区名徽标
   ============================================================ */
:root {
  --bg: #07090f;
  --bg-2: #0b0e16;
  --panel: #10141f;
  --panel-2: #151a28;
  --line: rgba(255, 255, 255, 0.08);
  --red: #e63e36;
  --red-dark: #b32a24;
  --red-glow: rgba(230, 62, 54, 0.45);
  --gold: #f0b35e;
  --text: #e8eaf2;
  --muted: #8b93a7;
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
[hidden] { display: none !important; }

.section-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.92), rgba(5, 6, 10, 0.55) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled {
  background: rgba(5, 6, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 42px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 18px; letter-spacing: 2px; }
.brand-text small { font-size: 10px; letter-spacing: 4px; color: var(--red); font-weight: 700; }

.site-nav { display: flex; gap: 2px; flex: 1; }
.site-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 10px;
  line-height: 1.2;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.site-nav a span { font-size: 14px; font-weight: 600; letter-spacing: 1px; white-space: nowrap; }
.site-nav a small { font-size: 9px; letter-spacing: 2px; color: var(--muted); transform: scale(0.9); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.server-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold);
  border: 1px solid rgba(240, 179, 94, 0.4);
  border-radius: 3px;
  background: rgba(240, 179, 94, 0.08);
  white-space: nowrap;
}
.server-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.auth-button {
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 3px;
  box-shadow: 0 4px 16px var(--red-glow);
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-button:hover { transform: translateY(-1px); box-shadow: 0 6px 22px var(--red-glow); }

.menu-button { display: none; font-size: 22px; padding: 6px 10px; }

/* ---------------- Hero 全屏轮播 ---------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 1080px;
  overflow: hidden;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--slide-image);
  background-size: cover;
  background-position: right center;
  transform: scale(1.08);
  transition: transform 7s ease;
}
.hero-slide.is-active::before { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.92) 0%, rgba(5, 6, 10, 0.55) 38%, rgba(5, 6, 10, 0.08) 68%, rgba(5, 6, 10, 0.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.6) 0%, transparent 20%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
  padding: 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-kicker {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--red);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.hero-kicker::before { content: ""; width: 44px; height: 2px; background: var(--red); box-shadow: 0 0 10px var(--red-glow); }
.hero-title {
  font-size: clamp(46px, 6.2vw, 78px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 24px;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.85);
}
.hero-title em {
  font-style: normal;
  color: var(--red);
  text-shadow: 0 0 32px var(--red-glow), 0 8px 40px rgba(0, 0, 0, 0.85);
}
.hero-sub {
  font-size: 17px;
  color: #ccd2e0;
  letter-spacing: 1.5px;
  line-height: 2;
  margin-bottom: 40px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.hero-actions { display: flex; gap: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 46px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 4px;
  border-radius: 3px;
  transition: transform 0.15s, box-shadow 0.25s, background 0.25s;
  position: relative;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 8px 30px var(--red-glow);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px var(--red-glow); }
.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(5, 6, 10, 0.35);
  backdrop-filter: blur(4px);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.btn-xl { padding: 18px 60px; font-size: 19px; }

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 50px;
  height: 50px;
  font-size: 26px;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 6, 10, 0.3);
  border-radius: 50%;
  transition: all 0.2s;
}
.hero-control:hover { color: #fff; border-color: var(--red); background: rgba(230, 62, 54, 0.25); }
.hero-prev { left: 26px; }
.hero-next { right: 26px; }
.hero-dots {
  position: absolute;
  z-index: 5;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 28px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  transition: all 0.25s;
}
.hero-dots button.is-active { background: var(--red); width: 44px; box-shadow: 0 0 10px var(--red-glow); }

.hero-server-tag {
  position: absolute;
  z-index: 5;
  top: 100px;
  right: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  background: rgba(5, 6, 10, 0.55);
  border: 1px solid rgba(240, 179, 94, 0.45);
  border-radius: 3px;
  backdrop-filter: blur(6px);
}
.hero-server-tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 1.8s infinite;
}
.hero-server-tag b { color: #fff; }

.hero-scroll-hint {
  position: absolute;
  z-index: 5;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}

/* ---------------- 版块标题 ---------------- */
.section-title { text-align: center; margin-bottom: 52px; }
.section-title small {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 8px;
  display: inline-block;
  position: relative;
  padding-bottom: 16px;
}
.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

/* ---------------- 职业展示 ---------------- */
.class-section { padding: 104px 0 88px; background: var(--bg); position: relative; }
.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.class-card {
  position: relative;
  height: 420px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.class-card:hover {
  transform: translateY(-10px);
  border-color: rgba(230, 62, 54, 0.6);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(230, 62, 54, 0.3);
}
.class-card-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.6s ease;
}
.class-card:hover .class-card-image { transform: scale(1.07); }
.class-card:nth-child(1) .class-card-image { background-position: 25% top; }
.class-card:nth-child(2) .class-card-image { background-position: 22% top; }
.class-card:nth-child(3) .class-card-image { background-position: 28% top; }
.class-card:nth-child(4) .class-card-image { background-position: 62% top; }
.class-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 6, 10, 0.55) 68%, rgba(5, 6, 10, 0.95) 100%);
}
.class-card-body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 24px 26px;
}
.class-card-body small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--red);
  margin-bottom: 6px;
}
.class-card-body h3 { font-size: 26px; font-weight: 800; letter-spacing: 4px; margin-bottom: 8px; }
.class-card-body p { font-size: 13px; color: #b9c0d0; line-height: 1.8; }

.feature-strip {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 44px;
}
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item span {
  font-size: 34px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230, 62, 54, 0.75);
  line-height: 1.1;
  flex-shrink: 0;
}
.feature-item h3 { font-size: 17px; letter-spacing: 2px; margin-bottom: 6px; }
.feature-item p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ---------------- 新闻公告 ---------------- */
.news-section {
  position: relative;
  padding: 96px 0 104px;
  background: url('assets/v2/news-bg.jpg') right center / cover no-repeat fixed;
}
.news-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 9, 15, 0.88) 18%, rgba(7, 9, 15, 0.88) 82%, var(--bg) 100%);
}
.news-section .section-wrap { position: relative; z-index: 2; }
.news-layout {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 26px;
  align-items: stretch;
}
.news-feature {
  display: flex;
  flex-direction: column;
  background: rgba(16, 20, 31, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.news-feature:hover { border-color: rgba(230, 62, 54, 0.55); transform: translateY(-4px); }
.news-feature-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.news-feature-image::after {
  content: "焦点 · TOP";
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 2px;
}
.news-feature-caption { padding: 22px 24px 26px; }
.feature-date { font-size: 12px; color: var(--red); font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.news-feature-caption h3 { font-size: 20px; line-height: 1.5; margin-bottom: 10px; }
.news-feature-caption p:last-child { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.news-board {
  background: rgba(16, 20, 31, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
}
.news-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 6px; }
.news-tabs button {
  padding: 7px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 3px;
  transition: all 0.2s;
}
.news-tabs button:hover { color: var(--text); }
.news-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 4px 14px var(--red-glow);
}
.news-list { flex: 1; display: flex; flex-direction: column; }
.news-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: background 0.2s, padding-left 0.2s;
}
.news-row:hover { background: rgba(230, 62, 54, 0.06); padding-left: 14px; }
.news-row span {
  flex-shrink: 0;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 2px;
  border: 1px solid;
}
.news-row .cat-notice { color: var(--red); border-color: rgba(230, 62, 54, 0.5); background: rgba(230, 62, 54, 0.1); }
.news-row .cat-news { color: #5ea8f0; border-color: rgba(94, 168, 240, 0.5); background: rgba(94, 168, 240, 0.1); }
.news-row .cat-activity { color: var(--gold); border-color: rgba(240, 179, 94, 0.5); background: rgba(240, 179, 94, 0.1); }
.news-row .cat-strategy { color: #4ade80; border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.1); }
.news-row b {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-row time { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.news-list-empty { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.more-link {
  align-self: flex-end;
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--muted);
  transition: color 0.2s;
}
.more-link strong { color: var(--red); font-weight: 800; margin-left: 6px; }
.more-link:hover { color: #fff; }

/* ---------------- 下载区 ---------------- */
.download-section {
  position: relative;
  padding: 130px 0;
  background: url('assets/v2/download-bg.jpg') center 35% / cover no-repeat;
  border-top: 1px solid var(--line);
}
.download-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.95) 15%, rgba(7, 9, 15, 0.55) 55%, rgba(7, 9, 15, 0.35)),
    linear-gradient(0deg, rgba(7, 9, 15, 0.9) 0%, transparent 30%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.9) 0%, transparent 30%);
}
.download-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.download-copy small {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--red);
  margin-bottom: 12px;
}
.download-copy h2 {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: 5px;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.8);
}
.download-copy p { color: #ccd2e0; letter-spacing: 1px; font-size: 16px; }
.download-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: #05060a;
  border-top: 1px solid var(--line);
  padding: 46px 0 38px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.footer-logo { height: 34px; width: auto; }
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 18px; }
.footer-links a { font-size: 13px; color: var(--muted); letter-spacing: 2px; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
.footer-copy { font-size: 13px; color: #aab1c2; letter-spacing: 1px; }
.footer-note { font-size: 12px; color: #5c6376; margin-top: 8px; letter-spacing: 1px; }

/* ---------------- 弹窗通用 ---------------- */
.modal-backdrop, .article-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 4, 8, 0.78);
  backdrop-filter: blur(6px);
  animation: fade-in 0.2s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(230, 62, 54, 0.3);
  border-radius: 8px;
  padding: 34px 34px 28px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(230, 62, 54, 0.08);
  animation: panel-up 0.25s ease;
}
@keyframes panel-up { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close, .article-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 4px;
  transition: all 0.2s;
}
.modal-close:hover, .article-close:hover { color: #fff; background: rgba(230, 62, 54, 0.2); }
.modal-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--red);
  margin-bottom: 6px;
}
.modal-panel h2 { font-size: 24px; letter-spacing: 3px; margin-bottom: 8px; }
.modal-desc { font-size: 13px; color: var(--muted); margin-bottom: 22px; line-height: 1.8; }
.modal-panel form { display: flex; flex-direction: column; gap: 16px; }
.modal-panel label { display: flex; flex-direction: column; gap: 7px; }
.modal-panel label span { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #aab1c2; }
.modal-panel input {
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-panel input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230, 62, 54, 0.15); }
.modal-panel input::placeholder { color: #5c6376; }
.modal-error {
  font-size: 13px;
  color: #ff6b63;
  background: rgba(230, 62, 54, 0.1);
  border: 1px solid rgba(230, 62, 54, 0.35);
  border-radius: 4px;
  padding: 9px 12px;
}
.modal-submit {
  margin-top: 6px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 4px;
  box-shadow: 0 6px 20px var(--red-glow);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.modal-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 26px var(--red-glow); }
.modal-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.modal-switch {
  margin-top: 18px;
  width: 100%;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
  transition: color 0.2s;
}
.modal-switch:hover { color: var(--red); }

/* ---------------- 用户中心 ---------------- */
.user-panel { max-width: 440px; }
.user-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin: 18px 0 22px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.user-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 6px;
  box-shadow: 0 4px 14px var(--red-glow);
}
.user-meta { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.user-meta b { font-size: 17px; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { font-size: 12px; color: var(--gold); letter-spacing: 1px; }
.user-cash { text-align: right; flex-shrink: 0; }
.user-cash small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.user-cash b { font-size: 22px; color: var(--gold); font-weight: 800; }
.password-form { border-top: 1px dashed rgba(255, 255, 255, 0.1); padding-top: 18px; }
.password-form h3 { font-size: 15px; letter-spacing: 3px; margin-bottom: 14px; color: #aab1c2; }

/* ---------------- 新闻详情弹窗 ---------------- */
.article-panel {
  width: 100%;
  max-width: 680px;
  max-height: 82vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 38px 44px 40px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: panel-up 0.25s ease;
}
.article-kicker { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--red); margin-bottom: 10px; }
.article-panel h2 { font-size: 25px; line-height: 1.5; letter-spacing: 1px; }
.article-rule { height: 3px; width: 60px; background: var(--red); margin: 18px 0 22px; border-radius: 2px; }
.article-body p { font-size: 15px; color: #c6cbda; line-height: 2; margin-bottom: 14px; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%) translateY(20px);
  z-index: 300;
  padding: 13px 30px;
  font-size: 14px;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(16, 20, 31, 0.95);
  border: 1px solid rgba(230, 62, 54, 0.5);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 子页面公共 Hero ---------------- */
.sub-hero {
  padding: 160px 0 70px;
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.95) 25%, rgba(7, 9, 15, 0.55)),
    url('assets/v2/hero-2.jpg') right 25% / cover;
  border-bottom: 1px solid var(--line);
}
.sub-hero .sub-kicker { font-size: 13px; font-weight: 700; letter-spacing: 8px; color: var(--red); margin-bottom: 12px; }
.sub-hero h1 { font-size: 48px; font-weight: 800; letter-spacing: 6px; margin-bottom: 12px; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.7); }
.sub-hero .sub-desc { color: #ccd2e0; letter-spacing: 1px; margin-bottom: 20px; font-size: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb strong { color: var(--text); font-weight: 600; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .class-card { height: 360px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .news-layout { grid-template-columns: 1fr; }
  .server-badge { display: none; }
}
@media (max-width: 760px) {
  .header-inner { gap: 14px; padding: 0 16px; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 6, 10, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 24px; align-items: flex-start; }
  .menu-button { display: block; }
  .hero-content { padding: 0 30px; }
  .hero-title { font-size: 40px; }
  .hero-server-tag { display: none; }
  .hero-control { display: none; }
  .class-grid { grid-template-columns: 1fr; }
  .class-card { height: 320px; }
  .feature-strip { grid-template-columns: 1fr; }
  .download-copy h2 { font-size: 32px; }
  .section-title h2 { font-size: 28px; letter-spacing: 5px; }
  .article-panel { padding: 30px 24px; }
  .sub-hero { padding: 130px 0 56px; }
  .sub-hero h1 { font-size: 32px; }
  .news-section { background-attachment: scroll; }
}

/* ---------------- 邀请有礼（推广系统） ---------------- */
.invite-section {
  padding: 96px 0 104px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.invite-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
}
.invite-layout > * { min-width: 0; }
.invite-how {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 36px;
}
.invite-steps { list-style: none; }
.invite-steps li { display: flex; gap: 16px; padding: 12px 0; align-items: flex-start; }
.invite-steps span {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 1px;
  line-height: 1.4;
  text-shadow: 0 0 16px var(--red-glow);
}
.invite-steps h3 { font-size: 16px; letter-spacing: 2px; margin-bottom: 4px; }
.invite-steps p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.invite-rule {
  margin: 18px 0 22px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--gold);
  background: rgba(240, 179, 94, 0.08);
  border: 1px solid rgba(240, 179, 94, 0.25);
  border-radius: 6px;
  line-height: 1.8;
}
.invite-board {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
}
.invite-board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.invite-board-head h3 { font-size: 17px; letter-spacing: 2px; }
.invite-board-head h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  margin-right: 8px;
  background: var(--red);
  vertical-align: -1px;
  box-shadow: 0 0 8px var(--red-glow);
}
.invite-board-head small { color: var(--muted); font-size: 12px; }
.invite-board-list { list-style: none; }
.invite-board-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.invite-board-list li:last-child { border-bottom: none; }
.invite-rank {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.invite-rank.rank-1 { background: linear-gradient(135deg, #ffd97a, #d99a3d); color: #1a1206; border-color: transparent; }
.invite-rank.rank-2 { background: linear-gradient(135deg, #d7d7e6, #9b9bb4); color: #141021; border-color: transparent; }
.invite-rank.rank-3 { background: linear-gradient(135deg, #e0a175, #a86f1c); color: #1a1206; border-color: transparent; }
.invite-board-list b { flex: 1; font-weight: 500; letter-spacing: 1px; }
.invite-board-list em { font-style: normal; color: var(--gold); font-weight: 700; }
.invite-board-empty { justify-content: center; color: var(--muted); font-size: 13px; padding: 24px 0 !important; }

/* 注册弹窗邀请提示 */
.modal-hint {
  font-size: 12.5px;
  color: var(--gold);
  background: rgba(240, 179, 94, 0.08);
  border: 1px solid rgba(240, 179, 94, 0.25);
  border-radius: 6px;
  padding: 9px 14px;
  margin-bottom: 16px;
}

/* 用户中心 · 邀请框 */
.invite-box {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  margin-bottom: 20px;
}
.invite-box h3 { font-size: 15px; letter-spacing: 3px; margin-bottom: 12px; color: #aab1c2; }
.invite-link-row { display: flex; gap: 10px; }
.invite-link-row input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
}
.invite-link-row input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(230, 62, 54, 0.15); }
.invite-copy {
  flex-shrink: 0;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 4px 14px var(--red-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.invite-copy:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--red-glow); }
.invite-stats { display: flex; gap: 18px; margin-top: 14px; }
.invite-stat {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  text-align: center;
}
.invite-stat b { display: block; font-size: 22px; color: var(--gold); font-weight: 800; }
.invite-stat small { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.invite-note { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.7; }

@media (max-width: 1080px) {
  .invite-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .invite-section { padding: 56px 0 64px; }
  .invite-how { padding: 24px; }
}

/* ---------------- 开区开关 · 预热态 ---------------- */
.invite-preheat {
  font-size: 13.5px;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(240, 179, 94, 0.14), rgba(230, 62, 54, 0.10));
  border: 1px solid rgba(240, 179, 94, 0.45);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 18px;
  line-height: 1.8;
  box-shadow: 0 0 24px rgba(240, 179, 94, 0.12);
}
.btn[disabled], .invite-copy[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.btn[disabled]:hover { transform: none; box-shadow: 0 8px 30px var(--red-glow); }

/* ---------------- 直播奖励（用户中心） ---------------- */
.modal-panel select {
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-panel select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230, 62, 54, 0.15); }
.stream-quota { font-size: 12px; color: var(--gold); letter-spacing: 1px; margin-left: 8px; }
.stream-claims { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.stream-claim-item { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 12.5px; color: #c6cbda; line-height: 1.7; }
.stream-claim-item b { color: #fff; }
.stream-claim-item .claim-url { color: #7f8aa3; word-break: break-all; }
.stream-tag { display: inline-block; padding: 1px 9px; border-radius: 9px; font-size: 11px; margin-right: 6px; }
.stream-tag.pending { background: #3a2c08; color: var(--gold); }
.stream-tag.approved { background: #0f3123; color: #3ac17f; }
.stream-tag.rejected { background: #3a1515; color: #ff8484; }
.stream-claim-note { color: #ff9b95; }
.stream-empty { font-size: 12.5px; color: #5c6376; text-align: center; padding: 12px 0; }

/* ============================================================
   充值中心（用户中心内嵌，红金主题，charge- 前缀只追加不改旧规则）
   ============================================================ */
.charge-channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.charge-channel {
  padding: 11px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #c6cbda;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.charge-channel:hover { border-color: rgba(255, 255, 255, 0.35); }
.charge-channel.on {
  color: #fff;
  border-color: rgba(230, 62, 54, 0.75);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 4px 14px var(--red-glow);
}

.charge-amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.charge-amount {
  padding: 10px 0;
  font-size: 13.5px;
  letter-spacing: 1px;
  color: #c6cbda;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.charge-amount:hover { border-color: rgba(255, 255, 255, 0.35); }
.charge-amount.on {
  color: var(--gold);
  border-color: rgba(240, 179, 94, 0.7);
  background: rgba(240, 179, 94, 0.12);
  font-weight: 700;
}

.charge-custom-row { margin-top: 10px; }
.charge-custom-row input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: var(--font);
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.charge-custom-row input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230, 62, 54, 0.15); }
.charge-custom-row input::placeholder { color: #5c6376; }
/* 隐藏 number 输入框的上下箭头，视觉更干净 */
.charge-custom-row input::-webkit-outer-spin-button,
.charge-custom-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.charge-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(240, 179, 94, 0.08);
  border: 1px solid rgba(240, 179, 94, 0.25);
  border-radius: 6px;
  font-size: 13px;
  color: #aab1c2;
}
.charge-summary b { color: var(--gold); font-size: 17px; font-weight: 800; margin: 0 2px; }
#chargeGetCash { white-space: nowrap; }
#chargeGetCash b { color: var(--red); }

#chargeSubmit { width: 100%; margin-top: 12px; }

.charge-orders-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.charge-orders-head h4 { font-size: 13.5px; letter-spacing: 2px; color: #aab1c2; font-weight: 600; }
.charge-orders-head h4::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 12px;
  margin-right: 8px;
  background: var(--red);
  vertical-align: -1px;
  box-shadow: 0 0 8px var(--red-glow);
}
.charge-orders-head small { color: var(--muted); font-size: 11px; }

.charge-orders { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-height: 260px; overflow-y: auto; }
.charge-order-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.22);
}
.charge-order-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.charge-order-top b { font-size: 12.5px; font-weight: 600; color: #d6dae6; text-align: right; }
.charge-order-oid {
  display: block;
  margin-top: 5px;
  font-family: Consolas, monospace;
  font-size: 10.5px;
  color: #707a90;
  word-break: break-all;
}
.charge-tag { display: inline-block; padding: 1px 9px; border-radius: 9px; font-size: 11px; white-space: nowrap; }
.charge-tag.pending { background: #3a2c08; color: var(--gold); }
.charge-tag.paid { background: #10283f; color: #5ea8f0; }
.charge-tag.delivered { background: #0f3123; color: #3ac17f; }
.charge-tag.failed { background: #3a1515; color: #ff8484; }
.charge-query-btn {
  margin-top: 8px;
  padding: 5px 12px;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(240, 179, 94, 0.08);
  border: 1px solid rgba(240, 179, 94, 0.4);
  border-radius: 4px;
  transition: background 0.15s;
}
.charge-query-btn:hover { background: rgba(240, 179, 94, 0.18); }
.charge-query-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 窄屏（375px）：收紧间距，长内容换行，保证不横向溢出 */
@media (max-width: 480px) {
  .charge-channel-grid { gap: 8px; }
  .charge-amount-grid { gap: 7px; }
  .charge-summary { padding: 10px 12px; font-size: 12px; flex-wrap: wrap; }
  .charge-summary b { font-size: 15px; }
  .charge-order-top { flex-wrap: wrap; }
  .charge-order-top b { text-align: left; }
}

/* 修复线上既有问题（只追加不改旧规则）：<=1080px 新闻区单列后，
   grid/flex item 被 nowrap 标题撑出右边距（body overflow-x 仅隐藏滚动条），
   补 min-width:0 让其在轨道内收缩省略。 */
@media (max-width: 1080px) {
  .news-feature, .news-board { min-width: 0; }
  .news-row { min-width: 0; }
  .news-row b { min-width: 0; }
}

/* ---------------- 语言切换器（中 | EN），金黑配色 ---------------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(216, 178, 92, 0.35);
  border-radius: 999px;
  background: rgba(216, 178, 92, 0.06);
  flex-shrink: 0;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8f96ab;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 4px;
  cursor: pointer;
  transition: color 0.15s;
}
.lang-switch button:hover { color: #e8c87e; }
.lang-switch button.is-active { color: #d8b25a; text-shadow: 0 0 10px rgba(216, 178, 92, 0.45); }
.lang-switch .lang-sep { color: rgba(216, 178, 92, 0.35); font-size: 11px; user-select: none; }
@media (max-width: 1080px) {
  .lang-switch { padding: 3px 8px; gap: 4px; }
  .lang-switch button { font-size: 11px; }
}
