/* 学词输入法官网 — 磨砂玻璃 · Slate VI */
:root {
  --slate: #5b7c99;
  --slate-dark: #4a6580;
  --slate-soft: rgba(91, 124, 153, 0.14);
  --charcoal: #2c2c2e;
  --gray1: #f2f2f7;
  --gray2: #8e8e93;
  --white: #ffffff;
  --bg: #edeeF2;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-border-soft: rgba(44, 44, 46, 0.08);
  --shadow: 0 12px 40px rgba(44, 44, 46, 0.08);
  --shadow-sm: 0 4px 16px rgba(44, 44, 46, 0.06);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --nav-h: 68px;
  --max: 1120px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(44, 44, 46, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

/* Background orbs — soft, not neon */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.orb-a {
  width: 420px; height: 420px;
  top: -80px; left: -60px;
  background: radial-gradient(circle, #c9d9e8 0%, transparent 70%);
}
.orb-b {
  width: 480px; height: 480px;
  top: 20%; right: -120px;
  background: radial-gradient(circle, #e8d5c4 0%, transparent 70%);
}
.orb-c {
  width: 520px; height: 520px;
  bottom: -100px; left: 30%;
  background: radial-gradient(circle, #d4cce8 0%, transparent 70%);
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--slate);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Nav */
.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  max-width: calc(var(--max) + 32px);
  margin: 12px auto 0;
  padding: 0.65rem 1rem 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--glass-strong);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--charcoal);
  color: var(--gray1);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong { font-size: 0.95rem; font-weight: 600; }
.brand-text small { font-size: 0.68rem; color: var(--gray2); letter-spacing: 0.06em; }
.nav-links {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
}
.nav-links a {
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--charcoal);
  transition: background 0.15s ease;
}
.nav-links a:hover { background: var(--slate-soft); color: var(--slate-dark); }
.nav-actions { display: flex; gap: 0.45rem; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 550;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--slate);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(91, 124, 153, 0.28);
}
.btn-primary:hover { background: var(--slate-dark); }
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--glass-border-soft);
  color: var(--charcoal);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.75); }
.btn-lg { padding: 0.85rem 1.45rem; font-size: 0.98rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-copy h1 {
  margin: 0.85rem 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
.lede {
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  color: #4a4a4e;
  max-width: 34rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}
.download-note {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: var(--gray2);
}
.hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  font-size: 0.85rem;
  color: var(--gray2);
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hero-meta li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--slate);
  opacity: 0.7;
}
.hero-visual {
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 22px 60px rgba(44, 44, 46, 0.12);
}
.hero-visual img {
  border-radius: calc(var(--radius-lg) - 6px);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  background: linear-gradient(145deg, #ffd4b8 0%, #c9b8ff 48%, #9ec5ff 100%);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}
.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}
.section-head .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  letter-spacing: -0.02em;
  font-weight: 650;
}
.section-head p {
  margin: 0;
  color: #55555a;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-card {
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.45rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(44, 44, 46, 0.1);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--slate-soft);
  color: var(--slate);
  margin-bottom: 0.95rem;
}
.feature-icon img,
.feature-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  color: var(--slate);
}
.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #55555a;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.gallery.gallery-4 {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 901px) {
  .gallery.gallery-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.gallery-item {
  border-radius: calc(var(--radius) + 4px);
  padding: 0.45rem;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 18px 48px rgba(44, 44, 46, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 24px 56px rgba(44, 44, 46, 0.14);
}
.gallery-item img {
  border-radius: calc(var(--radius) - 2px);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(145deg, #ffd4b8 0%, #c9b8ff 48%, #9ec5ff 100%);
  display: block;
  border: 1px solid rgba(44, 44, 46, 0.06);
}
.gallery-item figcaption {
  padding: 0.85rem 0.45rem 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #3a3a3e;
  text-align: center;
}

/* Install guide */
.install-jump {
  margin: -0.35rem 0 1.1rem;
  font-size: 0.9rem;
}
.install-jump a {
  color: var(--slate);
  font-weight: 550;
}
.install-jump a:hover { color: var(--slate-dark); text-decoration: underline; }

.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  counter-reset: none;
}
.install-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.install-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(44, 44, 46, 0.1);
}
.install-step:last-child {
  grid-column: 1 / -1;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--slate-soft);
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.step-body h3 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}
.step-body p {
  margin: 0;
  font-size: 0.92rem;
  color: #55555a;
  line-height: 1.55;
}
.install-aside {
  margin: 1.1rem 0 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: #4a4a4e;
  background: var(--glass);
}
.install-aside a {
  color: var(--slate);
  font-weight: 550;
}
.install-aside a:hover { text-decoration: underline; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 1.1rem;
  justify-content: center;
}
.price-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  position: relative;
}
.price-card-pro {
  background: var(--glass-strong);
  border-color: rgba(91, 124, 153, 0.35);
  box-shadow: 0 16px 48px rgba(91, 124, 153, 0.15);
}
.badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  margin: 0;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--slate);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
}
.price-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.price {
  margin: 0 0 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.price span {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
.price small {
  font-size: 0.9rem;
  color: var(--gray2);
}
.price-card ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.price-card li {
  padding: 0.45rem 0;
  border-top: 1px solid rgba(44, 44, 46, 0.06);
  font-size: 0.92rem;
  color: #4a4a4e;
}
.price-card li::before {
  content: "✓ ";
  color: var(--slate);
  font-weight: 600;
}

/* Changelog */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 760px;
}
.changelog-item {
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.1rem;
}
.changelog-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}
.changelog-meta .ver {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--slate-soft);
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.changelog-meta time {
  font-size: 0.82rem;
  color: var(--gray2);
}
.changelog-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
}
.changelog-item ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
}
.changelog-item li {
  margin: 0.28rem 0;
  font-size: 0.92rem;
  color: #4a4a4e;
  line-height: 1.55;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 760px;
}
.faq-item {
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--slate);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: #55555a;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  max-width: calc(var(--max) + 32px);
  margin: 1rem auto 2rem;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.25rem;
  background: var(--glass-strong);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.brand-footer .brand-mark { width: 40px; height: 40px; font-size: 1.15rem; }
.footer-company-name { font-weight: 560; color: var(--charcoal) !important; }
.footer-company-name:hover { color: var(--slate) !important; }
.footer-company-link { font-size: 0.82rem !important; color: var(--slate) !important; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.35rem;
  font-size: 0.82rem;
  color: var(--gray2);
  white-space: nowrap;
}
.lang-switch a {
  color: var(--charcoal);
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-pill);
}
.lang-switch a:hover { background: var(--slate-soft); color: var(--slate-dark); }
.lang-switch a[aria-current="page"] {
  background: var(--slate-soft);
  color: var(--slate-dark);
  font-weight: 560;
}
.lang-switch .sep { opacity: 0.45; user-select: none; }
.footer-tag { margin: 0.75rem 0 0; color: var(--gray2); font-size: 0.88rem; }
.footer h4 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray2);
}
.footer a, .footer p {
  display: block;
  margin: 0.35rem 0;
  font-size: 0.9rem;
  color: #4a4a4e;
}
.footer a:hover { color: var(--slate); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(44, 44, 46, 0.08);
  font-size: 0.82rem;
  color: var(--gray2);
}
.footer-bottom .muted { margin: 0; }
.footer-bottom p { margin: 0; }

/* Mobile */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
  .feature-grid, .gallery, .install-steps {
    grid-template-columns: 1fr;
  }
  .install-step:last-child {
    grid-column: auto;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-actions { display: none; }
  .nav .lang-switch { margin-left: auto; margin-right: 0.15rem; }
  .nav.nav-open .lang-switch { margin-left: 0; width: 100%; order: 3; }
  .nav.nav-open .nav-links,
  .nav.nav-open .nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .nav.nav-open {
    flex-wrap: wrap;
    border-radius: var(--radius);
  }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card, .install-step { transition: none; }
}

/* Nav current page */
.nav-links a.nav-active,
.nav-links a[aria-current="page"] {
  background: var(--slate-soft);
  color: var(--slate-dark);
  font-weight: 560;
}

/* Standalone changelog page */
.page-changelog .section-page {
  padding-top: 2.5rem;
}
.page-changelog .section-head h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.changelog-back {
  margin: 1.75rem 0 0;
  text-align: center;
}
.footer a[aria-current="page"] {
  color: var(--slate-dark);
  font-weight: 560;
}
