/* ============================================================
   星宇智慧家长 · 网站设计系统
   风格：立体感强 / 大气 / 美观 / 头版简洁
   配色：墨蓝(主) + 暖金(点缀) + 米白(底)
   ============================================================ */

:root {
  --ink-900: #0e1a30;   /* 最深墨蓝 */
  --ink-800: #152544;
  --ink-700: #1d3358;
  --ink-600: #28406b;
  --gold-500: #c8a35b;   /* 主金 */
  --gold-400: #d8b873;
  --gold-300: #e7cf9b;
  --paper:    #f7f4ec;   /* 米白底 */
  --paper-2:  #fffdf8;
  --line:     #e4ddcf;
  --text:     #243044;
  --text-soft:#5a6678;
  --shadow-1: 0 2px 8px rgba(14,26,48,.08);
  --shadow-2: 0 10px 30px rgba(14,26,48,.14);
  --shadow-3: 0 18px 50px rgba(14,26,48,.22);
  --radius:   18px;
  --maxw:     1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Noto Serif SC", "Songti SC", serif;
  letter-spacing: .04em;
}

a { color: inherit; text-decoration: none; }

/* ---------- 顶部品牌条 ---------- */
/* 彩云体（华文彩云）：只取标语用到的字做成 10KB 子集随站发布，
   访客电脑即使没装彩云体也能看到同样的空心云纹字。 */
@font-face {
  font-family: "CaiyunSC";
  src: url("fonts/caiyun.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* 细圆体（方正细圆简体）：只取星光「星宇智慧家长」等字，2KB 随站发布。
   星光字按用户要求用细笔画圆体，不再用粗黑体。 */
@font-face {
  font-family: "XiyuanSC";
  src: url("fonts/xiyuan.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(18px, 4vw, 48px);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-800));
  color: #fff;
  position: relative;
  z-index: 30;
  box-shadow: var(--shadow-2);
}
/* 站名：黑体（SimHei 为标准黑体，非 Windows 设备依次回退） */
.topbar .brand {
  font-family: "SimHei", "黑体", "Microsoft YaHei", "微软雅黑", "PingFang SC", "Noto Sans SC", sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.85vw, 21px);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
/* 注册商标标记：与头图中央大字「星宇智慧家长®俱乐部」同一位置、同一写法 */
.topbar .brand .reg {
  font-family: Arial, Helvetica, "SimHei", sans-serif;
  font-size: .55em;
  font-weight: 400;
  vertical-align: super;
  line-height: 0;
  margin-left: .06em;
  margin-right: .1em;
  color: var(--gold-300);
  letter-spacing: 0;
}
/* 原金色小竖条 → 圆形企业徽标 */
.topbar .brand::before {
  content: "";
  flex: 0 0 auto;
  width: clamp(34px, 3.2vw, 44px);
  height: clamp(34px, 3.2vw, 44px);
  border-radius: 50%;
  background: url("images/logo.png") center / contain no-repeat;
  box-shadow: 0 0 0 1.5px rgba(232,195,124,.65),
              0 2px 12px rgba(0,0,0,.38);
}
/* 右侧标语：彩云体（空心轮廓字，需 18px 以上才清楚）。
   按用户要求不加粗：不描边、不加光晕、字重保持 400，只留字体原本的细轮廓。 */
.topbar .slogan-mini {
  font-family: "CaiyunSC", "STCaiyun", "华文彩云", "FZCaiYun-M09", "方正彩云_GBK", cursive;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 400;
  color: var(--gold-300);
  letter-spacing: .06em;
  white-space: nowrap;
}
.topbar a.home-link {
  font-size: 13px;
  color: #cdd6e4;
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px;
  border-radius: 999px;
  transition: .25s;
}
.topbar a.home-link:hover { background: rgba(255,255,255,.12); color:#fff; }

/* ============================================================
   头版（首页）—— 一屏装下，不需下拉
   ============================================================ */
body.home {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home .topbar { flex: 0 0 auto; }

/* 头图轮播区 */
.home .hero {
  flex: 1 1 56%;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.hero-carousel { position: absolute; inset: 0; }
.hero-carousel .slide {
  position: absolute; inset: 0;
  z-index: 1;
  opacity: 0;
  /* 图上文字密集，淡入淡出拖长会重影，故用快速切换 */
  transition: opacity .5s ease;
}
.hero-carousel .slide.active { opacity: 1; }
/* 同图模糊铺底：填满横幅宽度，原图本身一字不裁 */
.slide-bg {
  position: absolute; inset: -10%;
  width: 120%; height: 120%;
  object-fit: cover;
  filter: blur(32px) saturate(1.25) brightness(.5);
}
/* 原图完整呈现（contain），不切掉图上任何文字
   注：高度必须显式指定，否则绝对定位的 img 会退回原始像素高度 */
.slide-img {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 主图浮在虚化底之上，投影随推近由远而近，形成厚度 */
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.55)) brightness(1);
  backface-visibility: hidden;
  will-change: transform, filter;
  /* 切走时复位要平滑，避免生硬跳一下 */
  transition: transform .6s ease, filter .6s ease;
}
/* 由远及近浮出：全程 scale ≤ 1，图上贴边文字一个都不裁。
   头图在宽屏按宽度铺满、窄屏按高度铺满，两侧/上下都没有留白，
   原来「放大 4.5%」其实已轻微切边；改为「缩小 10% 再缓缓推回原尺寸」，
   行程比原来大一倍多，却完全不裁字，露出的四周是同图虚化底，像从景深里浮出来。
   3.2° 透视摆动 + 明暗/投影变化共同造出空间纵深。
   轮播 9s 切换，动画 8.8s 收尾，留一点静止再换片（与展示时长同步加倍）。 */
.hero-carousel .slide.active .slide-img {
  animation: depthPush 8.8s cubic-bezier(.3, .5, .3, 1) forwards;
}
@keyframes depthPush {
  0% {
    transform: perspective(1500px) rotateY(-5.4deg) rotateX(2.2deg) scale(.90);
    filter: drop-shadow(0 30px 54px rgba(0,0,0,.62)) brightness(.90) saturate(.93);
  }
  62% {
    transform: perspective(1500px) rotateY(1.1deg) rotateX(-.4deg) scale(.982);
    filter: drop-shadow(0 21px 40px rgba(0,0,0,.58)) brightness(.99) saturate(1);
  }
  100% {
    transform: perspective(1500px) rotateY(0) rotateX(0) scale(1);
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.55)) brightness(1) saturate(1);
  }
}
/* 手机横幅只有 98px 高，透视与大行程不适用，用温和的小幅浮出 */
@keyframes depthPushMobile {
  0% {
    transform: perspective(1200px) rotateY(-1.2deg) scale(.955);
    filter: drop-shadow(0 22px 40px rgba(0,0,0,.58)) brightness(.94);
  }
  100% {
    transform: perspective(1200px) rotateY(0) scale(1);
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.55)) brightness(1);
  }
}
.hero-carousel .slide.active .slide-bg {
  /* 背景虚化层幅度更大、方向相反：与主图拉开速度差，景深视差更明显。
     bgLift 与主图同步：主图缩小时四周露出的底略亮，像同图延伸的景深；
     推近后又暗回原值，不破坏终帧上下留白带的沉稳感。 */
  animation: bgzoom 9s ease-in-out infinite alternate,
             bgLift 8.8s ease-out forwards;
}
@keyframes bgzoom {
  from { transform: scale(1.08) translate(1.4%, 1%); }
  to   { transform: scale(1.30) translate(-2.4%, -2%); }
}
@keyframes bgLift {
  from { filter: blur(32px) saturate(1.25) brightness(.72); }
  to   { filter: blur(32px) saturate(1.25) brightness(.5); }
}
/* 画框立体光：上缘一道暖金细高光、下缘暗边、左右内阴影，
   让整条横幅像一块有厚度的牌匾，而不是平贴的图；另加一道极淡斜向反光。 */
.hero-vignette {
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, transparent 34%, rgba(255,255,255,.055) 47%, transparent 60%),
    linear-gradient(180deg, rgba(14,26,48,.22) 0%, rgba(14,26,48,0) 13%,
                    rgba(14,26,48,0) 84%, rgba(14,26,48,.30) 100%);
  box-shadow: inset 0 1px 0 rgba(255,242,210,.30),
              inset 0 -2px 0 rgba(0,0,0,.45),
              inset 26px 0 34px -26px rgba(4,12,26,.85),
              inset -26px 0 34px -26px rgba(4,12,26,.85);
  pointer-events: none;
}

/* 自动闪光的星星：外层由 JS 定位到图片中上方，内层做闪烁动画；
   星芒中央嵌一个字（星/宇/智/慧），四张图各一个 */
.sparkle-wrap {
  --spark-size: clamp(30px, 8vw, 150px);
  --char-size: 40px;
  position: absolute;
  left: 50%; top: 10%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}
.sparkle {
  position: relative;
  width: var(--spark-size);
  height: var(--spark-size);
  display: grid;
  place-items: center;
}
/* 星光与字符同周期（3 秒），由 script.js 统一重播，保证节奏完全同步 */
.sparkle.beat { animation: twinkle 3s ease-in-out infinite; }
.sparkle svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: drop-shadow(0 2px 3px rgba(18,10,2,.5));   /* 星芒浮在头图上方的投影 */
}
.spark-char {
  position: relative;
  font-family: "XiyuanSC", "FZXiYuan-M01S", "方正细圆简体", "YouYuan", "幼圆", "Microsoft YaHei", "微软雅黑", sans-serif;
  font-weight: 400;
  font-size: var(--char-size);
  line-height: 1;
  transform: translateY(4%);
  color: #fffdf4;
  /* 浮雕：上缘高光 + 下缘暗边 + 由近及远的两层投影，末尾保留原有外发光 */
  text-shadow:
    0 -1px 0 rgba(255,255,255,.98),
    0 1px 0 rgba(126,88,32,.65),
    0 2px 2px rgba(58,38,10,.55),
    0 4px 7px rgba(24,16,4,.42),
    0 0 5px rgba(255,246,220,.9),
    0 0 14px rgba(245,208,130,.85),
    0 0 26px rgba(200,163,91,.7);
}
/* 字符：与星光同相位——星光最暗时它也隐去，随星光一起缓缓转亮 */
.spark-char.flash { animation: charFlash 3s ease-in-out forwards; }

/* 节奏：舒缓呼吸。3 秒一轮，缓缓亮起（0→32%，约 1 秒）→ 柔和停留（32→48%）
   → 缓缓退暗（48→100%）。全程 ease-in-out，无突兀折点；退到最暗那刻正好换字。
   要点：去掉上一版"快起"的 cubic-bezier，避免"啪"地一下冲亮带来的紧迫感 */
/* 转动保留，只重新分配角度：
   暗态（0% / 100%，字正隐去时）左倾 -12deg，星芒缓缓摆正、光束折面随之转出立体感；
   亮态（32% 最亮且字最大、48% 柔和停留）严格 0deg —— 4 条长芒呈上/下/左/右正十字，
   字自然就正了。摆幅加大后转动更明显，但字最清楚的那一刻仍不歪。 */
@keyframes twinkle {
  0% {
    opacity: .42;
    transform: scale(.88) rotate(-12deg);
    filter: drop-shadow(0 0 18px rgba(243,221,166,.40))
            drop-shadow(0 0 54px rgba(200,163,91,.42));
  }
  32% {
    opacity: 1;
    transform: scale(1.07) rotate(0deg);
    filter: drop-shadow(0 0 5px rgba(255,244,214,.95))
            drop-shadow(0 0 16px rgba(216,184,115,.7));
  }
  48% {
    opacity: 1;
    transform: scale(1.05) rotate(0deg);
    filter: drop-shadow(0 0 7px rgba(255,244,214,.85))
            drop-shadow(0 0 22px rgba(216,184,115,.6));
  }
  100% {
    opacity: .42;
    transform: scale(.88) rotate(-12deg);
    filter: drop-shadow(0 0 18px rgba(243,221,166,.40))
            drop-shadow(0 0 54px rgba(200,163,91,.42));
  }
}
/* 字符与星光同相位：星光退到最暗时它归零，随即一起缓缓转亮 */
@keyframes charFlash {
  0% {
    opacity: 0; transform: translateY(4%) scale(.5);
  }
  32% {
    opacity: 1; transform: translateY(4%) scale(1.14);
  }
  48% {
    opacity: 1; transform: translateY(4%) scale(1);
  }
  100% {
    opacity: 0; transform: translateY(4%) scale(.8);
  }
}
.hero-dots {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.hero-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: .3s; cursor: pointer;
}
.hero-dots span.active { background: var(--gold-400); width: 22px; border-radius: 6px; }

/* 类别目录（头版主区块） */
.home .catalog {
  flex: 1 1 46%;
  display: flex;
  align-items: stretch;
  background:
     linear-gradient(180deg, var(--paper-2), var(--paper));
  padding: clamp(14px, 2.4vh, 30px) clamp(18px, 4vw, 48px);
  min-height: 0;
}
.catalog-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; }
.catalog-title {
  text-align: center;
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--text-soft);
  letter-spacing: .3em;
  margin-bottom: clamp(10px, 1.8vh, 18px);
}
.catalog-title b { color: var(--ink-700); font-weight: 700; }
.catalog-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(8px, 1.1vw, 16px);
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(10px, 1.6vh, 20px) 10px;
  /* 立体：顶部内高光 + 底部内暗线 + 更远的投影，卡片像浮起的薄板 */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -1px 0 rgba(14,26,48,.05),
    var(--shadow-1),
    0 12px 26px rgba(14,26,48,.07);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-3);
  border-color: var(--gold-300);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card .ico {
  width: clamp(34px, 4.4vh, 52px);
  height: clamp(34px, 4.4vh, 52px);
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900));
  color: var(--gold-300);
  box-shadow: var(--shadow-2);
}
.cat-card .ico svg { width: 56%; height: 56%; }
.cat-card .t {
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: clamp(13px, 1.5vw, 17px);
  color: var(--ink-800);
  letter-spacing: .04em;
  text-align: center;
  line-height: 1.35;
}
/* 一级栏目「心爸AI智慧育儿365：每日一计」名称较长，单独收紧，保证 6 列同行不裁字 */
.cat-card--long .t {
  font-size: clamp(11.5px, 1.1vw, 15px);
  letter-spacing: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.cat-card--long .d { font-size: clamp(10px, .95vw, 12px); line-height: 1.35; }
.cat-card .d {
  font-size: clamp(11px, 1.2vw, 13px);
  color: var(--text-soft);
  text-align: center;
  line-height: 1.5;
}

/* 页脚 */
.site-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 9px 16px;
  background: var(--ink-900);
  color: #aeb8c9;
  font-size: 12px;
  letter-spacing: .08em;
}
.site-footer .owner { color: #c6cfdd; }
.site-footer .beian { color: var(--gold-300); }
.site-footer .beian::before { content: "● "; color: var(--gold-500); }
.site-footer a.beian { color: var(--gold-300); transition: color .2s; }
.site-footer a.beian:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   类别页（内页）
   ============================================================ */
body.page { background: var(--paper); }

.page-wrap { max-width: var(--maxw); margin: 0 auto; padding: clamp(24px,4vw,54px) clamp(18px,4vw,48px) 0; }

.page-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow-2);
  min-height: 200px;
  display: flex; align-items: flex-end;
}
.page-hero img { position: absolute; inset: 0; width:100%; height:100%; object-fit: cover; }
.page-hero .ph-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,26,48,.2), rgba(14,26,48,.78));
}
.page-hero .ph-text { position: relative; padding: clamp(20px,3vw,36px); color:#fff; }
.page-hero .ph-text .kicker { color: var(--gold-300); letter-spacing:.3em; font-size:13px; }
.page-hero .ph-text h1 { font-size: clamp(26px,3.6vw,42px); font-weight:900; margin-top:8px; text-shadow:0 3px 18px rgba(0,0,0,.4); }
.page-hero .ph-text p { color:#e9e1cd; margin-top:8px; max-width: 720px; }

/* 内容卡片 */
.section {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px,3vw,34px);
  margin-bottom: 22px;
  box-shadow: var(--shadow-1);
}
.section h2 {
  font-size: clamp(20px,2.4vw,26px);
  color: var(--ink-800);
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 5px solid var(--gold-500);
}
.section p { color: var(--text); margin-bottom: 12px; }
.section p:last-child { margin-bottom: 0; }
.muted { color: var(--text-soft); }
.tag {
  display:inline-block; background: #f0e9d8; color:#8a6d2f;
  font-size:12px; padding:3px 10px; border-radius:999px; margin:2px 4px 2px 0;
}

/* 两列：分目录（左）+ 内容（右） */
.layout-split { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.subnav {
  position: sticky; top: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-1);
}
.subnav h3 { font-size:15px; color: var(--ink-700); letter-spacing:.2em; margin-bottom:12px; }
.subnav a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 4px;
  transition: .2s;
  border-left: 3px solid transparent;
}
.subnav a:hover, .subnav a.active {
  background: #f3eddd; color: var(--ink-800);
  border-left-color: var(--gold-500);
}

/* 分目录卡片网格（长类别的入口） */
.subdir-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 18px; margin-bottom: 26px;
}
.subdir-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-1);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display:flex; flex-direction:column; gap:10px;
}
.subdir-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); border-color: var(--gold-300); }
.subdir-card .num {
  width:38px;height:38px;border-radius:10px;
  display:grid;place-items:center; font-family:"Noto Serif SC",serif; font-weight:900;
  background: linear-gradient(135deg,var(--ink-700),var(--ink-900)); color: var(--gold-300);
}
.subdir-card h3 { font-size:18px; color: var(--ink-800); }
.subdir-card p { font-size:13px; color: var(--text-soft); }

/* 联系页二维码 */
.qr-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap:20px; }
.qr-card {
  text-align:center; background: var(--paper); border:1px solid var(--line);
  border-radius:14px; padding:16px; box-shadow: var(--shadow-1);
}
.qr-card img { width:140px;height:140px;object-fit:contain;border-radius:10px;background:#fff;padding:6px;box-shadow:var(--shadow-1); }
.qr-card .name { margin-top:10px; font-weight:700; color: var(--ink-800); font-family:"Noto Serif SC",serif; }
.qr-card .role { font-size:12px; color: var(--text-soft); }

/* 返回 */
.back-row { margin: 6px 0 26px; }
.back-link {
  display:inline-flex; align-items:center; gap:8px;
  color: var(--ink-700); font-size:14px;
  border:1px solid var(--line); background: var(--paper-2);
  padding:8px 16px; border-radius:999px; box-shadow: var(--shadow-1); transition:.2s;
}
.back-link:hover { background:#f3eddd; transform: translateX(-3px); }

/* 内页页脚 */
.page .site-footer { margin-top: 40px; }

/* ============================================================
   短屏自适应：确保头版"一屏装下"在任何窗口高度都不被裁切
   由 script.js 自动判定并加 .compact / .tiny 级别
   ============================================================ */
body.home.compact .hero { flex: 1 1 32%; }
body.home.compact .catalog { padding: 10px clamp(18px, 4vw, 48px); }
body.home.compact .catalog-title { margin-bottom: 6px; font-size: 13px; }
body.home.compact .cat-card { gap: 5px; padding: 8px; }
body.home.compact .cat-card .ico { width: 34px; height: 34px; border-radius: 10px; }
body.home.compact .cat-card .d { display: none; }
body.home.compact .sparkle { width: clamp(28px, 3vw, 40px); }
body.home.compact .hero-dots { bottom: 8px; }

body.home.tiny .hero { flex: 1 1 26%; }
body.home.tiny .catalog-title { display: none; }
body.home.tiny .cat-card .t { font-size: 13px; }
body.home.tiny .topbar { padding: 8px clamp(18px, 4vw, 48px); }
body.home.tiny .topbar .brand::before { width: 32px; height: 32px; }
body.home.tiny .site-footer { padding: 5px 16px; font-size: 11px; }

/* 响应式 */
@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-split { grid-template-columns: 1fr; }
  .subnav { position: static; }
  /* 窄屏让彩云标语收一点，给站名与返回按钮留位置 */
  .topbar .slogan-mini { font-size: 15px; letter-spacing: 0; }
}
@media (max-width: 700px) {
  /* 顶栏所有元素随视口等比缩小：站名不再固定 16px，右侧标语得以同排保留 */
  .topbar { padding: 8px clamp(10px, 3vw, 16px); gap: 4px; }
  .topbar .brand {
    font-size: clamp(12px, 3.6vw, 16px);
    gap: 6px;
    letter-spacing: 0;
    min-width: 0;
  }
  .topbar .brand::before {
    width: clamp(26px, 7vw, 32px);
    height: clamp(26px, 7vw, 32px);
  }
  .topbar .slogan-mini {
    font-size: clamp(12px, 3.3vw, 15px);
    letter-spacing: 0;
  }
  .topbar a.home-link { font-size: 11px; padding: 5px 9px; }
  /* 短屏 tiny 规则优先级更高，窄屏须重新接管，否则徽标被拉回 32px、留白被拉回 18px */
  body.home.tiny .topbar { padding: 8px clamp(10px, 3vw, 16px); }
  body.home.tiny .topbar .brand::before {
    width: clamp(26px, 7vw, 32px);
    height: clamp(26px, 7vw, 32px);
  }
}
/* 手机竖屏：横幅高度收成图片自然高度（宽÷4），消除上下虚化空白带 */
@media (max-width: 700px) {
  body.home .hero { flex: 0 0 auto; height: calc(100vw / 4); }
  /* 矮横幅改用小幅浮出，避免四周露出过多虚化边 */
  .hero-carousel .slide.active .slide-img { animation-name: depthPushMobile; }
  /* 横幅变矮，指示点需缩小并贴底，避免压住图上底部标语 */
  .hero-dots { bottom: 2px; gap: 6px; }
  .hero-dots span { width: 7px; height: 7px; }
  .hero-dots span.active { width: 16px; border-radius: 4px; }
}
@media (max-width: 560px) {
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  /* 不再隐藏右侧彩云标语：改由站名、徽标、标语一起缩小来腾出空间 */
  .topbar .brand { font-size: clamp(11px, 3.45vw, 14px); gap: 5px; }
  .topbar .brand::before {
    width: clamp(23px, 6.8vw, 28px);
    height: clamp(23px, 6.8vw, 28px);
  }
  .topbar .slogan-mini {
    display: block;
    font-size: clamp(10.5px, 3.15vw, 13px);
  }
  /* 内页「返回首页」在窄屏只留箭头，把宽度让给标语；title/aria-label 保留说明 */
  /* 内页多了返回箭头，站名再收一点，给右侧标语留出呼吸空隙 */
  body.page .topbar .brand { font-size: clamp(10px, 3.2vw, 13px); }
  .topbar a.home-link { font-size: 13px; padding: 4px 9px; }
  .topbar a.home-link .hl-text { display: none; }
  body.home.tiny .topbar .brand::before {
    width: clamp(23px, 6.8vw, 28px);
    height: clamp(23px, 6.8vw, 28px);
  }
}
/* 超窄屏（≤360px）再降一档，保证三者同排不重叠 */
@media (max-width: 360px) {
  .topbar { padding: 7px 8px; gap: 3px; }
  .topbar .brand { font-size: 10.5px; gap: 4px; }
  .topbar .brand::before { width: 22px; height: 22px; }
  .topbar .slogan-mini { font-size: 10px; }
  body.page .topbar .brand { font-size: 10px; }
  .topbar a.home-link { padding: 3px 7px; }
  body.home.tiny .topbar { padding: 7px 8px; }
  body.home.tiny .topbar .brand::before { width: 22px; height: 22px; }
}
