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

:root {
  --purple: #6c5ce7;
  --lavender: #a29bfe;
  --pink: #fd79a8;
  --gold: #fab84a;
  --deep: #2d1f5f;
  --bg-0: #faf9ff;
  --bg-1: #f3eefd;
  --ink-1: #3d3380;
  --ink-2: #5a4e9e;
  --muted: rgba(108, 92, 231, 0.55);
  --line: rgba(108, 92, 231, 0.12);
}

html, body {
  background:
    radial-gradient(circle at 15% 10%, rgba(253, 121, 168, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(162, 155, 254, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #faf9ff 0%, #f3eefd 100%);
  color: var(--ink-1);
  font-family: "PingFang SC", "Noto Serif SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--pink); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- Star / moon decoration ---------- */
.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.moon {
  position: absolute; top: 80px; right: 10%;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 253, 240, .95) 0%,
    rgba(253, 121, 168, .15) 55%,
    transparent 75%);
  filter: blur(1px); opacity: .55;
}
.cloud {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(162, 155, 254, 0.18), transparent 65%);
  filter: blur(30px);
}
.c1 { top: 20%; left: -100px; width: 300px; height: 300px; }
.c2 { bottom: 10%; right: -80px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(253, 121, 168, 0.15), transparent 65%); }
.c3 { top: 60%; left: 40%; width: 260px; height: 260px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 32px; height: 32px; }
.brand-name {
  font-weight: 800; font-size: 20px;
  font-family: "Noto Serif SC", serif;
  background: linear-gradient(135deg, #6c5ce7 0%, #fd79a8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
.menu a {
  margin-left: 28px; font-size: 14px; color: var(--ink-2); font-weight: 500;
  position: relative; padding-bottom: 4px;
  transition: color .2s;
}
.menu a:hover { color: var(--purple); }
.menu a.active { color: var(--purple); font-weight: 700; }
.menu a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #6c5ce7, #fd79a8);
}

@media (max-width: 640px) {
  .menu a { margin-left: 16px; font-size: 13px; }
}
@media (max-width: 480px) {
  .menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1;
  padding: 100px 0 80px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px; letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple);
  margin-bottom: 28px;
}
.hero h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 56px; font-weight: 800;
  color: var(--deep);
  letter-spacing: 3px;
  line-height: 1.3;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #fd79a8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin: 28px auto 40px; max-width: 640px;
  color: var(--ink-2); font-size: 15px;
}
.cta-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 50px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.btn.primary {
  background: linear-gradient(135deg, #6c5ce7 0%, #fd79a8 100%);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(108, 92, 231, 0.4);
}
.btn.primary:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(108, 92, 231, 0.55);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  color: var(--ink-1);
  backdrop-filter: blur(6px);
}
.btn.ghost:hover { border-color: var(--purple); color: var(--purple); }
.hero-meta {
  display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}

@media (max-width: 640px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 36px; letter-spacing: 2px; }
  .hero-sub { font-size: 14px; }
  .hero-sub br { display: none; }
}

/* ---------- Section ---------- */
.section { position: relative; z-index: 1; padding: 80px 0; }
.section-title {
  font-family: "Noto Serif SC", serif;
  font-size: 30px; font-weight: 700;
  color: var(--deep); text-align: center; margin-bottom: 10px;
  letter-spacing: 1px;
}
.section-desc { text-align: center; color: var(--ink-2); max-width: 560px; margin: 0 auto 48px; }

/* ---------- Grid 4 cards ---------- */
.grid-4 {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 26px 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 28px; bottom: 28px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #6c5ce7 0%, #a29bfe 50%, #fd79a8 100%);
  opacity: .35;
  transition: opacity .3s ease, width .3s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(108, 92, 231, .08), rgba(253, 121, 168, .06));
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 92, 231, .25);
  box-shadow: 0 20px 38px -16px rgba(108, 92, 231, 0.32);
}
.card:hover::before { opacity: 1; width: 4px; }
.card:hover::after { opacity: 1; }
.card-num {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 40px; font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 60%, #fd79a8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.card-tag {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 16px;
}
.card h3 {
  font-family: "Noto Serif SC", serif; font-size: 19px;
  color: var(--deep); margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.card p {
  color: var(--ink-2); font-size: 13.5px; line-height: 1.75;
  position: relative; z-index: 1;
}

/* ---------- Grid 3 tiles ---------- */
.grid-3 {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.tile {
  background: linear-gradient(135deg, rgba(162, 155, 254, 0.12) 0%, rgba(253, 121, 168, 0.08) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
}
.tile h4 { font-size: 16px; color: var(--deep); margin-bottom: 10px; }
.tile p { color: var(--ink-2); font-size: 13px; }

/* ---------- Download ---------- */
.badge-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 30px 0 18px; }
.badge-pill {
  display: inline-block;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.note { color: var(--muted); font-size: 13px; }

/* ---------- About ---------- */
.about-card {
  max-width: 760px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
}
.about-card p { margin-bottom: 14px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; gap: 20px; max-width: 760px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}
.contact-grid h4 { font-size: 14px; color: var(--ink-1); margin-bottom: 6px; }
.contact-grid p a { font-size: 13px; }

/* ---------- Footer (备案区 · 单行横排) ---------- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(250, 249, 255, 0.7);
  padding: 18px 0;
}
.footer-inner {
  display: flex; flex-direction: row;
  justify-content: center; align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  text-align: center;
}
/* 让 brand 和 legal 两个外壳"消失"，它们的子元素直接成为 footer-inner 的 flex 子项 */
.footer-brand,
.footer-legal { display: contents; }

.footer-brand .brand-name {
  font-size: 13px; letter-spacing: 0.5px;
}
.footer-brand .brand-sub {
  font-size: 12px; color: var(--muted);
}
.footer-legal p {
  margin: 0; font-size: 12px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.footer-legal a { color: var(--muted); transition: color .2s; }
.footer-legal a:hover { color: var(--purple); }
.beian .sep { color: var(--line); margin: 0 2px; }
.gonganbeian { display: inline-flex; align-items: center; gap: 5px; }
.icon-police { width: 14px; height: 14px; vertical-align: middle; }

@media (max-width: 640px) {
  .site-footer { padding: 14px 0; }
  .footer-inner { gap: 4px 10px; }
  .footer-legal p { white-space: normal; }
}

/* =============================================================
   Home (单屏布局 · 不需要下拉)
============================================================= */
body.page-home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px;
  position: relative; z-index: 1;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  gap: 48px;
}
.home-hero { text-align: center; }
.home-hero .hero-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px; letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple);
  margin-bottom: 22px;
}
.home-hero h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 52px; font-weight: 800;
  color: var(--deep);
  letter-spacing: 3px;
  line-height: 1.3;
}
.home-hero h1 .gradient {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #fd79a8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-hero .hero-sub {
  margin: 22px auto 0; max-width: 780px;
  color: var(--ink-2); font-size: 15px;
}

/* 4 个入口卡 */
.home-entries {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.entry {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 22px 28px;
  display: flex; flex-direction: column;
  color: var(--ink-1);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.entry::before {
  content: "";
  position: absolute;
  left: 0; top: 26px; bottom: 26px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #6c5ce7 0%, #a29bfe 50%, #fd79a8 100%);
  opacity: .35;
  transition: opacity .3s ease, width .3s ease;
}
.entry:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 92, 231, .25);
  box-shadow: 0 20px 38px -16px rgba(108, 92, 231, 0.32);
  color: var(--ink-1);
}
.entry:hover::before { opacity: 1; width: 4px; }
.entry-num {
  font-family: "Noto Serif SC", serif;
  font-size: 36px; font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 60%, #fd79a8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.entry-tag {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 14px;
}
.entry h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 18px; color: var(--deep);
  margin-bottom: 8px; letter-spacing: 0.5px;
}
.entry p {
  color: var(--ink-2); font-size: 13px;
  line-height: 1.7; flex: 1;
  margin-bottom: 12px;
}
.entry-arrow {
  align-self: flex-end;
  font-size: 18px; color: var(--purple);
  transition: transform .3s ease;
}
.entry:hover .entry-arrow { transform: translateX(4px); }

@media (max-width: 980px) {
  .home-entries { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .home-main { padding: 24px 18px; gap: 32px; }
  .home-hero h1 { font-size: 34px; letter-spacing: 2px; }
  .home-hero .hero-sub { font-size: 14px; }
  .home-entries { grid-template-columns: 1fr; gap: 14px; }
  .entry { padding: 22px 20px 24px; }
  .entry-num { font-size: 30px; }
}

/* =============================================================
   内页 page-head & detail-list
============================================================= */
.page-head {
  position: relative; z-index: 1;
  padding: 80px 0 40px;
  text-align: center;
}
.page-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px; letter-spacing: 3px; font-weight: 700;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple);
  margin-bottom: 22px;
}
.page-title {
  font-family: "Noto Serif SC", serif;
  font-size: 46px; font-weight: 800;
  color: var(--deep);
  letter-spacing: 3px; line-height: 1.3;
  margin-bottom: 22px;
}
.page-title .gradient {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #fd79a8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-lead {
  max-width: 640px; margin: 0 auto;
  color: var(--ink-2); font-size: 15px;
}

@media (max-width: 640px) {
  .page-head { padding: 50px 0 30px; }
  .page-title { font-size: 30px; letter-spacing: 2px; }
}

/* 详细列表 */
.detail-list .section-desc { margin-bottom: 36px; }
.detail-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.detail-row:last-child { border-bottom: none; }
.detail-num {
  font-family: "Noto Serif SC", serif;
  font-size: 44px; font-weight: 800;
  line-height: 1; letter-spacing: 1px;
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 60%, #fd79a8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.detail-body h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 18px; color: var(--deep);
  margin-bottom: 8px; letter-spacing: 0.5px;
}
.detail-body p {
  color: var(--ink-2); font-size: 14px; line-height: 1.85;
}

@media (max-width: 640px) {
  .detail-row { grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; }
  .detail-num { font-size: 30px; }
}
