/* ============================================================
   新世界完美 · 站点样式（仿制重建）
   设计语言：暗色玄幻风 · 蓝金点缀 · 卡片 + 侧边栏布局
   ============================================================ */

:root {
  --bg-0: #070b16;
  --bg-1: #0b1222;
  --bg-2: #0f1830;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 173, 255, 0.14);
  --border-strong: rgba(148, 173, 255, 0.28);
  --text: #e6ecf8;
  --text-muted: #9aa7c2;
  --text-dim: #6b7795;
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --cyan: #38e1ff;
  --gold: #f5c451;
  --gold-2: #e0a83c;
  --red: #f87171;
  --emerald: #34d399;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(245, 196, 81, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  background-attachment: fixed;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- 外层容器 ---------- */
.page-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.logo-pin {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.logo-pin img {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(59, 130, 246, 0.45));
}

.site-wrapper { width: 100%; }

/* ---------- 顶部横幅 Hero ---------- */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
}
.hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 11, 22, 0.25) 0%, rgba(7, 11, 22, 0.82) 100%),
    radial-gradient(60% 60% at 50% 45%, rgba(59, 130, 246, 0.18), transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.5rem;
  max-width: 760px;
}
.hero-content p:first-child {
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  color: var(--cyan);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}
.hero-content h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  margin: 0.2rem 0 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #ffffff 0%, var(--gold) 60%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 30px rgba(245, 196, 81, 0.25);
}
.hero-content .body-text,
.hero-content p:last-of-type {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0.4rem auto 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.45);
}
.btn-secondary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #2a1c02;
  box-shadow: 0 10px 26px rgba(245, 196, 81, 0.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { background: var(--surface-2); }
.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, var(--emerald) 100%);
  color: #04231a;
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.4);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.4rem;
}

/* ---------- 主网格：侧栏 + 内容 ---------- */
.main-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.stack { display: flex; flex-direction: column; gap: 1.25rem; }

.sticky-panel { position: sticky; top: 1rem; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.card h2 { margin: 0 0 0.9rem; font-size: 1.35rem; letter-spacing: 0.02em; }
.card h3 { margin: 0 0 0.6rem; font-size: 1.1rem; color: var(--blue-2); }
.card p { color: var(--text-muted); margin: 0.5rem 0; }

/* ---------- 侧边导航 ---------- */
.nav-list { display: flex; flex-direction: column; gap: 0.35rem; }
.nav-list a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}
.nav-list a:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
  transform: translateX(3px);
}
.contact-card strong { color: var(--gold); font-size: 1.05rem; }
.contact-card p { margin: 0.3rem 0; font-size: 0.92rem; }
.sidebar-logo { display: flex; justify-content: center; padding: 1rem; }
.sidebar-logo img { width: 120px; height: auto; opacity: 0.9; }

/* ---------- 状态徽标 ---------- */
.status-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
}
.table th, .table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table thead th {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(245, 196, 81, 0.12));
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: none; }

/* ---------- 特色卡片网格 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.feature-card {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.10), rgba(245, 196, 81, 0.06));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.feature-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- 公告区 ---------- */
.notice-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.notice-list, .notice-danger { margin: 0; padding-left: 1.2rem; }
.notice-list li, .notice-danger li { margin: 0.5rem 0; color: var(--text-muted); }
.notice-danger li { color: #f0b4b4; }
.notice-danger { list-style: none; padding-left: 0; }
.notice-danger li::before { content: "⚠ "; color: var(--red); }

/* ---------- 下载卡片 ---------- */
.download-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.10), rgba(59, 130, 246, 0.08));
  border-color: var(--border-strong);
}

/* ---------- 返回链接 ---------- */
.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.18s ease;
}
.back-link:hover { color: var(--blue-2); }

/* ---------- 版本介绍 ---------- */
.section-list { display: flex; flex-direction: column; gap: 0.2rem; }
.section-list article { padding: 0.4rem 0; }
.section-list h2 {
  font-size: 1.2rem;
  margin: 1.1rem 0 0.6rem;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 0.7rem;
}
.section-list h3 { color: var(--blue-2); margin: 0.8rem 0 0.3rem; }
.section-list ul { margin: 0.4rem 0; padding-left: 1.3rem; }
.section-list li { color: var(--text-muted); margin: 0.35rem 0; }
.section-list p { color: var(--text-muted); margin: 0.4rem 0; }
.section-list strong { color: var(--text); }
.page-title { font-size: 1.6rem; margin-top: 0; }

/* ---------- 下载中心 ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.download-grid .card { display: flex; flex-direction: column; gap: 0.4rem; }
.config-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.config-columns ul { padding-left: 1.1rem; margin: 0.3rem 0; }
.config-columns li { color: var(--text-muted); margin: 0.3rem 0; font-size: 0.9rem; }
.download-links { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.download-links a {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: all 0.18s ease;
}
.download-links a:hover { border-color: var(--border-strong); color: var(--blue-2); }
.download-config { grid-column: 1 / -1; }

ol { color: var(--text-muted); padding-left: 1.3rem; }
ol li { margin: 0.4rem 0; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer p { margin: 0.25rem 0; }

/* ---------- 邀请弹窗 ---------- */
.invite-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.invite-modal.is-visible { display: flex; }
.invite-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(4px);
}
.invite-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(380px, 92vw);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1.8rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
  animation: pop 0.25s ease;
}
@keyframes pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.invite-modal__eyebrow {
  margin: 0;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
}
.invite-modal__subtitle { margin: 0.3rem 0 0; font-size: 1.1rem; font-weight: 700; }
.invite-modal__hint {
  margin: 1rem 0;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.invite-modal__qr { margin: 0.5rem auto 1rem; }
.invite-modal__qr img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.invite-modal__note { color: var(--text-muted); font-size: 0.85rem; margin: 0.5rem 0 0; }
.invite-modal__actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.invite-btn {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.invite-btn:hover { transform: translateY(-2px); }
.invite-btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color: #fff;
}
.invite-btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .notice-double { grid-template-columns: 1fr; }
  .config-columns { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { min-height: 280px; }
  .card { padding: 1.1rem 1.1rem; }
  .hero-buttons .btn { flex: 1 1 auto; }
}
