/* ============================================================
   变量 & 重置
============================================================ */
:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #243b55;
  --accent-light: #3a6ea5;
  --line: #e5e5e0;
  --tag-bg: #f0ede8;
  --tag-text: #555;
  --serif: 'Georgia', 'Noto Serif SC', serif;
  --sans: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --radius: 4px;
  --radius-lg: 10px;
  --transition: 0.22s ease;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 32px rgba(0,0,0,0.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }

/* ============================================================
   导航
============================================================ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 32px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif); font-size: 1.05rem;
  letter-spacing: 0.04em; color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.86rem; letter-spacing: 0.05em;
  color: var(--muted); transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ============================================================
   页面容器
============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
section { padding: 72px 0; }

/* ============================================================
   通用分隔标题
============================================================ */
.section-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 40px;
}
.section-label {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.section-line { flex: 1; height: 1px; background: var(--line); }
.section-title {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: normal; color: var(--accent); margin-bottom: 8px;
}
.section-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 36px; }

/* ============================================================
   Hero
============================================================ */
#hero {
  padding: 96px 0 72px;
  background: linear-gradient(150deg, #fafaf8 55%, #edf2f7 100%);
  min-height: 88vh;
  display: flex; align-items: center;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px 0 64px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 72px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 5px 14px; margin-bottom: 22px;
  font-size: 0.8rem; color: var(--muted);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--accent-light); }
.hero-name {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: normal; line-height: 1.2;
  letter-spacing: -0.01em; margin-bottom: 16px; color: var(--accent);
}
.hero-name em { font-style: normal; color: var(--accent-light); }
.hero-school {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.hero-school svg { width: 32px; height: 32px; flex-shrink: 0; }
.hero-school-name { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.hero-school-major { font-size: 0.83rem; color: var(--muted); margin-top: 1px; }
.hero-desc {
  font-size: 0.98rem; color: var(--muted);
  max-width: 480px; line-height: 1.9; margin-bottom: 28px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.hero-tag {
  padding: 4px 14px; border: 1px solid var(--line);
  border-radius: 20px; font-size: 0.8rem; color: var(--muted);
  background: var(--surface);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 26px; border-radius: var(--radius);
  font-size: 0.88rem; letter-spacing: 0.04em;
  cursor: pointer; transition: all var(--transition);
  border: none; font-family: var(--sans);
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: #1a2f47; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: #aaa; transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; }

/* Hero 右侧联系方式 */
.hero-right {
  display: flex; flex-direction: column; gap: 0;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.hero-contact-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.hero-contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted);
  transition: background var(--transition);
}
.hero-contact-item:last-child { border-bottom: none; }
.hero-contact-item:hover { background: #f7f5f0; }
.hero-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent-light); }
.hero-contact-label {
  font-size: 0.74rem; color: #aaa; margin-left: auto; white-space: nowrap;
}

/* ============================================================
   简历区
============================================================ */
#resume {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.resume-block-title {
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.resume-block-title::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.resume-item { margin-bottom: 24px; }
.resume-item:last-child { margin-bottom: 0; }
.resume-item-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px; flex-wrap: wrap; gap: 4px;
}
.resume-item-title { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.resume-item-date { font-size: 0.8rem; color: var(--accent-light); }
.resume-item-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.resume-item-bullets { list-style: none; }
.resume-item-bullets li {
  font-size: 0.82rem; color: #8a8a8a; padding-left: 0;
  position: relative; margin-bottom: 10px; line-height: 1.7;
}
.resume-item-bullets li::before { display: none; }
/* 关键词标签：冒号前的文字 */
.resume-item-bullets li .kw {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent-light);
  background: rgba(110,135,185,0.1);
  border: 1px solid rgba(110,135,185,0.25);
  border-radius: 3px;
  padding: 1px 7px;
  margin-right: 6px;
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}
.resume-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  padding: 5px 14px; border: 1px solid var(--line);
  border-radius: 20px; font-size: 0.8rem; color: var(--muted);
  background: var(--bg);
}
.skill-tag.highlight {
  background: #e8eff8; border-color: #b0c8e8; color: var(--accent-light);
}
.resume-awards { list-style: none; }
.resume-awards li {
  display: flex; gap: 10px; margin-bottom: 10px;
  font-size: 0.86rem; color: var(--muted); align-items: flex-start;
}
.resume-awards li::before {
  content: '◆'; color: var(--accent-light); flex-shrink: 0; margin-top: 2px;
}
.resume-hint {
  margin-top: 36px; padding: 18px 22px;
  background: #f7f5f0; border-radius: var(--radius);
  border-left: 3px solid var(--accent-light);
}
.resume-hint p {
  font-size: 0.84rem; color: var(--muted); margin-bottom: 8px; line-height: 1.7;
}
.resume-hint p:last-child { margin-bottom: 0; }
.resume-hint strong { color: var(--text); }

/* ============================================================
   浮动作品目录
============================================================ */
.toc-float {
  position: fixed; right: 24px; top: 50%; transform: translateY(-50%);
  z-index: 90;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  min-width: 160px;
}
.toc-float.visible { opacity: 1; pointer-events: all; }
.toc-title {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.toc-list { list-style: none; }
.toc-item a {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px; font-size: 0.82rem; color: var(--muted);
  border-radius: 4px; transition: all var(--transition);
  cursor: pointer;
}
.toc-item a:hover, .toc-item a.active { color: var(--accent); background: #f0ede8; }
.toc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line); flex-shrink: 0; transition: background var(--transition);
}
.toc-item a.active .toc-dot { background: var(--accent-light); }

/* ============================================================
   作品网格
============================================================ */
.works-section { padding: 72px 0; border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: 0 700px; }
.works-section:last-child { border-bottom: none; }

.works-section-header {
  margin-bottom: 32px;
}
.works-section-num {
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 6px;
}
.works-section-title {
  font-family: var(--serif); font-size: 1.5rem; font-weight: normal;
  color: var(--accent); margin-bottom: 6px;
}
.works-section-desc {
  font-size: 0.88rem; color: var(--muted); max-width: 560px;
}

/* 普通卡片网格 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* 卡片 */
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: all var(--transition);
  cursor: pointer;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-media {
  aspect-ratio: 16/10; overflow: hidden; background: #f0ede8;
  position: relative;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card-media-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: #ccc;
}
.card-media-placeholder svg { width: 36px; height: 36px; }
.card-type-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 10px; border-radius: 10px;
  font-size: 0.72rem; letter-spacing: 0.06em; font-weight: 500;
}
.badge-blue   { background: rgba(36,59,85,0.88); color: #fff; }
.badge-green  { background: rgba(42,120,80,0.88); color: #fff; }
.badge-purple { background: rgba(100,60,160,0.88); color: #fff; }
.badge-orange { background: rgba(180,90,30,0.88); color: #fff; }
.card-body { padding: 18px 20px 20px; }
.card-meta {
  font-size: 0.76rem; color: var(--accent-light); margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.card-title {
  font-size: 0.97rem; font-weight: 500; color: var(--text);
  margin-bottom: 8px; line-height: 1.4;
}
.card-desc {
  font-size: 0.84rem; color: var(--muted); line-height: 1.65;
  display: -webkit-box; 
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  background: var(--tag-bg); color: var(--tag-text);
  font-size: 0.73rem; padding: 2px 9px; border-radius: 10px;
}

/* ============================================================
   信息流展开区（设计/摄影）
============================================================ */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.stream-item {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; cursor: pointer; position: relative;
  background: #e8e4dc;
}
.stream-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.stream-item:hover img { transform: scale(1.06); filter: brightness(0.7); }
.stream-item-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
  background: rgba(0,0,0,0.3);
}
.stream-item:hover .stream-item-overlay { opacity: 1; }
.stream-item-overlay svg { width: 32px; height: 32px; color: white; }
.stream-more {
  display: flex; align-items: center; justify-content: center;
  background: #f0ede8; border-radius: var(--radius);
  aspect-ratio: 1; font-size: 0.85rem; color: var(--muted);
  cursor: pointer; transition: background var(--transition);
}
.stream-more:hover { background: #e5e0d8; }

/* ============================================================
   展开的图集弹窗
============================================================ */
.gallery-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.88);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.gallery-modal.open { opacity: 1; pointer-events: all; }
.gallery-header {
  padding: 16px 24px; display: flex; justify-content: space-between;
  align-items: center; flex-shrink: 0;
}
.gallery-title { color: rgba(255,255,255,0.8); font-size: 0.88rem; }
.gallery-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: all 0.2s;
}
.gallery-close:hover { background: rgba(255,255,255,0.1); }
.gallery-body {
  flex: 1; overflow-y: auto; padding: 16px 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px; align-content: start;
}
.gallery-img { border-radius: 4px; overflow: hidden; cursor: pointer; }
.gallery-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.3s;
}
.gallery-img:hover img { transform: scale(1.03); }

/* ============================================================
   产品版本对比
============================================================ */
.product-versions {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 8px;
}
.product-ver-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.product-ver-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.product-ver-badge {
  padding: 6px 14px; font-size: 0.76rem; letter-spacing: 0.08em;
  font-weight: 600; color: #fff;
}
.badge-v1 { background: #6b8cae; }
.badge-v2 { background: #4a7fa5; }
.badge-v3 { background: #243b55; }
.product-ver-img {
  aspect-ratio: 9/16; overflow: hidden; background: #f0ede8;
  display: flex; align-items: center; justify-content: center;
}
.product-ver-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-ver-body { padding: 14px 16px 16px; }
.product-ver-title {
  font-size: 0.92rem; font-weight: 500; margin-bottom: 6px;
}
.product-ver-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.product-ver-change {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line);
}
.product-ver-change-title {
  font-size: 0.74rem; color: var(--accent-light); margin-bottom: 5px;
  letter-spacing: 0.06em;
}
.product-ver-change p {
  font-size: 0.8rem; color: var(--muted); line-height: 1.6;
}

/* ============================================================
   页脚
============================================================ */
footer {
  border-top: 1px solid var(--line); padding: 28px 32px;
  text-align: center; font-size: 0.8rem; color: #bbb;
  letter-spacing: 0.04em;
}

/* ============================================================
   弹窗
============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  max-width: 720px; width: 100%; max-height: 85vh;
  overflow-y: auto; box-shadow: 0 20px 80px rgba(0,0,0,0.18);
  transform: translateY(16px); transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 24px 28px 18px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background var(--transition);
}
.modal-close:hover { background: var(--tag-bg); }
.modal-body { padding: 24px 28px 32px; }
.modal-body p { color: var(--muted); line-height: 1.85; margin-bottom: 10px; font-size: 0.92rem; }
.modal-body h3 {
  font-family: var(--serif); font-size: 1.05rem; font-weight: normal;
  color: var(--accent); margin: 20px 0 8px;
}
.modal-body ul { list-style: none; margin-bottom: 10px; }
.modal-body ul li {
  font-size: 0.88rem; color: var(--muted); padding-left: 14px;
  position: relative; margin-bottom: 5px;
}
.modal-body ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent-light); }
.modal-img { border-radius: var(--radius); margin: 16px 0; }
.modal-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-light); font-size: 0.88rem;
  margin-top: 12px; text-decoration: underline;
}
.modal-meta-tag {
  display: inline-block; padding: 3px 10px; border-radius: 10px;
  font-size: 0.74rem; color: #fff; margin-bottom: 12px;
}

/* ============================================================
   淡入动画 & 响应式
============================================================ */
/* 默认：首屏内容直接可见 */
.fade-in {
  opacity: 1;
  transform: none;
  transition: none;
}
/* 只对视口外进入的内容做动画 */
.fade-in.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.fade-in.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .resume-grid { grid-template-columns: 1fr; }
  .product-versions { grid-template-columns: 1fr; }
  .toc-float { display: none; }
  .container { padding: 0 20px; }
  section { padding: 52px 0; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .works-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   摄影作品 · 横竖交错瀑布流
============================================================ */
.photo-grid {
  position: relative;
  width: 100%;
  margin-top: 20px;
}

.photo-grid-item {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  background: #f8f9fa;
  opacity: 0;
}

.photo-grid-item.loaded {
  opacity: 1;
}


.photo-grid-item img {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.photo-grid-item:hover img {
  transform: scale(1.02);
}

/* 花瓣网瀑布流（保留原有样式） */
.huaban-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.huaban-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #f0ede8;
}

.huaban-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 2;
}

.huaban-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  object-fit: contain;
}

.huaban-item:hover img {
  transform: scale(1.03);
}

.huaban-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.huaban-item:hover .huaban-overlay {
  opacity: 1;
}

.huaban-overlay svg {
  width: 40px;
  height: 40px;
}

.huaban-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 2;
}

.huaban-item img {
  transition: transform 0.3s ease;
}

.huaban-item:hover img {
  transform: scale(1.03);
}

.huaban-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.huaban-item:hover .huaban-overlay {
  opacity: 1;
}

.huaban-overlay svg {
  width: 40px;
  height: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .huaban-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .huaban-item:nth-child(odd) img {
    aspect-ratio: 3/4;
  }
  
  .huaban-item:nth-child(even) img {
    aspect-ratio: 4/3;
  }
}

/* ============================================================
   设计作品分类块
============================================================ */
.design-cat-block {
  margin-bottom: 40px;
}
.design-cat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.design-cat-label::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.cat-label-sub {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* PPT：横向宽图，每行3-4张，保持宽高比 */
.stream-grid-ppt {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.stream-grid-ppt .stream-item {
  aspect-ratio: 16/9;
  height: auto;
  min-height: unset;
}
.stream-grid-ppt .stream-item img {
  object-fit: cover;
  width: 100%; height: 100%;
}

/* 竖版海报：每行5-6张 */
.stream-grid-portrait {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.stream-grid-portrait .stream-item {
  aspect-ratio: 2/3;
  height: auto;
  min-height: unset;
}
.stream-grid-portrait .stream-item img {
  object-fit: cover;
  width: 100%; height: 100%;
}

/* 宣传海报：较大展示 */
.stream-grid-poster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.stream-grid-poster .stream-item {
  aspect-ratio: auto;
  height: auto;
  min-height: unset;
}
.stream-grid-poster .stream-item img {
  object-fit: contain;
  width: 100%; height: auto;
  max-height: 400px;
  background: #f5f5f0;
}

/* 报纸：横版大图 */
.stream-grid-news {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}
.stream-grid-news .stream-item {
  aspect-ratio: auto;
  height: auto;
  min-height: unset;
}
.stream-grid-news .stream-item img {
  object-fit: contain;
  width: 100%; height: auto;
  background: #f5f5f0;
}

/* ============================================================
   视频播放按钮
============================================================ */
.video-play-abs {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.15); transition: background 0.2s;
}

/* ============================================================
   图集灯箱（单次只显示一张大图）
============================================================ */
.gallery-modal {
  display: flex !important; flex-direction: column !important;
  justify-content: center; align-items: center;
}
.gallery-modal.open { display: flex !important; }
.gallery-header {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; z-index: 10;
}
.gallery-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: all 0.2s;
}
.gallery-close:hover { background: rgba(255,255,255,0.1); }
.gallery-body {
  flex: none !important; display: flex !important;
  justify-content: center; align-items: center;
  width: 100%; height: 100%;
  padding: 60px 80px !important;
  overflow: hidden !important;
}
#galleryImg {
  max-width: 100%; max-height: 85vh;
  object-fit: contain; border-radius: 4px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
  transition: opacity 0.2s;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 20;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.85); font-size: 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.gallery-nav:hover { background: rgba(255,255,255,0.15); }
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }
