/* ======================================================================
   1. Apple Light Pro Design System & Snipaste-style Clarity
   ====================================================================== */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --bg-page: #fbfbfd;
  --bg-surface: #ffffff;
  --bg-subtle: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;

  --text-primary: #1d1d1f;
  --text-secondary: #515154;
  --text-tertiary: #6e6e73;

  --line-hairline: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.15);

  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.09);

  --green: #16803c;
  --green-soft: rgba(22, 128, 60, 0.11);
  --violet: #6e3ff3;
  --violet-soft: rgba(110, 63, 243, 0.11);
  --amber: #9a5b00;
  --amber-soft: rgba(180, 108, 0, 0.11);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.08);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 980px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-gutter: clamp(22px, 4.5vw, 106px);
  --nav-gutter: clamp(20px, 3.2vw, 80px);
  --wrap-max: 1800px;
  --nav-height: clamp(68px, 4vw, 82px);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0;
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
}

.ico {
  width: 1.13em;
  height: 1.13em;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ======================================================================
   2. Apple Frosted Navigation
   ====================================================================== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-hairline);
}

.nav-shell {
  height: 100%;
  display: grid;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.7vw, 32px);
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  width: calc(100% - var(--nav-gutter) - var(--nav-gutter));
  max-width: 2160px;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, .7vw, 15px);
  font-size: clamp(17px, 1.08vw, 23px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  justify-self: start;
}

.identity img {
  border-radius: 7px;
  background: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.75vw, 64px);
  font-size: clamp(16px, 1vw, 20px);
  color: var(--text-secondary);
  font-weight: 550;
  justify-self: center;
}

.masthead .identity img { width: clamp(36px, 2.2vw, 50px); height: auto; }
.nav-links a { position: relative; padding: 8px 3px; white-space: nowrap; }
.nav-links a[aria-current="location"]::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 1px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-links a:hover,
.nav-links a[aria-current="location"] {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px clamp(16px,1.05vw,24px);
  border-radius: var(--radius-pill);
  background: var(--text-primary);
  color: #ffffff;
  font-size: clamp(14px, .91vw, 18px);
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s var(--ease);
  min-height: 40px;
}

.nav-download:hover,
.nav-download[aria-current="location"] {
  background: #333336;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line-hairline);
  background: var(--bg-surface);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* ======================================================================
   3. Hero Section (Apple Clean Typography + Visual Stage)
   ====================================================================== */
.hero {
  padding: clamp(44px, 5vw, 74px) 0 clamp(48px, 5.5vw, 92px);
  background:
    radial-gradient(ellipse 46% 62% at 24% 28%, rgba(186, 230, 253, 0.62) 0%, rgba(219, 234, 254, 0.28) 46%, transparent 76%),
    radial-gradient(ellipse 44% 64% at 76% 36%, rgba(216, 212, 255, 0.56) 0%, rgba(224, 231, 255, 0.26) 48%, transparent 78%),
    linear-gradient(180deg, #f3f9ff 0%, #f6f8ff 58%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
  gap: clamp(32px, 4.3vw, 94px);
  align-items: center;
}

.platform-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--line-hairline);
  font-size: clamp(13px, .85vw, 17px);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.platform-mark {
  display: inline-flex;
  color: var(--accent);
}

.hero-copy h1 {
  font-size: clamp(33px, 4.2vw, 82px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: clamp(18px,1.3vw,28px);
}

.hero-copy h1 span {
  color: var(--accent);
}

.hero-copy p {
  font-size: clamp(18px,1.23vw,24px);
  color: var(--text-secondary);
  max-width: 29em;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.button {
  height: clamp(46px,2.95vw,60px);
  padding: 0 clamp(22px,1.55vw,34px);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(16px,1vw,20px);
  font-weight: 500;
  border: none;
  transition: background-color .4s, border-color .4s, transform .4s var(--ease), box-shadow .4s;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.22);
}

.button.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(16px,1vw,20px);
  font-weight: 500;
  color: var(--accent);
}

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

/* 三步工作流条 */
.feature-strip {
  margin-top: clamp(28px,2.5vw,56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px,1.4vw,30px);
}

.feature-strip a {
  display: flex;
  align-items: center;
  gap: clamp(12px,1.2vw,24px);
  padding: clamp(19px,1.45vw,30px) clamp(16px,1.6vw,36px);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--line-hairline);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease);
}

.feature-strip a:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: clamp(42px,2.8vw,58px);
  height: clamp(42px,2.8vw,58px);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: clamp(18px,1.15vw,25px);
}

.tint-violet { background: var(--violet-soft); color: var(--violet); }
.tint-green { background: var(--green-soft); color: var(--green); }
.tint-blue { background: var(--accent-soft); color: var(--accent); }

.feature-strip strong {
  display: block;
  font-size: clamp(17px,1.12vw,23px);
  font-weight: 600;
  color: var(--text-primary);
}

.feature-strip small {
  display: block;
  font-size: clamp(14px,.9vw,18px);
  color: var(--text-tertiary);
}

.feature-arrow {
  margin-left: auto;
  color: var(--text-tertiary);
}

/* ======================================================================
   4. Studio Interactive Section
   ====================================================================== */
.studio-section,
.product-section,
.download-section,
.questions {
  padding: clamp(48px, 5.5vw, 88px) 0;
}

.studio-section,
.download-section {
  background: var(--bg-surface);
}

.product-section,
.questions {
  background: #f7f9fc;
  border-top: 1px solid rgba(226, 234, 246, 0.7);
}

.product-section {
  border-bottom: 1px solid rgba(226, 234, 246, 0.7);
}

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-intro h2,
.download-copy h2,
.questions h2 {
  font-size: clamp(35px,3.35vw,62px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
}

/* ======================================================================
   5. Desktop Download Panel
   ====================================================================== */
.download-section { scroll-margin-top: var(--nav-height); }

.download-panel {
  background: var(--bg-surface);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-xl);
  padding: clamp(38px,4.3vw,88px) clamp(32px,4.6vw,98px);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.download-copy .download-description {
  max-width: 40em;
  margin: clamp(16px,1.1vw,22px) 0 0;
  font-size: clamp(16px,1.08vw,21px);
  color: var(--text-secondary);
}

.download-copy .download-meta {
  margin: 8px 0 0;
  color: var(--text-tertiary);
  font-size: 14px;
}

.download-actions {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: clamp(22px,1.6vw,32px);
}

.download-actions > .button {
  padding-inline: clamp(16px,1.5vw,29px);
  transition: background-color .2s, box-shadow .22s var(--ease), transform .22s var(--ease);
}

.download-actions > .button .ico { transition: transform .22s var(--ease); }

@media (hover: hover) {
  .download-actions > .button:hover .ico { transform: translateX(3px); }
}

.download-actions > .button:active { transform: scale(.98); }

.download-extraction:not([hidden]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

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

.download-pending,
.download-extraction {
  color: var(--text-secondary);
  font-size: 14px;
}

.download-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.download-code code {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .05em;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--bg-subtle);
  user-select: all;
}

.download-extraction button {
  min-height: 44px;
  min-inline-size: 7em;
  padding: 0 10px;
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: #005ebd;
  font-size: inherit;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s var(--ease);
}

.download-extraction button:hover { background: var(--accent-soft); }
.download-extraction button:active { transform: scale(.97); }
.download-extraction button[data-copy-state="copied"] {
  color: var(--green);
  background: var(--green-soft);
  border-color: transparent;
}

.download-copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.download-copy .download-feedback {
  margin: clamp(20px,1.5vw,28px) 0 0;
  font-size: 15px;
}

.download-feedback .text-link { font-size: inherit; }

@media (prefers-reduced-motion: reduce) {
  .download-actions > .button:is(:hover, :active),
  .download-actions > .button:hover .ico,
  .download-extraction button:active { transform: none; }
}

.app-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.art-halo {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.14), transparent 72%);
}

.art-tile {
  position: relative;
  width: clamp(154px,11.3vw,236px);
  height: auto;
  border-radius: 34px;
  background: var(--bg-page);
  border: 1px solid var(--line-hairline);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.art-tile img { width: 73%; height: auto; }

.art-reflection {
  width: 104px;
  height: 12px;
  margin-top: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.12), transparent 75%);
}

/* ======================================================================
   6. FAQ & Footer
   ====================================================================== */
.questions-grid {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 40px;
  align-items: start;
}

.questions-list details {
  border-bottom: 1px solid var(--line-hairline);
  padding: 18px 0;
}

.questions-list summary {
  list-style: none;
  font-size: clamp(17px,1.16vw,23px);
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.questions-list details p {
  margin-top: 12px;
  font-size: clamp(16px,1vw,20px);
  color: var(--text-secondary);
}

.software-feedback:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 24px;
  padding: clamp(18px, 2vw, 30px);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.software-feedback h3 {
  font-size: clamp(20px, 1.4vw, 26px);
  font-weight: 600;
}

.software-feedback p {
  margin-top: 4px;
  color: var(--text-secondary);
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(226, 234, 246, 0.7);
  background: #f4f8ff;
  font-size: clamp(14px,.93vw,18px);
  color: var(--text-tertiary);
}

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

.footer-inner > div {
  display: flex;
  gap: 20px;
}

.footer-inner > div a:hover {
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .hero-grid,
  .download-panel,
  .questions-grid {
    grid-template-columns: 1fr;
  }
  .feature-strip {
    grid-template-columns: 1fr;
  }
  .download-panel {
    padding: 36px 24px;
  }
}

@media (max-width: 380px) {
  .download-panel { padding-inline: 20px; }
  .download-copy h2 { text-wrap: balance; }
  .download-copy .download-meta { font-size: 13px; }
  .download-extraction:not([hidden]) { column-gap: 6px; }
}

@media (max-width: 1080px) {
  :root { --nav-height: 62px; }
  .nav-shell { display: flex; justify-content: space-between; }
  .nav-links a[aria-current="location"]::after { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(251, 251, 253, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line-hairline);
  }
  .nav-links[data-open] {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
  }
}
