:root {
  --primary-color: #1f2d3d;
  --primary-hover: #111827;
  --bg-color: #ffffff;
  --text-main: #333333;
  --text-sub: #666666;
  --text-muted: #94a3b8;
  --border-color: rgba(31, 45, 61, 0.12);
  --border-dark: rgba(31, 45, 61, 0.22);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

html {
  background-color: var(--bg-color);
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden; /* 首页不出现滚动条 */
}

body {
  font-family: var(--font-family);
  background: transparent;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 动态背景 - 简约黑白水波底色 */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.06), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 58%),
    linear-gradient(180deg, #26262a 0%, #1b1c20 42%, #141519 100%);
  overflow: hidden;
  pointer-events: none;
}

#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text-sub);
}

/* Header & Nav */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  background-color: transparent;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a.active {
  color: #fff;
  font-weight: 600;
}

/* Common Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.fw-normal {
  font-weight: 400;
}

/* 让 Hero 部分在没有其他内容时居中占据屏幕 */
.hero-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 20px;
  width: 100%;
}

.hero-title {
  font-size: 80px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.12);
}

.hero-subtitle {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 48px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #ffffff;
  color: #000000;
  padding: 18px 48px;
  font-size: 22px;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.btn-download:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  color: #000000;
}

.version-info {
  margin-bottom: 48px;
  font-size: 14px;
}

.version-info p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* Document Pages */
.doc-page {
  background: transparent;
  overflow-x: hidden;
  overflow-y: auto;
}

.doc-page .header {
  position: sticky;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
}

.doc-shell {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 108px 32px 40px;
}

.doc-plain {
  padding: 0 0 8px;
}

.doc-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-title {
  font-size: 34px;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.doc-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.doc-content {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.85;
}

.doc-content h2 {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.4;
  margin: 32px 0 12px;
  padding-top: 0;
  border-top: none;
}

.doc-content h2:first-child {
  margin-top: 0;
}

.doc-content p {
  margin-bottom: 16px;
}

.doc-content ul {
  margin: 8px 0 18px 22px;
}

.doc-content li {
  margin-bottom: 10px;
}

.doc-content strong {
  color: #ffffff;
  font-weight: 600;
}

.doc-page .footer {
  position: relative;
  margin-top: 10px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 100;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a,
.footer-link-button {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.footer-links a:hover,
.footer-link-button:hover {
  color: #ffffff;
}

.footer-links .divider {
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.3);
}

.site-modal[hidden] {
  display: none;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  margin: 0;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(38, 38, 42, 0.96), rgba(24, 25, 29, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.8);
}

.site-modal-title {
  color: #ffffff;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.site-modal-text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 18px;
}

.site-modal-list {
  margin: 0 0 20px 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.site-modal-list li {
  margin-bottom: 8px;
}

.site-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.site-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 48px;
  }
  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .btn-download {
    padding: 16px 32px;
    font-size: 18px;
  }
  .header {
    padding: 16px 20px;
  }
  .nav-links {
    display: none;
  }
  .doc-shell {
    padding: 96px 16px 28px;
  }
  .doc-title {
    font-size: 28px;
  }
  .doc-content {
    font-size: 15px;
    line-height: 1.8;
  }
  .site-modal-dialog {
    padding: 24px 18px 20px;
    border-radius: 18px;
  }
  .site-modal-title {
    font-size: 24px;
  }
}
