/* ==========================================================================
   喵音官网 · 全新设计（2026 重做版）
   设计语言：暖橙 #FF6A3D（活力/儿童）× 墨蓝 #101828（AI/可信）× 暖白纸底
   节奏：深色 Hero → 浅色业务 → 深色转型叙事 → 浅色优势 → 橙色 CTA → 深色页脚
   零图片、零依赖；移动优先，断点 min-width: 640 / 900
   ========================================================================== */

:root {
  --ink: #101828;
  --ink-2: #16202f;
  --ink-3: #0b1220;
  --paper: #fbf9f6;
  --card: #ffffff;
  --orange: #ff6a3d;
  --orange-d: #e4532a;
  --gold: #ffc53d;
  --teal: #12a594;
  --blue: #4c7df0;
  --tx: #1e2430;
  --tx-2: #5b6472;
  --line: #eae4dc;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--tx);
  background: var(--paper);
  line-height: 1.75;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: min(1120px, 90%);
  margin-inline: auto;
}

/* =======================  HEADER  ======================= */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(16, 24, 40, .08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  transition: color .3s ease;
}

.header.scrolled .logo { color: var(--ink); }

/* logo 已矢量化为 images/logo.svg（由原 logo.png 保真转换，IoU 0.98）：
   原图 128×67 里图案只占 83×42（四周留白吃掉 35%/40% 的分辨率，是"发虚"的主因），
   矢量版裁掉留白后任意缩放都清晰。图案为纯黑，深色 Hero 上反色成白，滚到浅色区恢复黑 */
.logo img {
  height: 34px;
  width: auto;
  flex: none;
  filter: invert(1);
  transition: filter .3s ease;
}

.header.scrolled .logo img { filter: none; }

/* --- 汉堡按钮（移动端） --- */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease;
}

.header.scrolled .nav-toggle {
  background: rgba(16, 24, 40, .05);
  border-color: rgba(16, 24, 40, .16);
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease, background .3s ease;
}

.header.scrolled .nav-toggle span { background: var(--ink); }

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 导航面板 --- */

.nav {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, .14);
  transition: max-height .3s ease;
}

.nav-open .nav { max-height: 420px; }

.nav ul {
  padding: 10px 5vw 18px;
  display: flex;
  flex-direction: column;
}

.nav a {
  display: block;
  padding: 13px 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid #f0ece5;
}

.nav li:last-child a { border-bottom: 0; }

/* =======================  HERO  ======================= */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #101828 0%, #17233a 58%, #1d2b45 100%);
  color: #fff;
  padding: 128px 0 64px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}

.g1 {
  width: 420px; height: 420px;
  right: -140px; top: -120px;
  background: radial-gradient(circle, rgba(255, 106, 61, .55), transparent 65%);
}

.g2 {
  width: 380px; height: 380px;
  left: -160px; bottom: -100px;
  background: radial-gradient(circle, rgba(76, 125, 240, .38), transparent 65%);
}

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}

.star {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .75);
  animation: twinkle 3.4s ease-in-out infinite;
}

.s1 { left: 12%; top: 22%; }
.s2 { left: 26%; top: 12%; animation-delay: .7s; }
.s3 { left: 78%; top: 30%; animation-delay: 1.3s; }
.s4 { left: 88%; top: 14%; animation-delay: 2s; }
.s5 { left: 62%; top: 9%;  animation-delay: 1.7s; }
.s6 { left: 42%; top: 18%; animation-delay: .4s; }

@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.35); }
}

.hero-in {
  position: relative;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--orange);
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid rgba(255, 106, 61, .4);
  border-radius: 999px;
  background: rgba(255, 106, 61, .1);
}

.hero h1 {
  margin: 26px 0 20px;
  font-size: clamp(2.3rem, 7.5vw, 4.3rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: .01em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--orange) 10%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(.98rem, 2.4vw, 1.12rem);
  color: rgba(255, 255, 255, .78);
}

.hero-btns {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* --- 按钮 --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  color: #fff;
  background: linear-gradient(92deg, var(--orange), var(--orange-d));
  box-shadow: 0 10px 28px rgba(255, 106, 61, .4);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 106, 61, .5); }

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .04);
}

.btn-ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }

.btn-white {
  color: var(--orange-d);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(0, 0, 0, .24); }

/* --- 数据带 --- */

.stats {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 720px;
  margin-inline: auto;
}

.stats > div {
  padding: 20px 10px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}

.stats dt {
  font-size: clamp(2.1rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.stats dd {
  margin-top: 2px;
  font-size: .88rem;
  color: rgba(255, 255, 255, .72);
}

.stats-note {
  margin-top: 20px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}

/* =======================  通用 Section  ======================= */

.section { padding: 84px 0; }

.section.alt { background: var(--card); }

.section.dark {
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(255, 106, 61, .12), transparent 60%),
    var(--ink);
  color: #fff;
}

.sec-head { max-width: 640px; margin-bottom: 46px; }

.section.dark .sec-head,
.cta .sec-head { margin-inline: auto; text-align: center; }

.eyebrow {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .3em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.65rem, 4.6vw, 2.5rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .01em;
}

.sec-sub {
  margin-top: 12px;
  font-size: clamp(.95rem, 2.2vw, 1.06rem);
  color: var(--tx-2);
}

.section.dark .sec-sub { color: rgba(255, 255, 255, .62); }

/* --- 卡片 --- */

.cards {
  display: grid;
  gap: 18px;
}

.card {
  position: relative;
  padding: 30px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.section.dark .card {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.card h3 {
  font-size: 1.16rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 6px;
  padding: 2px 9px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #2f5fbe;
  background: #ecf2fe;
  border-radius: 999px;
}

.card p { font-size: .95rem; color: var(--tx-2); }

.section.dark .card p { color: rgba(255, 255, 255, .68); }

.card-ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-ic svg { width: 26px; height: 26px; }

.ci-orange { background: #fff0ea; color: var(--orange-d); }
.ci-blue   { background: #ecf2fe; color: #3563c4; }
.ci-gold   { background: #fff6dd; color: #b8860b; }

.card-no {
  font-size: .95rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: .12em;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

/* =======================  转型叙事（时间线）  ======================= */

.timeline {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), rgba(255, 106, 61, .12));
  border-radius: 2px;
}

.timeline li {
  position: relative;
  padding: 0 0 38px 22px;
}

.timeline li:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -30px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--orange);
}

.tl-dot-live {
  box-shadow: 0 0 0 6px rgba(255, 106, 61, .18);
}

.timeline em {
  display: inline-block;
  font-style: normal;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--orange);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.timeline h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.timeline p {
  font-size: .95rem;
  color: rgba(255, 255, 255, .66);
}

/* =======================  案例入口  ======================= */

.case-entry { padding-top: 0; }

.case-card {
  display: grid;
  gap: 26px;
  padding: 36px 28px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 197, 61, .22), transparent 60%),
    linear-gradient(120deg, #1a2437 0%, var(--ink) 70%);
  box-shadow: var(--shadow-lg);
  transition: transform .22s ease, box-shadow .22s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(16, 24, 40, .24);
}

.case-card h2 { color: #fff; }

.case-tx > p {
  margin-top: 14px;
  font-size: .98rem;
  color: rgba(255, 255, 255, .72);
  max-width: 460px;
}

.case-link {
  display: inline-block;
  margin-top: 22px;
  font-weight: 800;
  color: var(--gold);
}

.case-link i { font-style: normal; display: inline-block; transition: transform .2s ease; }

.case-card:hover .case-link i { transform: translateX(5px); }

.case-visual {
  align-self: center;
  display: grid;
  gap: 10px;
}

.cv-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}

.cv-row b {
  min-width: 3.2em;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.cv-row span { font-size: .88rem; color: rgba(255, 255, 255, .78); }

/* =======================  团队  ======================= */

.team {
  display: grid;
  gap: 16px;
}

.member {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

a.member:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 106, 61, .45);
}

.avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.av-orange { background: linear-gradient(135deg, var(--orange), var(--orange-d)); }
.av-blue   { background: linear-gradient(135deg, #5b8def, #3563c4); }
.av-gold   { background: linear-gradient(135deg, var(--gold), #d9a014); }

.member-tx b {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
}

.member-tx em {
  display: block;
  font-style: normal;
  font-size: .88rem;
  color: var(--tx-2);
  margin-top: 2px;
}

.member-tx .more {
  display: inline-block;
  font-style: normal;
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange-d);
  margin-top: 6px;
}

/* =======================  CTA  ======================= */

.cta {
  padding: 84px 0;
  background:
    radial-gradient(500px 260px at 18% 100%, rgba(255, 197, 61, .3), transparent 60%),
    linear-gradient(115deg, var(--orange) 0%, var(--orange-d) 100%);
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
}

.cta p {
  max-width: 560px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(.96rem, 2.2vw, 1.05rem);
}

.cta-btns { margin-top: 30px; }

.cta-addr {
  margin-top: 26px !important;
  font-size: .8rem !important;
  color: rgba(255, 255, 255, .72) !important;
}

/* =======================  FOOTER  ======================= */

.footer {
  background: var(--ink-3);
  color: rgba(255, 255, 255, .6);
  padding: 40px 0 34px;
  font-size: .86rem;
  text-align: center;
}

.f-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

/* 备案号必须是「看得出来、点得动」的超链接（工信部要求可点击跳转至 beian.miit.gov.cn）。
   此前默认无下划线、颜色与正文同为灰色，视觉上跟普通文字没区别，等于白链 */
.footer a {
  color: rgba(255, 255, 255, .82);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  padding: 2px 1px;
  transition: color .18s ease;
}

.footer a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

.footer a:hover { color: #fff; }

.f-extra {
  margin-top: 12px;
  font-size: .82rem;
  opacity: .55;
  transition: opacity .18s ease;
}

.f-extra:hover { opacity: 1; }

/* =======================  滚动淡入  ======================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* =======================  动效降级  ======================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .star { animation: none; opacity: .5; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .case-card, a.member { transition: none; }
}

/* =======================  断点 640  ======================= */

@media (min-width: 640px) {
  .hero { padding: 150px 0 72px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .case-card {
    grid-template-columns: 1.35fr 1fr;
    padding: 44px 42px;
    align-items: center;
  }
}

/* =======================  断点 900（桌面导航 + 多列布局）  ======================= */

@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }

  .nav-toggle { display: none; }

  .nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav ul {
    padding: 0;
    gap: 2px;
    /* 关键：基础样式是 column（抽屉用），桌面必须改回 row，否则菜单竖着堆在右上角 */
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  /* 统一两字菜单：固定内边距 + 字距，让各项视觉宽度一致 */
  .nav a {
    padding: 9px 15px;
    font-size: .95rem;
    letter-spacing: .08em;
    border-bottom: 0;
    border-radius: 999px;
    color: #fff;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
  }

  .header.scrolled .nav a { color: var(--ink); }

  .nav a:hover { background: rgba(255, 106, 61, .14); color: var(--orange); }
}
