/* mousify.cn(国内备案站)共用样式。配色与 getmousify.com 一致:深底 + 青色强调。 */
:root {
  color-scheme: dark;
  --bg: #0b0e14; --card: #121722; --card2: #0f131c; --line: #232a38;
  --text: #e8ebf2; --muted: #8b93a7; --soft: #c9cedb;
  --accent: #00cec9; --accent-ink: #062a2a; --warn: #ffb36b; --bad: #ff8b8b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1000px 520px at 50% -12%, rgba(0, 206, 201, .13), transparent 70%), var(--bg);
  color: var(--text); font: 15px/1.7 -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* 顶栏 */
.top { border-bottom: 1px solid rgba(255, 255, 255, .05); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { font-size: 17px; letter-spacing: .3px; }
.brand small { color: var(--muted); font-size: 12px; margin-left: 2px; }
.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
@media (max-width: 520px) { .brand small { display: none; } .top nav { gap: 12px; } }
.top nav a:hover { color: var(--text); }

/* 按钮 */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 12px; text-decoration: none; border: 0; cursor: pointer;
  font: inherit; transition: transform .12s, filter .12s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: default; transform: none; filter: none; }
.btn b { font-size: 16px; }
.btn span { font-size: 12px; opacity: .8; }
.primary { background: var(--accent); color: var(--accent-ink); }
.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.muted { color: var(--muted); }
ul.check { list-style: none; padding: 0; margin: 0; }
ul.check li { position: relative; padding: 4px 0 4px 24px; color: var(--soft); font-size: 14px; }
ul.check li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
ul.check li.no { color: var(--muted); }
ul.check li.no::before { border-color: var(--line); }

/* 页脚(公司 / 联系方式 / 备案号由 site.js 填) */
.foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .05); padding: 22px 0 28px; font-size: 12px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; text-align: center; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* 条款页(terms / privacy / refund) */
.doc { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 36px 16px 56px; }
.doc h1 { font-size: 28px; margin: 0 0 6px; }
.doc .date { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.doc h2 { font-size: 18px; margin: 30px 0 8px; }
.doc h3 { font-size: 15px; margin: 18px 0 4px; color: var(--soft); }
.doc p, .doc li { color: var(--soft); }
.doc ul { padding-left: 22px; margin: 6px 0; }
.doc a { color: var(--accent); }
.doc .tip { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 8px; }

/* 更新日志(changelog.html,由 scripts/build-changelog.py 生成) */
.changelog .rel { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 4px; }
.changelog .rel h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.changelog .rel h2 .date { color: var(--muted); font-size: 13px; font-weight: 400; margin: 0; }
.changelog .btn { display: inline-flex; text-decoration: none; }
.changelog .btn.primary { color: var(--accent-ink); }

/* 点了下载之后问「从哪儿看到的」那张小卡(site.js askWhereFrom)。临时出现一次,所以做得显眼:
   不透明底、品牌色描边 + 光晕、两行大字、品牌色选项、上滑进场后光晕闪两下;仍不遮挡页面、不拦下载 */
#where-from { position: fixed; left: 0; right: 0; bottom: 20px; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
#where-from .wf-card { pointer-events: auto; position: relative; width: 100%; max-width: 600px; background: #10161f; border: 2px solid var(--accent); border-radius: 18px; padding: 18px 52px 18px 22px; box-shadow: 0 0 0 6px rgba(0, 206, 201, .12), 0 0 40px rgba(0, 206, 201, .35), 0 24px 60px rgba(0, 0, 0, .6); animation: wf-in .35s cubic-bezier(.2, .9, .3, 1.2) both, wf-glow 1.4s ease-in-out .4s 2; }
#where-from .wf-lead { margin: 0 0 4px; color: var(--accent); font-size: 18px; font-weight: 700; }
#where-from .wf-ask { margin: 0; color: var(--text); font-size: 16px; font-weight: 600; }
#where-from .wf-ask small { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 4px; }
#where-from .wf-done { margin: 0; color: var(--accent); font-size: 17px; font-weight: 700; text-align: center; }
#where-from .wf-opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
#where-from .wf-opts button { background: rgba(0, 206, 201, .1); color: var(--text); border: 1px solid rgba(0, 206, 201, .5); border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
#where-from .wf-opts button:hover, #where-from .wf-opts button:focus-visible { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); outline: none; }
#where-from .wf-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
#where-from .wf-x:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
@keyframes wf-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes wf-glow { 50% { box-shadow: 0 0 0 10px rgba(0, 206, 201, .2), 0 0 60px rgba(0, 206, 201, .55), 0 24px 60px rgba(0, 0, 0, .6); } }
@media (prefers-reduced-motion: reduce) { #where-from .wf-card { animation: none; } }
@media (max-width: 520px) { #where-from .wf-card { padding: 14px 44px 14px 16px; } #where-from .wf-opts { gap: 8px; margin-top: 12px; } #where-from .wf-opts button { padding: 5px 12px; font-size: 14px; } }
