:root {
  color-scheme: light;
  --brand: #ee3c23;
  --brand-start: #fc6753;
  --brand-end: #ff3f36;
  --brand-soft: #ffeae8;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --page: #f5f4f5;
  --card: #ffffff;
  --control: #f8f8f8;
  --divider: #eeeeee;
  --warning-bg: #fffce8;
  --warning-text: #b76b29;
  --success: #179839;
  --link: #258cf2;
  --overlay: rgba(0, 0, 0, 0.72);
  --font-10: 10px;
  --font-12: 12px;
  --font-14: 14px;
  --font-16: 16px;
  --font-18: 18px;
  --font-20: 20px;
  --line-10: 14px;
  --line-12: 17px;
  --line-14: 20px;
  --line-16: 22px;
  --line-18: 24px;
  --line-20: 28px;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-pill: 24px;
  --content-width: 1180px;
  --font-ui: "PingFang SC", "SF Pro Text", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
}

html[data-text-scale="large"] {
  --font-10: 12px;
  --font-12: 14px;
  --font-14: 16px;
  --font-16: 18px;
  --font-18: 20px;
  --font-20: 20px;
  --line-10: 17px;
  --line-12: 20px;
  --line-14: 22px;
  --line-16: 24px;
  --line-18: 28px;
  --line-20: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: var(--font-14);
  line-height: var(--line-14);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

p,
h1,
h2,
h3,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 16px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-m);
  background: var(--text-primary);
  color: #ffffff;
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}

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

.reading-progress {
  position: fixed;
  z-index: 999;
  inset: 0 0 auto;
  height: 2px;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
}

.site-header {
  background: var(--card);
  color: var(--text-primary);
}

.topbar,
.hero,
.page-layout {
  width: min(var(--content-width), calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--divider);
}

.brand,
.top-actions {
  display: flex;
  align-items: center;
}

.brand {
  min-height: 44px;
  gap: 12px;
  color: var(--text-primary);
  font-size: var(--font-14);
  font-weight: 600;
}

.brand img {
  width: auto;
  height: 24px;
}

.top-actions {
  gap: 4px;
}

.top-actions button {
  min-width: 56px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--font-14);
}

.top-actions button:hover,
.top-actions button[aria-pressed="true"] {
  background: var(--brand-soft);
  color: var(--brand);
}

.hero {
  display: grid;
  min-height: 340px;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  gap: 32px;
  align-items: center;
  padding-block: 48px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: var(--font-12);
  line-height: var(--line-12);
  font-weight: 600;
}

.eyebrow span {
  width: 20px;
  height: 2px;
  background: var(--brand);
}

.hero h1 {
  margin-top: 12px;
  color: var(--text-primary);
  font-size: var(--font-20);
  line-height: var(--line-20);
}

.lead {
  max-width: 620px;
  margin-top: 12px;
  font-size: var(--font-16);
  line-height: var(--line-16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: var(--font-16);
  line-height: var(--line-16);
  font-weight: 600;
}

.primary-button {
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  color: #ffffff;
}

.secondary-button {
  border: 1px solid var(--brand);
  background: var(--card);
  color: var(--brand);
}

.hero-guide {
  padding: 24px;
  border: 1px solid var(--divider);
  border-top: 3px solid var(--brand);
  background: var(--card);
}

.guide-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: var(--font-16);
  line-height: var(--line-16);
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.mini-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 20px;
  padding: 0;
  background: var(--divider);
  list-style: none;
}

.mini-flow li {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--control);
  text-align: center;
}

.mini-flow b {
  color: var(--brand);
  font-size: var(--font-12);
}

.mini-flow span {
  color: var(--text-primary);
  font-size: var(--font-10);
  font-weight: 600;
}

.hero-guide > p {
  margin-top: 16px;
  color: var(--text-tertiary);
  font-size: var(--font-12);
  line-height: var(--line-12);
}

.page-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-block: 24px 48px;
}

.side-nav {
  position: sticky;
  top: 16px;
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: var(--radius-l);
  background: var(--card);
}

.nav-toggle {
  display: none;
}

.nav-list {
  display: grid;
  padding: 8px;
}

.nav-list a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-m);
  color: var(--text-secondary);
  font-size: var(--font-14);
}

.nav-list a span {
  color: var(--text-tertiary);
  font-size: var(--font-10);
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.nav-list a.active span {
  color: var(--brand);
}

.side-note {
  margin: 0 12px 12px;
  padding: 14px;
  border-left: 3px solid var(--brand);
  background: var(--control);
}

.side-note b {
  color: var(--text-primary);
  font-size: var(--font-14);
}

.side-note p {
  margin-top: 6px;
  font-size: var(--font-12);
  line-height: var(--line-12);
}

main {
  min-width: 0;
}

.section {
  margin-bottom: 16px;
  padding: 28px;
  border-radius: var(--radius-l);
  background: var(--card);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-no {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: var(--font-14);
  font-weight: 700;
}

.section-heading p {
  color: var(--brand);
  font-size: var(--font-10);
  line-height: var(--line-10);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  color: var(--text-primary);
  font-size: var(--font-20);
  line-height: var(--line-20);
}

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-m);
}

.callout.warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.callout.info {
  margin-top: 16px;
  background: #eef7ff;
  color: #356d9b;
}

.callout-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: var(--font-12);
  font-weight: 700;
}

.callout b {
  color: currentColor;
}

.callout p {
  margin-top: 4px;
  font-size: var(--font-12);
  line-height: var(--line-12);
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border-top: 2px solid var(--brand);
  background: var(--control);
}

.workflow-list li > span {
  color: var(--brand);
  font-size: var(--font-12);
  font-weight: 700;
}

.workflow-list b,
.info-card h3,
.step-card h3,
.success-card h3 {
  color: var(--text-primary);
}

.workflow-list b {
  display: block;
  margin-top: 8px;
  font-size: var(--font-14);
}

.workflow-list p {
  margin-top: 4px;
  color: var(--text-tertiary);
  font-size: var(--font-12);
  line-height: var(--line-12);
}

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

.info-card,
.step-card {
  padding: 20px;
  border: 1px solid var(--divider);
  background: var(--card);
}

.info-card.tint {
  border-color: #ffd4cf;
  background: #fff8f7;
}

.term-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.term-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
}

.term-list dt {
  color: var(--brand);
  font-weight: 700;
}

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

.check-list li {
  position: relative;
  padding-left: 20px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--brand);
  content: "✓";
  font-weight: 700;
}

.shot-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.shot-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shot-grid.wide-first {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

.shot-card {
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: var(--radius-l);
  background: var(--card);
}

.shot-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--control);
}

.screen {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1440 / 3120;
  background: #e7e7e7;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ring {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border: 3px solid var(--brand);
  border-radius: var(--radius-m);
  background: rgba(238, 60, 35, 0.05);
  pointer-events: none;
}

.ring i {
  position: absolute;
  top: -13px;
  right: -13px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: var(--font-12);
  font-style: normal;
  font-weight: 700;
}

/* 标注点使用真机控件中心坐标；小圆点避免遮挡按钮文字。 */
.ring.marker {
  left: var(--x);
  top: var(--y);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-width: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 5px rgba(238, 60, 35, 0.2);
}

.ring.marker i {
  position: static;
  width: 22px;
  height: 22px;
  border: 0;
  font-size: var(--font-10);
}

.shot-button:hover .screen img {
  opacity: 0.96;
}

.shot-card figcaption {
  display: grid;
  gap: 5px;
  padding: 14px 16px 16px;
  text-align: left;
}

.shot-card figcaption b {
  color: var(--text-primary);
  font-size: var(--font-14);
}

.shot-card figcaption span {
  font-size: var(--font-12);
  line-height: var(--line-12);
}

.shot-card figcaption i {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: var(--font-10);
  font-style: normal;
}

.step-card.compact {
  margin-top: 16px;
}

.step-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: var(--font-12);
  font-weight: 600;
}

.stack {
  display: grid;
  gap: 16px;
}

.stack .callout.info {
  margin-top: 0;
}

.range-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-size: var(--font-14);
}

.range-table th,
.range-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  text-align: left;
}

.range-table th {
  color: var(--text-tertiary);
  font-size: var(--font-12);
  font-weight: 600;
}

.range-table-compact td {
  color: var(--text-primary);
  text-align: center;
  font-weight: 600;
}

.path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finish-success {
  min-height: 0;
  margin-top: 16px;
}

.range-table td:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.number-steps {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.number-steps.horizontal {
  grid-template-columns: repeat(4, 1fr);
}

.number-steps li {
  display: flex;
  gap: 10px;
}

.number-steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: var(--font-12);
  font-weight: 700;
}

.number-steps b {
  color: var(--text-primary);
  font-size: var(--font-14);
}

.number-steps p {
  margin-top: 4px;
  color: var(--text-tertiary);
  font-size: var(--font-12);
  line-height: var(--line-12);
}

.delivery-card {
  margin-top: 16px;
}

.finish-grid {
  margin-top: 16px;
  align-items: stretch;
}

.success-card {
  display: flex;
  min-height: 100%;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid #cce8d2;
  border-radius: var(--radius-l);
  background: #f1fbf3;
}

.success-card > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #ffffff;
  font-size: var(--font-18);
  font-weight: 700;
}

.success-card p {
  margin-top: 10px;
}

.issue-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.issue-grid article,
.faq-grid details {
  padding: 18px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-m);
  background: var(--control);
}

.issue-grid b,
.faq-grid summary {
  color: var(--text-primary);
  font-weight: 700;
}

.issue-grid p,
.faq-grid p {
  margin-top: 8px;
  font-size: var(--font-12);
  line-height: var(--line-12);
}

.faq-grid summary {
  min-height: 28px;
  cursor: pointer;
}

.final-check {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 20px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
}

.final-check b {
  color: var(--text-primary);
}

.final-check p {
  margin-top: 4px;
}

.final-check a {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-pill);
  color: var(--brand);
  font-weight: 600;
}

footer {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px;
  border-top: 1px solid var(--divider);
  background: var(--card);
  color: var(--text-tertiary);
  font-size: var(--font-12);
}

footer img {
  width: auto;
  height: 22px;
  filter: grayscale(1);
  opacity: 0.7;
}

.lightbox {
  width: min(94vw, 660px);
  max-height: 94vh;
  padding: 20px;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--card);
}

.lightbox::backdrop {
  background: var(--overlay);
}

.lightbox-close {
  position: sticky;
  z-index: 4;
  top: 0;
  display: grid;
  width: 36px;
  height: 36px;
  margin: -10px -10px 8px auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--text-primary);
  color: #ffffff;
  font-size: var(--font-20);
}

.lightbox-image {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
  overflow: hidden;
  aspect-ratio: 1440 / 3120;
  background: #e7e7e7;
}

.lightbox-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-image [data-lightbox-rings] {
  position: absolute;
  inset: 0;
}

.lightbox > p {
  margin-top: 12px;
  color: var(--text-primary);
  text-align: center;
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .side-nav {
    z-index: 10;
    top: 4px;
  }

  .nav-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border: 0;
    background: var(--card);
    color: var(--text-primary);
    font-weight: 600;
  }

  .nav-list,
  .side-note {
    display: none;
  }

  .side-nav.open .nav-list {
    display: grid;
  }

  .workflow-list {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 720px) {
  .topbar,
  .hero,
  .page-layout {
    width: calc(100% - 24px);
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-block: 32px;
  }

  .hero-guide {
    padding: 18px;
  }

  .mini-flow {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    overflow-x: auto;
  }

  .page-layout {
    gap: 12px;
    padding-top: 12px;
  }

  .section {
    margin-bottom: 12px;
    padding: 20px 16px;
  }

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

  .shot-grid.two,
  .shot-grid.three,
  .shot-grid.wide-first,
  .two-col,
  .issue-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

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

  .range-table-compact {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .shot-card {
    width: min(100%, 390px);
    margin-inline: auto;
  }

  .step-card {
    width: 100%;
  }

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

  .final-check {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .hero-actions > a {
    width: 100%;
  }

  .workflow-list,
  .number-steps.horizontal {
    grid-template-columns: 1fr;
  }

  .workflow-list li {
    min-height: 92px;
  }

  .term-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .reading-progress,
  .top-actions,
  .side-nav,
  .hero-actions,
  .lightbox,
  .final-check a {
    display: none !important;
  }

  body,
  .site-header,
  .section {
    background: #ffffff;
  }

  .hero,
  .page-layout {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px;
  }

  .page-layout {
    display: block;
    padding: 0;
  }

  .section {
    break-inside: avoid;
    margin: 0;
    padding: 20px 24px;
    border-radius: 0;
  }

  .shot-card,
  .info-card,
  .step-card,
  details {
    break-inside: avoid;
  }
}
