/* ============================================================
   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;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 导航链接 */
.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:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f4f7fb 55%, #eef1f6 100%);
  overflow: hidden;
  padding: 120px 24px 100px;
}

/* 渐变毛玻璃背景球 */
.hero__orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.orb--1 {
  width: 460px;
  height: 460px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, #bcd6ff, #8fb6ff 60%, transparent 72%);
  animation: orbFloat 16s ease-in-out infinite;
}

.orb--2 {
  width: 380px;
  height: 380px;
  top: 8%;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, #ffe6b0, #ffd27f 60%, transparent 72%);
  animation: orbFloat 19s ease-in-out infinite reverse;
}

.orb--3 {
  width: 320px;
  height: 320px;
  bottom: -110px;
  left: 18%;
  background: radial-gradient(circle at 30% 30%, #ffc9d6, #ffaec4 60%, transparent 72%);
  animation: orbFloat 22s ease-in-out infinite;
}

.orb--4 {
  width: 300px;
  height: 300px;
  bottom: 4%;
  right: 14%;
  background: radial-gradient(circle at 30% 30%, #d7c4ff, #b89bff 60%, transparent 72%);
  animation: orbFloat 18s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(28px, -32px) scale(1.06); }
  66% { transform: translate(-22px, 20px) scale(0.96); }
}

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

/* 吉祥物 */
.hero__mascot-wrap {
  position: relative;
  display: inline-flex;
  margin-bottom: 18px;
}

.hero__mascot {
  position: relative;
  z-index: 1;
  width: 200px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(80, 110, 150, 0.22));
  animation: mascotFloat 5s ease-in-out infinite;
}

.hero__mascot-glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 52%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(189, 214, 255, 0.45) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  animation: titleConverge 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 标题入场：字母从两侧向中间靠拢 */
@keyframes titleConverge {
  0% { letter-spacing: 0.7em; opacity: 0; filter: blur(8px); }
  60% { opacity: 1; }
  100% { letter-spacing: 0.04em; opacity: 1; filter: blur(0); }
}

/* 打字机品牌语 */
.hero__typed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8em;
  font-size: 0.95rem;
  font-weight: 200;
  color: var(--text-secondary);
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__typed--show {
  opacity: 1;
}

.hero__cursor {
  display: inline-block;
  width: 1px;
  height: 1.15em;
  margin-left: 4px;
  background-color: var(--btn-outline);
  border-radius: 1px;
  animation: cursorBlink 1s steps(1) infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* 向下滚动指示 */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.65;
  transition: opacity var(--transition-fast);
}

.hero__scroll:hover {
  opacity: 1;
}

.hero__scroll-arrow {
  display: block;
  width: 30px;
  height: 30px;
  animation: scrollArrow 1.8s ease-in-out infinite;
}

@keyframes scrollArrow {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* 按钮 */
.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 {
  position: relative;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(255, 210, 127, 0.16), transparent 60%),
    radial-gradient(80% 70% at 10% 100%, rgba(143, 182, 255, 0.18), transparent 60%),
    var(--bg-white);
  overflow: hidden;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(80, 110, 150, 0.1);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(80, 110, 150, 0.18);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(143, 182, 255, 0.22), rgba(255, 210, 127, 0.22));
  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__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.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__beian-gongan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.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: 100vh;
    padding: 120px 20px 80px;
  }

  .hero__mascot {
    width: 150px;
  }

  .hero__mascot-glow {
    width: 200px;
    height: 200px;
  }

  .hero__title {
    font-size: 2.6rem;
  }

  .hero__typed {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
  }

  /* 背景球 — 移动端缩小 */
  .orb {
    filter: blur(55px);
  }

  .orb--1 { width: 280px; height: 280px; }
  .orb--2 { width: 240px; height: 240px; }
  .orb--3 { width: 220px; height: 220px; }
  .orb--4 { width: 200px; height: 200px; }

  /* 功能介绍 */
  .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: 2.1rem;
  }

  .hero__mascot {
    width: 128px;
  }

  .hero__typed {
    font-size: 0.78rem;
  }

  .section__title {
    font-size: 1.4rem;
  }

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

/* ============================================================
   无障碍 — 尊重「减少动态效果」偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
