:root {
  --ink: #1c2326;
  --muted: #5c666a;
  --line: #d9dfe0;
  --paper: #ffffff;
  --soft: #f4f7f6;
  --accent: #e84d2f;
  --accent-dark: #b93620;
  --mint: #dcefe8;
  --dark: #202a2d;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container,
.header-inner,
.hero-inner,
.footer-inner {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 800;
}

.brand img {
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a:not(.nav-download) {
  position: relative;
  padding: 26px 0 24px;
}

.site-nav a:not(.nav-download)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-download {
  min-width: 106px;
  padding: 10px 19px;
  color: #ffffff;
  background: var(--dark);
  text-align: center;
  border-radius: 4px;
}

.nav-download:hover {
  background: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  overflow: hidden;
  background: linear-gradient(90deg, #ffffff 0 65%, #f1f5f3 65% 100%);
}

.hero-inner {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(480px, 1.06fr);
  align-items: center;
  gap: 72px;
  padding: 54px 0 48px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.eyebrow span:first-child {
  padding: 5px 9px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 3px;
}

.hero h1 {
  max-width: 610px;
  margin: 0 0 20px;
  font-size: 58px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: #465155;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 28px;
}

.button {
  min-width: 132px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 4px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.text-link {
  color: var(--ink);
  font-weight: 700;
}

.text-link span {
  color: var(--accent);
}

.hero-facts {
  display: flex;
  gap: 48px;
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  display: grid;
  gap: 3px;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.hero-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.hero-media {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-index {
  position: absolute;
  top: 18px;
  right: 0;
  color: #c3cac8;
  font-size: 74px;
  font-weight: 800;
  line-height: 1;
}

.device {
  margin: 0;
  overflow: hidden;
  border: 8px solid #1e2628;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 24px 44px rgba(27, 37, 40, 0.16);
}

.device img {
  width: 100%;
  height: auto;
}

.device-main {
  position: relative;
  z-index: 2;
  width: 245px;
}

.device-side {
  width: 196px;
  margin-left: -32px;
  transform: translateY(42px);
  border-color: #e5e9e7;
}

.section {
  padding: 88px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}

.section-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.section-heading h2,
.download-band h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
}

.feature-section {
  border-top: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-card {
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-card-wide {
  grid-column: span 2;
}

.feature-code {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.feature-card h3 {
  margin: 28px 0 10px;
  font-size: 21px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.feature-card-accent {
  background: var(--mint);
}

.gallery-section {
  color: #ffffff;
  background: var(--dark);
}

.section-heading-light h2 {
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 28px;
  align-items: end;
}

.gallery-item {
  margin: 0;
}

.gallery-image {
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #303b3e;
}

.gallery-item-tall .gallery-image {
  height: 470px;
  background: #f0f4f2;
}

.gallery-image img {
  width: auto;
  max-width: 400px;
  height: 100%;
  object-fit: contain;
}

.gallery-item figcaption {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2px 10px;
  padding-top: 16px;
}

.gallery-item figcaption span {
  grid-row: 1 / 3;
  color: #9ba9a5;
  font-size: 12px;
}

.gallery-item figcaption strong {
  font-size: 16px;
}

.gallery-item figcaption small {
  color: #bfc9c6;
}

.workflow-section {
  background: var(--soft);
}

.workflow-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 70px;
}

.section-heading-vertical {
  align-self: start;
  align-items: flex-start;
  flex-direction: column;
}

.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #cdd4d2;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid #cdd4d2;
}

.workflow-list li > span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.workflow-list h3 {
  margin: 0 0 5px;
  font-size: 19px;
}

.workflow-list p {
  margin: 0;
  color: var(--muted);
}

.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.deep-link-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
  border: 1px solid var(--line);
}

.deep-link-card > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.deep-link-card h2 {
  margin: 32px 0 10px;
  font-size: 27px;
}

.deep-link-card .card-copy {
  margin: 0 0 26px;
  color: var(--muted);
}

.deep-link-card a {
  margin-top: auto;
  font-weight: 700;
}

.deep-link-card-dark {
  color: #ffffff;
  background: var(--dark);
  border-color: var(--dark);
}

.deep-link-card-dark .card-copy {
  color: #c7d0ce;
}

.download-band {
  color: #ffffff;
  background: var(--accent);
}

.download-band-inner {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 38px;
  padding-bottom: 38px;
}

.download-band .section-number {
  color: #ffffff;
}

.download-band h2 {
  margin-top: 8px;
}

.download-band .download-summary {
  margin: 9px 0 0;
  color: #fff2ef;
}

.button-light {
  flex: 0 0 auto;
  color: var(--ink);
  background: #ffffff;
}

.site-footer {
  padding: 52px 0 34px;
  color: #c5cecc;
  background: #151c1e;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand {
  color: #ffffff;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 26px 0 18px;
}

.footer-inner nav a:hover {
  color: #ffffff;
}

.footer-inner p {
  max-width: 760px;
  margin: 0;
  font-size: 13px;
  text-align: center;
}

.footer-inner small {
  margin-top: 14px;
  color: #85918e;
}

.sub-hero {
  color: #ffffff;
  background: var(--dark);
}

.sub-hero-faq {
  background: #293633;
}

.sub-hero-inner {
  min-height: 365px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-top: 54px;
  padding-bottom: 54px;
}

.sub-kicker {
  color: #9cc8b8;
  font-size: 12px;
  font-weight: 800;
}

.sub-hero h1 {
  margin: 18px 0 16px;
  font-size: 45px;
  line-height: 1.2;
}

.sub-hero p {
  max-width: 720px;
  margin: 0;
  color: #d3dbd9;
  font-size: 17px;
}

.sub-hero-index {
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 94px;
  font-weight: 800;
  line-height: 0.78;
  text-align: right;
}

.sub-hero-index small {
  color: #98a6a3;
  font-size: 11px;
}

.article-section,
.faq-section {
  padding: 76px 0 96px;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  justify-content: space-between;
  gap: 70px;
}

.article-toc {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  border-top: 2px solid var(--ink);
}

.article-toc span {
  padding: 14px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.article-toc a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.article-toc a:hover {
  color: var(--accent);
}

.article-content > section {
  padding: 0 0 58px;
  scroll-margin-top: 30px;
}

.article-step {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.article-content h2 {
  margin: 8px 0 18px;
  font-size: 29px;
  line-height: 1.35;
}

.article-content p {
  margin: 0 0 15px;
  color: #465155;
}

.notice {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  margin-top: 24px;
  padding: 20px;
  background: var(--mint);
  border-left: 3px solid #4e8d78;
}

.numbered-steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.numbered-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.numbered-steps li > span {
  color: var(--accent);
  font-weight: 800;
}

.numbered-steps p {
  margin: 2px 0 0;
}

.tip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 23px;
}

.tip-grid > div {
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.tip-grid p {
  margin: 5px 0 0;
}

.article-content a:not(.button) {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.article-action div {
  display: grid;
  gap: 4px;
}

.article-action span {
  color: var(--muted);
  font-size: 14px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 72px;
}

.faq-intro {
  align-self: start;
}

.faq-intro h2 {
  margin: 9px 0 12px;
  font-size: 30px;
}

.faq-intro p {
  margin: 0 0 20px;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-item button span {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.faq-item button small {
  color: var(--accent);
  font-size: 11px;
}

.faq-item button i {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.faq-item button i::before,
.faq-item button i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.faq-item button i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease;
}

.faq-item button[aria-expanded="true"] i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 48px 22px 41px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(24, 32, 35, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.nav-download) {
    padding: 12px 0;
  }

  .site-nav a:not(.nav-download)::after {
    bottom: 7px;
  }

  .nav-download {
    margin-top: 12px;
  }

  .hero {
    background: linear-gradient(180deg, #ffffff 0 53%, #f1f5f3 53% 100%);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-media {
    min-height: 480px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item-tall {
    grid-row: span 2;
  }

  .workflow-layout,
  .article-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section-heading-vertical {
    flex-direction: row;
    align-items: center;
  }

  .article-toc {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .article-toc span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .container,
  .header-inner,
  .hero-inner,
  .footer-inner {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .brand {
    font-size: 19px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .hero-inner {
    min-height: auto;
    gap: 22px;
    padding: 28px 0 22px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-copy > p {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-actions {
    align-items: center;
    flex-direction: row;
    gap: 16px;
    margin-top: 20px;
  }

  .hero-facts {
    display: none;
  }

  .hero-media {
    min-height: 260px;
    justify-content: flex-start;
    padding-left: 14px;
  }

  .media-index {
    top: 0;
    right: 6px;
    font-size: 54px;
  }

  .device-main {
    width: 126px;
  }

  .device-side {
    width: 105px;
    margin-left: -13px;
    transform: translateY(25px);
  }

  .device {
    border-width: 6px;
    border-radius: 16px;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading h2,
  .download-band h2 {
    font-size: 27px;
  }

  .feature-grid,
  .gallery-grid,
  .link-grid,
  .tip-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-wide {
    grid-column: auto;
  }

  .feature-card {
    min-height: 220px;
  }

  .gallery-item-tall {
    grid-row: auto;
  }

  .gallery-image,
  .gallery-item-tall .gallery-image {
    height: 420px;
  }

  .workflow-list li {
    grid-template-columns: 42px 1fr;
  }

  .download-band-inner,
  .article-action,
  .sub-hero-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-band-inner {
    min-height: 260px;
    justify-content: center;
  }

  .sub-hero-inner {
    min-height: 400px;
    justify-content: center;
    gap: 28px;
  }

  .sub-hero h1 {
    font-size: 35px;
  }

  .sub-hero-index {
    font-size: 62px;
    text-align: left;
  }

  .article-section,
  .faq-section {
    padding: 56px 0 72px;
  }

  .article-toc {
    grid-template-columns: 1fr 1fr;
  }

  .article-content h2 {
    font-size: 25px;
  }

  .notice {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .faq-item button {
    align-items: flex-start;
  }

  .faq-item button span {
    align-items: flex-start;
  }

  .faq-answer {
    padding-left: 0;
    padding-right: 0;
  }
}
