:root {
  color-scheme: dark;
  --bg: #0b1117;
  --surface: #111a22;
  --surface-2: #16222b;
  --text: #edf7f5;
  --muted: #9fb1b0;
  --line: #26343c;
  --accent: #38c7b4;
  --accent-strong: #1ba591;
  --accent-ink: #062e29;
  --shadow: rgba(2, 14, 18, .42);
  --radius: 14px;
  --shell: min(1180px, calc(100vw - 48px));
  font-family: "MiSans", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 20; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -.02em; white-space: nowrap; }
.brand img, .footer-brand img { border-radius: 10px; }
.site-nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--text); }
.menu-button { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 9px; padding: 8px 12px; font: inherit; }

.hero { min-height: calc(100dvh - 68px); display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: clamp(44px, 6vw, 88px); padding-block: 72px 64px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; max-width: 10ch; font-size: clamp(46px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
h2 { margin-bottom: 18px; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.12; letter-spacing: -.045em; }
h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.hero-lead { max-width: 25em; margin-bottom: 32px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 10px; font-weight: 720; white-space: nowrap; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: #57d7c5; }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.button-secondary:hover { border-color: var(--muted); }
.product-frame { margin: 0; overflow: hidden; border: 1px solid #31414b; border-radius: var(--radius); background: #0e1019; box-shadow: 0 36px 80px var(--shadow); }
.hero-visual { transform: perspective(1400px) rotateY(-2.4deg) rotateX(1deg); }
.hero-visual img { width: 100%; }

.fact-strip { border-block: 1px solid var(--line); background: var(--surface); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts p { margin: 0; padding: 25px 28px; display: grid; gap: 2px; border-right: 1px solid var(--line); }
.facts p:first-child { padding-left: 0; }
.facts p:last-child { border-right: 0; }
.facts strong { font-size: 13px; color: var(--accent); }
.facts span { color: var(--muted); }

.section { padding-block: clamp(88px, 10vw, 144px); }
.section-heading { max-width: 710px; margin-bottom: 52px; }
.section-heading > p:not(.eyebrow) { max-width: 56ch; color: var(--muted); font-size: 17px; }
.capability-grid { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: "large visual" "basic basic2" "wide wide"; gap: 14px; }
.capability { min-height: 255px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.capability > p:last-child { margin-bottom: 0; max-width: 48ch; color: var(--muted); }
.capability-index { margin-bottom: 52px; color: var(--accent); font-weight: 800; }
.capability-large { grid-area: large; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 13%, var(--surface)), var(--surface) 55%); }
.capability-large .capability-index { margin-bottom: auto; }
.capability-visual { grid-area: visual; padding: 0; overflow: hidden; }
.capability-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.capability-wide { grid-area: wide; min-height: 220px; display: grid; grid-template-columns: 80px minmax(180px, .7fr) 1.3fr; align-items: center; gap: 20px; }
.capability-wide .capability-index, .capability-wide h3, .capability-wide p { margin: 0; }

.workspace-section { background: var(--surface); border-block: 1px solid var(--line); }
.workspace-layout { display: grid; grid-template-columns: .68fr 1.32fr; gap: clamp(42px, 6vw, 84px); align-items: center; }
.workspace-copy > p { color: var(--muted); }
.workspace-list { margin: 38px 0 0; }
.workspace-list div { display: grid; grid-template-columns: 78px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.workspace-list dt { color: var(--accent); font-weight: 720; }
.workspace-list dd { margin: 0; color: var(--muted); }
.workspace-visual figcaption { padding: 12px 16px; border-top: 1px solid #31414b; color: var(--muted); font-size: 12px; }

.credits-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(48px, 8vw, 112px); }
.credits-section .section-heading { margin-bottom: 0; }
.delivery-flow { margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.delivery-flow li { counter-increment: flow; position: relative; display: grid; gap: 4px; padding: 0 0 34px 62px; }
.delivery-flow li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 48px; bottom: 8px; width: 1px; background: var(--line); }
.delivery-flow li::before { content: counter(flow); position: absolute; left: 0; top: 0; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 800; }
.delivery-flow span { color: var(--muted); }
.refund-note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 4px; padding: 30px 34px; border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.refund-note h3 { margin-bottom: 7px; }
.refund-note p { margin-bottom: 0; color: var(--muted); }
.text-link { flex: 0 0 auto; color: var(--accent); font-weight: 720; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.rules-section { border-top: 1px solid var(--line); }
.rule-links { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.rule-links a { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; padding: 27px 8px; border-bottom: 1px solid var(--line); transition: padding .2s ease, color .2s ease; }
.rule-links a:hover { padding-left: 18px; color: var(--accent); }
.rule-links span { font-size: clamp(22px, 2.4vw, 31px); font-weight: 750; letter-spacing: -.025em; }
.rule-links small { color: var(--muted); font-size: 15px; }

.contact-section { background: var(--surface-2); border-block: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-layout > div > p:last-child { max-width: 42ch; color: var(--muted); }
.contact-layout address { font-style: normal; }
.contact-layout address p { display: grid; grid-template-columns: 92px 1fr; gap: 20px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-layout address span { color: var(--muted); }
.contact-layout address a:hover { color: var(--accent); }

.site-footer { padding-block: 44px; }
.footer-layout { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 50px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand p { display: grid; margin: 0; line-height: 1.35; }
.footer-brand span { color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 13px; }
.site-footer nav a:hover, .copyright a:hover { color: var(--accent); }
.copyright { margin: 0; color: var(--muted); text-align: right; font-size: 12px; line-height: 1.7; }

.legal-main { padding-block: 76px 120px; }
.legal-header { max-width: 820px; margin-bottom: 54px; }
.legal-header .back-link { display: inline-block; margin-bottom: 28px; color: var(--accent); font-weight: 720; }
.legal-header h1 { max-width: none; margin-bottom: 14px; font-size: clamp(42px, 6vw, 70px); }
.legal-header p { color: var(--muted); }
.legal-content { max-width: 820px; }
.legal-content section { padding: 34px 0; border-top: 1px solid var(--line); }
.legal-content h2 { margin-bottom: 14px; font-size: 24px; letter-spacing: -.02em; }
.legal-content h3 { margin-top: 26px; font-size: 18px; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content ul, .legal-content ol { padding-left: 1.35em; }
.legal-content strong { color: var(--text); }
.legal-summary { padding: 24px 26px; border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f7f7;
    --surface: #ffffff;
    --surface-2: #eaf2f1;
    --text: #12201f;
    --muted: #526765;
    --line: #cbd8d6;
    --accent: #087d6f;
    --accent-strong: #05695e;
    --accent-ink: #f2fffd;
    --shadow: rgba(22, 66, 62, .16);
  }
  .button-primary { color: #f4fffd; }
  .product-frame { border-color: #b4c6c4; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 720px); }
  .menu-button { display: inline-flex; }
  .site-nav { position: absolute; top: 68px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 22px 50px var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding-block: 58px 72px; }
  .hero-copy { max-width: 620px; }
  h1 { max-width: 11ch; }
  .hero-visual { transform: none; }
  .capability-grid { grid-template-columns: 1fr; grid-template-areas: "large" "visual" "basic" "basic2" "wide"; }
  .capability-wide { grid-template-columns: 60px 1fr; }
  .capability-wide > p:last-child { grid-column: 2; }
  .workspace-layout, .credits-section, .contact-layout { grid-template-columns: 1fr; }
  .workspace-copy { max-width: 650px; }
  .footer-layout { grid-template-columns: 1fr; gap: 26px; }
  .copyright { text-align: left; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 32px); }
  .hero { padding-top: 44px; }
  h1 { font-size: clamp(40px, 13vw, 54px); }
  h2 { font-size: 36px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .facts { grid-template-columns: 1fr; }
  .facts p, .facts p:first-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts p:last-child { border-bottom: 0; }
  .section { padding-block: 76px; }
  .section-heading { margin-bottom: 36px; }
  .capability { min-height: auto; padding: 28px 24px; }
  .capability-large { min-height: 360px; }
  .capability-visual { padding: 0; min-height: 310px; }
  .capability-visual img { object-position: 62% center; }
  .capability-wide { display: block; }
  .capability-wide .capability-index { margin-bottom: 52px; }
  .capability-wide h3 { margin-bottom: 10px; }
  .refund-note { align-items: flex-start; flex-direction: column; padding: 26px 24px; }
  .rule-links a { grid-template-columns: 1fr; gap: 3px; }
  .contact-layout { gap: 38px; }
  .contact-layout address p { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
