/* TinTools 项目成果展 — Linear 设计语言（双主题）
   深色：Linear 原生 token（#010102 画布 + 四级表面阶梯 + hairline 边框）
   浅色：由 inverse 色阶推导（白画布 + #f5f6f6 表面 + 细边框）
   唯一彩色：薰衣草蓝 #5e6ad2，仅用于品牌强调、主按钮、焦点环、链接 */

:root {
  color-scheme: light;
  --canvas: #fafafa;
  --card: #ffffff;
  --card-hover: #ffffff;
  --surface: #f5f6f6;
  --text: #171717;
  --text-strong: #000000;
  --muted: #525252;
  --accent: #5e6ad2;
  --accent-hover: #828fff;
  --accent-focus: #5e69d1;
  --border: #e6e6e9;
  --border-strong: #d4d4d8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-hover: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-modal: 0 12px 40px rgba(0, 0, 0, .12);
  --focus-ring: 0 0 0 2px rgba(94, 105, 210, .35);
  /* 工程感：技术栈标签与数据用等宽字体 */
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #010102;
  --card: #0f1011;
  --card-hover: #141516;
  --surface: #141516;
  --text: #f7f8f8;
  --text-strong: #ffffff;
  --muted: #8a8f98;
  --accent: #5e6ad2;
  --accent-hover: #828fff;
  --accent-focus: #5e69d1;
  --border: #23252a;
  --border-strong: #34343a;
  --shadow: none;
  --shadow-hover: none;
  --shadow-modal: none;
  --focus-ring: 0 0 0 2px rgba(94, 105, 210, .5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--canvas);
}

:focus-visible {
  outline: 2px solid var(--accent-focus);
  outline-offset: 2px;
}

a, button {
  touch-action: manipulation;
}

/* 跳转主内容：仅键盘聚焦时可见 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1001;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container { padding: 20px; max-width: 1100px; margin: 0 auto; }

.section__title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text-strong);
  margin: 0 0 16px;
  text-wrap: balance;
}

/* ---- 个人品牌 Hero ---- */

.site-hero {
  padding: 12px 20px 24px;
  border-bottom: 1px solid var(--border);
}

.hero__topbar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.theme-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 20px;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  display: block;
}

.theme-toggle__icon--sun { display: none; }

[data-theme="dark"] .theme-toggle__icon--moon { display: none; }

[data-theme="dark"] .theme-toggle__icon--sun { display: block; }

.hero__content {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
}

.hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--text-strong);
  text-wrap: balance;
}

/* ---- 首屏数据条（数值由 JS 实时统计） ---- */

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--text-strong);
}

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero__link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s;
}

.hero__link:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.hero__link--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero__link--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ---- 旗舰展位墙 ---- */

.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 64px;
}

.exhibit {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.exhibit:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.exhibit__visual {
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.exhibit__visual--pad {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--surface);
}

.exhibit__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exhibit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.exhibit__icon-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.exhibit__body {
  padding: 16px 18px 18px;
}

.exhibit__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text-strong);
}

/* 品牌色小标：铭牌式的展品签 */
.exhibit__title::before {
  content: '';
  display: block;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--work-accent, var(--accent));
  margin-bottom: 10px;
}

.exhibit__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(0.875rem * 1.6 * 2);
}

.exhibit__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.exhibit__btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.exhibit__btn:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.exhibit__btn--primary {
  background: var(--work-accent, var(--accent));
  color: #fff;
  border-color: var(--work-accent, var(--accent));
}

.exhibit__btn--primary:hover {
  background: color-mix(in srgb, var(--work-accent, var(--accent)) 84%, #ffffff);
  border-color: color-mix(in srgb, var(--work-accent, var(--accent)) 84%, #ffffff);
  color: #fff;
}

/* 小程序码视觉位固定白底：深色主题下也保持浅底，确保微信可扫 */
.work__qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.work__qrcode-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.work__qrcode-tip {
  font-size: 0.8rem;
  color: #64748b;
}

/* ---- 品牌展品海报：填满展位卡视觉区 ---- */

.poster {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 次元诗词：宣纸底 + 竖排诗句 + 朱红印章 */
.poster--poetry {
  background: #f6f1e5;
}

.poster-poetry__moon {
  position: absolute;
  left: 13%;
  top: 15%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e9dcc0;
}

.poster-poetry__verse {
  position: absolute;
  right: 15%;
  top: 10%;
  writing-mode: vertical-rl;
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', SimSun, serif;
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: 0.22em;
  line-height: 2;
  color: #2e2a24;
}

.poster-poetry__seal {
  position: absolute;
  left: 15%;
  bottom: 13%;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: #c0392b;
  color: #fdf6e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', SimSun, serif;
  font-size: 21px;
  font-weight: 600;
}

/* 英语 IELTS：深蓝底 + 单词卡拟态 */
.poster--english {
  background: #101f42;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-en__card {
  width: 76%;
  max-width: 420px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.poster-en__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ea2f7;
}

.poster-en__word {
  font-size: clamp(24px, 2.4vw, 33px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #f4f7ff;
}

.poster-en__phonetic {
  font-size: 13px;
  color: #93a7d4;
}

.poster-en__sentence {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #c8d4ef;
}

.poster-en__bar {
  margin-top: 8px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.poster-en__bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #3b82f6;
}

.poster-en__meta {
  font-size: 11.5px;
  color: #7c8db8;
}

/* 七巧板速拼：暖底 + 散落拼板 + 小程序码 */
.poster--tangram {
  background: #fdf8ef;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.poster-tan__figure {
  position: relative;
  width: 220px;
  height: 185px;
  flex-shrink: 0;
  transform: scale(0.85);
}

.tan {
  position: absolute;
  display: block;
}

.tan--1 { width: 116px; height: 116px; left: 6px;  top: 2px;   background: #e0453a; clip-path: polygon(0 0, 100% 0, 0 100%); transform: rotate(8deg); }
.tan--2 { width: 116px; height: 116px; left: 64px; top: 28px;  background: #f08a24; clip-path: polygon(0 0, 100% 0, 0 100%); transform: rotate(98deg); }
.tan--3 { width: 78px;  height: 78px;  left: 126px; top: 4px;  background: #2a9d8f; clip-path: polygon(0 0, 100% 0, 0 100%); transform: rotate(-14deg); }
.tan--4 { width: 54px;  height: 54px;  left: 8px;   top: 120px; background: #f5c518; clip-path: polygon(0 0, 100% 0, 0 100%); transform: rotate(24deg); }
.tan--5 { width: 54px;  height: 54px;  left: 106px; top: 108px; background: #7b5ea7; clip-path: polygon(0 0, 100% 0, 0 100%); transform: rotate(-42deg); }
.tan--6 { width: 60px;  height: 60px;  left: 56px;  top: 116px; background: #4caf6d; transform: rotate(18deg); }
.tan--7 { width: 94px;  height: 46px;  left: 128px; top: 92px;  background: #3f7fbf; clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%); transform: rotate(14deg); }

.poster-tan__qr {
  background: #fff;
  border: 1px solid #eadfce;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.poster-tan__qr img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.poster-tan__qr span {
  font-size: 11px;
  color: #64748b;
}

/* ---- 更多小工具 ---- */

.tools-section {
  margin-top: 16px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card__icon {
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.card__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.card__body { flex: 1; }
.card__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--text-strong);
}
.card__desc { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.card__link {
  display: inline-block;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s;
}

.card__link:hover { background: var(--accent-hover); }

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.card__tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--surface);
  border-radius: 6px;
  color: var(--muted);
}

/* ---- 技术栈标签（作品卡片与详情弹窗共用，等宽字体） ---- */

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
}

.tech-tag--more {
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--border-strong);
}

/* ---- 作品元信息行（角色 · 周期 · 规模） ---- */

.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---- 最新动态 ---- */

.news-section {
  margin-top: 64px;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-item {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.15s;
}

.news-item:hover {
  border-color: var(--border-strong);
}

.news-item__title {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

a.news-item__title:hover {
  color: var(--accent);
}

.news-item__date {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  margin-left: 16px;
}

/* ---- 产品详情弹窗（小工具用） ---- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s;
}

.modal[hidden] {
  display: none;
}

.modal--open {
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal__card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-modal);
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  transform: scale(0.96);
  transition: transform 0.2s;
}

.modal--open .modal__card {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.modal__close:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.modal__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-right: 32px;
}

.modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 32px;
  overflow: hidden;
}

.modal__icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.modal__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text-strong);
}

.modal__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 工程档案元信息表：角色 / 开发周期 / 代码规模 / 支持平台 */
.modal__meta {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 10px;
  display: grid;
  gap: 8px;
}

.modal__meta-row {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.modal__meta-key {
  flex-shrink: 0;
  width: 72px;
  color: var(--muted);
}

.modal__meta-val {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

.modal__section-title {
  margin: 20px 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* 技术难点列表：用 accent 圆点替代原生 ul 项目符号 */
.modal__highlights {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal__highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
}

.modal__highlights li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.modal__features {
  margin: 0 0 20px;
  padding-left: 20px;
  line-height: 1.8;
}

.modal__features li {
  font-size: 0.9rem;
  color: var(--text);
}

.modal__changelog {
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.modal__changelog-label {
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
  font-weight: 500;
}

.modal__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal__btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.2;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}

.modal__btn:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.modal__btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.modal__btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* 分发端「敬请期待」占位徽标（非链接） */
.modal__btn--soon {
  cursor: default;
  opacity: 0.55;
  border-style: dashed;
  color: var(--text-muted, var(--text));
}

/* 二维码区固定白底：深色主题下也保持浅底，确保微信可扫 */
.modal__qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.modal__qrcode-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.modal__qrcode-tip {
  font-size: 0.8rem;
  color: #64748b;
}

.site-footer { text-align: center; padding: 32px 20px; color: var(--muted); font-size: 0.85rem; }

.site-footer__links {
  display: inline-flex;
  gap: 14px;
  margin-left: 12px;
}

.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer__links a:hover { color: var(--accent); }

/* ---- 响应式 ---- */

@media (max-width: 900px) {
  .featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0 56px;
  }
}

@media (max-width: 600px) {
  .site-hero { padding-bottom: 20px; }

  /* 移动端可点目标补足 44px（ui-ux-pro-max: touch-target-size） */
  .hero__link, .exhibit__btn, .card__link, .modal__btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .theme-toggle, .modal__close {
    min-width: 44px;
    min-height: 44px;
  }

  .hero__content { padding-top: 20px; }

  .hero__stats { gap: 20px; }
  .hero__stat-value { font-size: 1.25rem; }

  .featured { grid-template-columns: 1fr; }

  .poster-tan__figure { transform: scale(1); }

  .work__qrcode-img {
    width: 132px;
    height: 132px;
  }

  .card { flex-direction: column; align-items: flex-start; }
  .card__icon { width: auto; }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .news-item__date { margin-left: 0; }

  .modal {
    padding: 12px;
  }

  .modal__card {
    padding: 20px;
    max-height: 90vh;
  }

  .modal__header {
    flex-direction: column;
    text-align: center;
    padding-right: 0;
  }

  .modal__qrcode-img {
    width: 140px;
    height: 140px;
  }
}

/* 减弱动效偏好：全局关闭过渡与动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---- 成果展：状态徽标（规划中） ---- */
.badge--planned {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  color: #b45309;
  background: rgba(232, 135, 58, .12);
  border: 1px solid rgba(232, 135, 58, .35);
  border-radius: 999px;
  white-space: nowrap;
}

[data-theme="dark"] .badge--planned {
  color: #f0a55e;
  background: rgba(232, 135, 58, .15);
  border-color: rgba(232, 135, 58, .4);
}

/* ---- 成果展：弹窗截图画廊（横向滚动 + scroll-snap） ---- */
.modal__gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 10px;
  margin: 16px 0 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.modal__gallery-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  margin: 0;
  max-width: 78%;
}

.modal__gallery-item img {
  display: block;
  max-height: 320px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.modal__gallery-item figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .modal__gallery-item {
    max-width: 88%;
  }

  .modal__gallery-item img {
    max-height: 240px;
  }
}
