:root {
  --bg: #f3f5ef;
  --bg-elevated: #fbfcf8;
  --primary: #6f8468;
  --primary-dark: #5a6d54;
  --primary-soft: #d8e2d4;
  --text: #1c241c;
  --text-muted: #5a6558;
  --text-light: #8a9486;
  --border: rgba(28, 36, 28, 0.1);
  --shadow: 0 28px 60px -36px rgba(28, 36, 28, 0.35);
  --radius: 14px;
  --radius-lg: 28px;
  --emerald: #7d9474;
  --orange: #c99962;
  --violet: #8a7d92;
  --teal: #6d8f99;
  --amber: #d4a574;
  --amber-soft: #f3e6d4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 12% 8%, rgba(134, 151, 125, 0.26), transparent 55%),
    radial-gradient(ellipse 50% 40% at 92% 4%, rgba(212, 165, 116, 0.16), transparent 50%),
    linear-gradient(165deg, #eef1e8 0%, #f3f5ef 45%, #e8ede4 100%);
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(243, 245, 239, 0.88);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.125rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% -30%;
  background: radial-gradient(ellipse 90% 70% at 30% 15%, rgba(52, 211, 153, 0.2), transparent 65%),
    radial-gradient(ellipse 70% 55% at 85% 0%, rgba(16, 185, 129, 0.14), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.hero p.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-light);
  font-size: 0.875rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.phone-mockup {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
}

.phone-shell {
  background: #111827;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #111827;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  min-height: 580px;
  padding: 44px 16px 20px;
}

.mock-header {
  margin-bottom: 16px;
}

.mock-header h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
}

.mock-header p {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.mock-dates {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 16px;
}

.mock-date {
  flex: 1;
  text-align: center;
  font-size: 0.625rem;
  color: var(--text-light);
}

.mock-date strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.mock-date.active {
  color: var(--primary);
}

.mock-date.active strong {
  color: var(--primary);
}

.mock-grid {
  display: grid;
  grid-template-columns: 28px repeat(5, 1fr);
  gap: 6px;
}

.mock-time {
  font-size: 0.5625rem;
  color: var(--text-light);
  text-align: right;
  padding-top: 8px;
}

.mock-course {
  border-radius: 10px;
  padding: 6px 4px;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  min-height: 52px;
}

.mock-course.c1 { background: var(--emerald); }
.mock-course.c2 { background: var(--orange); }
.mock-course.c3 { background: var(--violet); }
.mock-course.c4 { background: var(--teal); }
.mock-course.c5 { background: var(--primary); }

.section {
  padding: 88px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.375rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.download-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.download-panel {
  background:
    linear-gradient(135deg, rgba(111, 132, 104, 0.16), transparent 48%),
    linear-gradient(180deg, #fbfcf8, #eef2ea);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--text);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: none;
}

.download-panel--web {
  background:
    linear-gradient(135deg, rgba(212, 165, 116, 0.18), transparent 48%),
    linear-gradient(180deg, #fbfcf8, #f3ebe0);
  box-shadow: none;
}

.download-page-web {
  margin-bottom: 32px;
}

.download-panel h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.download-panel p {
  margin: 0;
  color: var(--text-muted);
}

.download-panel .btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
  white-space: nowrap;
}

.download-panel .btn-primary:hover {
  background: var(--primary-dark);
}

.download-panel--web .btn-primary {
  background: #b8894f;
}

.download-panel--web .btn-primary:hover {
  background: #9f7340;
}

.download-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.contact-card .label {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.contact-card .value {
  font-weight: 600;
  font-size: 0.9375rem;
  word-break: break-all;
}

.contact-card a.value:hover {
  color: var(--primary);
}

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

.site-footer .links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.site-footer a:hover {
  color: var(--primary-dark);
}

.page-hero {
  padding: 56px 0 32px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
}

.doc-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto 80px;
}

.doc-content h2 {
  font-size: 1.125rem;
  margin: 32px 0 12px;
}

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

.doc-content p,
.doc-content li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.doc-content ol {
  padding-left: 1.25rem;
}

.changelog-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.changelog-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.changelog-item h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.changelog-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.changelog-date {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--text-light);
}

.changelog-item ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.download-hero {
  padding: 48px 0 32px;
}

.download-app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 20px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.download-page {
  margin: 0 auto 80px;
}

.download-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.download-main {
  min-width: 0;
}

.download-info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 24px;
  margin-bottom: 40px;
}

.download-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
}

.download-info-row:last-child {
  border-bottom: none;
}

.download-info-label {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.download-info-row strong,
.download-info-row span:last-child {
  font-size: 0.9375rem;
  color: var(--text);
}

.mirror-title {
  font-size: 1.25rem;
  margin: 0 0 20px;
}

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

.mirror-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  min-height: 96px;
}

.mirror-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-soft);
}

.mirror-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
}

.mirror-body {
  flex: 1;
  min-width: 0;
}

.mirror-body h3 {
  margin: 0 0 4px;
  font-size: 1.0625rem;
}

.mirror-body p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mirror-notice {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fef9c3;
  color: #ca8a04;
  font-size: 0.75rem;
  font-weight: 600;
}

.mirror-code {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.mirror-code.is-copied {
  background: #ecfdf5;
  color: #059669;
}

.mirror-arrow {
  flex-shrink: 0;
  color: var(--text-light);
}

.mirror-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0;
}

.download-tips {
  position: sticky;
  top: 96px;
  padding: 28px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.download-tips h3 {
  margin: 0 0 16px;
  font-size: 1.0625rem;
}

.download-tips ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.85;
}

.download-tips a {
  color: var(--primary-dark);
}

.download-tips a:hover {
  text-decoration: underline;
}

@media (min-width: 961px) {
  .download-hero {
    padding: 64px 0 40px;
  }

  .download-hero h1 {
    font-size: 2.5rem;
  }

  .download-hero p {
    font-size: 1.0625rem;
  }

  .download-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    margin-bottom: 24px;
  }

  .download-body {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-panels {
    grid-template-columns: 1fr;
  }

  .download-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-body {
    grid-template-columns: 1fr;
  }

  .mirror-list {
    grid-template-columns: 1fr;
  }

  .download-tips {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .features-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .download-panel {
    padding: 32px 24px;
  }

  .doc-content {
    padding: 24px;
  }
}
