/* 光年写作 · 桌面版 —— 客户端产品主页（纯静态，无构建依赖）
   视觉基调沿用 guangnian-web LandingView：暗色银河、绿色主色 #58c38f、金色点缀 #e3c176 */

:root {
  --surface: rgba(16, 22, 28, 0.55);
  --ink: #edf2ee;
  --muted: #a7b0a9;
  --line: rgba(237, 242, 238, 0.13);
  --brand: #58c38f;
  --brand-strong: #7bd7a6;
  --gold: #e3c176;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  /* 银河质感：深空底 + 两层星云径向渐变 + 星点，纯 CSS 保持轻量 */
  background:
    radial-gradient(ellipse 90% 60% at 78% -10%, rgba(102, 84, 180, 0.28), transparent 60%),
    radial-gradient(ellipse 70% 50% at 12% 8%, rgba(40, 90, 120, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 110%, rgba(40, 122, 99, 0.16), transparent 65%),
    #07090f;
  background-attachment: fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 68%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 56% 14%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 44%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 76%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 88%, rgba(255, 255, 255, 0.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 38%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 90%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 55%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 94% 20%, rgba(255, 255, 255, 0.8) 50%, transparent 51%);
}

.page > * {
  position: relative;
  z-index: 1;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 14, 20, 0.35);
}

.nav {
  width: min(1240px, calc(100% - 48px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.brand-logo {
  display: block;
  border-radius: 7px;
}

.brand strong {
  font-size: 15px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-decoration: none;
}

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

.hero-content {
  flex: 1;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-logo {
  display: block;
  border-radius: 14px;
  margin-bottom: 26px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.hero-eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
}

.hero-content h2 {
  margin: 20px 0 0;
  color: #edf4ef;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.4;
}

.hero-summary {
  max-width: 640px;
  margin: 18px 0 26px;
  color: rgba(238, 245, 241, 0.76);
  font-size: 14px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-action,
.secondary-action {
  height: 46px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.primary-action {
  border: 1px solid #64d2b4;
  color: #102b23;
  background: #59cbae;
}

.primary-action:hover {
  background: #6cd8bd;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.13);
}

.hero-version {
  margin: 16px 0 0;
  color: rgba(238, 245, 241, 0.38);
  font-size: 11px;
}

/* ---------- 核心优势 ---------- */

.advantages-section {
  min-height: 100svh;
  padding: 90px max(28px, calc((100vw - 1184px) / 2)) 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  margin: 8px 0 10px;
  font-size: 42px;
  line-height: 1.25;
}

.section-heading h2::after {
  width: 44px;
  height: 3px;
  margin: 18px auto 0;
  display: block;
  border-radius: 3px;
  background: var(--brand);
  content: "";
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.advantage-list article {
  position: relative;
  min-width: 0;
  min-height: 200px;
  padding: 36px 30px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.advantage-list article::before {
  position: absolute;
  top: 0;
  left: 30px;
  width: 48px;
  height: 4px;
  border-radius: 0 0 3px 3px;
  background: var(--brand);
  content: "";
}

.advantage-list article:hover {
  border-color: rgba(88, 195, 143, 0.45);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.advantage-list h3 {
  margin: 0;
  color: var(--brand-strong);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.advantage-list p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* ---------- 页脚 ---------- */

.footer {
  height: 82px;
  padding: 0 max(28px, calc((100vw - 1184px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b4c0ba;
  background: rgba(10, 15, 13, 0.55);
}

.footer p {
  font-size: 10px;
}

/* ---------- 自适应 ---------- */

@media (max-width: 980px) {
  .advantage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav {
    width: calc(100% - 36px);
    height: 62px;
  }
  .nav-links {
    display: none;
  }
  .hero-content {
    width: calc(100% - 40px);
    padding: 44px 0 56px;
  }
  .hero-eyebrow {
    margin-bottom: 14px;
    font-size: 12px;
  }
  .hero-content h1 {
    font-size: 40px;
  }
  .hero-content h2 {
    margin-top: 16px;
    font-size: 20px;
  }
  .hero-summary {
    margin: 15px 0 22px;
    font-size: 12px;
    line-height: 1.75;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .advantages-section {
    min-height: 0;
    padding: 64px 18px;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  .section-heading h2 {
    font-size: 31px;
  }
  .advantage-list {
    grid-template-columns: 1fr;
  }
  .advantage-list article {
    min-height: 0;
    padding: 30px 24px 28px;
  }
  .advantage-list article::before {
    left: 24px;
  }
  .advantage-list h3 {
    font-size: 21px;
  }
  .footer {
    padding: 0 20px;
  }
}

@media (max-width: 410px) {
  .hero-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .primary-action,
  .secondary-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .advantage-list article,
  .primary-action,
  .secondary-action {
    transition: none;
  }
}
