/* 官网颜色、尺寸与动效常量，统一控制明暗关系和响应式节奏。 */
:root {
  --color-background: #0b0c0e;
  --color-surface: #141619;
  --color-surface-raised: #1b1e22;
  --color-foreground: #f7f8f9;
  --color-muted: #adb3bb;
  --color-border: #30343a;
  --color-accent: #57e6b2;
  --color-accent-strong: #2fcf95;
  --color-light: #f3f5f4;
  --color-light-raised: #ffffff;
  --color-light-text: #111315;
  --color-light-muted: #5e6569;
  --content-width: 1200px;
  --header-height: 72px;
  --radius-small: 6px;
  --radius-medium: 8px;
  --radius-device: 32px;
  --motion-fast: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--color-foreground);
  background: var(--color-background);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--color-light-text);
  background: var(--color-accent);
  transform: translateY(-140%);
  transition: transform var(--motion-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, var(--content-width));
  min-height: var(--header-height);
  margin: 0 auto;
  padding-top: env(safe-area-inset-top);
}

.site-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 700;
}

.site-brand img,
.footer-brand img,
.download-band > img,
.hero-app-icon {
  border-radius: var(--radius-medium);
  object-fit: cover;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  color: #d8dce1;
  font-weight: 600;
  transition: color var(--motion-fast), background-color var(--motion-fast);
}

.site-nav a:hover,
.site-footer nav a:hover {
  color: var(--color-foreground);
}

.site-nav .nav-download {
  color: var(--color-light-text);
  background: var(--color-accent);
  border-radius: var(--radius-small);
}

.site-nav .nav-download:hover {
  color: var(--color-light-text);
  background: var(--color-accent-strong);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100% - 48px, var(--content-width));
  min-height: calc(100svh - 128px);
  max-height: 780px;
  margin: 0 auto;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(58%, 660px);
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: #168760;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow,
.product-section-dark .eyebrow {
  color: var(--color-accent);
}

.hero h1 {
  margin: 0;
  font-size: 104px;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 560px;
  margin: 28px 0 0;
  color: #ced2d7;
  font-size: 21px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.primary-action,
.secondary-action,
.download-action,
.platform-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-small);
  font-weight: 700;
  transition: background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}

.primary-action,
.download-action {
  color: var(--color-light-text);
  background: var(--color-accent);
}

.primary-action:hover,
.download-action:hover {
  background: var(--color-accent-strong);
}

.secondary-action {
  color: var(--color-foreground);
  border: 1px solid #4a5058;
  background: rgba(11, 12, 14, 0.78);
}

.secondary-action:hover {
  border-color: #747c86;
  background: var(--color-surface);
}

.primary-action:active,
.secondary-action:active,
.download-action:active,
.platform-actions a:active {
  transform: scale(0.98);
}

.primary-action svg,
.secondary-action svg,
.download-action svg,
.text-action svg,
.platform-actions svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-visual {
  position: absolute;
  top: 24px;
  right: 0;
  bottom: 24px;
  width: 50%;
}

.device-shot {
  margin: 0;
  overflow: hidden;
  border: 8px solid #1c1f23;
  border-radius: var(--radius-device);
  background: #ffffff;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.device-shot img {
  width: 100%;
  height: auto;
  border-radius: 23px;
}

.hero-device-main,
.hero-device-back {
  position: absolute;
  width: min(47%, 286px);
}

.hero-device-main {
  top: 0;
  right: 5%;
  z-index: 2;
  transform: rotate(2deg);
}

.hero-device-back {
  right: 39%;
  bottom: -26%;
  z-index: 1;
  opacity: 0.68;
  transform: rotate(-5deg);
}

.hero-app-icon {
  position: absolute;
  right: 0;
  bottom: 2%;
  z-index: 3;
  border: 1px solid #444a52;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.capability-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100% - 48px, var(--content-width));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.capability-band article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  min-width: 0;
  padding: 0 24px;
  border-right: 1px solid var(--color-border);
}

.capability-band article:first-child {
  padding-left: 0;
}

.capability-band article:last-child {
  padding-right: 0;
  border-right: 0;
}

.capability-index {
  padding-top: 2px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
}

.capability-band h2 {
  margin: 0;
  font-size: 17px;
}

.capability-band p {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.product-section {
  width: 100%;
  padding: 112px 24px;
}

.product-section-light {
  color: var(--color-light-text);
  background: var(--color-light);
}

.product-section-dark {
  color: var(--color-foreground);
  background: #101215;
}

.product-inner {
  display: grid;
  align-items: center;
  gap: 96px;
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.model-layout {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
}

.continuity-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.account-layout {
  grid-template-columns: minmax(480px, 1.12fr) minmax(0, 0.88fr);
}

.feature-device {
  width: min(100%, 322px);
  justify-self: center;
}

.product-copy {
  min-width: 0;
}

.product-copy h2,
.cross-platform h2,
.download-copy h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.22;
  letter-spacing: 0;
}

.section-summary {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--color-light-muted);
  font-size: 18px;
  line-height: 1.75;
}

.product-section-dark .section-summary {
  color: #b9bec5;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #d5d9d6;
}

.detail-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #d5d9d6;
}

.detail-list li > span {
  color: #168760;
  font-size: 13px;
  font-weight: 800;
}

.detail-list strong {
  font-size: 17px;
}

.detail-list p {
  margin: 4px 0 0;
  color: var(--color-light-muted);
  font-size: 15px;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.fact-row span {
  padding: 8px 12px;
  border: 1px solid #3d4249;
  border-radius: 4px;
  color: #d7dbe0;
  font-size: 14px;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 32px;
  color: var(--color-accent);
  font-weight: 800;
}

.text-action svg {
  transition: transform var(--motion-fast);
}

.text-action:hover svg {
  transform: translateX(4px);
}

.device-pair {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.paired-device {
  width: 100%;
  max-width: 260px;
}

.paired-device-front {
  z-index: 2;
  margin-top: 0;
}

.paired-device-back {
  z-index: 1;
  margin-top: 72px;
}

.account-facts {
  display: grid;
  margin: 36px 0 0;
  border-top: 1px solid #d5d9d6;
}

.account-facts div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #d5d9d6;
}

.account-facts dt {
  color: #168760;
  font-weight: 800;
}

.account-facts dd {
  margin: 0;
  color: var(--color-light-muted);
}

.cross-platform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 64px;
  width: min(100% - 48px, var(--content-width));
  margin: 0 auto;
  padding: 96px 0;
}

.cross-platform-copy > p:last-child {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--color-muted);
  font-size: 17px;
}

.platform-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.platform-actions a {
  justify-content: flex-start;
  min-height: 72px;
  padding: 12px 18px;
  border: 1px solid #3b4047;
  background: var(--color-surface);
}

.platform-actions a:hover {
  border-color: #68717c;
  background: var(--color-surface-raised);
}

.platform-actions span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.platform-actions small {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
}

.platform-actions strong {
  font-size: 15px;
}

.download-band {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 72px max(24px, calc((100% - var(--content-width)) / 2));
  color: var(--color-light-text);
  background: #c9f9e5;
}

.download-copy h2 {
  font-size: 32px;
}

.download-copy > p:last-child {
  margin: 6px 0 0;
  color: #405950;
}

.download-action {
  min-width: 152px;
  color: var(--color-foreground);
  background: var(--color-light-text);
}

.download-action:hover {
  color: var(--color-light-text);
  background: #2d3435;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, var(--content-width));
  min-height: 112px;
  margin: 0 auto;
}

.site-footer nav a {
  color: var(--color-muted);
  font-size: 14px;
}

@media (max-width: 1020px) {
  .hero-copy {
    width: 62%;
  }

  .hero-visual {
    right: -4%;
    width: 48%;
  }

  .capability-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-band article,
  .capability-band article:first-child,
  .capability-band article:last-child {
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .capability-band article:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid var(--color-border);
  }

  .capability-band article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .product-inner {
    gap: 64px;
  }

  .account-layout {
    grid-template-columns: minmax(400px, 1fr) minmax(0, 0.9fr);
  }

  .cross-platform {
    grid-template-columns: 1fr;
  }

  .platform-actions {
    width: min(100%, 520px);
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .capability-band,
  .cross-platform,
  .site-footer {
    width: min(100% - 32px, var(--content-width));
  }

  .nav-section {
    display: none !important;
  }

  .hero {
    align-items: flex-start;
    min-height: calc(100svh - 96px);
    max-height: none;
  }

  .hero-copy {
    width: 72%;
    padding-top: 56px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .hero-summary {
    font-size: 18px;
  }

  .hero-visual {
    top: 178px;
    right: -10%;
    bottom: 20px;
    width: 54%;
    opacity: 0.9;
  }

  .hero-device-back {
    display: none;
  }

  .hero-device-main {
    width: min(84%, 270px);
  }

  .hero-app-icon {
    display: none;
  }

  .product-section {
    padding: 80px 24px;
  }

  .model-layout,
  .continuity-layout,
  .account-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .continuity-layout .product-copy {
    order: 1;
  }

  .continuity-layout .feature-device {
    order: 2;
  }

  .feature-device {
    width: min(72vw, 300px);
  }

  .device-pair {
    width: min(100%, 520px);
    justify-self: center;
  }

  .product-copy h2,
  .cross-platform h2 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 64px;
    --radius-device: 24px;
  }

  .site-brand img {
    width: 36px;
    height: 36px;
  }

  .site-nav > a:not(.nav-download) {
    display: none;
  }

  .site-nav a {
    padding: 0 14px;
  }

  .hero {
    min-height: calc(100svh - 88px);
  }

  .hero-copy {
    width: 100%;
    padding: 32px 0 220px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-summary {
    max-width: 360px;
    margin-top: 20px;
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 320px);
    margin-top: 28px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-visual {
    top: auto;
    right: 50%;
    bottom: -220px;
    width: 210px;
    height: 455px;
    opacity: 1;
    transform: translateX(50%);
  }

  .hero-device-main {
    right: 0;
    width: 210px;
    transform: none;
  }

  .device-shot {
    border-width: 6px;
  }

  .device-shot img {
    border-radius: 17px;
  }

  .capability-band {
    grid-template-columns: 1fr;
    padding: 32px 0 48px;
  }

  .capability-band article,
  .capability-band article:first-child,
  .capability-band article:last-child,
  .capability-band article:nth-child(odd) {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .capability-band article:last-child {
    border-bottom: 0;
  }

  .product-section {
    padding: 64px 20px;
  }

  .product-inner {
    gap: 44px;
  }

  .product-copy h2,
  .cross-platform h2 {
    font-size: 30px;
  }

  .section-summary {
    margin-top: 18px;
    font-size: 16px;
  }

  .feature-device {
    width: min(74vw, 270px);
  }

  .detail-list {
    margin-top: 28px;
  }

  .device-pair {
    gap: 10px;
  }

  .paired-device {
    border-width: 4px;
    border-radius: 20px;
  }

  .paired-device img {
    border-radius: 15px;
  }

  .paired-device-back {
    margin-top: 40px;
  }

  .account-facts div {
    grid-template-columns: 64px 1fr;
  }

  .cross-platform {
    gap: 36px;
    padding: 64px 0;
  }

  .platform-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .download-band {
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .download-band > img {
    width: 64px;
    height: 64px;
  }

  .download-copy h2 {
    font-size: 24px;
  }

  .download-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 28px 0;
  }

  .site-footer nav {
    width: 100%;
  }

  .site-footer nav a {
    padding-left: 0;
    padding-right: 24px;
  }
}

@media (max-height: 680px) and (max-width: 560px) {
  .hero-copy {
    padding-top: 16px;
    padding-bottom: 150px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-summary {
    margin-top: 12px;
    font-size: 16px;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .primary-action,
  .secondary-action {
    min-height: 48px;
  }

  .hero-visual {
    bottom: -280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
