/* ============ MacZen 官网样式 ============ */
:root {
  --bg: #0b0e1a;
  --bg-soft: #11152a;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #e8ebf5;
  --text-dim: #9aa3c0;
  --accent: #6c8cff;
  --accent2: #9d6cff;
  --green: #34d399;
  --radius: 16px;
  /* 间距刻度 */
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px;
  --sp-4: 40px; --sp-5: 64px; --sp-6: 96px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Helvetica Neue", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: var(--sp-6) 0; }
.section-alt {
  background:
    radial-gradient(1000px 400px at 85% 0%, rgba(157,108,255,.07), transparent 60%),
    radial-gradient(900px 400px at 10% 100%, rgba(108,140,255,.06), transparent 60%),
    var(--bg-soft);
}

/* ---------- 滚动渐入 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 14, 26, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 17px;
}
.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.lang-switch button {
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--text-dim); padding: 4px 12px; border-radius: 14px;
  font-size: 12px; cursor: pointer; margin-left: 6px;
}
.lang-switch button.on { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 88px 0 0;
  background:
    radial-gradient(1100px 480px at 50% -60px, rgba(108,140,255,.16), transparent 65%),
    radial-gradient(700px 320px at 80% 120px, rgba(157,108,255,.08), transparent 60%);
}
.hero-icon {
  width: 96px; height: 96px; border-radius: 24px;
  box-shadow: 0 20px 60px rgba(108,140,255,.35);
}
.hero-badge {
  display: inline-block; margin-top: 26px; padding: 5px 16px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 20px; font-size: 13px; color: var(--text-dim);
}
.hero h1 { font-size: 44px; line-height: 1.2; margin-top: 18px; font-weight: 800; }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { max-width: 640px; margin: 18px auto 0; color: var(--text-dim); font-size: 17px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 26px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: 0 8px 28px rgba(108,140,255,.35);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(108,140,255,.5); }
.btn-ghost {
  border: 1px solid var(--card-border); color: var(--text);
  background: var(--card);
}
.hero-note { margin-top: 16px; color: var(--text-dim); font-size: 13px; }

.hero-shot {
  max-width: 980px; margin: 48px auto 0; padding: 0 24px;
}
.hero-shot img {
  width: 100%; display: block; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 80px rgba(108,140,255,.12);
  animation: float-in 1s cubic-bezier(.16,1,.3,1) both;
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(40px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-shot img { animation: none; } }

/* ---------- 通用标题 ---------- */
.section-title { text-align: center; font-size: 32px; font-weight: 800; }
.section-sub { text-align: center; color: var(--text-dim); margin: 10px auto var(--sp-5); max-width: 560px; }

/* ---------- 功能卡片 ---------- */
.grid {
  display: grid; gap: var(--sp-2);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: var(--sp-4);
}
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: var(--sp-3);
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s, background .25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(108,140,255,.45);
  background: rgba(108,140,255,.07);
}
.card .icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: rgba(108,140,255,.12);
  border: 1px solid rgba(108,140,255,.25);
  margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--text-dim); font-size: 14px; }

/* ---------- 深入模块（图文交错） ---------- */
.deep-row {
  display: grid; grid-template-columns: 5fr 6fr;
  gap: var(--sp-5); align-items: center;
  padding: var(--sp-5) 0;
}
.deep-row + .deep-row { border-top: 1px solid var(--card-border); }
.deep-row.rev .deep-text { order: 2; }
.deep-row.rev .deep-media { order: 1; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.deep-text h3 { font-size: 26px; font-weight: 800; line-height: 1.3; }
.deep-text p { color: var(--text-dim); margin-top: 12px; font-size: 15px; }
.ticks { list-style: none; margin-top: 16px; }
.ticks li {
  color: var(--text-dim); font-size: 14px;
  padding: 5px 0 5px 26px; position: relative;
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(52,211,153,.15); border: 1px solid rgba(52,211,153,.4);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: 15px;
  width: 6px; height: 3px; border-left: 1.6px solid var(--green);
  border-bottom: 1.6px solid var(--green);
  transform: rotate(-45deg);
}
.deep-media { position: relative; }
.deep-media .shot-main img {
  width: 100%; display: block; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.deep-media .shot-sub {
  position: absolute; right: -14px; bottom: -26px; width: 46%;
  margin: 0;
}
.deep-media .shot-sub img {
  width: 100%; display: block; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 50px rgba(0,0,0,.6);
}
.deep-media img { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.deep-media:hover .shot-main img { transform: translateY(-3px); }
.deep-media:hover .shot-sub img { transform: translateY(-6px); }

/* ---------- 画廊 ---------- */
.gal-group-label {
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim);
  margin: var(--sp-4) 0 var(--sp-2);
}
.gal-group-label:first-of-type { margin-top: 0; }
.shots { display: grid; gap: var(--sp-2); }
.shots.two { grid-template-columns: 1fr 1fr; }
.shots.three { grid-template-columns: repeat(3, 1fr); }
.shots figure {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
}
.shots figure:hover {
  transform: translateY(-5px);
  border-color: rgba(108,140,255,.4);
  box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 40px rgba(108,140,255,.08);
}
.shots img {
  width: 100%; display: block; aspect-ratio: 16/10.2; object-fit: cover; object-position: top;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.shots figure:hover img { transform: scale(1.025); }
.shots figcaption {
  padding: 10px 14px; font-size: 12.5px; color: var(--text-dim);
  border-top: 1px solid var(--card-border);
}

/* ---------- 下载 ---------- */
.dl-section { text-align: center; }
.dl-box {
  display: inline-block; text-align: center;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 20px; padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-2);
}
.dl-box .ver {
  display: inline-block; padding: 3px 12px; border-radius: 12px;
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35);
  color: var(--green); font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.dl-meta { margin-top: 14px; color: var(--text-dim); font-size: 13px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--card-border);
  padding: var(--sp-4) 0; text-align: center; color: var(--text-dim); font-size: 13px;
}
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- 文档页（支持/隐私） ---------- */
.doc { max-width: 760px; padding-top: var(--sp-5); padding-bottom: var(--sp-6); }
.doc h1 { font-size: 30px; margin-bottom: var(--sp-3); }
.doc h2 { font-size: 19px; margin: var(--sp-3) 0 10px; }
.doc p, .doc li { color: var(--text-dim); font-size: 15px; }
.doc ul { padding-left: 22px; }
.faq-item {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: var(--sp-2) var(--sp-3); margin-bottom: 12px;
}
.faq-item h3 { font-size: 15.5px; margin-bottom: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .deep-row { grid-template-columns: 1fr; gap: var(--sp-4); }
  .deep-row.rev .deep-text { order: 1; }
  .deep-row.rev .deep-media { order: 2; }
  .deep-media .shot-sub { position: static; width: 100%; margin-top: 12px; }
  .shots.two, .shots.three { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .section-title { font-size: 26px; }
}
