/* ==========================================================================
   小闻的奇妙屋 — fuuumusic.com
   配色取自原 Wix 主题: 主色 #762DDD, 深紫 #4F1E93 / #650E9B, 墨紫 #270F4A
   字体: Poppins (自托管, 仅拉丁子集) + 中文系统字体 (不加载 CJK 字体, 省几 MB)
   ========================================================================== */

/* ---------- 字体 ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/poppins-700.woff2") format("woff2");
}

/* ---------- 设计令牌 ---------- */
:root {
  --purple: #762ddd;
  --purple-bright: #9815e9;
  --purple-dark: #650e9b;
  --purple-deep: #4f1e93;
  --purple-ink: #270f4a;
  --purple-mid: #b28ce8;
  --purple-soft: #ceb3f4;
  --purple-wash: #f5f0fd;
  --purple-wash-2: #ece2fa;

  --ink: #14121a;
  --ink-2: #4a4653;
  --ink-3: #7d7688;
  --line: #e9e3f3;
  --line-2: #f3eefa;
  --bg: #fff;

  --header-h: 66px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(39, 15, 74, .04), 0 6px 22px rgba(39, 15, 74, .07);
  --shadow-lift: 0 4px 10px rgba(39, 15, 74, .07), 0 16px 40px rgba(39, 15, 74, .12);

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-bright); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--purple-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: min(100% - 40px, 1060px); margin-inline: auto; }
.container-narrow { width: min(100% - 40px, 800px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--purple); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 9px 15px; border-radius: 999px;
  color: var(--ink-2); font-size: 15px; font-weight: 600;
  letter-spacing: .01em; white-space: nowrap;
  transition: background .16s, color .16s;
}
.site-nav a:hover { background: var(--purple-wash); color: var(--purple); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--purple); color: #fff; }

.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: background .15s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .2s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 620px);
  display: grid; place-items: center;
  text-align: center; color: #fff;
  background: var(--purple-ink) url("/assets/img/hero.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 8, 40, .60) 0%, rgba(20, 8, 40, .72) 60%, rgba(20, 8, 40, .88) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 90px 20px; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero-sub {
  margin: 18px 0 0; font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: rgba(255, 255, 255, .82); letter-spacing: .06em;
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .16s, box-shadow .16s, background .16s, color .16s;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 6px 20px rgba(118, 45, 221, .32); }
.btn-primary:hover { background: var(--purple-bright); color: #fff; box-shadow: 0 10px 28px rgba(152, 21, 233, .38); }

.btn-light { background: #fff; color: var(--purple-ink); }
.btn-light:hover { background: #fff; color: var(--purple); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }

.btn-outline { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }

.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }

.btn-block { width: 100%; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-wash { background: var(--purple-wash); border-block: 1px solid var(--line); }

.page-head {
  padding: 62px 0 40px;
  background: linear-gradient(180deg, var(--purple-wash) 0%, rgba(245, 240, 253, 0) 100%);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -.015em;
  color: var(--purple-ink);
}
.page-head .lede {
  margin: 18px 0 0; max-width: 60ch;
  font-size: 1.06rem; color: var(--ink-2);
}

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--purple);
}

/* ---------- 正文排版 ---------- */
.prose { font-size: 1.02rem; color: var(--ink-2); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  margin: 2.6em 0 .7em;
  padding-top: .5em;
  font-size: 1.55rem; font-weight: 700; line-height: 1.35;
  color: var(--purple-ink); letter-spacing: -.01em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; }
.prose h3 {
  margin: 2.1em 0 .6em;
  font-size: 1.18rem; font-weight: 700; line-height: 1.45; color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose p { margin: 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose hr { margin: 2.2em 0; border: 0; border-top: 1px dashed var(--line); }

/* 行内链接: 正文里偏紫, hover 下划线 */
.prose a { color: var(--purple); font-weight: 500; word-break: break-all; }
.prose a:hover { color: var(--purple-bright); }

/* 以 "官网 / 下载地址 / pan.quark.cn ..." 开头的行: 弱化为资源行 */
.prose p.res {
  margin-left: 1.4em; font-size: .95rem; color: var(--ink-3);
}
.prose p.res a { font-weight: 500; color: var(--purple-deep); }

/* 编号行: 保留原文序号, 用悬挂缩进模拟列表对齐
   (原文混用 "4、" 与 "（1）" 两级编号, 故不做列表语义化, 以免改动原文) */
.prose p.li-num {
  margin-top: .5em;
  padding-left: 2.05em;
  text-indent: -2.05em;
}
.prose p.li-num a { word-break: break-word; }

/* "优点: / 缺点:" 这类小标签 */
.prose p.tag-label {
  margin-top: 1.5em; font-weight: 700; color: var(--purple-deep); font-size: .98rem;
}

/* 提示块 */
.prose p.note {
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--purple-wash); border-left: 4px solid var(--purple-mid);
  font-size: .96rem; color: var(--ink-2);
}

/* ---------- 目录 ---------- */
.toc {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
  padding: 22px 24px; margin-bottom: 42px;
}
.toc-title {
  margin: 0 0 12px; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-top: 7px; }
.toc a { font-weight: 600; color: var(--purple-deep); }

/* ---------- 卡片 / 网格 ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  display: block;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 24px;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.card:hover {
  border-color: var(--purple-soft); box-shadow: var(--shadow-lift);
  transform: translateY(-3px); text-decoration: none;
}
.card h2 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.card .count {
  margin: 6px 0 0; font-size: .86rem; color: var(--ink-3); font-weight: 500;
}

/* FAQ 分类卡 */
.faq-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.faq-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 26px 26px 20px;
  box-shadow: var(--shadow);
}
.faq-card h2 {
  margin: 0 0 14px; font-size: 1.02rem; font-weight: 700;
  color: var(--purple-ink); letter-spacing: .01em;
  display: flex; align-items: center; gap: 10px;
}
.faq-card h2::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple); flex-shrink: 0;
}
.faq-card ul { margin: 0; padding: 0; list-style: none; }
.faq-card li + li { border-top: 1px solid var(--line-2); }
.faq-card a {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 11px 4px; color: var(--ink-2); font-size: .97rem; line-height: 1.6;
  transition: color .14s, padding .14s;
}
.faq-card a::after {
  content: "→"; color: var(--purple-mid); font-weight: 700;
  flex-shrink: 0; transition: transform .16s, color .14s;
}
.faq-card a:hover {
  color: var(--purple); text-decoration: none; padding-left: 10px;
}
.faq-card a:hover::after { transform: translateX(3px); color: var(--purple); }

/* ---------- 网店合作按钮区 ---------- */
.links-stack { display: grid; gap: 14px; max-width: 560px; }
.link-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.link-row:hover {
  border-color: var(--purple-soft); box-shadow: var(--shadow-lift);
  transform: translateY(-2px); text-decoration: none;
}
.link-row .lr-text { min-width: 0; }
.link-row .lr-title { font-weight: 700; color: var(--ink); font-size: 1rem; }
.link-row .lr-desc { font-size: .85rem; color: var(--ink-3); margin-top: 2px; }
.link-row .lr-arrow { color: var(--purple); font-size: 1.3rem; flex-shrink: 0; font-weight: 700; }
.link-row.is-primary { background: var(--purple); border-color: var(--purple); }
.link-row.is-primary .lr-title { color: #fff; }
.link-row.is-primary .lr-desc { color: rgba(255, 255, 255, .78); }
.link-row.is-primary .lr-arrow { color: #fff; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; margin-top: 34px; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--purple-soft), var(--line));
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--purple-mid);
  box-shadow: 0 0 0 4px rgba(118, 45, 221, .08);
}
.tl-item:first-child::before { border-color: var(--purple); }
.tl-item h3 {
  margin: 0 0 8px; font-size: 1.12rem; font-weight: 700;
  color: var(--purple-ink); line-height: 1.4;
}
.tl-item p { margin: 0; color: var(--ink-2); font-size: .99rem; }
.tl-item p + p { margin-top: .8em; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 40px; padding: 56px 0 40px;
  background: var(--purple-ink); color: rgba(255, 255, 255, .74);
  font-size: .95rem;
}
.footer-inner { display: grid; gap: 30px; }
.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-title {
  margin: 22px 0 14px; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
}
.footer-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-list li { display: flex; }
.contact-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff !important; font-size: .92rem; font-weight: 500;
  transition: background .16s, border-color .16s;
  cursor: pointer; font-family: inherit;
}
.contact-chip:hover { background: rgba(255, 255, 255, .17); text-decoration: none; border-color: rgba(255, 255, 255, .3); }
.contact-chip .lbl { color: rgba(255, 255, 255, .5); font-size: .82rem; }
.contact-chip .val { font-family: var(--mono); font-size: .88rem; }
.contact-chip.copied { background: rgba(126, 231, 165, .2); border-color: rgba(126, 231, 165, .45); }

.footer-bottom {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .86rem; color: rgba(255, 255, 255, .45);
}
.footer-bottom a { color: rgba(255, 255, 255, .62); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--purple);
  font-size: 1.15rem; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-lift);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s, transform .22s, visibility .22s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--purple); color: #fff; }

/* ---------- 404 ---------- */
.err-wrap { padding: 110px 0 120px; text-align: center; }
.err-code {
  font-size: clamp(4.5rem, 16vw, 8rem); font-weight: 700; line-height: 1;
  color: var(--purple-wash-2); letter-spacing: -.04em; margin: 0;
}
.err-wrap h1 { margin: 8px 0 0; font-size: 1.6rem; color: var(--purple-ink); }
.err-wrap p { margin: 14px 0 32px; color: var(--ink-3); }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .container, .container-narrow { width: min(100% - 32px, 1060px); }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(39, 15, 74, .1);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 16px; border-radius: 10px; font-size: 16px; }
  .section { padding: 52px 0; }
  .page-head { padding: 42px 0 30px; }
  .hero-inner { padding: 64px 20px; }
  .faq-grid, .grid-2 { grid-template-columns: 1fr; }
  .timeline { padding-left: 28px; }
  .tl-item::before { left: -28px; }
  .to-top { right: 14px; bottom: 14px; }
  .prose p.res { margin-left: .6em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .site-footer, .to-top, .skip-link, .toc { display: none; }
  body { font-size: 11pt; }
  .prose a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
