:root {
  --primary: #b03a2e;
  --primary-dark: #8c2a20;
  --primary-deep: #6d1f17;
  --accent: #c9a227;
  --accent-light: #e6c86a;
  --accent-soft: #f6ebcf;
  --bg: #faf6ef;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #8a7a66;
  --border: #eadfcd;
  --shadow-sm: 0 2px 10px rgba(140,42,32,.05);
  --shadow-md: 0 10px 30px rgba(140,42,32,.10);
  --shadow-lg: 0 18px 50px rgba(140,42,32,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(201,162,39,.055), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[v-cloak] { display: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* 顶部导航 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark) 45%, var(--primary));
  color: #fff;
  flex-wrap: wrap; gap: 12px;
  box-shadow: 0 2px 18px rgba(109,31,23,.25);
  border-bottom: 1px solid rgba(230,200,106,.30);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-icon {
  font-size: 26px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
}
.brand h1 { margin: 0; font-size: 22px; letter-spacing: 2px; font-family: "STKaiti","KaiTi","楷体","PingFang SC",serif; }
.tagline { margin: 2px 0 0; font-size: 13px; opacity: .85; letter-spacing: 1px; }
.nav-back {
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: #fff; padding: 8px 18px; border-radius: 22px;
  cursor: pointer; font-size: 14px; letter-spacing: 1px;
  transition: all .2s;
}
.nav-back:hover { background: #fff; color: var(--primary-dark); }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-btn {
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 1px;
  transition: all .2s;
}
.topbar-btn:hover { background: #fff; color: var(--primary-dark); }

/* 英雄横幅 */
.hero {
  position: relative;
  padding: 84px 32px 80px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.10), transparent 42%),
    radial-gradient(circle at 84% 8%, rgba(201,162,39,.32), transparent 48%),
    linear-gradient(160deg, var(--primary-deep) 0%, var(--primary-dark) 52%, var(--primary) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76' viewBox='0 0 76 76'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07'%3E%3Cpath d='M38 4 L72 38 L38 72 L4 38 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 76px 76px;
  pointer-events: none;
}
.hero-seal {
  display: inline-block;
  width: 56px; height: 56px; line-height: 52px;
  background: rgba(109,31,23,.55);
  color: var(--accent-light);
  border: 2px solid var(--accent);
  outline: 1px solid rgba(255,255,255,.25);
  outline-offset: 3px;
  border-radius: 10px;
  font-family: "STKaiti","KaiTi","楷体",serif;
  font-size: 17px; font-weight: 700; letter-spacing: 2px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  margin-bottom: 24px;
  animation: fadeUp .6s ease both;
}
.hero-title {
  margin: 0 0 16px;
  font-size: 40px; line-height: 1.4; letter-spacing: 3px;
  font-family: "STKaiti","KaiTi","楷体","PingFang SC",serif;
  font-weight: 700;
  animation: fadeUp .6s ease .05s both;
}
.hero-title::after {
  content: "";
  display: block;
  width: 58px; height: 2px;
  margin: 22px auto 0;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}
.hero-title span { color: var(--accent-light); font-weight: 400; }
.hero-bounce {
  display: inline-block;
  color: inherit;          /* 抵消 .hero-title span 的变色，保持标题本色 */
  font-weight: inherit;
  cursor: default;
}
.hero-bounce i {
  display: inline-block;
  font-style: normal;
  transition: transform .18s ease;
}
.hero-bounce:hover i { animation: heroJump .5s ease infinite; }
.hero-bounce:hover i:nth-child(2) { animation-delay: .1s; }
.hero-bounce:hover i:nth-child(3) { animation-delay: .2s; }
@keyframes heroJump {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-desc {
  max-width: 660px; margin: 0 auto 28px;
  font-size: 16px; line-height: 1.95; opacity: .94; letter-spacing: 1px;
  animation: fadeUp .6s ease .12s both;
}
.hero-cta {
  position: relative;
  display: inline-block;
  padding: 14px 36px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(135deg, #ecd489, var(--accent) 45%, #b8902a);
  color: #5c3a0a;
  font-size: 17px; font-weight: 700; letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(201,162,39,.42), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: fadeUp .6s ease .2s both;
}
/* 四周扩散的金色光环，营造「可点击去探索」的呼吸感 */
.hero-cta::before {
  content: "";
  position: absolute; inset: -6px;
  border: 2px solid rgba(230,200,106,.85);
  border-radius: 46px;
  pointer-events: none;
  animation: ctaRing 2.2s ease-out infinite;
}
@keyframes ctaRing {
  0% { transform: scale(.92); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: scale(1.16); opacity: 0; }
}
.hero-cta:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(201,162,39,.58), inset 0 1px 0 rgba(255,255,255,.6);
}

/* 主体 */
.container { max-width: 1080px; margin: 30px auto; padding: 0 24px; }
.panel-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; margin: 0 0 18px; color: var(--primary-dark);
  letter-spacing: 1px;
}
.panel-title::before {
  content: "";
  width: 6px; height: 24px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent) 40%, var(--primary));
  flex: none;
  box-shadow: 0 2px 6px rgba(176,58,46,.22);
}
.proj-title { margin: 0 0 10px; font-size: 26px; color: var(--primary-dark); letter-spacing: 1px; font-family: "STKaiti","KaiTi","楷体","PingFang SC",serif; }

/* 介绍卡片 */
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 24px; }
@media (max-width: 700px) { .intro-grid { grid-template-columns: 1fr; } }
.intro-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.intro-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201,162,39,.45); }
.intro-card::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 46px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.intro-icon {
  width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  margin: 6px auto 14px;
  font-size: 28px;
  background: var(--accent-soft);
  border-radius: 50%;
}
.intro-card h4 { margin: 0 0 8px; font-size: 17px; color: var(--primary-dark); letter-spacing: 1px; }
.intro-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.card h4 { margin: 0 0 14px; font-size: 17px; color: var(--primary-dark); letter-spacing: 1px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

label { display: block; margin: 10px 0 4px; font-size: 14px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }

.btn {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 24px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: .5px;
  transition: all .25s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(140,42,32,.08); }
.btn.primary {
  background: linear-gradient(135deg, #c0402f, var(--primary-dark));
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(176,58,46,.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn.primary:hover { box-shadow: 0 6px 22px rgba(176,58,46,.40), inset 0 1px 0 rgba(255,255,255,.18); transform: translateY(-1px); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.result { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0; }
.prompt { background: #fdf6e3; border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.art { max-width: 100%; border-radius: 10px; margin-top: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
audio { width: 100%; margin-top: 12px; }

/* markdown 渲染 */
.markdown { font-size: 15px; }
.markdown h1, .markdown h2, .markdown h3 { color: var(--primary-dark); }
.markdown ul, .markdown ol { padding-left: 22px; }
.markdown code { background: #f3ead9; padding: 1px 5px; border-radius: 4px; font-size: 13px; }

/* 地图 */
.map-card { padding: 18px; border-radius: 16px; }
.map-hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.map { width: 100%; height: 500px; border-radius: 10px; }
@media (max-width: 560px) { .map { height: 340px; } }

/* 项目详情 */
.badge { background: #f3ead9; color: var(--muted); border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 500; }
.badge.level { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.entry-body h5 { color: var(--primary-dark); margin: 16px 0 6px; padding-left: 10px; border-left: 3px solid var(--accent); font-size: 15px; }
.entry-body p { margin: 4px 0; font-size: 14px; }
.meta { font-size: 13px; color: var(--muted); }
.inno { background: #fbf7ef; border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.inno p { margin: 4px 0; }
.src { font-size: 12px; color: var(--muted); word-break: break-all; }
.src a { color: var(--primary-dark); text-decoration: underline; word-break: break-all; }
.src a:hover { color: var(--accent); }
.warn { color: #b03a2e; background: #fdf0ee; padding: 8px 12px; border-radius: 6px; font-size: 13px; }

/* 他们说：媒体采访 / 游客体验 */
.voice-list { display: grid; gap: 12px; }
.voice {
  position: relative;
  margin: 0; padding: 14px 16px 12px 18px;
  background: #fbf7ef;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
}
.voice-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 1px;
  padding: 1px 9px; border-radius: 10px;
  margin-bottom: 8px;
}
.voice-tag.v-interview { background: rgba(176,58,46,.10); color: var(--primary-dark); border: 1px solid rgba(176,58,46,.28); }
.voice-tag.v-visitor { background: rgba(201,162,39,.14); color: #8a6b12; border: 1px solid rgba(201,162,39,.42); }
.voice-quote {
  margin: 0 0 6px;
  font-size: 15px; line-height: 1.85;
  font-family: "STKaiti","KaiTi","楷体","PingFang SC",serif;
  color: #3d3226;
}
.voice-by { margin: 0 0 4px; font-size: 13px; color: var(--primary-dark); text-align: right; }

/* 近期动态 · 补充资料 */
.update-list { display: grid; gap: 14px; margin-top: 12px; }
.update {
  padding: 12px 16px;
  background: #f7faf8;
  border-left: 4px solid #2e7d5b;
  border-radius: 0 10px 10px 0;
}
.update-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 6px;
}
.update-head b { font-size: 15px; color: #24463a; line-height: 1.5; }
.update-date {
  flex: none;
  font-size: 12px; font-variant-numeric: tabular-nums;
  color: #2e7d5b; background: rgba(46,125,91,.10);
  border: 1px solid rgba(46,125,91,.25);
  padding: 1px 8px; border-radius: 10px;
}
.update p { margin: 0 0 6px; font-size: 14px; line-height: 1.8; color: #3d3226; }
.update .src { margin: 0; font-size: 12px; color: #7a6a52; word-break: break-all; }
@media (max-width: 700px) {
  .update-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* 项目顶部图片轮播 */
.hero-carousel { margin: 0 0 18px; }
.hc-stage {
  position: relative;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background: #2a1c14;
  box-shadow: 0 12px 34px rgba(109,31,23,.22);
}
.hc-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1.02);
  transition: opacity .9s ease;
  will-change: opacity, transform;
}
.hc-slide.active { animation: hcZoom 7s ease-out forwards; }
/* 单图交叉淡入（只渲染当前一张，避免一次解码十几张大图） */
.hc-fade-enter-active,
.hc-fade-leave-active { transition: opacity .9s ease; }
.hc-fade-enter-from,
.hc-fade-leave-to { opacity: 0; }
@keyframes hcZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.10); }
}
.hc-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,14,10,.78) 0%, rgba(28,14,10,.22) 38%, transparent 62%);
  pointer-events: none;
}
.hc-text {
  position: absolute; left: 26px; right: 26px; bottom: 26px;
  color: #fff; pointer-events: none;
}
.hc-text b {
  display: block;
  font-size: 24px; letter-spacing: 2px;
  font-family: "STKaiti","KaiTi","楷体","PingFang SC",serif;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hc-text span {
  display: inline-block; margin-top: 6px;
  font-size: 13px; letter-spacing: 1px; opacity: .88;
  padding: 2px 10px; border-radius: 12px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(4px);
}
.hc-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(30,16,12,.34);
  color: #fff; font-size: 24px; line-height: 1;
  cursor: pointer;
  opacity: 0; transition: opacity .25s ease, background .2s ease;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 3px;
}
.hc-stage:hover .hc-nav { opacity: 1; }
.hc-nav:hover { background: rgba(176,58,46,.75); }
.hc-nav.prev { left: 14px; }
.hc-nav.next { right: 14px; }
.hc-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 7px;
}
.hc-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.42);
  cursor: pointer; transition: all .25s ease;
}
.hc-dots span.on { width: 20px; border-radius: 4px; background: var(--accent-light); }

/* 配图版权说明 */
.pic-note {
  margin: 0 0 18px; padding: 8px 14px;
  font-size: 12px; color: var(--muted);
  background: #fbf7ef; border-radius: 8px;
  border-left: 3px solid var(--border);
}

/* 正文插图 */
.entry-fig { margin: 14px 0 6px; }
.entry-fig img {
  width: 100%; max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(140,42,32,.13);
}
.entry-fig figcaption {
  margin-top: 6px;
  font-size: 12px; color: var(--muted);
  text-align: center; letter-spacing: .5px;
}

@media (max-width: 700px) {
  .hc-stage { height: 220px; border-radius: 14px; }
  .hc-text { left: 16px; right: 16px; bottom: 18px; }
  .hc-text b { font-size: 18px; }
}
.img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.img-grid img {
  width: 100%; border-radius: 10px; object-fit: cover; aspect-ratio: 4/3;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: zoom-in;
}
.img-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
@media (max-width: 560px) { .img-grid { grid-template-columns: repeat(2, 1fr); } }

.src-box { margin-top: 10px; }
.src-box summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.src-box li { font-size: 12px; color: var(--muted); word-break: break-all; }

/* 页脚 */
.footer {
  text-align: center;
  padding: 30px 16px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .5px;
  border-top: 1px solid rgba(201,162,39,.25);
  margin-top: 24px;
  background: linear-gradient(#fff, var(--bg));
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* 移动端 */
@media (max-width: 560px) {
  .hero { padding: 56px 20px 52px; }
  .hero-title { font-size: 28px; letter-spacing: 2px; }
  .hero-desc { font-size: 14px; }
  .topbar { padding: 12px 18px; }
}

/* 动态效果 */
.hero-canvas { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero::after { z-index: 1; }
.hero-seal, .hero-title, .hero-desc, .hero-cta { position: relative; z-index: 3; }

.stats-wrap {
  max-width: 760px;
  margin: -46px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}
.stats-bar {
  display: flex;
  justify-content: space-around;
  gap: 24px;
  padding: 22px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.stat { text-align: center; }
.stat b { display: block; font-size: 36px; color: var(--primary); font-weight: 700; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); letter-spacing: 1px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 560px) {
  .stats-wrap { margin-top: -30px; }
  .stats-bar { padding: 16px 18px; gap: 12px; }
  .stat b { font-size: 26px; }
}

/* 数智人口播视频 */
.avatar-video {
  width: 100%;
  max-width: 460px;
  display: block;
  margin: 8px auto 0;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  background: #000;
}

/* 常驻数智人「鲁小遗」 */
.luyi { position: fixed; right: 22px; bottom: 22px; z-index: 80; }
.luyi-bubble {
  position: relative;
  width: 64px; height: 64px;
  border: none; background: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.luyi-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: transform .25s ease;
}
.luyi-bubble:hover .luyi-avatar { transform: scale(1.06); }
.luyi-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0; pointer-events: none;
}
.luyi-ring.speaking { animation: luyiPulse 1.2s ease-out infinite; }
@keyframes luyiPulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.7); opacity: 0; }
}
.luyi-dot {
  position: absolute; right: 0; bottom: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: #2ecc71; border: 2px solid #fff;
}
.luyi-panel {
  position: absolute; right: 0; bottom: 76px;
  width: 460px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.22);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(12px); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.luyi.open .luyi-panel { transform: none; opacity: 1; pointer-events: auto; }
.luyi-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
}
.luyi-avatar-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.5); }
.luyi-head-info { flex: 1; }
.luyi-head-info b { display: block; font-size: 15px; letter-spacing: 1px; }
.luyi-status { font-size: 11px; opacity: .85; }
.luyi-close {
  border: none; background: rgba(255,255,255,.15); color: #fff;
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  font-size: 16px; line-height: 1;
}
.luyi-chat {
  height: 480px; overflow-y: auto; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg);
}
.luyi-msg {
  max-width: 86%; padding: 8px 12px; border-radius: 12px;
  font-size: 13px; line-height: 1.65; word-break: break-word;
}
.luyi-msg.ai { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.luyi-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-bottom-right-radius: 4px; }
.luyi-msg .markdown p { margin: 0; }
.luyi-msg-tools { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.luyi-speak {
  border: 1px solid var(--border); background: #fff; color: var(--primary-dark);
  border-radius: 14px; padding: 2px 12px; font-size: 12px; cursor: pointer;
}
.luyi-speak:disabled { opacity: .5; cursor: not-allowed; }
.luyi-src summary { cursor: pointer; font-size: 11px; color: var(--muted); }
.luyi-src li { font-size: 11px; color: var(--muted); word-break: break-all; }
.luyi-src a { color: var(--primary-dark); text-decoration: underline; word-break: break-all; }
.luyi-src a:hover { color: var(--accent); }
.luyi-typing span {
  display: inline-block; width: 6px; height: 6px; margin: 0 2px;
  border-radius: 50%; background: var(--muted);
  animation: luyiBounce 1s ease-in-out infinite;
}
.luyi-typing span:nth-child(2) { animation-delay: .15s; }
.luyi-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes luyiBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.luyi-input {
  display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--border);
}
.luyi-input input { flex: 1; font-size: 14px; }
.luyi-input .btn { margin-top: 0; white-space: nowrap; }

/* ==================== 详情页排版精修 ==================== */
.proj-card { padding: 26px 28px 22px; }

.proj-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.proj-head .proj-title { margin: 0 0 10px; font-size: 30px; line-height: 1.25; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tag {
  display: inline-block;
  padding: 3px 11px;
  font-size: 12.5px; letter-spacing: .5px;
  white-space: nowrap;
  color: var(--primary-dark);
  background: rgba(176,58,46,.07);
  border: 1px solid rgba(176,58,46,.18);
  border-radius: 20px;
  flex: none;
}
.tag-level { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); border-color: transparent; }
.proj-seal {
  flex: none;
  display: grid; place-content: center;
  width: 52px; height: 52px;
  font-family: "STKaiti","KaiTi","楷体",serif;
  font-size: 20px; color: #fff; letter-spacing: 2px;
  background: var(--primary);
  border-radius: 8px;
  transform: rotate(-4deg);
  box-shadow: 0 6px 16px rgba(140,42,32,.22);
}

.fact-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin: 18px 0 6px;
}
.fact {
  padding: 10px 14px;
  background: #fbf7ef;
  border-radius: 10px;
}
.fact-wide { grid-column: 1 / -1; }
.fact span { display: block; font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.fact b { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: #463a2d; line-height: 1.6; }

/* 人机协作·来源核验 */
.verify-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 6px; }
.verify-item {
  padding: 12px 14px;
  background: #fbf7ef;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.verify-item b { display: block; font-size: 14px; color: var(--primary-dark); margin-bottom: 2px; }
.verify-item span { font-size: 13px; color: var(--muted); line-height: 1.7; }
@media (max-width: 700px) { .verify-grid { grid-template-columns: 1fr; } }

.entry-body { margin-top: 20px; }
.entry-sec { margin-bottom: 8px; }
.entry-body h5 {
  margin: 22px 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  font-size: 16px; letter-spacing: 1px;
}
.entry-body p { margin: 6px 0; font-size: 15px; line-height: 1.95; color: #3f342a; }
.entry-src { margin-top: 6px; }

/* 待求证：默认折叠，避免冲淡正文 */
.notes {
  margin-top: 16px;
  padding: 10px 14px;
  background: #fff9e8;
  border: 1px solid rgba(201,162,39,.35);
  border-radius: 10px;
}
.notes summary {
  cursor: pointer;
  font-size: 13px; font-weight: 600; color: #8a6d1f;
  list-style: none;
}
.notes summary::-webkit-details-marker { display: none; }
.notes summary::before { content: "▸ "; }
.notes[open] summary::before { content: "▾ "; }
.notes p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.85; color: #6b5a2e; }
.entry-src .src { font-size: 12.5px; line-height: 1.8; color: var(--muted); word-break: break-all; }

.inno { padding: 14px 16px; margin: 10px 0; border: 1px solid rgba(201,162,39,.28); background: #fbf8f0; }
.inno b { display: block; margin-bottom: 4px; font-size: 14.5px; color: var(--primary-dark); }
.inno .src { font-size: 12px; color: var(--muted); line-height: 1.7; word-break: break-all; }

.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h4 { margin: 0; }
.card-head .hint { margin: 0; white-space: nowrap; }
.lecture-card .luyi-hint {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px; color: var(--muted);
}
.lecture-card .luyi-hint b { color: var(--primary-dark); }

/* 动态卡片：左侧时间轴 */
.update-list { position: relative; padding-left: 18px; }
.update-list::before {
  content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(to bottom, rgba(46,125,91,.35), rgba(46,125,91,.05));
}
.update { position: relative; }
.update::before {
  content: ""; position: absolute; left: -18px; top: 18px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid #2e7d5b;
}

/* 引语卡片 */
.voice { transition: transform .2s ease, box-shadow .2s ease; }
.voice:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(140,42,32,.08); }

/* 正文插图：鼠标悬停轻微放大 */
.entry-fig img { transition: transform .35s ease; }
.entry-fig:hover img { transform: scale(1.012); }

@media (max-width: 760px) {
  .proj-card { padding: 20px 18px; }
  .proj-head .proj-title { font-size: 24px; }
  .proj-seal { display: none; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .entry-body p { font-size: 14.5px; }
}

/* ==================== 运行案例 · 用户反馈 ==================== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6px; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  padding: 16px 16px 14px;
  background: #fbf7ef;
  border: 1px solid rgba(201,162,39,.28);
  border-radius: 12px;
}
.case-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.case-head b { font-size: 14.5px; color: var(--primary-dark); line-height: 1.4; }
.case-tag { font-size: 11px; letter-spacing: 1px; padding: 1px 9px; border-radius: 10px; color: #fff; flex: none; }
.t-typical { background: #2e7d5b; }
.t-complex { background: #b03a2e; }
.t-boundary { background: #8a6d1f; }
.case-q { margin: 0 0 6px; font-size: 13px; color: #3d3226; font-weight: 600; line-height: 1.7; }
.case-a { margin: 0 0 6px; font-size: 13px; color: #4a3f2e; line-height: 1.75; }
.case-fix {
  margin: 0 0 6px; padding: 6px 10px;
  font-size: 12px; color: var(--primary-dark);
  background: rgba(176,58,46,.06);
  border-radius: 8px; line-height: 1.65;
}
.case-verdict { margin: 0; font-size: 12.5px; color: #2e7d5b; }

/* 鲁小遗「清空」按钮 */
.luyi-clear {
  border: none; background: rgba(255,255,255,.15); color: #fff;
  padding: 3px 10px; border-radius: 12px; cursor: pointer;
  font-size: 12px; letter-spacing: 1px;
}
.luyi-clear:hover { background: rgba(255,255,255,.3); }

/* 移动端补强 */
@media (hover: none) {
  /* 触屏无 hover，轮播左右箭头常显 */
  .hc-nav { opacity: .65; }
}
@media (max-height: 740px) {
  /* 矮屏下聊天面板别占满整屏 */
  .luyi-chat { height: 52vh; }
}
@media (max-width: 420px) {
  .fact-grid { grid-template-columns: 1fr; }
  .brand h1 { font-size: 18px; }
  .tagline { font-size: 12px; }
}

/* ==================== 右上角弹出面板（人机协作 / 运行案例） ==================== */
.modal-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(28,14,10,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
  animation: maskIn .2s ease both;
}
.modal {
  width: min(860px, 100%);
  max-height: 88vh;
  background: var(--bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
  animation: modalIn .28s var(--ease) both;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
}
.modal-head h3 { margin: 0; font-size: 18px; letter-spacing: 1px; }
.modal-close {
  border: none; background: rgba(255,255,255,.15); color: #fff;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  font-size: 18px; line-height: 1; flex: none;
  transition: background .2s;
}
.modal-close:hover { background: rgba(255,255,255,.3); }
.modal-body { padding: 22px 24px; overflow-y: auto; }
.modal-body .hint { margin: 0 0 16px; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .modal-mask { padding: 12px; }
  .modal-body { padding: 16px 14px; }
}

/* ==================== 顶部汉堡菜单（移动端） ==================== */
.topbar-menu-btn {
  display: none;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: #fff;
  width: 42px; height: 40px;
  border-radius: 10px; cursor: pointer;
  font-size: 20px; line-height: 1;
  align-items: center; justify-content: center;
}
.topbar-menu-btn:hover { background: rgba(255,255,255,.2); }
@media (max-width: 640px) {
  .topbar-menu-btn { display: flex; }
  .topbar-actions {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 8px; padding: 12px 18px;
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(230,200,106,.30);
    box-shadow: 0 16px 32px rgba(0,0,0,.28);
    display: none;
  }
  .topbar-actions.open { display: flex; }
  .topbar-btn, .nav-back { width: 100%; text-align: left; }
}

/* ==================== 非遗名录 ==================== */
.catalog-bar {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 20px;
}
.catalog-search { font-size: 16px; }
.catalog-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .catalog-filters { grid-template-columns: 1fr; } }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 4px; }
@media (max-width: 900px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .catalog-grid { grid-template-columns: 1fr; } }
.catalog-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,162,39,.45); }
.catalog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.catalog-head b { font-size: 16px; color: var(--primary-dark); line-height: 1.4; font-family: "STKaiti","KaiTi","楷体","PingFang SC",serif; }
.catalog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.catalog-brief { margin: 0 0 10px; font-size: 13px; color: #4a3f2e; line-height: 1.7; flex: 1; }
.catalog-card .src { margin: 0 0 12px; font-size: 12px; color: var(--muted); word-break: break-all; }
.catalog-card .src a { color: var(--primary-dark); text-decoration: underline; word-break: break-all; }
.catalog-card .btn { margin-top: auto; align-self: flex-start; }

/* ==================== 地图加载态 ==================== */
.map-wrap { position: relative; }
.map-loading {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(250,246,239,.72);
  border-radius: 10px;
  color: var(--primary-dark); font-size: 14px; letter-spacing: 1px;
}
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(201,162,39,.25);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== 讲解结果操作条 ==================== */
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-actions .btn { margin-top: 10px; }

/* ==================== 鲁小遗：停止按钮 ==================== */
.luyi-stop {
  margin-top: 0;
  background: linear-gradient(135deg, #c0402f, var(--primary-deep));
  border: none; color: #fff;
  box-shadow: 0 4px 14px rgba(176,58,46,.32);
  white-space: nowrap;
}
.luyi-stop:hover { color: #fff; box-shadow: 0 6px 20px rgba(176,58,46,.45); }

/* ==================== 用户反馈表单 ==================== */
.feedback {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.feedback h4 { margin: 0 0 4px; font-size: 16px; color: var(--primary-dark); letter-spacing: 1px; }
.feedback .hint { margin: 0 0 12px; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.fb-actions .btn { margin-top: 6px; }

/* ==================== 鲁小遗推荐问题 ==================== */
.luyi-suggs {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 12px; border-top: 1px solid var(--border);
}
.luyi-sugg {
  font-size: 12px; color: var(--primary-dark);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 3px 10px; cursor: pointer;
  transition: background .2s;
}
.luyi-sugg:hover { background: var(--accent-light); }
.luyi-sugg:disabled { opacity: .5; cursor: default; }

/* ==================== 顶栏分享下拉 ==================== */
.share-wrap { position: relative; }
.share-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 160px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; z-index: 60;
}
.share-item {
  display: block; width: 100%; text-align: left;
  font-size: 13px; color: var(--text); background: none; border: none;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.share-item:hover { background: var(--accent-soft); }

/* ==================== 首页门类分布图 ==================== */
.stat-chart-card { margin-top: 18px; padding: 18px; }
.cat-chart { width: 100%; height: 280px; }
