/* MangoDisk Plus · 官网样式
   品牌色取自应用图标：奶油底 + 芒果橙 #FFA11A → #F97803 渐变 */
:root {
  --ink: #1f1a14;
  --ink-2: #3f362b;
  --muted: #6f6355;
  --line: #ebdfcd;
  --bg: #ffffff;
  --soft: #fffaf2;
  --brand: #e56f00;
  --brand-d: #c25a00;
  --brand-l: #fff3e3;
  --deep: #241a10;
  --deep-2: #3a2a19;
  --green: #6d9827;
  --radius: 14px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(36, 26, 16, .05), 0 8px 24px rgba(36, 26, 16, .07);
  --grad: linear-gradient(120deg, #ffb020, #f97803 55%, #e56f00);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.seal {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--brand-l);
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(229, 111, 0, .18);
}
.seal svg { width: 26px; height: 26px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; letter-spacing: -.01em; }
.brand-text em { font-style: normal; font-size: 11.5px; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links > a { color: var(--muted); font-size: 14.5px; }
.nav-links > a:hover { color: var(--ink); }

/* 语言菜单 */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px;
  font-size: 14.5px; color: var(--muted); padding: 6px 8px; border-radius: 8px;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--ink); background: var(--soft); }
.lang-menu[open] summary { color: var(--ink); background: var(--soft); }
.globe { font-size: 13px; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; min-width: 180px;
  display: grid; gap: 2px; max-height: 70vh; overflow: auto;
  grid-template-columns: 1fr 1fr; z-index: 60;
}
.lang-list a {
  padding: 6px 10px; border-radius: 7px; font-size: 14px; color: var(--ink-2); white-space: nowrap;
}
.lang-list a:hover { background: var(--soft); color: var(--ink); }
.lang-list a[aria-current="page"] { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 11px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
  white-space: nowrap;
}
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 2px 12px rgba(229, 111, 0, .3);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(229, 111, 0, .35); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.win-ico { flex: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 84px; background: linear-gradient(180deg, var(--soft), #fff 70%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.hero h1 {
  margin: 18px 0 0; font-size: clamp(30px, 4.1vw, 46px); line-height: 1.22;
  letter-spacing: -.022em; font-weight: 800;
}
.h1-kicker {
  display: block; font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede { margin: 20px 0 0; font-size: 17px; color: var(--muted); max-width: 46ch; }
.lede strong { color: var(--ink-2); font-weight: 600; }
.cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin: 24px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.hero-meta li { font-size: 13.5px; color: var(--muted); position: relative; padding-left: 16px; }
.hero-meta li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green);
}

/* ---------- 应用示意图 ---------- */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: var(--soft); border-bottom: 1px solid var(--line);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #e0d3c1; }
.mock-title { margin-left: 8px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.mock-body { padding: 20px; display: grid; gap: 18px; }
.mock-ring { display: flex; align-items: center; gap: 18px; }
.ring { width: 92px; height: 92px; flex: none; }
.ring-label { display: flex; flex-direction: column; }
.ring-label b { font-size: 26px; letter-spacing: -.02em; }
.ring-label span { font-size: 12.5px; color: var(--muted); }
.mock-rows { display: grid; gap: 7px; }
.mock-row {
  display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 9px; font-size: 13.5px; color: var(--ink-2);
  background: var(--soft);
}
.mock-row.active { background: var(--brand-l); }
.mock-row i { font-style: normal; color: var(--brand); font-size: 12px; }
.mock-row b { font-weight: 600; font-size: 12.5px; color: var(--muted); }

/* ---------- 通用区块 ---------- */
.sec { padding: 78px 0; }
.sec-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; }
.sec-head p { margin: 12px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- 功能卡片 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  display: flex; gap: 14px; padding: 22px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .15s, transform .15s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-i {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 17px;
  background: var(--brand-l);
}
.feature h4 { margin: 0 0 6px; font-size: 15.5px; letter-spacing: -.01em; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ---------- 安全步骤 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 800px; margin-inline: auto; }
.steps li {
  display: flex; gap: 16px; padding: 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.step-n {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
  background: var(--grad); color: #fff;
}
.steps h4 { margin: 2px 0 5px; font-size: 15.5px; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 20px; transition: box-shadow .15s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; padding: 17px 0; font-weight: 600; font-size: 15.5px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 20px; color: var(--brand); font-weight: 400;
  transition: transform .18s; flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.faq p:last-child { padding-bottom: 4px; }

/* ---------- 下载 ---------- */
.dl-box {
  max-width: 760px; margin: 0 auto; padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow);
}
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dl-info h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.dl-info p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.dl-hint { margin: 18px 0 0; font-size: 13px; color: var(--muted); line-height: 1.65; }
.dl-license {
  margin: 10px 0 0; padding: 10px 13px; border-radius: 9px;
  background: var(--brand-l); color: var(--brand-d); font-size: 12.5px; line-height: 1.6;
}
.req {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
}
.req div { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; color: var(--ink-2); }
.req b { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }

/* ---------- 页脚 ---------- */
.foot { background: var(--deep); color: #b9ac9b; padding: 46px 0 34px; font-size: 13.5px; }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: #b9ac9b; }
.foot-links a:hover { color: #fff; }
.foot-langs { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.foot-langs a { color: #94897b; font-size: 12.5px; }
.foot-langs a:hover { color: #fff; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12.5px; color: #8c8175;
}

/* 友情链接 */
.friends { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.friends-title { margin: 0 0 12px; font-size: 12.5px; color: #94897b; font-weight: 600; letter-spacing: .03em; }
.friends-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.friends-list a { color: #b9ac9b; font-size: 12.5px; }
.friends-list a:hover { color: #fff; }

/* ---------- RTL ---------- */
html[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .lang-list { right: auto; left: 0; }
html[dir="rtl"] .hero-meta li { padding-left: 0; padding-right: 16px; }
html[dir="rtl"] .hero-meta li::before { left: auto; right: 0; }
html[dir="rtl"] .mock-row { grid-template-columns: 18px 1fr auto; }
html[dir="rtl"] .friends-list { direction: rtl; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav-links > a { display: none; }
  .req { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding: 44px 0 54px; }
  .sec { padding: 54px 0; }
  .features { grid-template-columns: 1fr; }
  .brand-text em { display: none; }
  .lang-list { grid-template-columns: 1fr; min-width: 150px; }
  .dl-row { flex-direction: column; align-items: stretch; }
  .dl-row .btn { width: 100%; }
  .req { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
