/* ============================================================
   Miracle 官网 · 苹果风格设计系统
   ============================================================ */

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --line: #d2d2d7;
  --nav-h: 44px;
  --localnav-h: 48px;
  --maxw: 1024px;
  --radius: 28px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro SC",
    "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans JP", "Segoe UI", Roboto, "Noto Sans",
    "Malgun Gothic", "Leelawadee UI", Tahoma, sans-serif;
  --dev-color: #3b3b3d;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--localnav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--nav-h);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; border: none; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(0, 113, 227, 0.25); }

/* 硬件产品入口临时隐藏（产品开发中，hardware.html 仍保留可直链访问）
 * 恢复全部入口：删除下面这一条规则即可，页面无需改动。 */
[data-hide="hardware"] { display: none !important; }

/* ---------- 布局 ---------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.container--wide { max-width: 1180px; }

.section { padding: 100px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--gray { background: #f0f0f2; }

.section--dark {
  background: #000;
  color: #f5f5f7;
}
.section--dark .subhead,
.section--dark .body-lg { color: #a1a1a6; }
.section--dark .eyebrow { color: #6eb5f8; }
.section--dark .link-arrow { color: #2997ff; }
.section--dark .spec-row { border-color: #424245; }
.section--dark .spec-row dt { color: #a1a1a6; }
.section--dark .spec-row dd { color: #f5f5f7; }
.section--dark .feature-card { background: #1d1d1f; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow { margin-bottom: 12px; }
.section-head .subhead { margin-top: 16px; }

/* ---------- 排版 ---------- */

.display-lg {
  font-size: clamp(44px, 8vw, 80px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.display {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.headline {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.headline-sm {
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.016em;
}

.eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: #bf4800;
  letter-spacing: -0.022em;
}
.eyebrow--blue { color: var(--blue); }

.subhead {
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: 0.007em;
  color: var(--ink-2);
}

.body-lg {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.52;
  letter-spacing: 0.011em;
  color: var(--ink-2);
}

.caption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  letter-spacing: 0;
}
.caption a { color: var(--link); }

.text-center { text-align: center; }

/* ---------- 按钮与链接 ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.022em;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn:hover { background: var(--blue-hover); color: #fff; text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--small { padding: 8px 16px; font-size: 14px; }
.btn--large { padding: 16px 32px; font-size: 19px; }
.btn--secondary { background: #e8e8ed; color: var(--ink); }
.btn--secondary:hover { background: #dcdcdf; color: var(--ink); }
.btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost:hover { background: rgba(0, 113, 227, 0.08); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-group--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--link);
  font-size: 17px;
  letter-spacing: -0.022em;
  text-decoration: none;
}
.link-arrow::after {
  content: "\203A";
  font-size: 1.2em;
  line-height: 1;
  transition: transform 0.2s ease;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }

.link-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-top: 20px;
}

/* ---------- 全局导航 ---------- */

.globalnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 9999;
  background: rgba(251, 251, 253, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.globalnav__inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.globalnav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.globalnav__logo img { height: 26px; width: auto; }
.globalnav__logo:hover { text-decoration: none; }

.globalnav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.globalnav__links a {
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}
.globalnav__links a:hover { color: #000; text-decoration: none; }

.globalnav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.gn-icon-btn {
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
}
.gn-icon-btn:hover { color: #000; }
.gn-icon-btn svg { width: 15px; height: 15px; fill: currentColor; }

/* 语言下拉 */
.lang-menu {
  position: absolute;
  top: var(--nav-h);
  right: max(22px, calc((100vw - var(--maxw)) / 2 + 22px));
  min-width: 200px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10000;
}
.lang-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: left;
}
.lang-menu button:hover { background: var(--bg-alt); }
.lang-menu button.is-active { color: var(--blue); font-weight: 600; }
.lang-menu button.is-active::after { content: "\2713"; }

/* RTL（العربية等）布局覆盖 */
[dir="rtl"] .lang-menu {
  right: auto;
  left: max(22px, calc((100vw - var(--maxw)) / 2 + 22px));
}
[dir="rtl"] .lang-menu button { text-align: right; }
[dir="rtl"] .feature-card,
[dir="rtl"] .opt-card,
[dir="rtl"] .pay-btn { text-align: right; }
[dir="rtl"] .opt-card.is-selected .opt-card__title {
  padding-right: 0;
  padding-left: 26px;
}
[dir="rtl"] .opt-card__check { right: auto; left: 18px; }
[dir="rtl"] .faq summary::after { right: auto; left: 4px; }

/* 移动端菜单 */
.gn-burger {
  display: none;
  background: none;
  border: none;
  padding: 6px 2px;
  width: 24px;
  height: 24px;
  position: relative;
}
.gn-burger span {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 1.5px;
  background: #1d1d1f;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gn-burger span:nth-child(1) { top: 6px; }
.gn-burger span:nth-child(2) { top: 11.5px; }
.gn-burger span:nth-child(3) { top: 17px; }
.gn-burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.gn-burger.is-open span:nth-child(2) { opacity: 0; }
.gn-burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(251, 251, 253, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 24px 44px;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.019em;
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.mobile-menu a:hover { text-decoration: none; color: var(--blue); }
.mobile-menu .mobile-menu__label {
  margin-top: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mobile-menu .mobile-menu__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.mobile-menu .mobile-menu__langs button {
  padding: 8px 16px;
  border: none;
  border-radius: 980px;
  background: #e8e8ed;
  font-size: 15px;
  color: var(--ink);
}
.mobile-menu .mobile-menu__langs button.is-active {
  background: var(--blue);
  color: #fff;
}

/* ---------- 产品子导航 ---------- */

.localnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 900;
  height: var(--localnav-h);
  background: rgba(251, 251, 253, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.14);
}

.localnav__inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.localnav__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.019em;
  color: var(--ink);
  white-space: nowrap;
}
.localnav__title:hover { text-decoration: none; }

.localnav__links {
  display: flex;
  gap: 32px;
}
.localnav__links a {
  font-size: 12px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.8);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.localnav__links a:hover { color: #000; text-decoration: none; }
.localnav__links a.is-active { color: #000; font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 64px 0 0;
  overflow: hidden;
}
.hero .eyebrow { margin-bottom: 10px; }
.hero .subhead { margin: 14px auto 0; max-width: 640px; }
.hero .btn-group { margin-top: 26px; }
.hero__media {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.hero__media img {
  max-width: min(680px, 92vw);
}
.hero--dark { background: #000; color: #f5f5f7; }
.hero--dark .subhead { color: #a1a1a6; }

/* ---------- 首页产品格 ---------- */

.tiles {
  padding: 12px 0 40px;
}
.tile {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding: 52px 24px 0;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 580px;
}
.tile--hero {
  background: #000;
  color: #f5f5f7;
  padding-top: 64px;
  min-height: 640px;
}
.tile--hero .tile__sub { color: #a1a1a6; }
.tile--hero .link-arrow { color: #2997ff; }

.tile__title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.tile__sub {
  margin-top: 10px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-2);
  letter-spacing: 0.011em;
}
.tile .link-pair { margin-top: 14px; margin-bottom: 8px; }

.coming-soon {
  display: inline-block;
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 8px 18px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.14);
  border: 0.5px solid rgba(255, 255, 255, 0.26);
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tile__media {
  margin-top: auto;
  padding-top: 32px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.tile__media img { max-height: 420px; width: auto; object-fit: contain; }

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tile-grid .tile { min-height: 540px; }

/* ---------- 亮点三列 ---------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.highlight__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1e9df1, #0071e3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight__icon svg { width: 36px; height: 36px; fill: #fff; }
.highlight h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.016em;
  margin-bottom: 8px;
}
.highlight p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* ---------- 功能分栏 ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row--reverse .feature-row__media { order: 2; }
.feature-row__media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.feature-row__media img { max-height: 460px; width: auto; }
.feature-row__body .headline { margin-bottom: 16px; }
.feature-row__body .body-lg { margin-bottom: 24px; }

.feature-list { display: grid; gap: 28px; margin-top: 28px; }
.feature-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature-list__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.section--dark .feature-list__icon { background: rgba(41, 151, 255, 0.18); }
.feature-list__icon svg { width: 22px; height: 22px; fill: var(--blue); }
.section--dark .feature-list__icon svg { fill: #2997ff; }
.feature-list h4 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.016em;
  margin-bottom: 4px;
}
.feature-list p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.section--dark .feature-list p { color: #a1a1a6; }

/* ---------- 特性卡片（硬件页 bento） ---------- */

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.feature-card {
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 40px 36px;
  text-align: left;
}
.feature-card--wide { grid-column: span 2; }
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card__icon svg { width: 24px; height: 24px; fill: #fff; }
.feature-card h3 {
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.016em;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.section--dark .feature-card p { color: #a1a1a6; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 36px 24px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.016em;
  position: relative;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .faq__answer {
  padding: 0 40px 24px 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- 技术规格 ---------- */

.spec-list { max-width: 760px; margin: 0 auto; }
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.spec-row dt { color: var(--ink-2); font-weight: 400; }
.spec-row dd { margin: 0; color: var(--ink); }
.spec-note {
  max-width: 760px;
  margin: 28px auto 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ---------- CTA 横幅 ---------- */

.cta-banner {
  text-align: center;
  padding: 96px 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.cta-banner .headline { margin-bottom: 14px; }
.cta-banner .subhead { max-width: 600px; margin: 0 auto; }
.cta-banner .btn-group { margin-top: 28px; }

/* ---------- 下载按钮组 ---------- */

.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.download-grid .btn,
.btn-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.download-grid .btn svg,
.btn-group .btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* APK 架构选择下拉 */
.download-pick { position: relative; display: inline-flex; }
.download-pick .btn { width: 100%; }
.download-pick__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}
.download-pick__menu[hidden] { display: none; }
.download-pick__menu a {
  display: block;
  padding: 10px 20px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}
.download-pick__menu a:hover { background: var(--bg-alt); text-decoration: none; }

/* ---------- 订购页 ---------- */

.buy-header {
  text-align: center;
  padding: 56px 0 12px;
}
.buy-header .subhead { margin-top: 12px; }

.buy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
  padding-bottom: 100px;
}

.buy-steps { min-width: 0; }

.buy-step {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.buy-step:first-child { padding-top: 24px; }
.buy-step__head { margin-bottom: 26px; }
.buy-step__num {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 6px;
}
.buy-step__price-hint {
  font-size: 14px;
  color: var(--blue);
  margin-top: 6px;
}

/* 选项卡片 */
.opt-grid {
  display: grid;
  gap: 14px;
}
.opt-grid--2 { grid-template-columns: 1fr 1fr; }
.opt-grid--3 { grid-template-columns: repeat(3, 1fr); }

.opt-card {
  position: relative;
  border: none;
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: left;
  font-size: 16px;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.opt-card:hover { background: #ededf0; }
.opt-card.is-selected {
  box-shadow: inset 0 0 0 2px var(--blue);
  background: #fff;
}
.opt-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.016em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.opt-card__price {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-2);
  white-space: nowrap;
}
.opt-card__desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.opt-card__badge {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}
.opt-card__check {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  display: none;
  align-items: center;
  justify-content: center;
}
.opt-card__check svg { width: 11px; height: 11px; fill: #fff; }
.opt-card.is-selected .opt-card__check { display: flex; }
.opt-card.is-selected .opt-card__title { padding-right: 26px; }

/* 颜色选择 */
.swatch-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.swatch {
  background: none;
  border: none;
  padding: 0;
  text-align: center;
  width: 92px;
}
.swatch__dot {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
  position: relative;
}
.swatch:hover .swatch__dot { transform: scale(1.06); }
.swatch.is-selected .swatch__dot {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 3px #fff,
    0 0 0 5px var(--blue);
}
.swatch__name {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.swatch.is-selected .swatch__name { color: var(--ink); font-weight: 600; }

/* 数量步进 */
.qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: 980px;
  padding: 6px;
}
.qty button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
}
.qty button:disabled { opacity: 0.35; cursor: default; }
.qty output {
  min-width: 36px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}

/* 侧栏订单摘要 */
.buy-summary {
  position: sticky;
  top: calc(var(--nav-h) + var(--localnav-h) + 24px);
  background: var(--bg-alt);
  border-radius: 22px;
  padding: 28px 26px;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.buy-summary__media {
  display: flex;
  justify-content: center;
  padding: 8px 0 18px;
}
.buy-summary__media svg,
.buy-summary__media .device-swatch {
  max-width: 220px;
}
.buy-summary__name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.016em;
  margin-bottom: 4px;
}
.buy-summary__config {
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 16px;
}
.buy-summary__lines { border-top: 1px solid var(--line); padding-top: 14px; }
.buy-summary__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  color: var(--ink-2);
}
.buy-summary__line strong { color: var(--ink); font-weight: 600; }
.buy-summary__total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.buy-summary__finance {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.buy-summary .btn { width: 100%; margin-top: 18px; }
.buy-summary__note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* 结账弹层 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 34px 32px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal { transform: none; }
.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}
.modal__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.019em;
}
.modal__close {
  border: none;
  background: var(--bg-alt);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--ink-2);
  flex-shrink: 0;
}
.modal__close:hover { background: #e8e8ed; color: var(--ink); }
.modal__sub {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.modal__order {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.modal__order strong { color: var(--ink); }
.modal__order .modal__total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.pay-list { display: grid; gap: 12px; }
.pay-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pay-btn:hover { border-color: var(--blue); background: rgba(0, 113, 227, 0.04); }
.pay-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.pay-btn small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-2);
  margin-top: 2px;
}
.modal__notice {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff8e6;
  font-size: 13px;
  line-height: 1.55;
  color: #7a5b00;
}

/* 移动端底部购买条 */
.mobile-buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 0.5px solid var(--line);
  z-index: 950;
}
.mobile-buy-bar__price { font-size: 18px; font-weight: 600; }
.mobile-buy-bar .btn { flex-shrink: 0; }

/* ---------- 设备配色展示 ---------- */

.device-stage {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.device-svg {
  width: min(560px, 90vw);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}
.device-svg .dev-body,
.device-svg .dev-accent { transition: fill 0.35s ease; }

.color-caption {
  text-align: center;
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-2);
}
.color-caption strong { color: inherit; font-weight: 600; }

/* ---------- 页脚 ---------- */

.footer {
  background: var(--bg-alt);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  padding: 40px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer__col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer__col li { margin-bottom: 9px; }
.footer__col a { color: var(--ink-2); }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }

.footer__legal {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__copy { max-width: 560px; }
.footer__copy a { color: var(--ink-2); text-decoration: underline; }
.footer__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__langs button {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  color: var(--ink-2);
}
.footer__langs button:hover { color: var(--ink); text-decoration: underline; }
.footer__langs button.is-active { color: var(--ink); font-weight: 600; }
.footer__social {
  display: flex;
  gap: 14px;
}
.footer__social a { color: var(--ink-2); display: flex; }
.footer__social a:hover { color: var(--ink); }
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- 滚动显现动画 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1023px) {
  .buy-layout { grid-template-columns: 1fr; gap: 32px; }
  .buy-summary { position: static; order: -1; }
}

@media (max-width: 833px) {
  .globalnav__links { display: none; }
  .gn-burger { display: block; }
  .globalnav__actions .btn { display: none; }

  .localnav__links { display: none; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  .tile { min-height: 0; padding: 44px 20px 0; }
  .tile--hero { min-height: 0; padding-top: 52px; }
  .tile-grid { grid-template-columns: 1fr; }
  .tile-grid .tile { min-height: 0; }
  .tile__media img { max-height: 300px; }

  .highlights { grid-template-columns: 1fr; gap: 44px; }

  .feature-row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 72px; }
  .feature-row--reverse .feature-row__media { order: 0; }
  .feature-row__media img { max-height: 340px; }

  .feature-cards { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: auto; }
  .feature-card { padding: 32px 26px; }

  .spec-row { grid-template-columns: 1fr; gap: 4px; padding: 15px 0; }

  .opt-grid--2, .opt-grid--3 { grid-template-columns: 1fr; }

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

  .mobile-buy-bar { display: flex; }
  body.has-mobile-bar { padding-bottom: 76px; }

  .lang-menu { right: 16px; }
  [dir="rtl"] .lang-menu { left: 16px; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }
  .download-grid { flex-direction: column; align-items: stretch; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 64px 20px; border-radius: 20px; }
}
