*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-page: #f5f7fb;
  --bg-card: #ffffff;
  --border-subtle: #e5e7eb;
  --border-strong: #d1d5db;

  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-strong: #1d4ed8;

  --text-main: #111827;
  --text-muted: #6b7280;

  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.06);
  --shadow-strong: 0 26px 70px rgba(15, 23, 42, 0.16);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top, #ffffff 0, #f5f7fb 46%, #edf1fb 100%);
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= 顶部纯白导航 ================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.site-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    #22c55e,
    #3b82f6,
    #f97316,
    #22c55e
  );
  box-shadow: 0 0 0 3px #eff6ff;
}

.brand-text-title {
  font-size: 18px;
  font-weight: 800;
}

.brand-text-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.nav-link {
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
}

.nav-link:hover {
  background: #eef2ff;
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--accent-soft);
  color: #1d4ed8;
  font-weight: 600;
}

/* 让“加入群聊”（最后一个导航）变成右上角蓝色按钮，类似图一的“加入官方群” */
.nav-right .nav-link:last-child {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
  padding: 7px 18px;
}
.nav-right .nav-link:last-child:hover {
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.5);
}

/* 滚动时稍微加深阴影 */
.site-header.scrolled {
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}

/* ================= 主页大图区域 ================= */

.hero {
  min-height: calc(100vh - 64px);
  padding-top: 64px; /* 留出导航高度 */
  background-color: #000;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 轻微渐变，不挡住画面，又能让文字更清晰 */
  background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.18),
      rgba(15, 23, 42, 0.45)
    );
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-main {
  max-width: 620px;
  margin: 0 auto;
  padding: 30px 32px 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(229, 231, 235, 0.9);
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0 0 10px 0;
}

.hero-subtitle {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-meta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4ff;
  font-size: 12px;
  color: #374151;
}

.hero-pill strong {
  color: #1d4ed8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-extra {
  font-size: 12px;
  color: var(--text-muted);
}

/* 按钮：主按钮用绿色类似图一“前往服务器” */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease,
              box-shadow 0.18s ease, transform 0.1s ease, border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(22, 163, 74, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(22, 163, 74, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.9);
  border-color: #d1d5db;
  color: #111827;
}

.btn-outline:hover {
  background: #eef2ff;
  border-color: #93c5fd;
}

/* ================= 内页通用布局 ================= */

.page-wrapper {
  padding-top: 90px;
  padding-bottom: 70px;
}

.page-header {
  margin-bottom: 22px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px 0;
}

.page-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 22px 24px;
}

/* 公告列表 */
.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.notice-item + .notice-item {
  border-top: 1px dashed #e5e7eb;
  margin-top: 14px;
  padding-top: 14px;
}
.notice-title {
  font-weight: 600;
  margin-bottom: 4px;
}
.notice-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* 下载列表 */
.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.download-item + .download-item {
  border-top: 1px dashed #e5e7eb;
  margin-top: 16px;
  padding-top: 16px;
}
.download-title {
  font-weight: 600;
  margin-bottom: 4px;
}
.download-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* 教程块 */
.guide-block + .guide-block {
  border-top: 1px dashed #e5e7eb;
  margin-top: 16px;
  padding-top: 16px;
}
.guide-block h2 {
  margin: 0 0 6px;
  font-size: 17px;
}
.guide-block ul {
  margin: 0 0 4px 20px;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* 加群卡片 */
.join-card-main {
  font-size: 15px;
  margin-bottom: 10px;
}
.join-card-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 18px 0 30px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============= 响应式 ============= */

@media (max-width: 768px) {
  .site-header-inner {
    padding: 0 12px;
  }
  .nav-right {
    gap: 4px;
    font-size: 13px;
  }
  .nav-link {
    padding: 6px 9px;
  }
  .nav-right .nav-link:last-child {
    padding-inline: 12px;
  }

  .hero-main {
    padding: 26px 20px 22px;
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .brand-text-sub {
    display: none;
  }
}
