/* 香草官网 — 蓝色主题（xczb3） */
:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --cyan-400: #22d3ee;
  --ink: #0f172a;
  --ink-muted: #475569;
  --white: #ffffff;
  --focus-ring: 0 0 0 3px var(--white), 0 0 0 6px var(--blue-500);
  --font-display: "ZCOOL QingKe HuangYou", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 20px 50px rgba(37, 99, 235, 0.12);
  --max-width: 1040px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--blue-50);
  background-image:
    linear-gradient(105deg, transparent 40%, rgba(34, 211, 238, 0.06) 50%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% -25%, var(--blue-200), transparent 50%),
    radial-gradient(ellipse 70% 45% at 100% 20%, var(--blue-100), transparent 50%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(37, 99, 235, 0.03) 48px,
      rgba(37, 99, 235, 0.03) 49px
    );
  min-height: 100vh;
  -webkit-tap-highlight-color: rgba(37, 99, 235, 0.15);
}

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

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue-600);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--blue-700);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  touch-action: manipulation;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.skip-link:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* 锚点滚动时避开固定顶栏 */
#top,
#features,
#download {
  scroll-margin-top: 5.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 246, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  touch-action: manipulation;
}

.brand:focus-visible {
  border-radius: var(--radius-sm);
  box-shadow: var(--focus-ring);
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-muted);
  touch-action: manipulation;
}

.nav a:hover {
  color: var(--blue-700);
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--blue-600);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 32em;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:focus-visible {
  box-shadow: var(--focus-ring);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.42);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--blue-200);
}

.btn-ghost:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-700);
  border: 2px solid var(--blue-200);
}

.btn-secondary:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}

.btn-large {
  padding: 0.85rem 1.5rem;
  font-size: 0.9375rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: clamp(2rem, 4vw, 2.75rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--blue-100);
  max-width: 280px;
}

.hero-logo {
  width: min(160px, 40vw);
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.hero-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue-700);
  letter-spacing: 0.08em;
}

.hero-reveal {
  animation: heroFade 0.9s ease forwards;
  opacity: 0;
  transform: translateY(12px);
}

.hero-reveal-delay {
  animation-delay: 0.15s;
}

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features */
.features {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.65));
  border-top: 1px solid var(--blue-100);
}

.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  font-weight: 400;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.05em;
  text-wrap: balance;
}

.section-sub {
  margin: 0 auto 2.5rem;
  max-width: 28em;
  text-align: center;
  color: var(--ink-muted);
  font-size: 1rem;
  text-wrap: pretty;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  margin: 0;
  padding: 1.5rem 1.35rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--blue-100);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: var(--blue-200);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.1);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
  color: var(--blue-600);
  background: var(--blue-50);
  border-radius: var(--radius-sm);
}

.feature-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.feature-desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Download */
.download {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.download-inner {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(145deg, var(--blue-100), var(--white));
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-200);
  box-shadow: var(--shadow-soft);
}

.download .section-title {
  margin-bottom: 0.75rem;
}

.download-lead {
  margin: 0 auto 1.75rem;
  max-width: 36em;
  color: var(--ink-muted);
  font-size: 1rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--blue-200);
  background: rgba(255, 255, 255, 0.45);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.footer-meta {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.footer-meta p {
  margin: 0.3rem 0;
}

.footer-meta a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

.footer-meta a:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.footer-filing img.beian-badge {
  display: inline-block;
  vertical-align: -0.2em;
  width: auto;
  height: 1em;
  margin-right: 0.35em;
}

/* Responsive */
@media (max-width: 900px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

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

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-lead {
    margin-inline: auto;
  }

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