/* ====== 基础变量（黑黄主题） ====== */
:root {
  --bg:        #0a0a0a;
  --bg-2:      #101010;
  --bg-3:      #161616;
  --surface:   #141414;
  --surface-2: #1d1d1d;
  --border:    #2a2a2a;
  --text:      #f5f5f0;
  --text-dim:  #b3b3ac;
  --text-mute: #7a7a72;
  --yellow:    #FFD60A;
  --yellow-2:  #FFB800;
  --yellow-soft: rgba(255,214,10,.12);
  --radius:    16px;
  --shadow:    0 20px 50px rgba(0,0,0,.55);
  --maxw:      1120px;
}

/* ====== 白天（亮色）模式：仅覆盖变量，暗色默认不动 ====== */
[data-theme="light"] {
  --bg:        #f5f5f0;
  --bg-2:      #ffffff;
  --bg-3:      #edece6;
  --surface:   #ffffff;
  --surface-2: #f1f1ea;
  --border:    #e3e3da;
  --text:      #1a1a16;
  --text-dim:  #585852;
  --text-mute: #8c8c82;
  --yellow:    #E0920A;
  --yellow-2:  #C57E00;
  --yellow-soft: rgba(224,146,10,.12);
  --shadow:    0 20px 50px rgba(0,0,0,.10);
}
/* 暗色里写死的几处颜色，亮色下需单独覆盖 */
[data-theme="light"] .nav { background: rgba(255,255,255,.78); }
[data-theme="light"] .section--alt { background: linear-gradient(180deg, transparent, rgba(0,0,0,.035), transparent); }
[data-theme="light"] .hero__title { background: linear-gradient(180deg, #1a1a16, #55554c); -webkit-background-clip: text; background-clip: text; color: transparent; }

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ====== 导航 ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10,10,10,.72);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 24px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__inner::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.brand img { border-radius: 8px; }
.brand__img, .footer__brand img { border-radius: 9px; box-shadow: 0 2px 8px rgba(255,214,10,.15), 0 0 0 1px rgba(255,255,255,.04) inset; }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--text-dim); flex-shrink: 0; }
.nav__links a { transition: color .2s; white-space: nowrap; }
.nav__links a:hover { color: var(--yellow); }
.nav__cta { padding: 8px 14px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.lang {
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  margin-left: 4px; transition: color .2s, border-color .2s;
  white-space: nowrap; flex-shrink: 0;
}
.lang:hover { color: var(--yellow); border-color: var(--yellow); }
select.lang {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding: 6px 26px 6px 14px;
  outline: none;
}
select.lang:focus { border-color: var(--yellow); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ====== 主题切换（白天 / 暗色） ====== */
.nav__toggle-theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 34px; flex-shrink: 0;
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  margin-left: 4px; transition: color .2s, border-color .2s;
}
.nav__toggle-theme:hover { color: var(--yellow); border-color: var(--yellow); }
.nav__toggle-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__toggle-theme .ic-moon { display: none; }
[data-theme="light"] .nav__toggle-theme .ic-sun { display: none; }
[data-theme="light"] .nav__toggle-theme .ic-moon { display: block; }

/* ====== 按钮 ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 12px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .25s ease, background .25s, color .2s; cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
  color: #1a1400; box-shadow: 0 8px 24px rgba(255,184,0,.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,184,0,.42); }
.btn--ghost {
  background: var(--surface-2); color: var(--text); border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* ====== Hero ====== */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 24px 90px;
  text-align: center;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(255,214,10,.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero__disk {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
  width: 360px; height: 360px; opacity: .16; pointer-events: none;
}
.hero__disk-platter {
  position: absolute; inset: 40px; border-radius: 50%;
  border: 2px solid var(--yellow);
  box-shadow: inset 0 0 60px rgba(255,214,10,.3);
  animation: spin 18s linear infinite;
}
.hero__disk-platter::after {
  content: ""; position: absolute; inset: 34%; border-radius: 50%;
  background: radial-gradient(circle, var(--yellow), transparent 70%);
}
.hero__disk-arm {
  position: absolute; top: 50%; left: 50%; width: 150px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow));
  transform-origin: left center; transform: rotate(-20deg);
  animation: spin 6s linear infinite;
}
.hero__disk-orbit {
  position: absolute; inset: 0;
  animation: spin 26s linear infinite;
}
.hero__disk-orbit i {
  position: absolute; top: 6px; left: 50%; width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 12px var(--yellow);
}
.hero__disk-orbit i:nth-child(2) { top: auto; bottom: 6px; }
.hero__disk-orbit i:nth-child(3) { top: 50%; left: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__content { position: relative; max-width: 760px; margin: 0 auto; }
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: var(--yellow-soft); color: var(--yellow); font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,214,10,.25); margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.12; font-weight: 800;
  letter-spacing: -.5px;
  background: linear-gradient(180deg, #fff, #d8d8cf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title .grad {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin: 22px auto 0; max-width: 600px; font-size: 17px; color: var(--text-dim); }
.hero__actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero__meta { margin-top: 26px; color: var(--text-mute); font-size: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero__meta .dot { opacity: .5; }

/* ====== 信任条 ====== */
.strip {
  max-width: var(--maxw); margin: -40px auto 0; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding: 0 24px;
}
.strip__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; text-align: center;
}
.strip__item b { display: block; font-size: 16px; color: var(--yellow); }
.strip__item span { font-size: 13px; color: var(--text-mute); }

/* ====== 通用 section ====== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 90px 24px; }
.section--alt { max-width: none; background: linear-gradient(180deg, transparent, rgba(29,29,29,.4), transparent); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 54px; }
.section__head h2 { font-size: clamp(26px,4vw,38px); font-weight: 800; letter-spacing: -.3px; }
.section__head p { margin-top: 14px; color: var(--text-dim); font-size: 16px; max-width: 620px; margin-inline: auto; }
.beta-note {
  display: inline-block; margin-top: 16px; padding: 5px 16px; border-radius: 999px;
  background: rgba(255,184,0,.14); color: var(--yellow-2); font-size: 14px; font-weight: 600;
}

/* ====== 特性网格 ====== */
.grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,214,10,.4); box-shadow: var(--shadow); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--yellow-soft); margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-dim); }

/* ====== 界面展示（Mock） ====== */
.showcase { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.mock {
  position: relative;
  background: #000;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 13px;
  min-height: 480px;
  display: flex; flex-direction: column;
}
/* macOS 标题栏：交通灯 */
.mock__chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #000;
  border-bottom: 1px solid #111;
}
.mock__light { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.mock__light--r { background: #ff5f57; }
.mock__light--y { background: #febc2e; }
.mock__light--g { background: #28c840; }

/* 顶部 Tab 胶囊栏 */
.mock__tabs {
  display: flex; gap: 4px; justify-content: center;
  padding: 14px 12px 8px;
  background: #000;
}
.mock__tab {
  padding: 6px 18px;
  font-size: 13px;
  color: var(--text-dim);
  border-radius: 999px;
  cursor: default;
}
.mock__tab--on {
  background: #2a2a2a;
  color: #fff;
  font-weight: 600;
}

/* 页面标题 */
.mock__head {
  padding: 6px 18px 16px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}

/* 应用列表 */
.mock__list {
  flex: 1;
  padding: 0 4px;
  border-top: 1px solid #161616;
}
.mock__item {
  display: grid;
  grid-template-columns: 40px 1fr 110px 44px 28px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #161616;
}
.mock__item:last-child { border-bottom: 0; }
.mock__item--off .mock__switch { background: transparent; border: 1.5px solid #555; }
.mock__item--off .mock__switch i { background: #777; left: 2px; }

.mock__icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: #222;
  flex-shrink: 0;
}
.mock__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mock__name b { font-size: 14px; font-weight: 700; color: #fff; }
.mock__name span { font-size: 11px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mock__picker {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #d8d8d8;
  text-align: center;
  white-space: nowrap;
}

.mock__switch {
  width: 36px; height: 22px;
  border-radius: 999px;
  background: #FFD60A;
  position: relative;
  cursor: default;
  flex-shrink: 0;
}
.mock__switch i {
  position: absolute;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: calc(100% - 20px);
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
  transition: left .2s, background .2s;
}

.mock__del {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: #ff453a;
  font-size: 15px;
  cursor: default;
}

/* 底部：右下角添加应用按钮 */
.mock__foot {
  padding: 14px 18px 18px;
  display: flex;
  justify-content: flex-end;
  background: #000;
}
.mock__add {
  background: #FFD60A;
  color: #1a1400;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(255,214,10,.25);
}
.showcase__points { list-style: none; display: grid; gap: 18px; }
.showcase__points li { padding-left: 30px; position: relative; color: var(--text-dim); font-size: 15px; }
.showcase__points li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--yellow); }
.showcase__points b { color: var(--text); }

/* ====== 步骤 ====== */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.step__num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-2)); color: #1a1400;
  font-weight: 800; font-size: 20px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* ====== 下载 ====== */
.downloads { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; max-width: 760px; margin: 0 auto; }
.dl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; text-align: center; }
.dl__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--yellow-soft); display: grid; place-items: center; margin: 0 auto 16px; }
.dl__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl h3 { font-size: 19px; margin-bottom: 10px; }
.dl p { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }
.dl code, .downloads__note code { background: var(--bg-3); padding: 2px 7px; border-radius: 5px; font-size: 13px; color: var(--yellow-2); }
.dl .btn { width: 100%; }
.dl__req { display: block; margin-top: 14px; font-size: 12px; color: var(--text-mute); }
.downloads__note {
  max-width: 760px; margin: 30px auto 0; padding: 16px 20px; font-size: 14px; color: var(--text-dim);
  background: rgba(255,184,0,.08); border: 1px solid rgba(255,184,0,.3); border-radius: 12px;
}
.downloads__note strong { color: var(--yellow); }

/* ====== 页脚 ====== */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 40px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.footer__links { display: flex; gap: 22px; font-size: 14px; color: var(--text-dim); }
.footer__links a:hover { color: var(--yellow); }
.footer__copy { font-size: 13px; color: var(--text-mute); }
#contact { scroll-margin-top: 72px; padding: 56px 24px 60px; }
#contact .section__head { margin-bottom: 22px; }
.contact__mail { text-align: center; font-size: clamp(20px, 3.5vw, 30px); }
.contact__mail a { color: var(--yellow); text-decoration: none; font-weight: 800; letter-spacing: -.3px; }
.contact__mail a:hover { text-decoration: underline; }

/* ====== 滚动揭示 ====== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ====== 响应式 ====== */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2,1fr); }
  .showcase { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg-2); padding: 16px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav__links.open { display: flex; }
  .nav__cta { display: none; }
  .lang { margin-left: auto; }
  .nav__toggle { display: flex; }
  .downloads { grid-template-columns: 1fr; }
  .mock__item { grid-template-columns: 36px 1fr 90px 36px 24px; gap: 10px; padding: 12px 12px; }
  .mock__icon { width: 36px; height: 36px; }
  .mock__name b { font-size: 13px; }
  .mock__picker { font-size: 11px; padding: 5px 6px; }
  .hero__disk { width: 260px; height: 260px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .mock__head { font-size: 18px; padding: 4px 14px 12px; }
  .mock__item { grid-template-columns: 32px 1fr 80px 32px 22px; gap: 8px; padding: 10px 10px; }
  .mock__icon { width: 32px; height: 32px; font-size: 12px; }
  .mock__switch { width: 30px; height: 19px; }
  .mock__switch i { width: 15px; height: 15px; }
}
