/* 速览岛官网样式：自动跟随系统浅色 / 深色模式，不引用外部字体 */
:root {
  --bg: #f4f8ff;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #5b6475;
  --line: rgba(15, 23, 42, .08);
  --brand: #1f6fe0;
  --brand2: #7c5cff;
  --up: #ff9f0a;
  --down: #30d158;
  --shadow: 0 20px 50px -20px rgba(20, 50, 120, .35);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b14;
    --bg-alt: #0c1220;
    --card: #111a2c;
    --text: #eef2fb;
    --muted: #9aa4b8;
    --line: rgba(255, 255, 255, .08);
    --brand: #4c95ff;
    --brand2: #a08bff;
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "PingFang TC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.skip { position: absolute; left: 16px; top: -999px; }
.skip:focus { top: 16px; z-index: 99; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* 顶部导航 */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 18px; }
.brand img { border-radius: 8px; }
.brand small { color: var(--muted); font-weight: 500; font-size: 13px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.lang-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); min-width: 140px; }
.lang-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.lang-menu button:hover, .lang-menu button[aria-checked="true"] { background: color-mix(in srgb, var(--brand) 12%, transparent); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 13px 24px; font-size: 16px; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn.small { padding: 7px 16px; font-size: 14px; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; box-shadow: 0 10px 24px -10px var(--brand); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { border-color: var(--line); background: var(--card); }
.btn.disabled { opacity: .7; cursor: default; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* 首屏 */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.glow { position: absolute; inset: 0; pointer-events: none; }
.glow i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.glow i:first-child { width: 520px; height: 520px; background: #3b8cff; right: -120px; top: -160px; }
.glow i:last-child { width: 420px; height: 420px; background: #8b5cf6; left: -160px; bottom: -160px; opacity: .3; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.pill img { border-radius: 6px; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand2) 60%, #ff7ab6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 26px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.plats { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.plats li { display: flex; align-items: center; gap: 6px; }
.plats svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero-art { position: relative; height: 580px; }
.phone { border-radius: 42px; padding: 9px; background: #0b0f17; box-shadow: var(--shadow); position: relative; }
.phone img { border-radius: 34px; }
.hero-art .phone { position: absolute; width: 240px; }
.hero-art .front { right: 50px; top: 10px; z-index: 2; }
.hero-art .back { right: 220px; top: 50px; transform: rotate(-6deg); opacity: .95; }
.island { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 62%; height: 28px; border-radius: 999px; background: #000; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; font: 600 11px/1 ui-rounded, -apple-system, sans-serif; font-variant-numeric: tabular-nums; }
.island .up { color: var(--up); }
.island .down { color: var(--down); }
.chip { position: absolute; z-index: 3; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; font-size: 13px; }
.chip b { font-size: 14px; }
.chip span { color: var(--muted); }
.chip.c1 { left: 0; top: 40px; }
.chip.c2 { right: 0; bottom: 30px; }

.proof { position: relative; z-index: 3; list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.proof li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; }
.proof b { font-size: 28px; }
.proof span { color: var(--muted); font-size: 14px; }

/* 通用区块 */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.kicker { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 28px; }
.sub { color: var(--muted); max-width: 40em; margin: -14px 0 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card.plain h3 { margin-top: 0; }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c); }
.ic svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 28px 0; }
.row.rev .row-copy { order: 2; }
.row-copy p { color: var(--muted); font-size: 18px; }
.row-copy h2 { margin-bottom: 14px; }
.row-art { display: flex; justify-content: center; }
.row-art .phone { width: 260px; }

/* 价格 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.best { border: 2px solid var(--brand); }
.plan h3 { margin: 0 0 8px; font-size: 18px; }
.plan .price { margin: 0 0 6px; }
.plan .price b { font-size: 36px; }
.plan .price span { color: var(--muted); }
.plan p { color: var(--muted); margin: 0; font-size: 15px; }
.plan .tag { position: absolute; top: -12px; right: 20px; background: linear-gradient(135deg, #ff9f0a, #ff6b3d); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.note { color: var(--muted); font-size: 14px; margin: 18px 0 0; }

/* 常见问题 */
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin: 0 0 10px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 0 0 16px; }

/* 下载 */
.download { background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent), var(--bg-alt); }
.big-icon { border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.download .sub { margin: -14px auto 26px; }

/* 页脚 */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* 窄屏 */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  /* 窄屏只放一台居中的手机 */
  .hero-art { height: auto; display: flex; justify-content: center; margin-top: 8px; }
  .hero-art .phone { position: relative; width: 250px; }
  .hero-art .front { right: auto; top: auto; }
  .hero-art .back, .chip { display: none; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .grid, .grid.three, .plans { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 20px; }
  .row.rev .row-copy { order: 0; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .hero { padding-top: 36px; }
  .hero-art .phone { width: 230px; }
  .brand small { display: none; }
  .lang-btn span { display: none; }
}

/* 「正在审核」弹窗 */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5, 10, 20, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card { width: min(380px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px 22px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; }
.modal-card img { border-radius: 15px; margin-bottom: 14px; }
.modal-card h3 { margin: 0 0 8px; font-size: 20px; }
.modal-card p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.modal-card .btn { min-width: 140px; justify-content: center; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.lang-menu { max-height: 70vh; overflow-y: auto; }
/* 阿拉伯语从右到左 */
[dir="rtl"] .nav-end { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav-links { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-menu button { text-align: right; }
[dir="rtl"] summary::after { float: left; }
/* 非简体中文时，等文案套用完再显示，免得先闪一下中文 */
.i18n-wait body { visibility: hidden; }
/* 背景光晕会伸出页面两侧；从右到左排版时伸出去的部分会变成可以横向滚动的空白 */
html, body { overflow-x: clip; }
[dir="rtl"] .skip { left: auto; right: 16px; }
