/* ==========================================================================
   动漫共和国 · 主题站群共享样式
   配色：深紫 / 星空蓝 / 暗夜黑
   字体：系统通用无衬线字体栈（无任何外部字体/CDN）
   ========================================================================== */

:root {
  --bg:        #0a0517;
  --bg-soft:   #120a26;
  --card:      #1a1030;
  --card-2:    #211440;
  --line:      rgba(168, 85, 247, .18);
  --line-2:    rgba(168, 85, 247, .34);
  --violet:    #a855f7;
  --violet-d:  #7c3aed;
  --indigo:    #4c1d95;
  --cyan:      #22d3ee;
  --pink:      #f472b6;
  --amber:     #fbbf24;
  --text:      #ecebf7;
  --muted:     #a99fc6;
  --muted-2:   #7f75a0;
  --radius:    18px;
  --radius-s:  12px;
  --shadow:    0 18px 48px rgba(0, 0, 0, .45);
  --wrap:      1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 星空背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -6%, rgba(124, 58, 237, .34), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, rgba(34, 211, 238, .14), transparent 60%),
    radial-gradient(700px 620px at 50% 108%, rgba(168, 85, 247, .16), transparent 62%);
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 5, 23, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(124, 58, 237, .5);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .5px;
  background: linear-gradient(92deg, #fff 10%, var(--violet) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
  transition: .22s;
  white-space: nowrap;
}

.nav-links a:hover { color: #fff; background: rgba(168, 85, 247, .14); }
.nav-links a.active { color: #fff; background: rgba(168, 85, 247, .22); }

.nav-cta {
  margin-left: 10px;
  padding: 9px 18px !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 700;
  background: linear-gradient(92deg, var(--violet-d), var(--violet) 55%, var(--pink));
  box-shadow: 0 8px 22px rgba(168, 85, 247, .38);
}
.nav-cta:hover { filter: brightness(1.1); background: linear-gradient(92deg, var(--violet-d), var(--violet) 55%, var(--pink)) !important; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(168, 85, 247, .12);
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 20px; height: 2px; border-radius: 2px; background: #fff;
  content: ""; transition: .25s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after  { top: 6px; left: 0; }

/* ---------------- 通用按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .4px;
  transition: .24s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(92deg, var(--violet-d), var(--violet) 52%, var(--pink));
  box-shadow: 0 12px 30px rgba(168, 85, 247, .42);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(168, 85, 247, .58); }

.btn-ghost {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(168, 85, 247, .1);
}
.btn-ghost:hover { background: rgba(168, 85, 247, .2); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------------- Hero ---------------- */
.hero { padding: 62px 0 54px; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 46px;
  align-items: center;
}
.hero-copy { order: 1; }
.hero-device { order: 2; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(168, 85, 247, .12);
  color: #d8cdf5;
  font-size: 13.5px;
  margin-bottom: 20px;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(94deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub { color: var(--muted); font-size: 16.5px; max-width: 560px; margin-bottom: 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted-2); font-size: 13.5px; }
.trust b { color: var(--text); font-weight: 700; }

/* 手机预览 */
.hero-device { display: flex; justify-content: center; }

.phone {
  width: 268px;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #2b1a52, #150c2c);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  position: relative;
}
.phone::after {
  content: "";
  position: absolute;
  top: 24px; right: 30px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
}
.phone::before {
  content: "";
  position: absolute;
  left: -3px; top: 122px;
  width: 3px; height: 48px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, rgba(168, 85, 247, .75), rgba(34, 211, 238, .5));
}
.phone img { border-radius: 26px; width: 100%; height: auto; }

/* 浮动数据卡 */
.float-card {
  position: absolute;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(26, 16, 48, .92);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--muted);
  backdrop-filter: blur(6px);
}
.float-card b { display: block; font-size: 19px; color: #fff; line-height: 1.3; }
.float-a { left: -14px; top: 22%; }
.float-b { right: -10px; bottom: 16%; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 66px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(26, 16, 48, .55), rgba(10, 5, 23, 0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }

.sec-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: .6px;
  margin-bottom: 12px;
}
.sec-head p { color: var(--muted); font-size: 15.5px; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
}

/* ---------------- 数据条 ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(33, 20, 64, .9), rgba(18, 10, 38, .9));
  border: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  background: linear-gradient(94deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--muted); font-size: 14px; }

/* ---------------- 功能卡片 ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  padding: 26px 24px 26px 29px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(33, 20, 64, .84), rgba(15, 9, 32, .8));
  border: 1px solid var(--line);
  transition: .28s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--violet), var(--cyan));
  opacity: .45;
  transition: .28s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; width: 5px; }

.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); font-size: 14.6px; }

.ico {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: linear-gradient(140deg, rgba(124, 58, 237, .38), rgba(34, 211, 238, .2));
  border: 1px solid var(--line-2);
}

/* ---------------- 截图预览 ---------------- */
.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-track { background: rgba(168, 85, 247, .1); border-radius: 99px; }
.shots::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--violet-d), var(--violet)); border-radius: 99px; }

.shot {
  flex: 0 0 214px;
  scroll-snap-align: start;
  border-radius: 22px;
  padding: 8px;
  background: linear-gradient(160deg, #2b1a52, #150c2c);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: auto; border-radius: 16px; }
.shot figcaption { text-align: center; font-size: 13.5px; color: var(--muted); padding: 11px 4px 4px; }

/* ---------------- 深度入口 ---------------- */
.entry {
  display: block;
  padding: 28px 26px 28px 29px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(124, 58, 237, .2), rgba(18, 10, 38, .85));
  border: 1px solid var(--line-2);
  transition: .28s;
  position: relative;
  overflow: hidden;
}
.entry::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--violet), var(--cyan));
  opacity: .8;
  transition: .28s;
}
.entry:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(124, 58, 237, .38); }
.entry:hover::before { width: 5px; }
.entry h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.entry p { color: var(--muted); font-size: 14.6px; margin-bottom: 16px; }
.entry .more { color: var(--cyan); font-size: 14.5px; font-weight: 700; }

/* ---------------- 用户评价 ---------------- */
.quote {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(26, 16, 48, .78);
  border: 1px solid var(--line);
}
.quote p { color: #ddd7ef; font-size: 15px; margin-bottom: 16px; }
.who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(140deg, var(--violet-d), var(--pink));
}
.who b { display: block; font-size: 14.5px; }
.who span { color: var(--muted-2); font-size: 12.5px; }
.stars { color: var(--amber); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border-radius: var(--radius-s);
  background: rgba(26, 16, 48, .72);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: .25s;
}
.faq-item.open { border-color: var(--line-2); background: rgba(33, 20, 64, .82); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 56px 18px 22px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  line-height: 1.6;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--violet);
  transition: .25s;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .34s ease; }
.faq-a > div { padding: 0 22px 20px; color: var(--muted); font-size: 14.8px; }
.faq-item.open .faq-a { max-height: 900px; }

/* ---------------- 长文内容 ---------------- */
.article { max-width: 860px; margin: 0 auto; }
.article h2 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; margin: 40px 0 14px; letter-spacing: .4px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 18.5px; font-weight: 700; margin: 26px 0 10px; color: #f3efff; }
.article p { color: var(--muted); margin-bottom: 15px; font-size: 15.6px; }
.article ul, .article ol { margin: 0 0 18px 0; display: grid; gap: 10px; }
.article li { color: var(--muted); font-size: 15.4px; padding-left: 22px; position: relative; }
.article ul li::before { content: "◆"; position: absolute; left: 0; color: var(--violet); font-size: 11px; top: 6px; }
.article ol { counter-reset: n; }
.article ol li { counter-increment: n; padding-left: 34px; }
.article ol li::before {
  content: counter(n);
  position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--violet-d), var(--violet));
}
.article a { color: var(--cyan); border-bottom: 1px dashed rgba(34, 211, 238, .5); }
.article a:hover { color: #fff; border-bottom-color: #fff; }
.article strong { color: #fff; font-weight: 700; }

.note {
  padding: 18px 20px;
  border-radius: var(--radius-s);
  border-left: 3px solid var(--violet);
  background: rgba(124, 58, 237, .12);
  color: #ded6f5;
  font-size: 14.8px;
  margin: 22px 0;
}

.page-hero { padding: 48px 0 8px; text-align: center; }
.page-hero h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: .6px;
}
.page-hero .lead { color: var(--muted); max-width: 700px; margin: 0 auto; font-size: 16px; }

.crumb { color: var(--muted-2); font-size: 13.5px; margin-bottom: 18px; }
.crumb a:hover { color: var(--violet); }

/* 步骤条 */
.steps { display: grid; gap: 16px; margin: 8px 0 8px; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(26, 16, 48, .7);
  border: 1px solid var(--line);
}
.step .no {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 19px; color: #fff;
  background: linear-gradient(140deg, var(--violet-d), var(--cyan));
}
.step h3 { font-size: 17.5px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.8px; }

/* 表格 */
.tbl-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--radius-s); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.6px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: rgba(124, 58, 237, .2); color: #fff; font-weight: 700; white-space: nowrap; }
td { color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(168, 85, 247, .07); }

/* ---------------- 底部下载 ---------------- */
.dl-band {
  border-radius: 24px;
  padding: 46px 36px;
  text-align: center;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(168, 85, 247, .34), transparent 68%),
    linear-gradient(160deg, #2b1a52, #150c2c);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.dl-band h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 12px; }
.dl-band p { color: var(--muted); margin-bottom: 26px; max-width: 620px; margin-inline: auto; }
.dl-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 22px; color: var(--muted-2); font-size: 13.5px; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(8, 4, 18, .8);
  padding: 46px 0 30px;
  position: relative;
  z-index: 1;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; margin-bottom: 32px; }
.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.foot-brand img { width: 36px; height: 36px; border-radius: 50%; }
.foot-brand b { font-size: 17px; }
.foot-desc { color: var(--muted-2); font-size: 14px; max-width: 360px; }
.foot-col h4 { font-size: 15px; margin-bottom: 14px; color: #fff; }
.foot-col a { display: block; color: var(--muted); font-size: 14.2px; padding: 5px 0; transition: .2s; }
.foot-col a:hover { color: var(--violet); }

.disclaimer {
  padding: 18px 20px;
  border-radius: var(--radius-s);
  background: rgba(168, 85, 247, .08);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.8;
}
.copyright { text-align: center; color: var(--muted-2); font-size: 13.2px; margin-top: 20px; }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 22px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(124, 58, 237, .82);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: .28s;
  z-index: 70;
}
.to-top.on { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--violet); transform: translateY(-3px); }

/* 滚动浮现：默认可见，仅在脚本生效时对「视口外」元素临时隐藏，
   保证脚本被禁用或加载失败时正文依然完整可读 */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.pre { opacity: 0; transform: translateY(26px); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { order: 1; }
  .hero-device { order: 2; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .float-a, .float-b { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    background: rgba(10, 5, 23, .98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .dl-band { padding: 34px 22px; }
  .shot { flex-basis: 178px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .hero { padding: 40px 0 34px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 17.5px; }
  .phone { width: 228px; }
}
