:root {
  color-scheme: light;
  --guide-bg: #f7f5ef;
  --guide-surface: #ffffff;
  --guide-surface-soft: #f1f6ef;
  --guide-ink: #17231b;
  --guide-muted: #657067;
  --guide-green: #237d47;
  --guide-green-dark: #155e35;
  --guide-green-deep: #0d4a2b;
  --guide-green-soft: #e3efe2;
  --guide-orange: #dc9417;
  --guide-orange-soft: #fff3d9;
  --guide-line: #d8ddd5;
  --guide-shadow: 0 18px 50px rgba(19, 64, 37, 0.1);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--guide-ink);
  background: var(--guide-bg);
  font-size: 16px;
  line-height: 1.7;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--guide-orange);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--guide-green-deep);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.guide-shell {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.guide-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(216, 221, 213, 0.9);
  background: rgba(247, 245, 239, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.guide-brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--guide-green-dark);
  font-size: 22px;
  font-weight: 800;
}

.guide-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--guide-green-dark);
  font-weight: 700;
}

.header-actions .header-support {
  color: #ffffff;
  background: var(--guide-green-dark);
}

.guide-hero {
  padding: 48px 0 40px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 12%, rgba(220, 148, 23, 0.22) 0 12%, transparent 36%),
    linear-gradient(135deg, var(--guide-green-deep), var(--guide-green-dark));
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.platform-label {
  margin: 0 0 8px;
  color: var(--guide-green);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-kicker {
  color: #d7eadc;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 620px;
  margin: 16px 0 0;
  color: #e3efe7;
  font-size: clamp(17px, 2vw, 20px);
}

.platform-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.platform-action {
  min-width: 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  color: var(--guide-ink);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(4, 35, 19, 0.14);
}

.platform-action span {
  color: var(--guide-green);
  font-size: 13px;
  font-weight: 800;
}

.platform-action strong {
  margin-top: 6px;
  color: var(--guide-green-dark);
  font-size: 19px;
  line-height: 1.35;
}

.platform-action small {
  margin-top: 8px;
  color: var(--guide-muted);
  font-size: 14px;
  line-height: 1.5;
}

.platform-action::after {
  content: "查看步骤 →";
  margin-top: auto;
  padding-top: 14px;
  color: var(--guide-green-dark);
  font-size: 14px;
  font-weight: 800;
}

.platform-action:active,
.guide-button:active,
.support-card:active {
  transform: translateY(1px);
}

.guide-jump-nav {
  border-bottom: 1px solid var(--guide-line);
  background: var(--guide-surface);
}

.jump-links {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
}

.jump-links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: var(--guide-green-dark);
  font-weight: 700;
}

.guide-content {
  padding: 64px 0 80px;
}

.guide-section + .guide-section {
  margin-top: 78px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.section-number {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: var(--guide-green-dark);
  font-size: 14px;
  font-weight: 800;
}

.section-heading h2,
.manual-section h2,
.contact-section h2 {
  margin: 0;
  color: var(--guide-green-dark);
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.section-heading p,
.manual-section p,
.contact-copy p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--guide-muted);
}

.install-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 32px;
  padding: 32px;
  border: 1px solid var(--guide-line);
  border-radius: 22px;
  background: var(--guide-surface);
  box-shadow: var(--guide-shadow);
}

.install-panel + .install-panel,
.install-panel + .web-panel {
  margin-top: 22px;
}

.install-copy h3,
.web-panel h3,
.validation-card h3 {
  margin: 0;
  color: var(--guide-green-dark);
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.3;
}

.numbered-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 24px 0 26px;
  padding: 0;
  list-style: none;
}

.numbered-steps li {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.numbered-steps li > span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--guide-green-dark);
  background: var(--guide-green-soft);
  font-size: 13px;
  font-weight: 800;
}

.numbered-steps p {
  margin: 0;
  color: #34443a;
}

.guide-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
}

.guide-button-primary {
  color: #ffffff;
  background: var(--guide-green-dark);
}

.guide-button-secondary {
  border-color: var(--guide-green);
  color: var(--guide-green-dark);
  background: var(--guide-surface);
}

.download-name {
  margin: 10px 0 0;
  color: var(--guide-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.guide-visual {
  align-self: start;
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  background: var(--guide-surface-soft);
}

.guide-visual img {
  width: 100%;
  max-height: 500px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
}

.guide-visual figcaption,
.product-guide-grid figcaption,
.account-visual figcaption {
  margin-top: 10px;
  color: var(--guide-muted);
  font-size: 13px;
  text-align: center;
}

.iphone-panel {
  display: block;
  background: #fffdf8;
}

.verified-notice {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--guide-green);
  border-radius: 8px 12px 12px 8px;
  background: var(--guide-green-soft);
}

.verified-notice strong {
  color: var(--guide-green-dark);
}

.verified-notice p {
  margin: 5px 0 0;
  color: #405247;
}

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

.iphone-step {
  padding: 20px;
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  background: var(--guide-surface);
}

.iphone-step-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: start;
  gap: 24px;
}

.iphone-step-copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.iphone-step-number {
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--guide-green-dark);
  font-size: 13px;
  font-weight: 800;
}

.iphone-step h4 {
  color: var(--guide-green-dark);
  font-size: 19px;
}

.iphone-step-copy p {
  margin: 7px 0 0;
  color: var(--guide-muted);
}

.iphone-evidence {
  margin: 0;
  min-width: 0;
}

.iphone-evidence img {
  display: block;
  width: 100%;
  max-height: 420px;
  border: 1px solid #25292d;
  border-radius: 14px;
  background: #17181a;
  object-fit: contain;
}

.iphone-evidence-wide img {
  max-height: 250px;
}

.iphone-evidence-login img {
  max-height: 520px;
  border-color: var(--guide-line);
  background: var(--guide-green-soft);
}

.iphone-evidence figcaption {
  margin-top: 8px;
  color: var(--guide-muted);
  font-size: 13px;
  text-align: center;
}

.iphone-step-success {
  border-color: #bdd8c4;
  background: var(--guide-green-soft);
}

.web-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 32px;
  border-radius: 18px;
  background: var(--guide-green-soft);
}

.web-panel p:not(.platform-label) {
  max-width: 620px;
  margin: 8px 0 0;
  color: #405247;
}

.web-panel .guide-button {
  flex: 0 0 auto;
}

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

.workflow-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  background: var(--guide-surface);
}

.workflow-card-wide {
  grid-column: 1 / -1;
  background: var(--guide-green-soft);
}

.workflow-step {
  display: block;
  margin-bottom: 12px;
  color: var(--guide-orange);
  font-size: 14px;
  font-weight: 900;
}

.workflow-card h3,
.management-grid h3 {
  margin: 0;
  color: var(--guide-green-dark);
  font-size: 21px;
}

.workflow-card p,
.management-grid p {
  margin: 8px 0 0;
  color: var(--guide-muted);
}

.product-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.product-guide-grid figure,
.account-visual {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  background: var(--guide-surface);
}

.product-guide-grid img {
  width: 100%;
  height: 360px;
  border-radius: 11px;
  object-fit: cover;
  object-position: top;
}

.management-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
}

.account-visual img {
  width: 100%;
  max-height: 570px;
  border-radius: 11px;
  object-fit: cover;
  object-position: top;
}

.management-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.management-grid article {
  padding: 24px;
  border-radius: 16px;
  background: var(--guide-surface);
}

.management-grid article:nth-child(2) {
  background: var(--guide-green-soft);
}

.management-grid article:nth-child(3) {
  border: 1px solid #ead8b5;
  background: var(--guide-orange-soft);
}

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

.faq-list details {
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: var(--guide-surface);
}

.faq-list summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 14px 52px 14px 20px;
  color: var(--guide-green-dark);
  font-weight: 800;
  cursor: pointer;
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--guide-line);
}

.faq-list details > p {
  margin: 0;
  padding: 18px 20px;
  color: #425148;
}

.faq-list details > p + p {
  padding-top: 0;
}

.faq-list .faq-warning {
  color: #694505;
  font-weight: 700;
}

.manual-section,
.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  border-radius: 20px;
}

.manual-section {
  border: 1px solid var(--guide-line);
  background: var(--guide-surface);
}

.contact-section {
  color: #ffffff;
  background: var(--guide-green-deep);
}

.contact-section .platform-label,
.contact-section h2 {
  color: #ffffff;
}

.contact-copy p {
  color: #d7eadc;
}

.support-grid {
  min-width: 420px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.support-card {
  min-width: 0;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: var(--guide-ink);
  background: #ffffff;
}

.support-card span,
.support-card small {
  color: var(--guide-muted);
  font-size: 13px;
}

.support-card strong {
  margin: 4px 0;
  color: var(--guide-green-dark);
  font-size: 18px;
}

.support-value {
  overflow-wrap: anywhere;
}

.guide-footer {
  padding: 28px 0;
  border-top: 1px solid var(--guide-line);
  color: var(--guide-muted);
  background: var(--guide-surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-inner a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: var(--guide-green-dark);
  font-weight: 700;
}

@media (hover: hover) {
  .platform-action:hover,
  .support-card:hover {
    border-color: var(--guide-green);
  }

  .header-actions a:hover,
  .jump-links a:hover,
  .footer-inner a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (max-width: 900px) {
  .install-panel,
  .iphone-panel {
    grid-template-columns: 1fr;
  }

  .iphone-step-with-image {
    grid-template-columns: 1fr;
  }

  .guide-visual {
    display: none;
  }

  .management-layout {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  }

  .manual-section,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-grid {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .guide-shell {
    width: min(calc(100% - 28px), 1080px);
  }

  .header-inner {
    min-height: 62px;
  }

  .guide-brand {
    font-size: 19px;
  }

  .guide-brand img {
    width: 34px;
    height: 34px;
  }

  .header-actions a {
    padding: 0 11px;
    font-size: 14px;
  }

  .header-actions a:first-child {
    display: none;
  }

  .guide-hero {
    padding: 34px 0 30px;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .hero-lead {
    margin-top: 12px;
    font-size: 16px;
  }

  .platform-actions,
  .workflow-grid,
  .management-grid,
  .product-guide-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .platform-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .platform-action {
    min-height: 126px;
    padding: 16px 18px;
  }

  .platform-action::after {
    padding-top: 10px;
  }

  .jump-links {
    min-height: 54px;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .jump-links::-webkit-scrollbar {
    display: none;
  }

  .jump-links a {
    flex: 0 0 auto;
    padding: 0 10px;
  }

  .guide-content {
    padding: 46px 0 64px;
  }

  .guide-section + .guide-section {
    margin-top: 58px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 20px;
  }

  .section-number {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }

  .section-heading h2,
  .manual-section h2,
  .contact-section h2 {
    font-size: 27px;
  }

  .install-panel {
    gap: 20px;
    padding: 22px 18px;
    border-radius: 17px;
  }

  .install-copy h3,
  .web-panel h3 {
    font-size: 24px;
  }

  .numbered-steps {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0 24px;
  }

  .guide-button {
    width: 100%;
  }

  .iphone-step {
    padding: 18px;
  }

  .iphone-evidence img,
  .iphone-evidence-login img {
    max-height: 460px;
  }

  .web-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 22px 18px;
  }

  .workflow-card-wide {
    grid-column: auto;
  }

  .workflow-card,
  .management-grid article {
    padding: 20px;
  }

  .product-guide-grid img {
    height: 420px;
  }

  .management-layout {
    grid-template-columns: 1fr;
  }

  .account-visual img {
    max-height: 500px;
  }

  .faq-list summary {
    padding-left: 17px;
    padding-right: 38px;
  }

  .faq-list details > p {
    padding: 16px 17px;
  }

  .faq-list details > p + p {
    padding-top: 0;
  }

  .manual-section,
  .contact-section {
    gap: 22px;
    padding: 24px 20px;
    border-radius: 17px;
  }

  .support-card {
    min-height: 112px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .guide-shell {
    width: min(calc(100% - 22px), 1080px);
  }

  .header-actions .header-support {
    padding: 0 10px;
  }

  .platform-action strong {
    font-size: 18px;
  }

  .product-guide-grid img {
    height: 380px;
  }
}

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