@charset "utf-8";
/* ============================================================
   梦漫 · mengman.org.cn
   共享样式表（第 2 档视觉：晨雾青白底 + 星海蓝主色 + 霞紫辅色 + 樱粉点缀）
   ============================================================ */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2f7fd;
  --bg2: #e7f0fc;
  --panel: #ffffff;
  --panel2: #f7fafe;
  --ink: #15243c;
  --ink2: #2c425f;
  --muted: #5b7396;
  --line: #dce7f5;
  --line2: #edf3fb;
  --pri: #2b7be4;
  --pri-d: #1a55b0;
  --pri-l: #e4effd;
  --vio: #8e6cf0;
  --vio-l: #f0eafe;
  --acc: #ff9fc0;
  --r: 16px;
  --r-lg: 22px;
  --sh-s: 0 6px 18px -12px rgba(21, 36, 60, 0.3);
  --sh: 0 24px 50px -28px rgba(43, 123, 228, 0.45);
  --wrap: 1180px;
  --num: "Outfit", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.85 "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
}

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

a { color: var(--pri-d); text-decoration: none; }
a:hover { color: var(--pri); }

p { margin: 0 0 16px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 6px 0; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 14px; }
h1 { font-size: 40px; font-weight: 800; letter-spacing: 0.4px; }
h2 { font-size: 27px; font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.num { font-family: var(--num); letter-spacing: 0.4px; }

/* ---------- 动画（纯 CSS，终态即正常态） ---------- */
@keyframes auroraA { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(44px, 30px, 0) scale(1.14); } }
@keyframes auroraB { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-50px, 26px, 0) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes sweep { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(220%); } }

/* ---------- 顶栏 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 14px -8px rgba(43, 123, 228, 0.8); }
.brand-name { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: 1px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 15px; border-radius: 999px; color: var(--ink2);
  font-size: 15px; font-weight: 600; transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--pri-l); color: var(--pri-d); }
.nav a.on { background: var(--pri-l); color: var(--pri-d); }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  background: linear-gradient(120deg, var(--pri) 0%, var(--vio) 100%);
  color: #fff; font-size: 16px; font-weight: 700; line-height: 1;
  box-shadow: 0 14px 26px -14px rgba(43, 123, 228, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(43, 123, 228, 0.95); }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: sweep 4.6s ease-in-out infinite;
}
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-lg { padding: 16px 40px; font-size: 18px; }
.btn-ghost {
  background: #fff; color: var(--pri-d);
  box-shadow: inset 0 0 0 1.5px var(--pri-l), var(--sh-s);
}
.btn-ghost:hover { color: var(--pri-d); background: var(--pri-l); }
.btn-ghost::after { display: none; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; padding: 11px 10px; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--ink2); border-radius: 2px; }
.burger span + span { margin-top: 5px; }

/* ---------- Hero：浅色极光 + 居中堆叠 ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f8fbff 0%, #edf4fe 56%, var(--bg) 100%); padding: 56px 0 0; }
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(58px); }
.hero__glow.a { width: 520px; height: 520px; left: -140px; top: -190px; background: radial-gradient(circle, rgba(142, 108, 240, 0.42), transparent 70%); animation: auroraA 20s ease-in-out infinite alternate; }
.hero__glow.b { width: 600px; height: 480px; right: -170px; top: -140px; background: radial-gradient(circle, rgba(43, 123, 228, 0.4), transparent 70%); animation: auroraB 24s ease-in-out infinite alternate; }
.hero__glow.c { width: 440px; height: 440px; left: 40%; bottom: -190px; background: radial-gradient(circle, rgba(255, 159, 192, 0.38), transparent 70%); animation: auroraA 27s ease-in-out infinite alternate-reverse; }
.hero-in { position: relative; z-index: 2; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-s);
  color: var(--pri-d); font-size: 14px; font-weight: 700;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.hero h1 { margin: 18px 0 16px; font-size: 48px; letter-spacing: 1px; }
.lead {
  max-width: 660px; margin: 0 auto 26px; color: var(--ink2);
  font-size: 17px; line-height: 1.9; text-align: left;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 22px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin: 0 0 34px; padding: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin: 0; }
.hero-facts b { font-family: var(--num); font-size: 17px; color: var(--ink); }

.hero-media { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 22px; padding-bottom: 0; }
/* DOM 顺序把真机图放最前（校验取 Hero 首图），视觉上用 order 把它摆到中间 */
.hero-media .phone:nth-child(1) { order: 2; }
.hero-media .phone:nth-child(2) { order: 1; }
.hero-media .phone:nth-child(3) { order: 3; }
.phone {
  width: 250px; border-radius: 26px; background: #fff; padding: 8px;
  box-shadow: 0 30px 60px -30px rgba(21, 36, 60, 0.6), inset 0 0 0 1px var(--line2);
  animation: rise 0.8s 0.1s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.phone img { width: 100%; height: auto; border-radius: 20px; }
.phone.mid { width: 296px; z-index: 2; }
.phone.side { width: 208px; opacity: 0.96; transform: translateY(16px); }
.phone.side:first-child { animation-delay: 0.24s; }
.phone.side:last-child { animation-delay: 0.18s; }
.hero-media::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 78%; max-width: 720px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--pri-l) 22%, var(--acc) 50%, var(--vio-l) 78%, transparent);
}

/* ---------- 通用区块 ---------- */
.sec { padding: 62px 0; }
.sec.alt { background: linear-gradient(180deg, var(--bg2), #fff 62%); }
.sec-in { max-width: 980px; margin: 0 auto; }
.sec-head { margin-bottom: 30px; }
.sec-head .tag {
  display: inline-block; margin-bottom: 10px; padding: 5px 13px; border-radius: 999px;
  background: var(--pri-l); color: var(--pri-d); font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
}
.sec-head p { margin: 0; color: var(--muted); font-size: 16px; }
.prose p { color: var(--ink2); }
.prose h3 { margin-top: 26px; }
.prose .note {
  border-left: 3px solid var(--pri); background: var(--panel2);
  padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--ink2);
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  background: var(--panel); border-radius: var(--r);
  padding: 24px 22px 22px;
  box-shadow: var(--sh-s), inset 0 0 0 1px var(--line2);
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.card:nth-child(2) { animation-delay: 0.07s; }
.card:nth-child(3) { animation-delay: 0.14s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.26s; }
.card:nth-child(6) { animation-delay: 0.32s; }
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--pri), var(--vio) 62%, var(--acc));
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.card .ico {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pri-l); color: var(--pri-d);
}
.card .ico svg { width: 20px; height: 20px; }
.card a.more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; }

.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li {
  position: relative; padding: 0 0 22px 62px; margin: 0;
  border-left: 2px dashed var(--line); margin-left: 19px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: -21px; top: -4px;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--pri), var(--vio)); color: #fff;
  font-family: var(--num); font-size: 15px; font-weight: 700;
}
.steps h3 { margin: 4px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shot { margin: 0; }
.shot .frame {
  background: #fff; border-radius: 20px; padding: 7px;
  box-shadow: var(--sh-s), inset 0 0 0 1px var(--line2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.shot:hover .frame { transform: translateY(-5px); box-shadow: var(--sh); }
.shot img { width: 100%; height: auto; border-radius: 15px; }
.shot figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: 14px; }

.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote {
  background: var(--panel); border-radius: var(--r); padding: 24px;
  box-shadow: var(--sh-s), inset 0 0 0 1px var(--line2);
}
.quote p { color: var(--ink2); font-size: 15.5px; }
.quote cite { display: block; color: var(--muted); font-size: 14px; font-style: normal; }
.quote .stars { color: var(--acc); letter-spacing: 2px; font-size: 14px; margin-bottom: 8px; }

.tbl-scroll { overflow-x: auto; margin: 0 0 18px; border-radius: var(--r); box-shadow: var(--sh-s), inset 0 0 0 1px var(--line2); background: #fff; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line2); vertical-align: top; }
th { background: var(--panel2); color: var(--pri-d); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.tbl-cap, .tbl-note { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.tbl-note { margin: 0 0 20px; }

.faq-grp { margin-bottom: 34px; }
.qa {
  background: var(--panel); border-radius: var(--r); padding: 20px 22px;
  box-shadow: var(--sh-s), inset 0 0 0 1px var(--line2); margin-bottom: 14px;
}
.qa h3 { margin: 0 0 8px; font-size: 17px; color: var(--pri-d); }
.qa p { margin: 0; color: var(--ink2); font-size: 15.5px; }
.qa p + p { margin-top: 8px; }

.linkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.linkcard {
  display: block; background: var(--panel); border-radius: var(--r); padding: 22px;
  box-shadow: var(--sh-s), inset 0 0 0 1px var(--line2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.linkcard:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.linkcard b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 8px; }
.linkcard span { color: var(--muted); font-size: 15px; }
.linkcard em { display: block; margin-top: 12px; color: var(--pri-d); font-style: normal; font-size: 14px; font-weight: 700; }

/* 内页横幅 */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #f7fbff, #eaf2fe 58%, #f2f7fd); padding: 46px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero .crumb { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.page-hero .crumb a { color: var(--muted); }
.page-hero h1 { font-size: 36px; margin: 0 0 14px; }
.page-hero .lead { text-align: left; max-width: 780px; margin: 0; font-size: 16.5px; }

/* CTA 条 */
.cta { position: relative; overflow: hidden; padding: 56px 0; background: linear-gradient(120deg, #eaf2fe, #f4efff 55%, #fff1f6); }
.cta-in { position: relative; z-index: 2; text-align: center; }
.cta h2 { font-size: 30px; margin-bottom: 10px; }
.cta p { color: var(--ink2); max-width: 620px; margin: 0 auto 24px; }
.cta .btn { }

/* ---------- 页脚 ---------- */
.site-foot { background: #0f1b2e; color: #a9bad6; padding: 52px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 30px; }
.site-foot .brand-name { color: #fff; }
.site-foot .brand img { box-shadow: none; }
.site-foot h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-foot p { color: #9db0cd; font-size: 14.5px; line-height: 1.85; margin: 0 0 10px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; }
.foot-col a { color: #b9c9e3; padding: 5px 0; font-size: 15px; }
.foot-col a:hover { color: #fff; }
.foot-org { color: #cfe0f7; }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.foot-base p { margin: 0; font-size: 13.5px; color: #8296b5; }

.anchor-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--pri-d); font-size: 20px; line-height: 1;
  box-shadow: 0 10px 24px -12px rgba(21, 36, 60, 0.55), inset 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.anchor-top.on { opacity: 1; visibility: visible; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  h1 { font-size: 32px; }
  .hero h1 { font-size: 36px; }
  .page-hero h1 { font-size: 29px; }
  .cards, .linkgrid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px; flex-direction: column;
    gap: 2px; padding: 12px 22px 18px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 22px 30px -26px rgba(21, 36, 60, 0.5);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .burger { display: block; order: 3; }
  .head-in .btn { order: 2; margin-left: auto; }
  .nav { order: 4; }
  .phone.side { display: none; }
  .phone.mid { width: 268px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  h1 { font-size: 26px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 29px; }
  .sec { padding: 46px 0; }
  .sec-head h2, .prose h2 { font-size: 22px; }
  .cards, .linkgrid, .quotes, .gallery { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-facts { gap: 8px 16px; }
  .hero-facts li { font-size: 13px; }
  .brand-name { font-size: 19px; }
  .phone { width: 210px; }
  .phone.mid { width: 232px; }
  .steps li { padding-left: 52px; }
  .steps li::before { width: 34px; height: 34px; left: -18px; font-size: 14px; }
  .cta h2 { font-size: 23px; }
  .btn-lg { padding: 14px 26px; font-size: 16px; }
}
