/* ============================================================
   竹韵小夜灯 · 作品介绍内联样式（bamboo 系）
   仅作用于 #introEmbed，不影响详情页主站样式；
   交互：左侧导航切换单版块，Animate.css 负责 fade-in。
   ============================================================ */

/* ===== 局部变量（bamboo 系配色） ===== */
#introEmbed {
  --bg: #FAF8F4;
  --card: #FFFFFF;
  --wood-light: #C4A77D;
  --wood: #A9714B;
  --wood-dark: #5D4037;
  --blue: #7C9FB8;
  --blue-light: #EAF1F6;
  --text: #3E3229;
  --text-light: #6D5E52;
  --shadow: rgba(93, 64, 55, 0.08);
  --shadow-hover: rgba(93, 64, 55, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 270px;

  font-family: 'Noto Sans SC', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;

  /* 外层卡片容器（还原原 iframe 嵌入外观） */
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(166, 139, 91, 0.18);
  border-radius: 20px;
  overflow: hidden;
  background: #FFFFFF;
}

#introEmbed *,
#introEmbed *::before,
#introEmbed *::after {
  box-sizing: border-box;
}

/* ===== 左侧导航 ===== */
#introEmbed .sidebar {
  position: static;
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #FDFBF7 0%, #F2EDE4 100%);
  border-right: 1px solid rgba(166, 139, 91, 0.15);
  z-index: auto;
  overflow: visible;
}

#introEmbed .sidebar-inner {
  display: flex;
  flex-direction: column;
  padding: 32px 22px;
  height: 100%;
}

#introEmbed .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(166, 139, 91, 0.15);
  margin-bottom: 18px;
}

#introEmbed .brand-icon {
  font-size: 34px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FDFBF7, var(--blue-light));
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(166, 139, 91, 0.25);
  flex-shrink: 0;
}

#introEmbed .brand-text h1 {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

#introEmbed .brand-text span {
  display: block;
  font-size: 11px;
  font-family: 'Nunito', sans-serif;
  color: var(--text-light);
  margin-top: 2px;
}

#introEmbed .nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#introEmbed .nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s, background 0.25s;
  position: relative;
}

#introEmbed .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 22px;
  background: var(--blue);
  border-radius: 0 4px 4px 0;
  transition: transform 0.25s ease;
}

#introEmbed .nav-link:hover,
#introEmbed .nav-link.active {
  background: rgba(166, 139, 91, 0.12);
  color: var(--wood-dark);
}

#introEmbed .nav-link:hover::before,
#introEmbed .nav-link.active::before {
  transform: translateY(-50%) scaleY(1);
}

#introEmbed .nav-icon {
  font-size: 20px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

#introEmbed .nav-en {
  display: block;
  font-size: 10px;
  font-family: 'Nunito', sans-serif;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

#introEmbed .nav-link.active .nav-en,
#introEmbed .nav-link:hover .nav-en {
  color: var(--blue);
}

/* 移动端汉堡按钮（桌面隐藏） */
#introEmbed .menu-toggle {
  display: none;
  position: fixed;
  top: 84px;
  left: 18px;
  z-index: 1200;
  width: 44px;
  height: 44px;
  background: var(--card);
  border: 1px solid rgba(166, 139, 91, 0.25);
  border-radius: 10px;
  box-shadow: 0 6px 16px var(--shadow-hover);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

#introEmbed .menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wood-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== 右侧内容 ===== */
#introEmbed .content {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: var(--bg);
}

#introEmbed .container {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ===== Hero ===== */
#introEmbed .hero {
  position: relative;
  background: linear-gradient(135deg, #FDFBF7 0%, #EEF3F6 100%);
  overflow: hidden;
  padding: 0;
  margin: 0;
  min-height: 0;
  display: block;
}

#introEmbed .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(124, 159, 184, 0.12) 0%, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(169, 113, 75, 0.10) 0%, transparent 40%);
  pointer-events: none;
}

#introEmbed .hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
  padding: 56px 60px 48px;
}

#introEmbed .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(124, 159, 184, 0.14);
  color: #5E7F97;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

#introEmbed .hero h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--wood-dark);
  margin: 0 0 20px;
  font-weight: 700;
}

#introEmbed .hero p {
  font-size: 1.08rem;
  color: var(--text-light);
  margin: 0 0 24px;
  max-width: 520px;
}

#introEmbed .hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

#introEmbed .hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid rgba(124, 159, 184, 0.22);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 6px 16px var(--shadow);
}

#introEmbed .hero-meta-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

#introEmbed .hero-meta-text .label {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

#introEmbed .hero-meta-text .value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--wood-dark);
}

#introEmbed .hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

#introEmbed .hero-image img {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(93, 64, 55, 0.18);
  transition: transform 0.6s ease;
}

#introEmbed .hero-image img:hover {
  transform: scale(1.03) rotate(-1deg);
}

#introEmbed .hero-image-frame-wrap {
  position: relative;
  display: inline-flex;
}

#introEmbed .hero-image-frame {
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 2px solid var(--wood);
  border-radius: var(--radius);
  z-index: 1;
  transform: rotate(-2deg);
}

#introEmbed .hero-image-frame-wrap img {
  position: relative;
  z-index: 2;
}

/* ===== 通用 section ===== */
#introEmbed .section {
  display: none; /* JS 切换：同一时刻只显示一个版块；#overview 默认显示 */
  padding: 52px 60px;
  max-width: none;
  margin: 0;
}

#introEmbed #overview.section {
  display: block;
}

#introEmbed .content-body {
  padding-bottom: 8px;
}

#introEmbed .section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

#introEmbed .section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--wood-light);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

#introEmbed .section h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--wood-dark);
  margin: 0;
}

#introEmbed .section-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  flex-shrink: 0;
}

#introEmbed .section h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

#introEmbed .section-subtitle {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: var(--wood-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

#introEmbed .section-desc {
  color: var(--text-light);
  margin: 0 0 14px;
  max-width: 820px;
}

#introEmbed .en,
#introEmbed .card-en,
#introEmbed .tool-en,
#introEmbed .tag-en {
  font-family: 'Nunito', sans-serif;
  color: var(--text-light);
  font-style: italic;
}

#introEmbed p.en,
#introEmbed span.en {
  font-size: 0.92em;
}

#introEmbed p.en {
  margin-top: 4px;
  opacity: 0.9;
}

/* ===== 概述 ===== */
#introEmbed .overview-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 10px 30px var(--shadow);
  border: 1px solid rgba(166, 139, 91, 0.10);
}

#introEmbed .overview-text p {
  margin: 0 0 14px;
  color: var(--text);
}

#introEmbed .overview-text p:last-child {
  margin-bottom: 0;
}

#introEmbed .overview-text strong {
  color: var(--wood-dark);
}

#introEmbed .overview-features {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

#introEmbed .feature-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--blue-light);
  color: #5E7F97;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

#introEmbed .feature-icon {
  font-size: 1.1rem;
}

/* ===== 材料工具 ===== */
#introEmbed .materials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

#introEmbed .material-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid rgba(166, 139, 91, 0.15);
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

#introEmbed .material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow-hover);
}

#introEmbed .material-icon {
  font-size: 30px;
  flex-shrink: 0;
}

#introEmbed .material-info {
  flex: 1;
  min-width: 0;
}

#introEmbed .material-info h4 {
  font-size: 15px;
  margin: 0 0 6px;
  line-height: 1.4;
  color: var(--text);
}

#introEmbed .material-info p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 6px;
  line-height: 1.6;
}

#introEmbed .material-info p:last-child {
  margin-bottom: 0;
}

#introEmbed .material-tag {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--wood-light);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  text-align: center;
  line-height: 1.3;
}

#introEmbed .material-tag.tag-optional {
  background: var(--blue);
}

#introEmbed .tag-en {
  display: block;
  font-size: 9px;
  font-style: normal;
  opacity: 0.9;
}

#introEmbed .materials-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(93, 64, 55, 0.15);
  margin: 0 0 12px;
}

#introEmbed .materials-photo img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

#introEmbed .tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

#introEmbed .tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border-radius: 14px;
  padding: 20px 12px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid rgba(166, 139, 91, 0.15);
  text-align: center;
  font-size: 13px;
  transition: transform 0.3s, border-color 0.3s;
}

#introEmbed .tool-item:hover {
  transform: translateY(-3px);
  border-color: var(--wood);
}

#introEmbed .tool-emoji {
  font-size: 26px;
}

#introEmbed .tool-en {
  display: block;
  font-size: 10px;
  font-style: normal;
  margin-top: 2px;
}

/* ===== 组装过程 ===== */
#introEmbed .assembly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

#introEmbed .assembly-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid rgba(166, 139, 91, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

#introEmbed .assembly-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(93, 64, 55, 0.15);
}

#introEmbed .assembly-card img.step-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 14px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
  cursor: zoom-in;
}

#introEmbed .assembly-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--wood-light);
  margin-bottom: 10px;
  line-height: 1;
}

#introEmbed .assembly-card h4 {
  font-size: 15px;
  margin: 0 0 8px;
  line-height: 1.4;
  color: var(--text);
}

#introEmbed .card-en {
  display: block;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  margin-top: 2px;
  color: var(--text-light);
}

#introEmbed .assembly-card p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 8px;
  line-height: 1.6;
}

#introEmbed .assembly-card p:last-child {
  margin-bottom: 0;
}

/* ===== 成品效果 ===== */
#introEmbed .result-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 36px var(--shadow);
  margin-bottom: 24px;
}

#introEmbed .result-showcase img {
  width: 100%;
  border-radius: 12px;
  cursor: zoom-in;
}

#introEmbed .result-info h4 {
  font-size: 18px;
  margin: 0 0 14px;
  color: var(--wood);
}

#introEmbed .result-info p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0 0 16px;
}

#introEmbed .result-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#introEmbed .result-info li {
  font-size: 13px;
  color: var(--text);
}

#introEmbed .result-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

#introEmbed .strip-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid rgba(166, 139, 91, 0.15);
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

#introEmbed .strip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(93, 64, 55, 0.15);
}

#introEmbed .strip-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 8px;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: zoom-in;
}

/* ===== 趣味场景 ===== */
#introEmbed .family-gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0 0 34px;
}

#introEmbed .family-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

#introEmbed .family-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow-hover);
}

#introEmbed .family-card img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
}

#introEmbed .family-card.reverse {
  direction: rtl;
}

#introEmbed .family-card.reverse > * {
  direction: ltr;
}

#introEmbed .family-caption {
  padding: 0;
}

#introEmbed .family-caption h4 {
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--wood);
}

#introEmbed .family-caption p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0 0 10px;
}

#introEmbed .family-caption p:last-child {
  margin-bottom: 0;
}

#introEmbed .fun-extra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

#introEmbed .fun-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #fff, #fdf6ee);
  border: 1px solid rgba(166, 139, 91, 0.15);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 20px var(--shadow);
}

#introEmbed .fun-item > span {
  font-size: 24px;
  flex-shrink: 0;
}

#introEmbed .fun-item p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

#introEmbed .fun-item strong {
  color: var(--wood);
}

/* 嵌入模式下隐藏作品页 footer */
#introEmbed .intro-footer {
  display: none;
}

/* ===== Animate.css 节奏微调 ===== */
#introEmbed .hero.animate__animated {
  animation-duration: 0.5s;
}

#introEmbed .section.animate__animated {
  animation-duration: 0.55s;
}

/* ===== 灯箱（页面级，不作用域） ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(45, 35, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 40px;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s;
  padding: 0;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ---------- 制作视频 ---------- */
.video-tab {
  margin: 8px 0;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #43584f 100%);
  color: var(--bg-cream);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='15' stroke='%23E8A87C' stroke-width='0.5' fill='none' opacity='0.2'/%3E%3C/svg%3E");
}

.video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 0 8px rgba(232, 168, 124, 0.2);
  transition: all 0.3s;
  z-index: 2;
  position: relative;
}

.video-placeholder:hover .video-play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 0 12px rgba(232, 168, 124, 0.15);
}

.video-play-btn svg {
  width: 28px;
  height: 28px;
  color: var(--text-white);
  margin-left: 4px;
}

/* 播放后：移除装饰覆盖层（否则会拦截 video 控件点击），高度跟随视频避免裁切控制条 */
.video-placeholder.is-playing {
  aspect-ratio: auto;
  overflow: visible;
  cursor: default;
  background: #000;
}

.video-placeholder.is-playing::before {
  display: none;
}

.video-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  z-index: 2;
  position: relative;
}

.video-subtitle {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 6px;
  z-index: 2;
  position: relative;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
  #introEmbed .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  #introEmbed .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  #introEmbed .hero-meta {
    justify-content: center;
  }

  #introEmbed .hero-image img {
    max-height: 320px;
  }

  #introEmbed .tools-grid,
  #introEmbed .assembly-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  /* 容器改为单列，侧边栏变成抽屉 */
  #introEmbed {
    display: block;
    border-radius: 16px;
  }

  #introEmbed .menu-toggle {
    display: flex;
  }

  #introEmbed .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.35s ease, box-shadow 0.3s ease;
    box-shadow: none;
  }

  #introEmbed .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 30px var(--shadow-hover);
  }

  #introEmbed .hero-content {
    padding: 92px 24px 40px;
  }

  #introEmbed .section {
    padding: 44px 24px;
  }

  #introEmbed .materials-grid,
  #introEmbed .tools-grid,
  #introEmbed .assembly-grid,
  #introEmbed .result-strip,
  #introEmbed .fun-extra {
    grid-template-columns: 1fr;
  }

  #introEmbed .result-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #introEmbed .result-info ul {
    text-align: left;
  }

  #introEmbed .family-card {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }

  #introEmbed .family-card.reverse {
    direction: ltr;
  }
}

@media (max-width: 480px) {
  #introEmbed .overview-card {
    padding: 22px;
  }

  #introEmbed .result-showcase {
    padding: 20px;
  }

  #introEmbed .hero-meta {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Reviews */
.review-summary {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding: 32px;
  background-color: var(--bg-soft);
  border-radius: var(--radius-lg);
}

.review-score {
  text-align: center;
}

.review-score-num {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.review-score-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 8px 0;
  color: var(--gold);
}

.review-score-count {
  font-size: 13px;
  color: var(--text-light);
}

.review-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.review-bar-label {
  width: 40px;
  color: var(--text-medium);
}

.review-bar-track {
  flex: 1;
  height: 8px;
  background-color: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background-color: var(--gold);
  border-radius: var(--radius-full);
}

.review-bar-count {
  width: 30px;
  text-align: right;
  color: var(--text-light);
}

.review-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.review-item-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.review-item-date {
  font-size: 12px;
  color: var(--text-light);
}

.review-item-text {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.8;
}

/* ─────── 评价域增强：头像 / 星级 / 富文本正文 / 提交区 / 分布 ─────── */
.review-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--bg-soft);
}
.review-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review-item-avatar.no-avatar::after {
  content: '👤';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 18px;
  color: var(--text-light);
}
.review-item-stars {
  color: var(--gold);
  font-size: 13px;
  margin-top: 4px;
  line-height: 1;
}
.review-item-meta {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}
.review-item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}
.review-item-body {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.8;
  word-break: break-word;
}
.review-item-body p { margin-bottom: 0.5em; }
.review-item-body p:last-child { margin-bottom: 0; }
.review-divider {
  height: 1px;
  background: var(--border-light);
  margin: 28px 0;
}
.review-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}
.review-loadmore {
  display: block;
  margin: 20px auto 0;
}
.review-form-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.review-star-picker {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}
.review-star-label {
  font-size: 14px;
  color: var(--text-medium);
  margin-right: 4px;
}
.review-star-picker .star-btn {
  background: none;
  border: none;
  padding: 2px;
  font-size: 24px;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}
.review-star-picker .star-btn:hover { transform: scale(1.15); color: var(--gold); }
.review-star-picker .star-btn.active,
.review-star-picker .star-btn.active i { color: var(--gold); }

.aieditor[data-aieditor-template="default"] {
  height: 280px;                              /* 固定高度 */
  min-height: 200px;                          /* 压过默认的 560px */
  max-height: none;                           /* 压过 calc(100dvh - 24px) */
}
/* 无 sidebar 条目时，默认模板退回单列布局 */
.aieditor[data-aieditor-template="default"]:has(> .aieditor__sidebar:empty) {
  grid-template-columns: minmax(0, 1fr);
}
.aieditor[data-aieditor-template="default"] .aieditor__sidebar:empty {
  display: none;
}


#review-editor .aieditor__content,
#review-editor .aieditor__prose {
  min-height: 0;   /* 压过 520px；网格中间行是 minmax(0,1fr)+overflow:auto，会自动填满并出滚动条 */
}

.review-editor {
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.review-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.review-hint {
  font-size: 13px;
  color: var(--text-light);
}
.review-login-hint {
  padding: 24px;
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  color: var(--text-medium);
  font-size: 14px;
}
.review-login-hint a { color: var(--primary); font-weight: 600; }

@media (max-width: 576px) {
  .review-summary { grid-template-columns: 1fr; }
}
