/* ============================================================
   Zowan 笔记 — 单页宣传网站样式表
   极简风格 · 莫兰迪冷色调 · 响应式设计 · 参考 Typora 官网
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --bg-main: #f6f6f6;
  --bg-white: #ffffff;
  --bg-card: #ffffff;

  --text-primary: #2c2c2c;
  --text-secondary: #666666;
  --text-weak: #999999;
  --text-muted: #b0b0b0;

  --btn-primary: #3a3a3a;
  --btn-primary-hover: #555555;
  --btn-outline: #608899;
  --btn-outline-hover: #4a6d7a;

  --border-light: #e8e8e8;
  --border-card: #eeeeee;

  --shadow-nav: 0 1px 6px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --tag-new-bg: #e8f5e9;
  --tag-new-text: #2e7d32;
  --tag-opt-bg: #e3f2fd;
  --tag-opt-text: #1565c0;
  --tag-fix-bg: #fff3e0;
  --tag-fix-text: #e65100;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-width: 960px;
  --nav-height: 64px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

ul,
ol {
  list-style: none;
}

/* ---------- 通用容器 ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 区块通用 ---------- */
.section {
  padding: 100px 0;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

/* ============================================================
   1. 导航栏
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal),
    box-shadow var(--transition-normal);
  background-color: transparent;
  box-shadow: none;
}

/* 滚动后 — 白色背景 + 阴影 */
.nav.nav--solid {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-nav);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* 导航链接 */
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--text-primary);
}

/* 汉堡菜单按钮 */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal),
    opacity var(--transition-normal);
}

/* 汉堡菜单激活态 → X */
.nav__toggle.active .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端菜单面板 */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.nav__mobile.nav__mobile--open {
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.nav__mobile a:hover {
  color: var(--btn-outline);
}

/* ============================================================
   2. Hero 区
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-main);
  overflow: hidden;
  padding: 120px 24px 100px;
}

/* 背景几何装饰 */
.hero__decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.35;
}

.hero__decor--circle {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  top: -120px;
  right: -100px;
}

.hero__decor--circle-sm {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  bottom: 80px;
  left: -60px;
}

.hero__decor--lines {
  top: 50%;
  left: 8%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}

.hero__decor--lines span {
  display: block;
  height: 2px;
  background-color: var(--border-light);
  border-radius: 1px;
}

.hero__decor--lines span:nth-child(1) { width: 120px; }
.hero__decor--lines span:nth-child(2) { width: 80px; }
.hero__decor--lines span:nth-child(3) { width: 100px; }

.hero__decor--dots {
  right: 6%;
  bottom: 25%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero__decor--dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--border-light);
}

/* Hero 内容 */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-weak);
  margin-bottom: 48px;
}

/* CTA 按钮组 */
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast),
    color var(--transition-fast), box-shadow var(--transition-fast),
    transform var(--transition-fast);
  border-radius: var(--radius-full);
  padding: 14px 36px;
  line-height: 1;
}

.btn--primary {
  background-color: var(--btn-primary);
  color: #ffffff;
}

.btn--primary:hover {
  background-color: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn--outline {
  background-color: transparent;
  color: var(--btn-outline);
  border: 1.5px solid var(--btn-outline);
}

.btn--outline:hover {
  background-color: var(--btn-outline);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ============================================================
   3. 功能介绍区
   ============================================================ */
.features {
  background-color: var(--bg-white);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: #f2f4f6;
  color: var(--btn-outline);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   4. 更新日志区
   ============================================================ */
.changelog {
  background-color: var(--bg-main);
}

/* 时间线容器 */
.timeline {
  position: relative;
  padding-left: 40px;
}

/* 时间线竖线 */
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--border-light);
  border-radius: 1px;
}

.timeline__item {
  position: relative;
  margin-bottom: 40px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

/* 时间线圆点 */
.timeline__dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--btn-outline);
  border: 2px solid var(--bg-main);
  box-shadow: 0 0 0 2px var(--btn-outline);
}

/* 版本头部 */
.timeline__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.timeline__version {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline__date {
  font-size: 0.9rem;
  color: var(--text-weak);
}

/* 变更条目列表 */
.timeline__changes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline__change {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 变更类型标签 */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.6;
}

.tag--new {
  background-color: var(--tag-new-bg);
  color: var(--tag-new-text);
}

.tag--opt {
  background-color: var(--tag-opt-bg);
  color: var(--tag-opt-text);
}

.tag--fix {
  background-color: var(--tag-fix-bg);
  color: var(--tag-fix-text);
}

/* ============================================================
   5. 下载区
   ============================================================ */
.download {
  background-color: var(--bg-white);
}

.download__platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.download__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  background-color: var(--bg-white);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.download__btn:hover {
  background-color: #f5f5f5;
  border-color: var(--text-muted);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.download__btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.download__note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-weak);
}

/* ============================================================
   6. 页脚
   ============================================================ */
.footer {
  background-color: var(--bg-main);
  padding: 48px 0 36px;
  border-top: 1px solid var(--border-light);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-weak);
}

.footer__legal a {
  color: var(--text-weak);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--text-secondary);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
}

.footer__links a {
  color: var(--text-weak);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--text-secondary);
}

/* ============================================================
   响应式 — 平板 / 移动端 (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .section__title {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  .container {
    padding: 0 20px;
  }

  /* 导航栏 */
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__mobile {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 140px 20px 80px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }

  .hero__desc {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 14px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  /* 背景装饰 — 移动端缩小/隐藏 */
  .hero__decor--circle {
    width: 240px;
    height: 240px;
    top: -60px;
    right: -60px;
  }

  .hero__decor--circle-sm {
    width: 100px;
    height: 100px;
    bottom: 40px;
    left: -30px;
  }

  .hero__decor--lines {
    display: none;
  }

  .hero__decor--dots {
    display: none;
  }

  /* 功能介绍 */
  .features__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  /* 更新日志 */
  .timeline {
    padding-left: 32px;
  }

  .timeline::before {
    left: 11px;
  }

  .timeline__dot {
    left: -32px;
    width: 10px;
    height: 10px;
  }

  .timeline__header {
    flex-direction: column;
    gap: 4px;
  }

  /* 下载 */
  .download__platforms {
    gap: 12px;
  }

  .download__btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  /* 页脚 */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ============================================================
   响应式 — 小屏手机 (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero__title {
    font-size: 1.65rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .section__title {
    font-size: 1.4rem;
  }

  .download__btn {
    width: 100%;
    justify-content: center;
  }
}
