/* 轻松学汉字 · HTML5 官网 — 科技感浅色玻璃拟态 */

:root {
  --bg-deep: #060d1a;
  --bg-card: rgba(12, 22, 42, 0.65);
  --stroke: rgba(94, 234, 255, 0.22);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.15);
  --violet: #8b5cf6;
  --text: #e8f4ff;
  --text-muted: rgba(180, 210, 240, 0.72);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 30, 80, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(34, 211, 238, 0.18), transparent),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(139, 92, 246, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(34, 211, 238, 0.08), transparent);
}

.mono {
  font-family: var(--font-mono);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--cyan);
  color: #031;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.bg-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
}
.bg-glow--a {
  width: min(80vw, 520px);
  height: min(80vw, 520px);
  top: -10%;
  right: -15%;
  background: var(--cyan);
}
.bg-glow--b {
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  bottom: -5%;
  left: -10%;
  background: var(--violet);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(6, 13, 26, 0.72);
  border-bottom: 1px solid var(--stroke);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}
.logo__title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo__sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 220px;
  line-height: 1.3;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav a:hover {
  color: var(--cyan);
}

.btn-lang {
  cursor: pointer;
  border: 1px solid var(--stroke);
  background: var(--cyan-dim);
  color: var(--cyan);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
}
.btn-lang:hover {
  background: rgba(34, 211, 238, 0.28);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 3rem 1.25rem 4rem;
  max-width: 1120px;
  margin: 0 auto;
}

.hero__content {
  max-width: 720px;
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.2), rgba(139, 92, 246, 0.25));
  border: 1px solid var(--stroke);
  color: var(--cyan);
  margin-bottom: 1rem;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(120deg, #fff 0%, #a5f3fc 45%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.45);
}

.btn--glass {
  background: var(--bg-card);
  border-color: var(--stroke);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn--disabled {
  opacity: 0.55;
  pointer-events: none;
}

.btn--ghost {
  border-color: var(--stroke);
  color: var(--cyan);
  background: transparent;
}
.btn--ghost--muted {
  opacity: 0.65;
}

.btn__icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
}
.btn__icon--apple {
  background: linear-gradient(180deg, #fff 0%, #ccc 100%);
}
.btn__icon--play {
  background: linear-gradient(135deg, #34d399, #059669);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-card--action {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s;
}
.stat-card--action:hover {
  border-color: rgba(34, 211, 238, 0.45);
}

.stat-card__value {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--cyan);
}
.stat-card__label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.stat-card__hint {
  font-size: 0.68rem;
  color: rgba(120, 160, 200, 0.55);
  line-height: 1.3;
}
.stat-card__share-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.stat-card__label--btn {
  font-weight: 600;
  color: var(--text);
}

.section {
  padding: 3.5rem 1.25rem;
}
.section--alt {
  background: rgba(4, 12, 28, 0.5);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.section__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.section__inner--narrow {
  max-width: 520px;
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.section__intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 720px;
}

.grid-2 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.25rem;
  border-radius: var(--radius);
}
.card--glass {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}
.card--wide {
  grid-column: 1 / -1;
}
.card__h {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
}
.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.card__note {
  margin-top: 0.75rem !important;
  font-size: 0.78rem !important;
  opacity: 0.85;
}

.link {
  color: var(--cyan);
  word-break: break-all;
}

.shots {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .shots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shot {
  margin: 0;
  text-align: center;
}
.shot__frame {
  border-radius: 20px;
  padding: 0.5rem;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}
.shot__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  vertical-align: middle;
}
.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--stroke);
  transition: opacity 0.15s;
}
.store-badge--apple {
  background: #000;
  color: #fff;
  border-color: #333;
}
.store-badge--google {
  background: #fff;
  color: #1a1a1a;
}
.store-badge--disabled {
  opacity: 0.5;
  pointer-events: none;
}

.fine-print {
  font-size: 0.82rem;
  color: rgba(140, 170, 200, 0.65);
  margin: 0.35rem 0;
}

.contact-wecom {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--bg-card);
  text-align: center;
}
.contact-wecom__company {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.contact-wecom__caption {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.contact-wecom__qr {
  display: block;
  width: min(200px, 72vw);
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 审核区「支持/联系」卡片内：企业主体与企微二维码（紧凑） */
.review-contact-wecom {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(94, 234, 255, 0.15);
  text-align: left;
}
.review-contact-wecom__company {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.review-contact-wecom__cap {
  margin: 0 0 0.5rem;
}
.review-contact-wecom__qr {
  display: block;
  width: min(168px, 56vw);
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.form__field input,
.form__field textarea {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(8, 16, 32, 0.8);
  color: var(--text);
  font: inherit;
}
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.btn--block {
  justify-content: center;
  width: 100%;
  padding: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.legal {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.privacy-urls {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(12, 22, 42, 0.45);
}
.privacy-urls__item {
  margin: 0 0 0.85rem;
}
.privacy-urls__item:last-child {
  margin-bottom: 0;
}
.privacy-urls__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.privacy-urls__link {
  display: inline-block;
  word-break: break-all;
  max-width: 100%;
}
.privacy-urls__pending {
  display: block;
  margin: 0;
}
.privacy-store-urls {
  margin: 0.35rem 0;
}
.privacy-store-urls__lbl {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-muted);
}

/* 法律页（/home/privacy.html、/home/terms.html） */
nav.nav.legal-nav a[aria-current="page"] {
  color: var(--cyan);
  font-weight: 600;
}
.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}
.legal-doc__title {
  font-size: 1.65rem;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}
.legal-doc__sub {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.legal-doc h2 {
  font-size: 1.12rem;
  margin: 2rem 0 0.65rem;
  color: var(--cyan);
  line-height: 1.35;
}
.legal-doc p,
.legal-doc li {
  color: var(--text-muted);
  margin: 0.55rem 0;
}
.legal-doc ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}
.legal-doc .legal-doc__note {
  font-size: 0.88rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stroke);
}
#your-rights {
  scroll-margin-top: 5rem;
}

.site-footer__legal {
  margin: 0 0 0.75rem;
  color: rgba(130, 160, 190, 0.75);
}
.privacy-full-links {
  margin-bottom: 1rem;
}

.site-footer {
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid var(--stroke);
  background: rgba(3, 8, 20, 0.85);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
.site-footer__copy {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
}
.site-footer__rights {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: rgba(130, 160, 190, 0.65);
}
.site-footer__tech {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(100, 140, 170, 0.45);
}
