/* ============================================================
   周公解梦大全 · 萌系卡通设计系统「梦宝夜空」
   大气星空 Hero + 软萌糖果卡片 + View Transitions
   ============================================================ */

:root {
  --c-primary: #7c5cff;        /* 梦幻紫 */
  --c-primary-deep: #5a3df0;
  --c-pink: #ff7eb3;           /* 樱花粉 */
  --c-yellow: #ffd76e;         /* 星星黄 */
  --c-blue: #6ec8ff;           /* 天空蓝 */
  --c-green: #7be3b0;          /* 薄荷绿 */
  --c-ink: #2a2250;            /* 深紫墨（正文） */
  --c-ink-soft: #6b64a0;       /* 次级文字 */
  --bg-page: #f4f1ff;          /* 页面底色 */
  --bg-card: #ffffff;
  --bg-soft: #f0ecff;
  --line: #e6e0ff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(124, 92, 255, .12);
  --shadow-lg: 0 16px 44px rgba(124, 92, 255, .18);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

/* 跨文档页面切换（Chromium 支持，其余浏览器优雅降级） */
@view-transition { navigation: auto; }
::view-transition-old(root)  { animation: vt-out .28s ease both; }
::view-transition-new(root)  { animation: vt-in .34s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px) scale(.985); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(18px) scale(.99); } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--bg-page);
  line-height: 1.7;
  overflow-x: hidden;
  /* 入场动画（非 VT 浏览器也有过渡感） */
  animation: page-in .4s ease both;
}
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: var(--c-primary-deep); text-decoration: none; transition: color .2s, transform .2s; }
a:hover { color: var(--c-pink); }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; border-radius: 6px; }

/* ================= 星空背景 ================= */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 500px at 85% -8%, rgba(255, 126, 179, .16), transparent 60%),
    radial-gradient(900px 420px at 8% 12%, rgba(110, 200, 255, .18), transparent 55%),
    linear-gradient(180deg, #efe9ff 0%, #f6f3ff 34%, var(--bg-page) 100%);
}
.sky-stars .star {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--c-yellow); opacity: .55;
  animation: twinkle 3.2s ease-in-out infinite;
}
.star.s0 { left: 6%;  top: 8%;  }
.star.s1 { left: 15%; top: 22%; animation-delay: .4s; }
.star.s2 { left: 26%; top: 6%;  animation-delay: 1.1s; }
.star.s3 { left: 38%; top: 16%; animation-delay: .8s; }
.star.s4 { left: 52%; top: 9%;  animation-delay: 1.6s; }
.star.s5 { left: 67%; top: 20%; animation-delay: .2s; }
.star.s6 { left: 82%; top: 10%; animation-delay: 1.3s; }
.star.s6 { left: 82%; top: 10%; }
.sky-stars .star:nth-child(2n) { width: 3px; height: 3px; top: 34%; }
.sky-stars .star:nth-child(3n) { left: 92%; }
.sky-stars .star:nth-child(5n) { top: 44%; background: var(--c-pink); }
@keyframes twinkle { 0%, 100% { opacity: .3; transform: scale(.85); } 50% { opacity: .95; transform: scale(1.15); } }

.cloud {
  position: absolute; display: block; width: 130px; height: 44px;
  background: rgba(255, 255, 255, .75); border-radius: 40px;
  filter: blur(1px); opacity: .8;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: inherit; border-radius: 50%;
}
.cloud::before { width: 60px; height: 60px; top: -26px; left: 22px; }
.cloud::after  { width: 44px; height: 44px; top: -16px; right: 20px; }
.c1 { top: 10%; left: -140px; animation: drift 42s linear infinite; }
.c2 { top: 30%; left: -220px; animation: drift 58s linear infinite 6s; transform: scale(.7); }
.c3 { top: 4%;  left: -90px;  animation: drift 70s linear infinite 12s; transform: scale(1.2); }
@keyframes drift { to { transform: translateX(130vw); } }
.c2 { animation-name: drift-s; }
@keyframes drift-s { to { transform: translateX(130vw) scale(.7); } }
.c3 { animation-name: drift-l; }
@keyframes drift-l { to { transform: translateX(130vw) scale(1.2); } }

.moon-float {
  position: absolute; top: 6%; right: 6%; font-size: 44px;
  animation: moon-sway 6s ease-in-out infinite; display: block;
  filter: drop-shadow(0 0 18px rgba(255, 215, 110, .55));
}
@keyframes moon-sway { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-8px); } }

/* ================= 顶栏 ================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); animation: bob 3.5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.logo-txt { font-size: 21px; font-weight: 800; color: var(--c-ink); letter-spacing: 1px; }
.logo-txt i { font-style: normal; color: var(--c-primary); }

.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: var(--c-ink-soft);
}
.nav a:hover { background: var(--bg-soft); color: var(--c-primary-deep); transform: translateY(-1px); }
.nav a.on { background: linear-gradient(120deg, var(--c-primary), var(--c-pink)); color: #fff; }

.quick-search { margin-left: auto; position: relative; }
.quick-search input {
  width: 210px; height: 40px; border: 2px solid var(--line); border-radius: 999px;
  padding: 0 44px 0 16px; font-size: 14px; background: #fff; color: var(--c-ink);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.quick-search input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(124, 92, 255, .14); }
.quick-search button {
  position: absolute; right: 5px; top: 5px; width: 32px; height: 32px;
  border: none; border-radius: 50%; background: linear-gradient(120deg, var(--c-primary), var(--c-pink));
  font-size: 14px;
}
.menu-btn { display: none; border: 2px solid var(--line); background: #fff; border-radius: 10px; font-size: 18px; padding: 5px 10px; }

/* ================= Hero（大气 + 萌） ================= */
.hero { position: relative; padding: 64px 0 84px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.25fr .85fr; gap: 30px; align-items: center; position: relative; }
.hero-badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: linear-gradient(120deg, rgba(124,92,255,.12), rgba(255,126,179,.14));
  border: 1px solid rgba(124, 92, 255, .25); color: var(--c-primary-deep);
  font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
.hero-title { font-size: clamp(34px, 5vw, 54px); line-height: 1.22; font-weight: 900; letter-spacing: 1px; }
.hero-title em {
  font-style: normal;
  background: linear-gradient(110deg, var(--c-primary) 15%, var(--c-pink) 55%, var(--c-yellow) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 16px 0 26px; font-size: 17px; color: var(--c-ink-soft); }
.hero-sub b { color: var(--c-primary-deep); font-size: 20px; }

.big-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-lg); border: 2px solid transparent;
  transition: box-shadow .25s, border-color .25s;
  animation: float-glow 4s ease-in-out infinite;
}
@keyframes float-glow {
  0%, 100% { box-shadow: 0 16px 44px rgba(124, 92, 255, .18); }
  50% { box-shadow: 0 16px 54px rgba(255, 126, 179, .28); }
}
.big-search:focus-within { border-color: var(--c-primary); }
.bs-icon { font-size: 20px; }
.big-search input {
  flex: 1; border: none; outline: none; font-size: 16px; color: var(--c-ink);
  background: transparent; min-width: 0; height: 44px;
}
.bs-btn {
  border: none; border-radius: 999px; padding: 13px 30px; font-size: 16px; font-weight: 800; color: #fff;
  background: linear-gradient(120deg, var(--c-primary), var(--c-pink));
  box-shadow: 0 8px 20px rgba(124, 92, 255, .35);
  transition: transform .2s;
}
.bs-btn:hover { transform: scale(1.05); }
.bs-btn:active { transform: scale(.96); }

.hero-hotwords { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hw-label { font-size: 14px; color: var(--c-ink-soft); }
.hw-chip {
  padding: 5px 13px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line);
  font-size: 13px; color: var(--c-ink-soft); font-weight: 600;
  transition: all .2s;
}
.hw-chip:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); transform: translateY(-2px) rotate(-2deg); }

.hero-stats { margin-top: 24px; display: flex; gap: 22px; flex-wrap: wrap; }
.st { font-size: 13px; color: var(--c-ink-soft); display: flex; flex-direction: column; }
.st b { font-size: 22px; color: var(--c-primary-deep); font-weight: 900; }

.hero-art { position: relative; text-align: center; }
.mascot {
  width: min(320px, 70%); border-radius: 36px;
  box-shadow: var(--shadow-lg); animation: mascot-bounce 4.5s ease-in-out infinite;
}
@keyframes mascot-bounce {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}
.bubble {
  position: absolute; font-size: 34px; display: block;
  filter: drop-shadow(0 6px 10px rgba(124, 92, 255, .25));
}
.bubble.b1 { top: -4%;  right: 6%;   animation: floaty 5s ease-in-out infinite; }
.bubble.b2 { top: 30%;  left: 0%;    animation: floaty 6s ease-in-out infinite 1s; font-size: 28px; }
.bubble.b3 { bottom: 8%; right: 12%; animation: floaty 7s ease-in-out infinite 2s; font-size: 40px; }
.bubble.b4 { bottom: -2%; left: 18%; animation: floaty 5.5s ease-in-out infinite .5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }

.hero-clouds i { position: absolute; height: 38px; width: 110px; background: rgba(255,255,255,.6); border-radius: 30px; filter: blur(2px); }
.hero-clouds i::before { content: ""; position: absolute; width: 48px; height: 48px; background: inherit; border-radius: 50%; top: -20px; left: 18px; }
.hero-clouds i:nth-child(1) { bottom: 22px; left: -110px; animation: drift 38s linear infinite; }
.hero-clouds i:nth-child(2) { bottom: 60px; left: -160px; animation: drift 50s linear infinite 8s; }
.hero-clouds i:nth-child(3) { bottom: 8px;  left: -80px;  animation: drift 64s linear infinite 16s; }

/* ================= 通用区块 ================= */
.sec { padding: 46px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: 1px; }
.sec-head p { color: var(--c-ink-soft); font-size: 14px; }
.sec-more { font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ================= 热门梦境卡片 ================= */
.hot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hot-card {
  display: flex; flex-direction: column; background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.hot-card:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.hc-img { display: block; overflow: hidden; aspect-ratio: 11 / 8; background: var(--bg-soft); }
.hc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hot-card:hover .hc-img img { transform: scale(1.07) rotate(.5deg); }
.hc-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 6px; }
.hc-title { font-size: 17px; font-weight: 800; color: var(--c-ink); }
.hc-brief { font-size: 13px; color: var(--c-ink-soft); min-height: 20px; }
.hc-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-ink-soft); }
.hc-emo { color: var(--c-pink); font-weight: 700; }

/* ================= 分类区块 ================= */
.cat-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-block {
  background: var(--bg-card); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden;
}
.cat-block::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 110px; height: 110px;
  border-radius: 50%; opacity: .14; transition: transform .3s;
}
.cat-block:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-block:hover::before { transform: scale(1.6); }
.cb-0::before { background: var(--c-primary); }
.cb-1::before { background: var(--c-pink); }
.cb-2::before { background: var(--c-yellow); }
.cb-3::before { background: var(--c-blue); }
.cb-head { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.cb-head img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow); }
.cb-head h3 { font-size: 19px; font-weight: 900; }
.cb-head h3 a { color: var(--c-ink); }
.cb-head h3 a:hover { color: var(--c-primary-deep); }
.cb-cnt { font-size: 12.5px; color: var(--c-ink-soft); }
.cb-links { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; margin-bottom: 13px; }
.cb-links a { font-size: 14px; color: var(--c-ink-soft); font-weight: 600; }
.cb-links a:hover { color: var(--c-primary); padding-left: 4px; }
.cb-more {
  display: inline-block; font-size: 13.5px; font-weight: 800; color: var(--c-primary-deep);
  padding: 8px 14px; border-radius: 999px; background: var(--bg-soft);
}
.cb-more:hover { background: var(--c-primary); color: #fff; }

/* ================= 两栏：最新 + 趣味 ================= */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.latest-list { list-style: none; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; counter-reset: lt; }
.latest-list li { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px dashed var(--line); counter-increment: lt; }
.latest-list li:last-child { border-bottom: none; }
.latest-list li::before { content: counter(lt); font-weight: 900; color: var(--c-primary); font-style: italic; min-width: 22px; }
.latest-list li:nth-child(-n+3)::before { color: var(--c-pink); }
.latest-list a { flex: 1; font-weight: 600; color: var(--c-ink); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-list a:hover { color: var(--c-primary); }
.lt-cat { font-size: 12px; color: var(--c-ink-soft); background: var(--bg-soft); border-radius: 999px; padding: 2px 10px; }

.fun-card {
  display: block; background: var(--bg-card); border-radius: var(--radius); padding: 18px 20px;
  border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 14px;
  transition: transform .25s, box-shadow .25s;
}
.fun-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-lg); }
.fun-card b { font-size: 17px; font-weight: 900; display: block; margin-bottom: 4px; }
.fun-card span { font-size: 13.5px; color: var(--c-ink-soft); display: block; }
.fun-card i { font-style: normal; display: inline-block; margin-top: 10px; font-weight: 800; color: var(--c-primary-deep); }
.fun-ai { background: linear-gradient(120deg, #fff 55%, rgba(124, 92, 255, .1)); }
.fun-random { background: linear-gradient(120deg, #fff 55%, rgba(255, 215, 110, .16)); }

.word-cloud { background: var(--bg-card); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.word-cloud > b { font-size: 16px; font-weight: 900; }
.wc-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.wc-tags a { color: var(--c-ink-soft); font-weight: 700; padding: 3px 6px; border-radius: 8px; }
.wc-tags a:hover { background: var(--c-primary); color: #fff; }

.bk-home {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow);
}
.bk-home li { border-bottom: 1px dashed var(--line); }
.bk-home li:nth-child(n+9) { border-bottom: none; }
.bk-home a { display: block; padding: 6px 4px; font-size: 14px; font-weight: 600; color: var(--c-ink-soft); }
.bk-home a::before { content: "📖 "; }
.bk-home a:hover { color: var(--c-primary-deep); padding-left: 6px; }

/* AI 横幅 */
.ai-banner {
  background: linear-gradient(115deg, var(--c-primary-deep), var(--c-primary) 55%, var(--c-pink));
  border-radius: 28px; padding: 40px 44px; color: #fff; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 20px 50px rgba(124, 92, 255, .35); position: relative; overflow: hidden;
}
.ai-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(360px 180px at 80% 20%, rgba(255,255,255,.25), transparent 70%);
}
.ai-ban-copy { position: relative; z-index: 1; }
.ai-banner h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 900; margin-bottom: 8px; }
.ai-banner p { opacity: .92; font-size: 15px; }
.ai-ban-btn {
  display: inline-block; margin-top: 18px; padding: 12px 26px; background: #fff; color: var(--c-primary-deep);
  font-weight: 900; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.16);
  transition: transform .2s;
}
.ai-ban-btn:hover { transform: translateY(-3px) scale(1.03); color: var(--c-pink); }
.ai-ban-deco { font-size: 44px; letter-spacing: 10px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.2)); animation: floaty 5s ease-in-out infinite; position: relative; z-index: 1; }

/* ================= 面包屑 ================= */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px 0 4px; font-size: 13.5px; }
.crumbs a { color: var(--c-ink-soft); font-weight: 600; }
.crumbs a:hover { color: var(--c-primary); }
.crumbs i { color: var(--c-ink-soft); font-style: normal; opacity: .6; }
.crumbs [aria-current] { color: var(--c-primary-deep); font-weight: 800; }

/* ================= 详情页 ================= */
.dream-page { padding-bottom: 40px; }
.dp-head {
  display: grid; grid-template-columns: 1.35fr .75fr; gap: 28px; align-items: center;
  background: linear-gradient(120deg, rgba(124,92,255,.09), rgba(255,126,179,.09));
  border: 1px solid var(--line); border-radius: 28px; padding: 30px 32px; margin-top: 10px;
  box-shadow: var(--shadow);
}
.dp-title { font-size: clamp(24px, 3.6vw, 38px); font-weight: 900; line-height: 1.25; }
.dp-title .dp-emoji { animation: floaty 4s ease-in-out infinite; display: inline-block; }
.dp-brief { margin: 12px 0 16px; color: var(--c-ink-soft); font-size: 15.5px; }
.dp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dp-tag { padding: 4px 13px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; color: var(--c-ink-soft); }
a.dp-tag:hover { border-color: var(--c-primary); color: var(--c-primary-deep); }
.dp-emo { color: var(--c-pink); border-color: rgba(255, 126, 179, .5); }
.dp-view { color: var(--c-ink-soft); }

.vote-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vote-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--line); background: #fff; border-radius: 999px;
  padding: 10px 22px; font-size: 15px; font-weight: 800; color: var(--c-ink);
  transition: transform .15s, box-shadow .2s, border-color .2s, background .2s;
}
.vote-btn:hover { transform: translateY(-2px); }
.vote-btn:active { transform: scale(.9); }
.v-up:hover { border-color: #4caf7d; background: #f0fbf5; }
.v-up.voted { border-color: #4caf7d; background: #e5f8ee; animation: pop .4s ease; }
.v-down:hover { border-color: #ff8a8a; background: #fff3f3; }
.v-down.voted { border-color: #ff8a8a; background: #ffeded; animation: pop .4s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.22) rotate(-3deg); } 100% { transform: scale(1); } }
.vote-tip { font-size: 12.5px; color: var(--c-ink-soft); }

.dp-head-art { text-align: center; }
.dp-head-art img { border-radius: 26px; box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
.dp-head-art figcaption { font-size: 12px; color: var(--c-ink-soft); margin-top: 8px; }

.dp-body { display: grid; grid-template-columns: 1fr 320px; gap: 26px; margin-top: 26px; align-items: start; }
.dp-main { min-width: 0; }
.dp-sec {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.dp-sec h2 { font-size: 21px; font-weight: 900; margin-bottom: 14px; }
.dp-article p { margin-bottom: 12px; font-size: 15.5px; color: #3a3168; }

.scene-list { list-style: none; }
.scene-item {
  padding: 13px 16px; border-radius: var(--radius-sm); background: var(--bg-soft);
  margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px;
  border-left: 4px solid var(--c-primary);
  transition: transform .2s;
}
.scene-item:hover { transform: translateX(4px); }
.sc-q { font-weight: 800; font-size: 14.5px; color: var(--c-primary-deep); }
.sc-a { font-size: 14.5px; color: #3a3168; }

.dp-stories { background: linear-gradient(120deg, rgba(255,215,110,.12), rgba(255,126,179,.1)); border-color: rgba(255, 215, 110, .5); }
.story-card { background: rgba(255,255,255,.86); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(255, 179, 65, .14); }
.st-title { display: block; font-weight: 900; color: #b4720f; margin-bottom: 6px; font-size: 15.5px; }
.st-text { font-size: 14.5px; color: #4a4270; }

.faq-item { border-bottom: 1px dashed var(--line); }
.faq-item summary {
  padding: 13px 4px; font-weight: 800; font-size: 15px; cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 10px; color: var(--c-ink);
}
.faq-item summary::before { content: "💬"; }
.faq-item summary::after { content: "＋"; margin-left: auto; color: var(--c-primary); font-weight: 900; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-a { padding: 0 4px 14px 34px; color: #3a3168; font-size: 14.5px; }

/* 侧栏 */
.dp-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.side-box { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.side-box h3 { font-size: 16px; font-weight: 900; margin-bottom: 12px; }
.side-links { list-style: none; }
.side-links li { border-bottom: 1px dashed var(--line); }
.side-links li:last-child { border-bottom: none; }
.side-links a { display: block; padding: 8px 2px; font-size: 14px; font-weight: 600; color: var(--c-ink-soft); }
.side-links a:hover { color: var(--c-primary); padding-left: 6px; }
.side-search { display: flex; gap: 6px; }
.side-search input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; outline: none; }
.side-search input:focus { border-color: var(--c-primary); }
.side-search button { border: none; border-radius: 999px; width: 38px; background: var(--bg-soft); font-size: 15px; }
.side-ai { background: linear-gradient(120deg, var(--c-primary), var(--c-pink)); color: #fff; border: none; }
.side-ai h3 { color: #fff; }
.side-ai p { font-size: 13.5px; opacity: .92; margin-bottom: 12px; }
.side-ai-btn { display: inline-block; background: #fff; color: var(--c-primary-deep); font-weight: 900; padding: 9px 18px; border-radius: 999px; font-size: 13.5px; }
.side-ai-btn:hover { transform: translateY(-2px); color: var(--c-pink); }

.dp-more { padding-top: 8px; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.more-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 5px;
  transition: transform .2s, box-shadow .2s;
}
.more-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); }
.more-card b { font-size: 14.5px; color: var(--c-ink); font-weight: 800; }
.more-card span { font-size: 12.5px; color: var(--c-ink-soft); }
.dp-note { margin-top: 26px; }
.dp-note p { font-size: 12.5px; color: var(--c-ink-soft); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 18px; }

/* ================= 分类页 ================= */
.cat-hero {
  position: relative; margin-top: 12px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(115deg, var(--c-primary), var(--c-pink));
  color: #fff; box-shadow: 0 18px 46px rgba(124, 92, 255, .3);
}
.cat-hero.cb-2 { background: linear-gradient(115deg, #5a8df0, var(--c-blue)); }
.cat-hero.cb-3 { background: linear-gradient(115deg, #f0a04d, var(--c-yellow)); color: #4a3200; }
.cat-hero-in { display: flex; align-items: center; gap: 22px; padding: 34px 32px; }
.ch-img { width: 110px; height: 110px; border-radius: 26px; object-fit: cover; box-shadow: 0 10px 26px rgba(0,0,0,.2); animation: bob 4.5s ease-in-out infinite; flex-shrink: 0; }
.cat-hero h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; }
.ch-desc { margin-top: 8px; opacity: .94; font-size: 14.5px; max-width: 640px; }
.ch-meta { margin-top: 10px; font-size: 13px; opacity: .85; }
.ch-stars { position: absolute; right: 26px; top: 18px; letter-spacing: 8px; opacity: .8; font-size: 18px; animation: twinkle 3s ease-in-out infinite; }

.cat-body { margin-top: 22px; }
.cat-top-links {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 20px; box-shadow: var(--shadow); font-size: 14px;
}
.cat-top-links a { color: var(--c-ink-soft); font-weight: 600; padding: 3px 8px; border-radius: 8px; }
.cat-top-links a:hover { background: var(--c-primary); color: #fff; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dream-card {
  display: flex; flex-direction: column; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.dream-card:hover { transform: translateY(-7px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.dc-img { display: block; overflow: hidden; aspect-ratio: 9 / 7; background: var(--bg-soft); }
.dc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dream-card:hover .dc-img img { transform: scale(1.06); }
.dc-title { padding: 12px 15px 0; font-size: 16px; font-weight: 800; color: var(--c-ink); }
.dc-brief { padding: 6px 15px 0; font-size: 13px; color: var(--c-ink-soft); flex: 1; }
.dc-foot { display: flex; justify-content: space-between; padding: 10px 15px 14px; font-size: 12px; color: var(--c-ink-soft); }

.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.pg { padding: 8px 16px; border-radius: 999px; background: var(--bg-card); border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--c-ink-soft); }
.pg:hover { border-color: var(--c-primary); color: var(--c-primary-deep); transform: translateY(-2px); }
.pg.cur { background: linear-gradient(120deg, var(--c-primary), var(--c-pink)); color: #fff; border-color: transparent; }
.pg-now { font-size: 13.5px; color: var(--c-ink-soft); padding: 0 6px; }

.cat-folk { margin-top: 10px; }
.cat-others { padding: 26px 0 40px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: var(--bg-card); border: 1.5px solid var(--line); font-size: 13.5px;
  font-weight: 700; color: var(--c-ink-soft); transition: all .2s;
}
.chip:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); transform: translateY(-2px) rotate(-1deg); }

/* 分类目录式分组 */
.cat-dir { margin-top: 20px; }
.cat-group { margin-bottom: 18px; }
.cat-group-head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 16px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(124, 92, 255, .12), rgba(255, 126, 179, .1));
  border: 1px solid var(--line);
}
.cat-group-head span { font-size: 17px; font-weight: 900; color: var(--c-ink); }
.cat-group-head i { font-style: normal; font-size: 12.5px; color: var(--c-ink-soft); font-weight: 700; }

/* 站务静态页 */
.static-page { display: block; margin-top: 16px; }
.static-page .dp-sec h2 { color: var(--c-primary-deep); }

/* ================= 搜索页 ================= */
.page-hero { text-align: center; padding: 44px 0 10px; }
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.page-hero p { color: var(--c-ink-soft); margin-top: 8px; }
.search-page { max-width: 660px; margin: 26px auto 10px; animation: none; }
.search-kws, .search-hot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0; font-size: 14px; color: var(--c-ink-soft); }
.search-count { margin: 14px 0; color: var(--c-ink-soft); font-size: 14.5px; }
.search-count b { color: var(--c-primary-deep); }
.search-empty { text-align: center; padding: 40px 0; }
.se-emoji { font-size: 56px; margin-bottom: 12px; animation: bob 3s ease-in-out infinite; display: inline-block; }
.search-empty p { color: var(--c-ink-soft); margin-bottom: 16px; }

/* ================= AI 页 ================= */
.ai-hero { background: linear-gradient(115deg, rgba(124,92,255,.12), rgba(255,126,179,.12)); border-radius: 0 0 40px 40px; margin-bottom: 10px; padding-bottom: 34px; }
.ai-wrap { max-width: 780px; padding-bottom: 50px; }
.ai-panel { background: var(--bg-card); border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: var(--shadow-lg); }
.ai-label { font-weight: 900; font-size: 15px; display: block; margin-bottom: 10px; }
#aiInput {
  width: 100%; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px;
  font-size: 15px; font-family: inherit; resize: vertical; outline: none; color: var(--c-ink);
  transition: border-color .2s, box-shadow .2s;
}
#aiInput:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(124, 92, 255, .14); }
.ai-quick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; font-size: 13px; color: var(--c-ink-soft); }
.q-btn { cursor: pointer; }
.ai-go {
  width: 100%; border: none; border-radius: 999px; padding: 15px; font-size: 17px; font-weight: 900; color: #fff;
  background: linear-gradient(120deg, var(--c-primary), var(--c-pink));
  box-shadow: 0 10px 26px rgba(124, 92, 255, .35); transition: transform .2s;
}
.ai-go:hover { transform: scale(1.02); }
.ai-go:active { transform: scale(.97); }
.ai-go:disabled { opacity: .6; cursor: wait; }
.ai-result { margin-top: 22px; }
.ai-kws { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ai-kws span { padding: 5px 14px; background: var(--bg-soft); color: var(--c-primary-deep); border-radius: 999px; font-weight: 700; font-size: 13px; }
.ai-sec { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow); }
.ai-sec h2 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.ai-sec h3 { font-size: 16px; font-weight: 900; margin-bottom: 6px; }
.ai-sec p { font-size: 14.5px; color: #3a3168; white-space: pre-wrap; }
.ai-related { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-related a { padding: 7px 14px; background: var(--bg-soft); border-radius: 999px; font-size: 13px; font-weight: 700; }
.ai-note { font-size: 12px; color: var(--c-ink-soft); margin-top: 14px; text-align: center; }
.ai-loading { text-align: center; padding: 30px; color: var(--c-ink-soft); font-weight: 700; }
.spin { display: inline-block; font-size: 30px; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= 百科（高密度目录式） ================= */
.baike-grid { grid-template-columns: repeat(3, 1fr); }
.baike-em {
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; color: #fff;
  background: linear-gradient(120deg, var(--c-primary), var(--c-pink));
}
.baike-grid .dream-card:nth-child(3n+2) .baike-em { background: linear-gradient(120deg, #f0a04d, var(--c-yellow)); }
.baike-grid .dream-card:nth-child(3n) .baike-em { background: linear-gradient(120deg, #4da3f0, var(--c-blue)); }

/* 目录式：分类区块 + 多栏链接列表 */
.bk-toolbar { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px auto 6px; max-width: 560px; }
.bk-toolbar input {
  flex: 1; height: 46px; border: 2px solid var(--line); border-radius: 999px;
  padding: 0 20px; font-size: 15px; outline: none; background: #fff; color: var(--c-ink);
  transition: border-color .2s, box-shadow .2s;
}
.bk-toolbar input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(124, 92, 255, .14); }
.bk-match { font-size: 13px; color: var(--c-primary-deep); font-weight: 800; white-space: nowrap; }

.bk-wrap { padding-bottom: 46px; }
.bk-sec { margin-top: 26px; }
.bk-head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 16px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(124, 92, 255, .12), rgba(255, 126, 179, .1));
  border: 1px solid var(--line);
}
.bk-head-txt { font-size: 18px; font-weight: 900; color: var(--c-ink); letter-spacing: 1px; }
.bk-count { font-size: 12.5px; color: var(--c-ink-soft); font-weight: 700; }

.bk-cols {
  list-style: none; columns: 4; column-gap: 26px;
  margin-top: 8px; padding: 4px 8px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
}
.bk-item { break-inside: avoid; border-bottom: 1px dashed var(--line); }
.bk-item:last-child { border-bottom: none; }
.bk-item a {
  display: block; padding: 6px 8px; font-size: 14px; font-weight: 600;
  color: var(--c-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-radius: 8px; transition: color .15s, background .15s;
}
.bk-item a::before { content: "›"; color: var(--c-primary); font-weight: 900; margin-right: 6px; }
.bk-item a:hover { color: var(--c-primary-deep); background: var(--bg-soft); }

.bk-foot { margin-top: 30px; text-align: center; }
.bk-foot p { font-size: 14px; color: var(--c-ink-soft); background: var(--bg-soft); border-radius: 14px; padding: 14px 18px; display: inline-block; }

.art-related { margin-top: 20px; }
.art-rel-list { columns: 2; column-gap: 26px; list-style: none; }
.art-rel-list li { break-inside: avoid; }

@media (max-width: 1100px) { .bk-cols { columns: 3; } }
@media (max-width: 800px)  { .bk-cols { columns: 2; } .art-rel-list { columns: 1; } }
@media (max-width: 560px)  { .bk-cols { columns: 1; } }
.art-single { display: block; margin-top: 16px; }
.art-head h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; margin-bottom: 10px; }
.art-content { margin-top: 6px; }
.art-foot { margin-top: 20px; }

/* ================= 404 ================= */
.nf-hero { text-align: center; padding: 60px 0 70px; }
.nf-emoji { font-size: 54px; letter-spacing: 14px; animation: floaty 4s ease-in-out infinite; display: inline-block; margin-bottom: 10px; }
.nf-hero h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 900; }
.nf-sub { color: var(--c-ink-soft); margin: 12px 0 22px; }
.nf-hero .big-search { max-width: 560px; margin: 0 auto; animation: none; }
.nf-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.nf-hot { margin-top: 16px; font-size: 14px; color: var(--c-ink-soft); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }

/* ================= 页脚 ================= */
.footer { background: #241d4e; color: #cfc9ef; margin-top: 30px; padding: 44px 0 24px; border-radius: 40px 40px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot-logo { font-size: 19px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.foot-brand p { font-size: 13px; opacity: .8; line-height: 1.8; }
.foot-col h3 { font-size: 15px; color: #fff; margin-bottom: 12px; }
.foot-col a { display: block; color: #cfc9ef; font-size: 13.5px; padding: 4px 0; opacity: .85; }
.foot-col a:hover { color: var(--c-yellow); opacity: 1; padding-left: 4px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: 12.5px; opacity: .7; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.foot-links a { color: #cfc9ef; }
.foot-links a:hover { color: var(--c-yellow); }

/* ================= 响应式 ================= */
@media (max-width: 1024px) {
  .hot-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-blocks { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .more-grid { grid-template-columns: repeat(3, 1fr); }
  .dp-body { grid-template-columns: 1fr 280px; }
}
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }
  .hero-hotwords, .hero-stats { justify-content: center; }
  .two-col { grid-template-columns: 1fr; }
  .dp-head { grid-template-columns: 1fr; }
  .dp-head-art { order: -1; }
  .dp-body { grid-template-columns: 1fr; }
  .dp-side { position: static; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 20px; box-shadow: var(--shadow-lg); z-index: 60; }
  .nav.open { display: flex; }
  .menu-btn { display: block; margin-left: auto; }
  .quick-search { display: none; }
  .ai-banner { flex-direction: column; text-align: center; gap: 12px; padding: 30px 22px; }
}
@media (max-width: 640px) {
  .hot-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-blocks { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .baike-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cat-hero-in { flex-direction: column; text-align: center; }
  .bs-btn { padding: 12px 18px; }
  .big-search { padding-left: 14px; }
}

/* 减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
