:root {
  --color-primary: #1d9776;
  --color-primary-dark: #137458;
  --color-primary-deep: #0d5641;

  --color-ink: #14231f;
  --color-muted: #61736d;
  --color-soft: #eef7f3;

  --color-line: rgba(36, 70, 61, .12);
  --shadow-card: 0 18px 55px rgba(17, 54, 43, .1);
  --shadow-phone: 0 28px 70px rgba(19, 76, 61, .22);
  --radius-large: 28px;
  --radius-medium: 20px;

  --content-width: 1180px;
  --header-offset: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(29, 151, 118, .16), transparent 30rem),
    linear-gradient(180deg, #f8fffc 0%, #f3f8f6 48%, #fff 100%);
  color: var(--color-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 吸顶导航会遮住锚点目标，所有跳转目标预留出导航高度 */
.hero,
.trust-strip,
#download {
  scroll-margin-top: var(--header-offset);
}

/* .section 自带 58–96px 上内边距，只需补足差额 */
.section {
  scroll-margin-top: 32px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 30;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--color-ink);
  color: #fff;
  text-decoration: none;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  background: rgba(248, 255, 252, .82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.brand__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(29, 151, 118, .22);
}

.brand__name {
  font-size: 17px;
  letter-spacing: -.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__links a {
  border-radius: 999px;
  padding: 9px 13px;
  color: #33443e;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  background: rgba(29, 151, 118, .09);
  color: var(--color-primary-dark);
}

.nav__links .nav__cta {
  margin-left: 8px;
  background: var(--color-ink);
  color: #fff;
}

/* 无 JS 时菜单按钮无效，改为始终展开链接 */
.nav__toggle {
  display: none;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, .9);
  color: var(--color-ink);
  font: inherit;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, .98fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(62px, 9vw, 118px) 0 clamp(44px, 7vw, 90px);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* 中文字形是满格方块，负字距过大会让笔画粘连，控制在 -.01em 以内 */
h1 {
  margin-bottom: 22px;
  font-size: clamp(32px, 5.1vw, 64px);
  line-height: 1.16;
  letter-spacing: -.01em;
}

/* 每句独占一行，避免"短信"这类词被折行截断 */
h1 span {
  display: block;
}

.hero__lead {
  max-width: 610px;
  color: var(--color-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

/* 白字需要 4.5:1 对比度，用调色板里更深的一档绿 */
.button--primary {
  background: var(--color-primary-dark);
  box-shadow: 0 14px 32px rgba(19, 116, 88, .28);
  color: #fff;
}

.button--primary:hover {
  background: var(--color-primary-deep);
}

.button--secondary {
  border: 1px solid rgba(29, 151, 118, .22);
  background: rgba(255, 255, 255, .76);
  color: var(--color-primary-dark);
}

.download-hint {
  max-width: 520px;
  margin: 14px 0 0;
  border: 1px solid rgba(203, 141, 20, .4);
  border-radius: 14px;
  padding: 12px 16px;
  background: #fff7df;
  color: #6b4e14;
  font-size: 14px;
  line-height: 1.7;
}

.download-hint[hidden] {
  display: none;
}

.version-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.version-meta div {
  min-width: 112px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .66);
}

.version-meta dt {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.version-meta dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.version-meta .sha {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

/* 两台手机并排轻叠，宽度按容器百分比取值，任何断点下都不会互相遮挡内容 */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  overflow: hidden;
  margin: 0;
  border: 8px solid #17231f;
  border-radius: 30px;
  background: #101816;
  box-shadow: var(--shadow-phone);
}

.phone img {
  width: 100%;
  height: auto;
}

.phone--hero {
  z-index: 2;
  width: 47%;
  max-width: 300px;
  transform: rotate(2.5deg);
}

.phone--floating {
  z-index: 1;
  width: 41%;
  max-width: 262px;
  margin-right: -8%;
  transform: rotate(-4deg);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto clamp(58px, 8vw, 96px);
}

.trust-strip article,
.feature-card,
.price-card,
.purchase-note,
.steps li,
.privacy-list li,
.faq-list details {
  border: 1px solid rgba(36, 70, 61, .1);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.trust-strip article {
  border-radius: var(--radius-medium);
  padding: 24px;
}

.trust-strip article > span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 14px;
  background: var(--color-soft);
  font-size: 21px;
}

.trust-strip h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.trust-strip p,
.feature-card p,
.section__heading p,
.section--split p,
.purchase-note p,
.steps p,
.faq-list p,
.site-footer p {
  color: var(--color-muted);
}

.section {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
}

.section__heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section__heading h2,
.section--split h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.2;
  letter-spacing: -.01em;
}

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

.feature-card {
  overflow: hidden;
  border-radius: var(--radius-large);
  padding: 28px;
}

.feature-card--wide {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(220px, .68fr);
  align-items: center;
  gap: 24px;
  grid-column: 1 / -1;
}

.feature-card__icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 15px;
  background: var(--color-soft);
  font-size: 22px;
}

.feature-card h3 {
  margin-bottom: 9px;
  font-size: 21px;
}

/* 截图按原始比例完整显示，不裁剪 */
.feature-card figure {
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border: 7px solid #16211d;
  border-radius: 26px;
  background: #111916;
  box-shadow: 0 22px 48px rgba(19, 76, 61, .16);
}

.feature-card figure img {
  width: 100%;
  height: auto;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--color-primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  margin-left: 6px;
  content: '→';
}

.text-link:hover {
  text-decoration: underline;
}

.privacy-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  display: grid;
  gap: 5px;
  border-radius: var(--radius-medium);
  padding: 20px 22px;
}

.privacy-list span {
  color: var(--color-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.price-card {
  border-radius: var(--radius-medium);
  padding: 26px;
}

.price-card--featured {
  border-color: rgba(255, 183, 45, .55);
  background: linear-gradient(160deg, #fff, #fff7df);
}

.price-card h3 {
  margin-bottom: 8px;
}

.price-card__price {
  margin-bottom: 6px;
  color: var(--color-ink);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.purchase-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  border-radius: var(--radius-medium);
  padding: 24px;
}

.purchase-note p {
  max-width: 720px;
  margin: 0;
}

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

.steps li {
  border-radius: var(--radius-medium);
  padding: 26px;
}

.steps span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.update-note {
  margin-top: 28px;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
}

.changelog {
  border: 1px solid rgba(36, 70, 61, .1);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.changelog summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 26px;
  font-size: 17px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.changelog summary::-webkit-details-marker {
  display: none;
}

.changelog summary::after {
  flex: none;
  color: var(--color-primary-dark);
  content: '+';
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.changelog[open] summary::after {
  content: '−';
}

.changelog summary:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 4px;
}

.changelog__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
}

.changelog__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.changelog__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 26px 26px;
  list-style: none;
}

.changelog__item {
  border: 1px solid rgba(36, 70, 61, .08);
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .6);
}

.changelog__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.changelog__version {
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.changelog__tag {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.changelog__date {
  color: var(--color-muted);
  font-size: 13px;
}

.changelog__item ul {
  margin: 0;
  padding-left: 1.2em;
}

.changelog__item li {
  margin-bottom: 5px;
  color: #33443e;
  font-size: 14px;
  line-height: 1.8;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: var(--radius-medium);
  padding: 0 24px;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  flex: none;
  color: var(--color-primary-dark);
  content: '+';
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list summary:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 4px;
}

.faq-list details p {
  max-width: 860px;
  margin: 0 0 20px;
  line-height: 1.85;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--color-line);
  padding: 34px 0 44px;
}

/* ICP 备案号须在主页底部中央展示并链接工信部（法规硬性要求） */
.site-footer__beian {
  flex: 1 0 100%;
  margin: 0;
  text-align: center;
}

.site-footer__beian a {
  color: var(--color-muted);
  font-size: 13px;
  text-decoration: none;
}

.site-footer__beian a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.brand--footer .brand__icon {
  width: 34px;
  height: 34px;
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-links a,
.footer-links .mail-link {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links .mail-link:hover {
  color: var(--color-primary-dark);
}

/* 独立文档页（隐私政策 / 用户协议 / 404） */
.doc {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 80px) 0 clamp(48px, 8vw, 96px);
}

.doc h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.3;
}

.doc__date {
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 14px;
}

.doc__intro {
  margin-bottom: 8px;
  color: var(--color-muted);
  line-height: 1.9;
}

.doc h2 {
  margin: 38px 0 12px;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.5;
  letter-spacing: -.01em;
}

.doc p,
.doc li {
  color: #33443e;
  line-height: 1.9;
}

.doc ol,
.doc ul {
  margin: 0 0 14px;
  padding-left: 1.4em;
}

.doc li {
  margin-bottom: 8px;
}

.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.doc__back:hover {
  text-decoration: underline;
}

.error-page {
  display: grid;
  place-content: center;
  gap: 8px;
  width: min(560px, calc(100% - 32px));
  min-height: 62vh;
  margin: 0 auto;
  text-align: center;
}

.error-page__code {
  color: var(--color-primary-dark);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
}

.error-page .button {
  justify-self: center;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .js .nav__toggle {
    display: inline-flex;
  }

  .js .nav__links {
    position: absolute;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--color-line);
    border-radius: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--shadow-card);
  }

  .js .nav__links.is-open {
    display: flex;
  }

  .nav__links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav__links .nav__cta {
    margin-left: 0;
    text-align: center;
  }

  .hero,
  .section--split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .hero__visual {
    padding-top: 8px;
  }

  .trust-strip,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .feature-card--wide {
    grid-template-columns: 1fr;
  }

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

  .purchase-note,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav {
    width: calc(100% - 24px);
  }

  .brand__name {
    font-size: 16px;
  }

  .hero,
  .section,
  .trust-strip,
  .site-footer {
    width: calc(100% - 24px);
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__actions .button {
    width: 100%;
  }

  /* 四张元信息卡竖排会把截图整个挤出首屏，移动端用两列 */
  .version-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .version-meta div {
    min-width: 0;
    padding: 9px 12px;
  }

  .feature-card,
  .price-card,
  .steps li,
  .purchase-note,
  .trust-strip article {
    padding: 22px;
  }

  .faq-list details {
    padding: 0 20px;
  }

  .faq-list summary {
    font-size: 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

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

  .button,
  .phone,
  .feature-card,
  .skip-link {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
