/* ============================================
   数智赋能·戏曲润心 — AI 戏曲平台
   设计语言：传统戏曲美学（红/金/水墨）+ 现代数智（霓虹/全息）
   ============================================ */

/* ---------- 重置与基础变量 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 主色板 */
  --c-red: #c8161d;          /* 中国红 */
  --c-red-deep: #8b0000;
  --c-red-soft: #fce4e4;
  --c-gold: #d4af37;
  --c-gold-soft: #f7e9c5;
  --c-ink: #1a1a1a;
  --c-paper: #faf7f0;        /* 宣纸色 */
  --c-paper-warm: #f5ede0;
  --c-bg: #ffffff;
  --c-bg-alt: #f8f5ef;
  --c-text: #2a2a2a;
  --c-text-soft: #5a5a5a;
  --c-text-mute: #8a8a8a;
  --c-border: #e6dfd0;
  --c-cyan: #00d9ff;         /* 数智科技色 */
  --c-cyan-soft: #d6f7ff;

  /* 字体 */
  --f-serif: "Noto Serif SC", "Songti SC", "宋体", serif;
  --f-sans: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --f-kai: "Ma Shan Zheng", "Kaiti SC", "楷体", cursive;

  /* 间距与圆角 */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
  --shadow-red: 0 8px 30px rgba(200,22,29,0.25);

  --container: 1200px;
  --header-h: 70px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  transition: all 0.3s;
}
.topnav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-red);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--c-red);
  color: #fff;
  border-radius: 8px;
  font-family: var(--f-kai);
  font-size: 22px;
  box-shadow: var(--shadow-red);
}
.brand-text { letter-spacing: 1px; }

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-red); }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--c-red);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-text);
  border-radius: 1px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--c-red-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(200,22,29,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}
.btn-ghost:hover {
  border-color: var(--c-red);
  color: var(--c-red);
}
.btn-arrow { font-size: 18px; line-height: 1; }

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.1);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(200,22,29,0.25), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(212,175,55,0.13), transparent 50%),
    linear-gradient(180deg, rgba(8,6,4,0.34) 0%, rgba(8,6,4,0.72) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 60px 24px;
  max-width: 900px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero-title .t-1 { color: #ffd700; }
.hero-title .t-2 { color: #fff; }
.hero-title .t-dot {
  color: var(--c-red);
  font-family: var(--f-kai);
  font-size: 0.8em;
  margin: 0 4px;
}
.hero-subtitle {
  font-family: var(--f-kai);
  font-size: clamp(20px, 2.5vw, 28px);
  color: #ffd700;
  margin-bottom: 16px;
  letter-spacing: 4px;
}
.hero-tagline {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  letter-spacing: 1px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.hero-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 700;
  color: #ffd700;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  letter-spacing: 1px;
}
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
}
.scroll-line {
  width: 1px; height: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
  margin: 8px auto 0;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 通用 Section ---------- */
.section {
  position: relative;
  padding: 100px 0;
}
.section-alt {
  background: var(--c-bg-alt);
}
.section-warm {
  background: linear-gradient(135deg, #fff5e6 0%, #fce4e4 100%);
}
.section-deco {
  position: absolute;
  top: 40px;
  font-family: var(--f-kai);
  font-size: 120px;
  color: var(--c-red);
  opacity: 0.06;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}
.deco-left { left: 30px; }
.deco-right { right: 30px; }

.section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-red);
  letter-spacing: 3px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-red);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 18px;
  line-height: 1.3;
  text-wrap: balance;
}
@media (min-width: 900px) {
  .section-title { white-space: nowrap; }
}
.section-desc {
  font-size: 16px;
  color: var(--c-text-soft);
  line-height: 1.9;
}

/* ---------- AI 戏曲工坊 ---------- */
.ai-opera-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.ai-opera-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,217,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.ai-opera-card::after {
  content: "";
  position: absolute;
  bottom: -50%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,22,29,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.ai-opera-input { position: relative; z-index: 1; margin-bottom: 32px; }
.input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.label-dot {
  width: 8px; height: 8px;
  background: var(--c-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--c-cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.input-row {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  padding: 8px;
  transition: all 0.3s;
}
.input-row:focus-within {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(0,217,255,0.1);
}
.input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 12px 16px;
  font-size: 16px;
}
.input-row input::placeholder { color: rgba(255,255,255,0.4); }
.btn-send {
  background: var(--c-cyan);
  color: #001a1f;
  font-weight: 600;
  padding: 12px 24px;
  box-shadow: 0 4px 20px rgba(0,217,255,0.3);
}
.btn-send:hover {
  background: #4fe6ff;
  transform: translateY(-1px);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}
.tag-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-right: 4px;
}
.tag {
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  transition: all 0.2s;
}
.tag:hover {
  background: var(--c-cyan);
  color: #001a1f;
  border-color: var(--c-cyan);
  transform: translateY(-1px);
}

/* AI Result */
.ai-opera-result {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-empty {
  text-align: center;
  color: rgba(255,255,255,0.4);
  padding: 40px;
}
.empty-icon {
  font-family: var(--f-kai);
  font-size: 80px;
  color: rgba(0,217,255,0.4);
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.result-active { width: 100%; padding: 28px; }
.result-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  margin-bottom: 24px;
}
.result-genre {
  display: inline-block;
  padding: 4px 14px;
  background: var(--c-cyan);
  color: #001a1f;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.result-title {
  font-family: var(--f-display);
  font-size: 26px;
  color: #ffd700;
  margin-bottom: 8px;
}
.result-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.result-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.result-tags span {
  padding: 3px 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.visual-frame {
  position: relative;
  width: 220px; height: 220px;
  background: radial-gradient(circle, #2a3a4a 0%, #0a1a2a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,217,255,0.3);
}
.visual-glow {
  position: absolute;
  inset: -10px;
  background: conic-gradient(from 0deg, var(--c-cyan), var(--c-red), var(--c-cyan));
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.5;
  animation: spin 6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.visual-character {
  position: relative;
  z-index: 2;
  font-family: var(--f-kai);
  font-size: 100px;
  color: #ffd700;
  text-shadow: 0 0 30px var(--c-cyan);
}
.visual-status {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  letter-spacing: 1px;
}

/* Audio Player */
.audio-player {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.1);
}
.play-btn {
  width: 48px; height: 48px;
  background: var(--c-cyan);
  color: #001a1f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.play-btn:hover { background: #4fe6ff; transform: scale(1.05); }
.play-btn svg { width: 22px; height: 22px; }
.player-info { flex: 1; min-width: 0; }
.player-title {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.player-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-red));
  width: 0;
  transition: width 0.1s linear;
}
.player-time {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* Sample grid */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.sample-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 20px 18px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.sample-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--c-gold);
  transition: width 0.3s;
}
.sample-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-gold);
}
.sample-card:hover::before { width: 100%; opacity: 0.1; }
.sample-card-red::before { background: var(--c-red); }
.sample-card-red:hover { border-color: var(--c-red); }
.sample-genre {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  background: var(--c-gold-soft);
  color: #8a6914;
  border-radius: 3px;
  margin-bottom: 10px;
  font-weight: 500;
}
.sample-card-red .sample-genre {
  background: var(--c-red-soft);
  color: var(--c-red);
}
.sample-title {
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.sample-line {
  font-size: 13px;
  color: var(--c-text-soft);
  font-family: var(--f-kai);
}

/* ---------- 数智虚拟人物 ---------- */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}
.character-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
}
.character-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.character-card-featured {
  border: 2px solid var(--c-red);
  transform: scale(1.02);
}
.character-card-featured:hover { transform: scale(1.02) translateY(-6px); }

.character-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}
.character-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.character-card:hover .character-img img { transform: scale(1.05); }
.character-tag {
  position: absolute;
  top: 14px; left: 14px;
  width: 42px; height: 42px;
  background: var(--c-red);
  color: #fff;
  font-family: var(--f-kai);
  font-size: 22px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
}
.character-flag {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px 10px;
  background: #ffd700;
  color: #8a0000;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 1px;
}
.character-info { padding: 22px; }
.character-info h3 {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--c-ink);
  margin-bottom: 10px;
}
.character-info p {
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.7;
  margin-bottom: 14px;
}
.character-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.character-features li {
  font-size: 12px;
  padding: 3px 10px;
  background: var(--c-red-soft);
  color: var(--c-red);
  border-radius: 4px;
}
/* 角色卡作为可点击链接时 */
.character-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.character-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-red);
  letter-spacing: .04em;
  transition: transform .25s ease;
}
.character-card-link:hover .character-cta {
  transform: translateX(4px);
}

.tech-strip {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 24px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  flex: 1 1 0;
  min-width: 0;
}
.tech-num {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--c-red);
  font-weight: 700;
}
.tech-text {
  font-size: 13px;
  color: var(--c-text);
}
.tech-arrow {
  color: var(--c-red);
  font-size: 20px;
  font-weight: 700;
}

/* ---------- 儿童专区 ---------- */
.kids-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.kids-tab {
  padding: 10px 24px;
  background: #fff;
  border: 2px solid var(--c-border);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  transition: all 0.2s;
}
.kids-tab:hover { border-color: var(--c-red); color: var(--c-red); }
.kids-tab.active {
  background: var(--c-red);
  border-color: var(--c-red);
  color: #fff;
}

.kids-panel { display: none; }
.kids-panel.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.kids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.kid-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 2px solid transparent;
}
.kid-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-md);
}
.kid-emoji {
  font-family: var(--f-kai);
  font-size: 56px;
  color: var(--c-red);
  margin-bottom: 10px;
  line-height: 1;
}
.kid-card h4 {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.kid-card p { font-size: 13px; color: var(--c-text-soft); }
/* 剧种卡作为可点击链接 */
.kid-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.kid-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-red);
  letter-spacing: .04em;
  transition: transform .25s ease;
}
.kid-card-link:hover .kid-cta {
  transform: translateX(4px);
}

/* Face Paint */
.facepaint-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.facepaint-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-paper) 0%, var(--c-paper-warm) 100%);
  border-radius: var(--r-md);
  padding: 20px;
}
.facepaint-stage svg {
  width: 280px;
  height: 336px;
  max-width: 100%;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}
.facepaint-title {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.facepaint-hint {
  font-size: 13px;
  color: var(--c-text-soft);
  margin-bottom: 12px;
}
.color-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.color-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  font-family: var(--f-kai);
  color: #fff;
  font-size: 14px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s;
}
.color-btn:hover { transform: scale(1.1); }
.color-btn[data-color="#ffd700"] { color: #8a0000; }
.color-btn[data-color="#ffffff"] { color: #1a1a1a; }
.facepaint-fact {
  font-size: 13px;
  color: var(--c-text-soft);
  line-height: 1.8;
  padding: 12px 16px;
  background: var(--c-bg-alt);
  border-radius: var(--r-sm);
  margin-bottom: 16px;
}

/* Singing */
.singing-demo {
  background: linear-gradient(135deg, #fff5e6 0%, #fce4e4 100%);
  border-radius: var(--r-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.singing-line {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--c-ink);
  margin-bottom: 28px;
}
.singing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.singing-item {
  background: #fff;
  padding: 24px 16px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.singing-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.singing-num {
  font-family: var(--f-kai);
  font-size: 48px;
  color: var(--c-red);
  line-height: 1;
  margin-bottom: 6px;
}
.singing-item p { font-size: 14px; color: var(--c-text-soft); }
.singing-hint { font-size: 14px; color: var(--c-text-soft); margin-bottom: 18px; }

/* ---------- 老人陪伴 ---------- */
.elderly-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.elderly-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.elderly-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.elderly-mock {
  background: #fff;
  border-radius: 32px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border: 8px solid #2a2a2a;
  position: relative;
}
.elderly-mock::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 16px;
  background: #2a2a2a;
  border-radius: 0 0 12px 12px;
}
.elderly-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--c-ink);
  margin-bottom: 16px;
  padding: 8px 0 12px;
  border-bottom: 1px solid #eee;
}
.elderly-greeting {
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--c-ink);
  text-align: center;
  margin: 18px 0 24px;
  line-height: 1.5;
  padding: 18px;
  background: linear-gradient(135deg, #fff5e6 0%, #fce4e4 100%);
  border-radius: var(--r-md);
}
.elderly-genres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.elderly-btn {
  padding: 18px;
  background: var(--c-red);
  color: #fff;
  font-family: var(--f-display);
  font-size: 28px;
  border-radius: var(--r-md);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.elderly-btn:hover {
  background: var(--c-red-deep);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}
.elderly-info {
  text-align: center;
  font-size: 16px;
  color: var(--c-text-soft);
  padding: 10px;
  margin-bottom: 14px;
  min-height: 24px;
}
.elderly-voice {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--c-red), #e84a3a);
  color: #fff;
  font-size: 18px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-red);
  transition: all 0.2s;
}
.elderly-voice:hover { transform: translateY(-2px); }
.mic-icon { font-size: 24px; }
.elderly-mode {
  text-align: center;
  font-size: 12px;
  color: var(--c-text-mute);
  margin-top: 14px;
  letter-spacing: 2px;
}

/* ---------- 红色戏曲 ---------- */
.section-red {
  background: linear-gradient(135deg, #fff 0%, #fef5f5 100%);
  position: relative;
}
.red-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 280px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.red-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,22,29,0.5), rgba(0,0,0,0.4));
}
.red-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 24px;
}
.red-banner-content h3 {
  font-family: var(--f-display);
  font-size: 38px;
  color: #ffd700;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.red-banner-content p {
  font-size: 16px;
  color: #fff;
  letter-spacing: 1px;
}

.red-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.red-card {
  background: #fff;
  border: 2px solid var(--c-red-soft);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
}
.red-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-red);
  border-color: var(--c-red);
}
.red-card-num {
  position: absolute;
  top: -16px; left: 24px;
  width: 44px; height: 44px;
  background: var(--c-red);
  color: #ffd700;
  font-family: var(--f-kai);
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
}
.red-card h4 {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--c-ink);
  margin: 14px 0 10px;
}
.red-card p {
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}
.red-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--c-red);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  transition: all 0.2s;
}
.red-play:hover { background: var(--c-red-deep); }

.red-card-ai { border-color: var(--c-gold); }
.red-card-ai .red-card-num { background: var(--c-gold); color: #8a0000; }
.red-ai-input {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.red-ai-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.red-ai-input input:focus { border-color: var(--c-gold); }
.red-ai-input .btn { padding: 8px 18px; font-size: 14px; }
.red-ai-result {
  font-size: 13px;
  color: var(--c-text-soft);
  background: var(--c-bg-alt);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.red-ai-result.active {
  background: linear-gradient(135deg, #fff5e6, #fef5f5);
  color: var(--c-ink);
  border-left: 3px solid var(--c-gold);
}

/* ---------- 共创子页 ---------- */
.co-create-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.co-step {
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(139,0,0,.08);
}
.co-step-num {
  width: 36px; height: 36px;
  background: var(--c-red);
  color: #fff;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-red);
}
.co-step h4 {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.co-step p {
  font-size: 13px;
  color: var(--c-text-soft);
  line-height: 1.7;
}
.red-ai-box {
  background: #fff;
  border: 2px solid var(--c-gold);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
}
.red-ai-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.red-ai-head .red-card-num {
  position: static;
  margin-bottom: 0;
}
.red-ai-head h3 {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--c-ink);
  margin: 0;
}
.red-ai-intro {
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.7;
  margin-bottom: 18px;
}
.red-ai-box .red-ai-input { margin-bottom: 16px; }
.red-ai-box .red-ai-result { padding: 18px 20px; min-height: 60px; align-items: flex-start; }
.red-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.red-tip {
  display: flex;
  gap: 10px;
  background: #fff;
  border-left: 3px solid var(--c-gold);
  padding: 14px 16px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}
.red-tip-icon {
  width: 22px; height: 22px;
  flex: 0 0 22px;
  background: var(--c-gold);
  color: #8a0000;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.red-tip p {
  font-size: 13px;
  color: var(--c-text-soft);
  line-height: 1.7;
  margin: 0;
}

/* ---------- 红色页"叁"卡改成跳链 ---------- */
.red-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.red-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--c-gold);
  color: #8a0000;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  transition: all .2s;
}
.red-card-link:hover .red-card-cta {
  background: #ffc107;
  transform: translateX(2px);
}

@media (max-width: 720px) {
  .co-create-steps, .red-tips { grid-template-columns: 1fr; }
}

/* ---------- 文明互鉴 ---------- */
.exchange-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.exchange-img {
  height: 460px;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.exchange-quote {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--c-ink);
  line-height: 1.6;
  padding: 20px 24px;
  border-left: 4px solid var(--c-red);
  background: var(--c-bg);
  margin-bottom: 24px;
  position: relative;
}
.quote-from {
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--c-text-soft);
  margin-top: 12px;
  letter-spacing: 1px;
}
.exchange-list {
  list-style: none;
  margin-bottom: 24px;
}
.exchange-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  transition: all 0.2s;
}
.exchange-list li:hover { border-color: var(--c-red); transform: translateX(4px); }
.exchange-list li > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.exchange-list strong { color: var(--c-ink); font-size: 14px; }
.exchange-list small { color: var(--c-text-soft); line-height: 1.55; font-size: 12px; }
.flag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--c-red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  letter-spacing: 1px;
  min-width: 36px;
  text-align: center;
}

/* ---------- 线下融合 ---------- */
.live-stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
}
.live-stage img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.live-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 60px 32px 32px;
  color: #fff;
}
.live-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--c-red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.live-overlay p {
  font-size: 18px;
  color: rgba(255,255,255,0.95);
}

.live-flow {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.flow-step {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 2px solid transparent;
}
.flow-step:hover {
  border-color: var(--c-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.flow-num {
  font-family: var(--f-display);
  font-size: 36px;
  color: var(--c-red);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.flow-text { font-size: 14px; color: var(--c-text-soft); line-height: 1.6; }
.live-flow > .flow-num {
  display: flex;
  align-items: center;
  font-size: 28px;
  color: var(--c-gold);
  background: none;
  box-shadow: none;
  padding: 0;
  min-width: 30px;
}

/* ---------- Footer ---------- */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 46px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 42px;
  margin-bottom: 30px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 22px;
  color: #fff;
  margin-bottom: 14px;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.6);
}
.footer-political {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ppill {
  padding: 4px 12px;
  background: rgba(200,22,29,0.15);
  border: 1px solid rgba(200,22,29,0.4);
  color: #ff8a8a;
  font-size: 12px;
  border-radius: 50px;
}
.footer h5 {
  font-family: var(--f-display);
  font-size: 16px;
  color: #ffd700;
  margin-bottom: 12px;
}
.footer ul { list-style: none; }
.footer ul li {
  font-size: 13px;
  padding: 3px 0;
  color: rgba(255,255,255,0.6);
}
.footer a {
  color: inherit;
  transition: color .2s ease;
}
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.footer-tech { font-size: 12px !important; color: rgba(255,255,255,0.35) !important; }

/* ---------- 全局播放器 ---------- */
.global-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a1a1a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 90;
  max-width: 360px;
  border: 1px solid rgba(255,255,255,0.1);
}
[hidden] { display: none !important; }
.gp-title {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.gp-toggle {
  width: 36px; height: 36px;
  background: var(--c-cyan);
  color: #001a1f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.gp-toggle:hover { transform: scale(1.05); }
.gp-toggle svg { width: 18px; height: 18px; }
.gp-close {
  width: 28px; height: 28px;
  color: rgba(255,255,255,0.6);
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gp-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    gap: 12px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 8px 0; }

  .result-row { grid-template-columns: 1fr; }
  .visual-frame { width: 180px; height: 180px; margin: 0 auto; }
  .visual-character { font-size: 80px; }

  .facepaint-wrap { grid-template-columns: 1fr; }
  .exchange-wrap { grid-template-columns: 1fr; }
  .exchange-img { height: 280px; }
  .elderly-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .section-deco { font-size: 80px; }
  .ai-opera-card { padding: 24px; }
  .input-row { flex-direction: column; }
  .btn-send { width: 100%; justify-content: center; }
  .singing-grid { grid-template-columns: 1fr 1fr; }
  .elderly-btn { font-size: 22px; padding: 14px; }
  .elderly-greeting { font-size: 20px; }
  .red-banner-content h3 { font-size: 26px; }
  .hero-stats { gap: 28px; }
  .stat-num { font-size: 28px; }
  .character-card-featured { transform: none; }
  .character-card-featured:hover { transform: translateY(-6px); }
}


/* ==================== Multi-page portal additions ==================== */
.nav-links a.active { color: var(--c-red); }
.portal-hero .hero-content { max-width: 1080px; }
.portal-section { padding-top: 82px; }
.portal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.portal-card { display: flex; flex-direction: column; min-height: 230px; padding: 24px; background: #fff; border: 1px solid rgba(139,0,0,.14); border-radius: 8px; box-shadow: var(--shadow-soft); color: inherit; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.portal-card:hover { transform: translateY(-6px); border-color: var(--c-red); box-shadow: var(--shadow-red); }
.portal-card span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--c-red-soft); color: var(--c-red); font-weight: 700; }
.portal-card h3 { margin: 18px 0 10px; font-family: var(--f-display); font-size: 25px; }
.portal-card p { color: var(--c-text-soft); line-height: 1.75; flex: 1; }
.portal-card em { align-self: flex-start; margin-top: 18px; padding: 4px 10px; border-radius: 999px; background: var(--c-bg-alt); color: var(--c-red-deep); font-size: 12px; font-style: normal; letter-spacing: .08em; }
.route-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: center; }
.route-line { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.route-line div { min-height: 92px; display: grid; place-items: center; text-align: center; padding: 10px; background: #fff; border: 1px solid rgba(200,22,29,.18); border-radius: 8px; font-weight: 700; color: var(--c-red-deep); }
.page-hero { position: relative; min-height: 430px; display: flex; align-items: center; overflow: hidden; color: #fff; margin-top: 70px; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-inner { position: relative; z-index: 2; padding: 92px 0; }
.page-hero .hero-title { font-size: clamp(38px, 5vw, 66px); max-width: 980px; }

:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.page-sample-grid { margin-top: 28px; }
.creation-panel, .quiz-box, .companion-grid .red-card { margin-top: 28px; padding: 26px; background: #fff; border-radius: 8px; border: 1px solid rgba(139,0,0,.12); box-shadow: var(--shadow-soft); }
.creation-panel h3, .quiz-box h3 { font-family: var(--f-display); font-size: 28px; color: var(--c-red); margin-bottom: 8px; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.quiz-result { margin-top: 16px; font-weight: 700; color: var(--c-red); }
.companion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.playback-speed { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.speed-status { margin-top: 10px; color: var(--c-text-soft); font-size: 13px; }
.notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.notice-card { padding: 28px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.notice-card > span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c-red-soft); color: var(--c-red); font-weight: 700; }
.notice-card h2 { margin: 16px 0 10px; font-family: var(--f-display); color: var(--c-ink); font-size: 24px; }
.notice-card p { color: var(--c-text-soft); line-height: 1.85; }
@media (max-width: 720px) { .notice-grid { grid-template-columns: 1fr; } }
.festival-strip { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.festival-strip div { background: rgba(255,255,255,.86); border: 1px solid rgba(200,22,29,.18); padding: 18px; border-radius: 8px; font-weight: 700; text-align: center; }
.footer a { color: inherit; }
@media (max-width: 1024px) { .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .route-panel { grid-template-columns: 1fr; } .route-line { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .page-hero { min-height: 360px; margin-top: 62px; } .portal-grid, .companion-grid, .festival-strip { grid-template-columns: 1fr; } .route-line { grid-template-columns: repeat(2, 1fr); } .hero-cta { flex-direction: column; align-items: stretch; } .hero-cta .btn { justify-content: center; } }


/* ============================================
   诚实状态徽章 / 设置弹窗 / 剧本渲染
   新增于 v2 — 真实 LLM 接入
   ============================================ */

/* hero 内的徽章行 */
.hero-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.status-on {
  background: rgba(0, 217, 130, 0.18);
  border-color: rgba(0, 217, 130, 0.5);
  color: #d6fbe8;
}
.status-off {
  background: rgba(255, 200, 0, 0.18);
  border-color: rgba(255, 200, 0, 0.5);
  color: #fff5cc;
}
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 8px #ffd700;
}
.status-dot-on {
  background: #00ff95;
  box-shadow: 0 0 8px #00ff95;
  animation: pulse 2s ease-in-out infinite;
}

/* 设置弹窗 */
.settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.settings-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.settings-card h3 {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.settings-hint {
  font-size: 13px;
  color: var(--c-text-soft);
  line-height: 1.7;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: var(--c-bg-alt);
  border-radius: 8px;
  border-left: 3px solid var(--c-gold);
}
.settings-card label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink);
  margin: 12px 0 6px;
}
.settings-card label .hint {
  font-weight: 400;
  color: var(--c-text-mute);
  font-size: 12px;
  margin-left: 4px;
}
.settings-card input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--f-sans);
}
.settings-card input:focus { border-color: var(--c-red); }
.settings-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.settings-spacer { flex: 1; }
.settings-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-text-mute);
  line-height: 1.7;
}

/* AI 状态行 */
.ai-status-line {
  margin-top: 12px;
  font-size: 12px;
  color: var(--c-cyan);
  min-height: 18px;
  font-family: var(--f-kai);
  letter-spacing: 0.5px;
}

/* 创作草稿里的剧本行 */
.script-lines {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.script-line {
  padding: 10px 14px;
  background: var(--c-bg-alt);
  border-radius: 8px;
  border-left: 3px solid var(--c-gold);
  font-size: 14px;
  line-height: 1.7;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.script-who {
  font-family: var(--f-display);
  color: var(--c-red);
  font-weight: 600;
  font-size: 13px;
  min-width: 80px;
}
.script-type {
  display: inline-block;
  padding: 1px 6px;
  background: var(--c-red-soft);
  color: var(--c-red);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}
.script-text {
  flex: 1;
  min-width: 200px;
  color: var(--c-text);
}
.script-stage {
  margin-top: 10px;
  padding: 8px 14px;
  background: #fff7e6;
  color: #8a6914;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--f-kai);
  letter-spacing: 0.5px;
}

.creation-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.muted { color: var(--c-text-mute); font-size: 13px; }


/* 技术流程图里的"待接入"小标签 */
.tech-tag-mock {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(200,22,29,0.08);
  border: 1px solid rgba(200,22,29,0.35);
  border-radius: 999px;
  color: var(--c-red-deep);
  vertical-align: middle;
  white-space: nowrap;
}

/* 老人语音按钮的"正在听"状态 */
.voice-listening {
  background: linear-gradient(135deg, #c8161d, #ff5252) !important;
  animation: voicePulse 1.5s ease-in-out infinite;
}
@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,22,29,0.6); }
  50% { box-shadow: 0 0 0 16px rgba(200,22,29,0); }
}


/* 剧本行里"唱"和"白"的色块区分 */
.script-type-唱 { background: #c8161d; color: #fff; }
.script-type-白 { background: #fce4e4; color: #8b0000; }
.script-type-念白 { background: #fce4e4; color: #8b0000; }
.script-type-唱词 { background: #c8161d; color: #ffd700; }


/* ============================================
   v4 — 剧本行布局重做
   之前用 flex + min-width: 200px 导致窄屏文字竖排
   现在改用块状：who/type 一行，text 一行
   ============================================ */

/* === 创作草稿面板 === */
.creation-panel {
  margin-top: 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #fffdf7 0%, #fff 100%);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.creation-panel h3 {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--c-ink);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-red);
  display: flex;
  align-items: center;
  gap: 8px;
}
.creation-panel h3::before {
  content: "戏";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--c-red);
  color: #ffd700;
  font-family: var(--f-kai);
  font-size: 18px;
  border-radius: 8px;
}

/* === 剧本标题 === */
.script-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--c-border);
}
.script-title-main {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--c-red);
  font-weight: 700;
}
.script-title-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--c-text-soft);
}
.script-pill {
  display: inline-block;
  padding: 3px 10px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 50px;
  font-size: 12px;
  color: var(--c-text-soft);
}
.script-pill-pink { background: var(--c-red-soft); color: var(--c-red); border-color: rgba(200,22,29,0.2); }
.script-pill-gold { background: var(--c-gold-soft); color: #8a6914; border-color: rgba(212,175,55,0.3); }

/* === 剧本行（每行台词）=== */
.script-lines {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.script-line {
  position: relative;
  padding: 14px 18px 14px 46px;
  background: linear-gradient(135deg, #faf7f0 0%, #fff 100%);
  border-radius: 10px;
  border-left: 4px solid var(--c-gold);
  font-size: 15px;
  line-height: 1.85;
  transition: all 0.2s ease;
  overflow: hidden;
}
.script-line:hover {
  background: linear-gradient(135deg, #fff5e6 0%, #fffaf2 100%);
  border-left-color: var(--c-red);
  box-shadow: 0 2px 12px rgba(200,22,29,0.08);
  transform: translateX(2px);
}
.script-line::before {
  content: attr(data-line);
  position: absolute;
  left: 8px;
  top: 14px;
  width: 26px;
  height: 26px;
  background: var(--c-red);
  color: #ffd700;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(200,22,29,0.3);
}
.script-line.script-line-白::before { background: var(--c-paper-warm); color: #8a6914; box-shadow: 0 2px 6px rgba(212,175,55,0.3); }
.script-line.script-line-念白::before { background: var(--c-paper-warm); color: #8a6914; box-shadow: 0 2px 6px rgba(212,175,55,0.3); }
.script-line.script-line-唱词::before { background: var(--c-red); color: #ffd700; box-shadow: 0 2px 6px rgba(200,22,29,0.3); }

.script-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.script-who {
  font-family: var(--f-display);
  color: var(--c-red);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.script-type {
  display: inline-block;
  padding: 2px 8px;
  background: var(--c-red);
  color: #ffd700;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.script-type-白, .script-type-念白 {
  background: #8a6914;
  color: #fff7e6;
}
.script-text {
  display: block;
  color: var(--c-text);
  font-size: 15.5px;
  line-height: 1.9;
  letter-spacing: 0.5px;
  text-indent: 2em;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* === 舞台提示 === */
.script-stage {
  margin-top: 14px;
  padding: 14px 20px 14px 48px;
  background: linear-gradient(135deg, #fff7e6 0%, #fce4e4 100%);
  border-radius: 10px;
  font-size: 14px;
  color: #5a3a14;
  font-family: var(--f-kai);
  letter-spacing: 1px;
  line-height: 1.8;
  position: relative;
  border-left: 4px solid var(--c-gold);
}
.script-stage::before {
  content: "舞";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 28px;
  height: 28px;
  background: var(--c-gold);
  color: #fff;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(212,175,55,0.4);
}
.script-stage-label {
  color: var(--c-red);
  font-weight: 700;
  margin-right: 6px;
  font-family: var(--f-display);
  letter-spacing: 1px;
}

/* === 来源标注 === */
.script-source {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-border);
  font-size: 12px;
  color: var(--c-text-mute);
  display: flex;
  align-items: center;
  gap: 6px;
}
.script-source::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  flex: 0 0 auto;
}

/* === 创作动作按钮 === */
.creation-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.creation-actions .btn {
  font-size: 13px;
  padding: 8px 16px;
}

/* === AI 状态行 === */
.ai-status-line {
  margin-top: 14px;
  padding: 8px 14px;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #006a7a;
  font-family: var(--f-kai);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-status-line:empty { display: none; }
.ai-status-line::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

/* === 响应式：手机一行也能读 === */
@media (max-width: 720px) {
  .script-line {
    padding: 12px 14px 12px 40px;
    font-size: 14px;
  }
  .script-line::before { width: 22px; height: 22px; font-size: 11px; left: 6px; top: 12px; }
  .script-text { font-size: 14.5px; line-height: 1.8; }
  .script-stage { padding: 12px 16px 12px 40px; }
  .script-stage::before { width: 24px; height: 24px; font-size: 12px; left: 6px; top: 10px; }
}

/* ---------- 详情页通用排版 ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.detail-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(139,0,0,.08);
  position: relative;
}
.detail-card-num {
  width: 38px; height: 38px;
  background: var(--c-red);
  color: #fff;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-red);
}
.detail-card h3 {
  font-family: var(--f-display);
  font-size: 19px;
  color: var(--c-ink);
  margin-bottom: 10px;
}
.detail-card p {
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.85;
}
.detail-card strong { color: var(--c-red-deep); }
.detail-card em { color: var(--c-ink); font-style: normal; font-weight: 600; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-item {
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--c-red);
}
.feature-item h4 {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--c-red-deep);
  margin-bottom: 10px;
}
.feature-item p {
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.85;
}
.feature-item strong { color: var(--c-ink); }
.feature-item em { color: var(--c-red-deep); font-style: normal; font-weight: 600; }

.repertoire-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.repertoire-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--c-gold);
  transition: transform .25s;
}
.repertoire-card:hover { transform: translateY(-4px); }
.rep-genre {
  display: inline-block;
  padding: 2px 10px;
  background: var(--c-red-soft);
  color: var(--c-red);
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  margin-bottom: 12px;
  letter-spacing: .05em;
}
.repertoire-card h3 {
  font-family: var(--f-display);
  font-size: 19px;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.repertoire-card p {
  font-size: 13.5px;
  color: var(--c-text-soft);
  line-height: 1.8;
}
.repertoire-card strong { color: var(--c-red-deep); }

.lineage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.lineage-card {
  background: linear-gradient(135deg, #fff5f5, #fff);
  border-radius: var(--r-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(139,0,0,.1);
}
.lineage-name {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--c-red);
  margin-bottom: 6px;
}
.lineage-founder {
  font-size: 12px;
  color: var(--c-text-soft);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(139,0,0,.15);
}
.lineage-card p {
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.85;
  margin-bottom: 14px;
}
.lineage-card strong { color: var(--c-red-deep); }
.lineage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.lineage-tags span {
  font-size: 12px;
  padding: 3px 10px;
  background: #fff;
  color: var(--c-red-deep);
  border: 1px solid rgba(139,0,0,.2);
  border-radius: 50px;
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.tip-item {
  background: #fff;
  border-radius: var(--r-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.tip-icon {
  width: 40px; height: 40px;
  margin: 0 auto 12px;
  background: var(--c-red);
  color: #fff;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tip-item h4 {
  font-family: var(--f-display);
  font-size: 17px;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.tip-item p {
  font-size: 13.5px;
  color: var(--c-text-soft);
  line-height: 1.8;
}
.tip-item strong { color: var(--c-red-deep); }
.tip-item em { color: var(--c-ink); font-style: normal; font-weight: 600; }

.back-row {
  margin-top: 32px;
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(139,0,0,.1);
}

.role-table-wrap {
  background: #fff;
  border-radius: var(--r-md);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.role-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.role-table th,
.role-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(139,0,0,.08);
  vertical-align: top;
  line-height: 1.7;
}
.role-table th {
  background: var(--c-red-soft);
  color: var(--c-red-deep);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
}
.role-table tr:last-child td { border-bottom: none; }
.role-table strong { color: var(--c-red); font-size: 15px; }

@media (max-width: 980px) {
  .detail-grid, .tip-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid, .lineage-grid { grid-template-columns: 1fr; }
  .repertoire-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .detail-grid, .feature-grid, .lineage-grid, .tip-grid, .repertoire-grid { grid-template-columns: 1fr; }
}
