@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500&display=swap');

:root { color-scheme: light; }

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  background: #f7f7f5;
  color: #141414;
  font-family: "DM Mono", "Noto Sans SC", monospace;
  -webkit-font-smoothing: antialiased;
}

.home main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.portal { display: grid; justify-items: center; gap: 22px; }

a { color: inherit; text-decoration: none; }

.portal a {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.15;
  padding: .2em .35em;
  transition: opacity .2s ease, transform .2s ease;
}

.portal:has(a:hover) a:not(:hover) { opacity: .28; }
.portal a:hover, .portal a:focus-visible { transform: translateX(5px); }
.portal a:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 9vh 32px 64px;
}

.back { display: inline-block; font-size: .78rem; letter-spacing: .08em; margin-bottom: 12vh; opacity: .55; }
.back:hover { opacity: 1; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 400; letter-spacing: .05em; margin: 0 0 48px; }
p { max-width: 36em; font-family: "Noto Sans SC", sans-serif; font-size: 1rem; line-height: 2; margin: 0 0 18px; }
.placeholder { color: #777; }

@media (prefers-reduced-motion: reduce) { .portal a { transition: none; } }

.eyebrow, .section-number { font-size: .7rem; letter-spacing: .12em; margin: 0; opacity: .52; }
.products { max-width: 860px; }
.products h1 { margin-bottom: 64px; }
.product-card { display: grid; grid-template-columns: 52px 1fr auto; gap: 22px; align-items: center; padding: 28px 0; border-top: 1px solid #d8d8d4; transition: opacity .2s ease; }
.product-card:hover { opacity: .58; }
.product-card strong, .product-card em { display: block; font-style: normal; }
.product-card strong { font-size: 1.45rem; font-weight: 400; margin-bottom: 8px; }
.product-card em, .product-index { color: #777; font-size: .75rem; }
.card-tail { display: flex; align-items: center; gap: 16px; }
.arrow { font-size: 1.5rem; }
.badge-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 600 .6rem "DM Mono", monospace;
  letter-spacing: .08em;
  color: #137333;
  background: #e6f4ea;
  border: 1px solid #ceead6;
  line-height: 1;
  position: relative;
}
.badge-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #188038;
  box-shadow: 0 0 0 0 rgba(24,128,56,.55);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(24,128,56,.55); }
  70% { box-shadow: 0 0 0 7px rgba(24,128,56,0); }
  100% { box-shadow: 0 0 0 0 rgba(24,128,56,0); }
}

.toolbox { background: #0e0e10; color: #e9e9e7; font-family: "Noto Sans SC", sans-serif; }
.tb-water-banner { position: relative; width: 100%; height: 56vh; min-height: 380px; overflow: hidden; background: #0e0e10; }
.tb-water-banner canvas { display: block; width: 100%; height: 100%; }
.toolbox-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; width: 100%; -webkit-transform: translateZ(0); transform: translateZ(0); padding: 28px 34px; display: flex; justify-content: space-between; font: .72rem "DM Mono", monospace; letter-spacing: .06em; color: #a7a7aa; background: rgba(14,14,16,0); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.toolbox-nav a:hover { color: #fff; }
.toolbox main { overflow: hidden; }.toolbox-hero { position: relative; z-index: 2; max-width: 1180px; min-height: 740px; margin: -330px auto 0; padding: 50px 34px 80px clamp(24px, 10vw, 200px); display: grid; grid-template-columns: auto 260px 1fr; align-items: center; gap: clamp(40px, 5vw, 72px); }
.hero-copy { align-self: end; }.hero-copy h1, .toolbox h2 { font-weight: 400; letter-spacing: -.05em; }.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .98; margin: 24px 0 30px; white-space: nowrap; }.hero-lead { font-size: clamp(1.2rem, 2vw, 1.72rem); line-height: 1.65; color: #d0d0d0; }.hero-note { max-width: 380px; color: #85858a; font-size: .88rem; line-height: 1.9; margin-top: 34px; }
.hero-phone { width: min(100%, 240px); justify-self: end; align-self: end; border: 1px solid #303034; padding: 7px; border-radius: 30px; background: #171719; box-shadow: 0 30px 90px #000; overflow: hidden; position: relative; }.hero-phone video { display: block; width: 100%; border-radius: 23px; }
.hero-experience { display: flex; flex-direction: column; align-items: center; gap: 14px; align-self: end; margin-bottom: 20px; }.hero-experience .hero-qr { width: 94px; height: 94px; border-radius: 12px; object-fit: cover; }.hero-experience p { margin: 0; font-size: .82rem; line-height: 1.65; color: #ccc; text-align: center; }.hero-experience span { color: #ccc; font-size: .82rem; }
.toolbox-section { max-width: 1200px; margin: auto; padding: 150px 34px; display: grid; grid-template-columns: 190px 1fr; gap: 48px; }.toolbox h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.06; margin: 0 0 35px; }.statement > div > p, .ai-roadmap > div > p { max-width: 500px; color: #a6a6aa; line-height: 2; }.biz-free { color: #fff; font-weight: 400; font-size: 1.18rem; line-height: 1.6; display: inline-block; margin: .25em 0; }
.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 65px 40px; }.principle-grid b, .mode span { color: #77777d; font: .7rem "DM Mono", monospace; }.principle-grid h3 { font-size: 1.25rem; font-weight: 400; margin: 17px 0 10px; }.principle-grid p { color: #949499; line-height: 1.8; margin: 0; font-size: .9rem; }
.modes > h2 { grid-column: 2; }.mode-grid { grid-column: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 80px 28px; }.device-frame { position: relative; width: 86%; margin: 0 auto 20px; padding: 9px; border: 1px solid #55555a; border-radius: 28px; background: linear-gradient(145deg, #333338, #151517); box-shadow: 0 24px 60px rgba(0,0,0,.42); }.modes .device-frame { width: 240px; margin-left: 0; margin-right: auto; }.modes-note { grid-column: 2; max-width: 500px; color: #a6a6aa; line-height: 2; margin: 64px 0 0; }
.device-frame::before { content: ''; position: absolute; z-index: 1; top: 8px; left: 50%; width: 30%; height: 16px; transform: translateX(-50%); border-radius: 0 0 12px 12px; background: #111113; }.device-frame img, .device-frame video { display: block; width: 100%; aspect-ratio: 9 / 19.5; object-fit: contain; object-position: top; border-radius: 20px; background: #080809; }.mode h3 { font-size: 1.2rem; line-height: 1.55; font-weight: 400; margin: 14px 0 8px; }.mode p { color: #8b8b90; line-height: 1.8; font-size: .86rem; margin: 0; }
.media-grid { display: flex; flex-direction: column; gap: 28px; align-items: start; }.media-row-top { display: grid; grid-template-columns: auto auto; gap: 24px; align-items: start; }.media-row-top .emo-symbol { width: 380px; max-width: 100%; height: auto; object-fit: contain; border-radius: 14px; }.media-stack { display: flex; flex-direction: column; gap: 24px; align-items: center; }.media-row-top .device-frame { width: 230px; margin: 0; }.media-row-top .art-frame { margin: 0; width: 230px; }.art-frame { margin: 0; }.art-frame img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #171719; }.art-frame figcaption { color: #77777d; font-size: .7rem; margin-top: 10px; text-align: center; }.emo-caption { color: #77777d; font-size: .7rem; line-height: 1.6; margin: 0; text-align: center; max-width: 380px; }.media-lead { max-width: 560px; color: #a6a6aa; line-height: 2; margin: 0 0 46px; font-size: .92rem; }
.roadmap-list { margin-top: 54px; display: grid; gap: 12px; font: .72rem "DM Mono", monospace; color: #9d9da2; }.roadmap-list span { border-bottom: 1px solid #303034; padding-bottom: 12px; }
.qr-section { align-items: center; }.qr-section h2 { margin-bottom: 16px; }.qr-section p:not(.section-number) { color: #939398; }.qr-placeholder { width: 230px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; border: 1px solid #55555a; background: repeating-linear-gradient(45deg, #171719, #171719 8px, #151517 8px, #151517 16px); }.qr-placeholder span { font-size: 1.2rem; }.qr-placeholder small { color: #77777c; font-size: .68rem; margin-top: 10px; }.toolbox-footer { padding: 35px; text-align: center; color: #68686d; font-size: .72rem; }
@media (max-width: 700px) { .toolbox-nav { padding: 22px 20px; }.toolbox-hero { min-height: auto; margin-top: -100px; padding: 24px 20px 90px; grid-template-columns: 1fr; gap: 54px; }.hero-phone { justify-self: center; width: min(50vw, 220px); }.toolbox-section { padding: 84px 20px; grid-template-columns: 1fr; gap: 32px; }.modes > h2, .mode-grid { grid-column: 1; }.principle-grid, .mode-grid { grid-template-columns: 1fr; }.mode-grid { gap: 58px; }.mode { display: grid; grid-template-columns: 1fr; gap: 16px; }.mode .device-frame { width: min(46vw, 188px); padding: 6px; border-radius: 18px; margin: 0; }.mode .device-frame::before { top: 5px; height: 9px; }.mode .device-frame video { border-radius: 12px; }.mode h3 { margin-top: 8px; font-size: 1.05rem; }.modes-note { grid-column: 1; }.media-row-top { grid-template-columns: 1fr; gap: 16px; justify-items: center; }.media-row-top .device-frame { width: min(44vw, 200px); padding: 6px; border-radius: 18px; }.media-row-top .device-frame::before { top: 5px; height: 9px; }.media-row-top .device-frame video { border-radius: 12px; }.media-row-top .emo-symbol { width: min(70vw, 320px); }.qr-placeholder { width: min(66vw, 230px); }.hero-phone { order: 1; }.hero-copy { order: 2; }.hero-experience { order: 3; flex-direction: row-reverse; align-self: start; justify-content: start; align-items: center; }.hero-experience p { text-align: left; }.products { padding-top: 6vh; } }
/* ===================== Portfolio（过往项目）===================== */

/* 统一画布，防止 body/html 背景分裂 */
html.portfolio, html.portfolio-list { background: #f7f7f5; }

/* 列表页 + 详情页 共用基础（浅色，与全站一致） */
.portfolio, .portfolio-list {
  background: #f7f7f5;
  color: #141414;
  font-family: "Noto Sans SC", sans-serif;
}

/* ---- 详情页 ---- */
.portfolio main { max-width: 1100px; margin: 0 auto; padding: 10vh 32px 80px; }
.portfolio .back { opacity: .5; color: #666; }
.portfolio .back:hover { opacity: .8; }
.portfolio-hero { margin-bottom: 64px; }
.portfolio-hero .eyebrow { margin-bottom: 16px; display: block; }
.portfolio-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 20px; color: #141414; }
.portfolio-hero p { max-width: 600px; color: #555; font-size: 1.05rem; line-height: 1.85; }
.portfolio-meta { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #e4e4e1; }
.portfolio-meta dt { font: .65rem "DM Mono", monospace; letter-spacing: .1em; color: #999; text-transform: uppercase; margin-bottom: 4px; }
.portfolio-meta dd { font-size: .92rem; color: #333; margin: 0; }

/* 图片画廊：约束尺寸防溢出 */
.portfolio-gallery { display: grid; gap: 20px; margin-bottom: 72px; }
.portfolio-gallery img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
  border-radius: 10px;
  background: #ececea;
  object-fit: contain;
}
.portfolio-gallery .full { grid-column: 1 / -1; }
.portfolio-gallery .half { grid-column: span 1; }
@media (min-width: 700px) {
  .portfolio-gallery.grid-2 { grid-template-columns: repeat(2, 1fr); }
  .portfolio-gallery.grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.portfolio-desc { max-width: 720px; margin-bottom: 56px; }
.portfolio-desc h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 400; letter-spacing: -.01em; margin: 48px 0 16px; color: #141414; }
.portfolio-desc h2:first-child { margin-top: 0; }
.portfolio-desc p { color: #555; font-size: .95rem; line-height: 1.95; margin-bottom: 16px; }
.portfolio-desc blockquote { border-left: 2px solid #ccc; padding-left: 20px; margin: 24px 0; color: #666; font-style: italic; font-size: .92rem; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.portfolio-tags span { font: .62rem "DM Mono", monospace; letter-spacing: .06em; color: #555; border: 1px solid #dcdcd8; padding: 5px 12px; border-radius: 999px; }

/* ===================== Portfolio Light · 海报参考图风格 ===================== */
/* 浅色背景 · 小缩略图 · 大间距 · 不裁切（与全站背景一致） */
html.portfolio-light { background: #f7f7f5; }
.portfolio.portfolio-light {
  background: #f7f7f5;
  color: #141414;
  font-family: "Noto Sans SC", sans-serif;
}
.portfolio.portfolio-light .back {
  position: absolute;
  top: 28px;
  left: 36px;
  opacity: .45;
  color: #1a1a1a;
  font-size: .78rem;
  letter-spacing: .04em;
  text-decoration: none;
  z-index: 10;
}
.portfolio.portfolio-light .back:hover { opacity: .8; }

/* ===================== 项目详情页固定导航 + 瀑布流 ===================== */
.proj-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  width: 100%;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  padding: 28px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: .72rem "DM Mono", monospace;
  letter-spacing: .06em;
  color: #888;
  background: rgba(247, 247, 245, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.proj-nav a {
  text-decoration: none;
  color: inherit;
  transition: opacity .2s ease;
}
.proj-nav a:hover { opacity: 1; color: #141414; }

/* 页面顶部 icon 大图 */
/* icon 顶部整幅图 */
.proj-hero-icon {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 36px;
}
.proj-hero-icon img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  cursor: zoom-in;
}
/* 文字块（icon 下方，demo 图上方） */
.proj-hero-text {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 36px 0;
}

/* 两栏瀑布流 */
.proj-masonry {
  column-count: 2;
  column-gap: 16px;
  max-width: 1200px;
  margin: 48px auto 100px;
  padding: 0 36px;
}
.proj-masonry img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  break-inside: avoid;
  margin-bottom: 16px;
  cursor: zoom-in;
}

/* 系列分组区块 */
/* 白色内容带：人物创作 + 三个系列
   注意：白带不设 max-width，直接铺满父级 .portfolio main 的内容宽（1440 视口下 = 1036px）。
   .proj-series 的 max-width(1100/1120) 本就大于 1036，同样被父级压到 1036，
   因此白带宽度 == 系列容器宽度，图片仍是 1036 - padding 36*2 = 964px，宽度分毫未变，
   白带只比图片每边宽出 36px。绝对不要给白带设小于 1036 的 max-width，否则会连带压缩图片。 */
/* 收窄白带的唯一正确做法：白带 max-width 与 .proj-series 的左右 padding 必须成对调整，
   图片宽度 = 白带宽 - padding*2，恒定 964px。此处 1000 - 18*2 = 964。 */
/* 图片宽 = 白带 max-width − .proj-series 左右 padding(18*2) = 960-36 = 924px，
   比项目职责文字容器(964)每边内收 20px，视觉上与四栏文字墨迹范围更协调 */
.proj-white-zone {
  max-width: 960px;
  background: #fff;
  border-radius: 12px;
  margin: 160px auto 0;
  padding-bottom: 90px;
}
.proj-white-zone > .proj-series:last-child {
  margin-bottom: 0;
}

/* padding 36→18 是对白带 1036→1000 的补偿，改动必须同步，否则图片宽度会变 */
.proj-series {
  max-width: 1100px;
  margin: 0 auto 150px;
  padding: 0 18px;
}
.proj-series-title {
  font: 1.05rem "DM Mono", monospace;
  font-weight: 400;
  letter-spacing: .08em;
  color: #6f6f6f;
  text-transform: uppercase;
  margin: 0 0 18px;
}
/* 注意：下方 .proj-series-desc（新排版区块内）同特异性且靠后，会覆盖此处 */
.proj-series-desc {
  font-size: .95rem;
  color: #555;
  line-height: 1.95;
  margin: 0 auto 28px;
  max-width: 480px;
  text-align: center;
}
.proj-series .proj-masonry {
  margin: 0;
  padding: 0;
}

/* 系列新排版：完成稿(全宽) → 文字 → 两栏(线稿+官网) */
.proj-series-final {
  margin: 0 0 72px;
}
.proj-series-final img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  cursor: zoom-in;
}
/* 文字描述：宽度缩至 480px（原 720 的 2/3）、水平居中、文字居中、上下留白加大 */
.proj-series-desc {
  font-size: .95rem;
  color: #555;
  line-height: 1.95;
  margin: 0 auto 72px;
  max-width: 480px;
  text-align: center;
}
.proj-series-pair {
  display: grid;
  /* 按图片宽高比分列：线稿 1.41 : 官网图 0.94 → 两图渲染高度严格一致 */
  grid-template-columns: 141fr 94fr;
  gap: 24px;
  align-items: start;
}
.proj-series-pair-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  cursor: zoom-in;
}
/* 官网图下方小字说明 */
.proj-series-note {
  font: .68rem "DM Mono", monospace;
  font-weight: 400;
  letter-spacing: .04em;
  color: #a0a0a0;
  margin: 10px 0 0;
  line-height: 1.6;
  text-align: right;
}

/* 人物创作：整块下移 + 单张大图全宽 */
.proj-series.proj-series-lead {
  padding-top: 96px;
  margin-bottom: 150px;
  max-width: 1120px;
}
.proj-series.proj-series-lead .proj-series-title {
  margin-bottom: 22px;
}
.proj-series.proj-series-lead .proj-masonry {
  column-count: 1;
}
.proj-series.proj-series-lead .proj-masonry img {
  margin-bottom: 0;
  border-radius: 8px;
}

@media (max-width: 700px) {
  .proj-masonry { column-count: 1; }
  .proj-hero-icon, .proj-hero-text { padding-left: 20px; padding-right: 20px; }
  .proj-nav { padding: 18px 20px; }
  .proj-series { padding: 0 20px; margin-bottom: 90px; }
  .proj-series.proj-series-lead { margin-bottom: 90px; }
  .proj-series-pair { grid-template-columns: 1fr; gap: 16px; }
  .proj-white-zone { border-radius: 0; margin-top: 24px; padding-bottom: 60px; }
}

/* 抖音贴纸页 hero 居中 */
.proj-hero { text-align: center; padding: 48px 36px 56px; }
.proj-hero p { max-width: 600px; margin-left: auto; margin-right: auto; }
.proj-hero .portfolio-meta { justify-content: center; }

/* 两栏布局内：文字左对齐 */
.proj-hero-text .proj-hero { text-align: left; padding: 0; margin: 0; }
.proj-hero-text .proj-hero h1 { margin: 0 0 16px; }
.proj-hero-text .proj-hero p { max-width: none; margin: 24px 0 0; color: #555; font-size: 1.05rem; line-height: 1.85; }
.proj-hero-text .proj-capsules { justify-content: flex-start; margin-top: 0; }
/* icon 图上方的胶囊组 */
.proj-hero-text .proj-capsules-above-icon { margin-top: 32px; }
/* 注意：.proj-flow 在下方会覆盖此处的 padding，改上下间距请改 .proj-hero-text .proj-flow */
.proj-hero-text .proj-resp { text-align: left; max-width: none; padding: 36px 0 0; margin: 0; }

/* 灰色胶囊标签（类型/工具/平台） */
.proj-capsules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.proj-cap {
  font: .72rem "DM Mono", monospace;
  letter-spacing: .04em;
  color: #6f6f6f;
  background: #efefed;
  padding: 7px 18px;
  border-radius: 999px;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

/* 项目职责 */
.proj-resp {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 36px 48px;
  text-align: center;
}
.proj-resp h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 400;
  color: #141414;
  letter-spacing: -.01em;
  margin: 0 0 16px;
}
.proj-resp p {
  font-size: .95rem;
  color: #555;
  line-height: 1.95;
  margin: 0;
}
/* 项目职责·方案C：四栏流程 */
.proj-hero-text .proj-flow {
  display: block;
  padding: 120px 0 0;
}
.proj-hero-text .proj-flow > h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font: .72rem "DM Mono", monospace;
  font-weight: 400;
  letter-spacing: .1em;
  color: #8a8a8a;
  margin: 0 0 24px;
}
.proj-hero-text .proj-flow > h2 em {
  font-style: normal;
  font-size: .64rem;
  letter-spacing: .12em;
  color: #b8b8b8;
}
.proj-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.proj-flow-item {
  border-top: 1px solid #e0e0dc;
  padding-top: 16px;
}
.proj-flow-item .pf-num {
  display: block;
  font: .64rem "DM Mono", monospace;
  letter-spacing: .1em;
  color: #b8b8b8;
  margin-bottom: 12px;
}
.proj-flow-item h3 {
  font-size: .92rem;
  font-weight: 500;
  color: #141414;
  letter-spacing: .02em;
  margin: 0 0 9px;
}
.proj-hero-text .proj-flow .proj-flow-item p {
  font-size: .8rem;
  color: #6f6f6f;
  line-height: 1.85;
  margin: 0;
}
@media (max-width: 900px) {
  .proj-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 30px; }
}
@media (max-width: 520px) {
  .proj-flow-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}.portfolio-cover {
  padding: 14vh 0 6vh;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 36px;
  padding-right: 36px;
}
.portfolio-cover .eyebrow {
  font: 500 .68rem "DM Mono", monospace;
  letter-spacing: .2em;
  color: #555;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.portfolio-cover h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: .05em;
  line-height: 1;
  margin: 0;
  color: #111;
}
.portfolio-cover .poster-tags {
  margin-top: 48px;
}
.poster-tags {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===================== Showcase Cards（作品展示卡片）===================== */
.showcase-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2vh 36px 6vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.showcase-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.showcase-card:active { transform: scale(.98); }
.showcase-card:hover .showcase-title { opacity: .65; }
.showcase-card:hover .showcase-more { letter-spacing: .12em; }
.showcase-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #ececea;
  margin-bottom: 16px;
}
.showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.showcase-card:hover .showcase-img img { transform: scale(1.03); }
.showcase-title {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: #141414;
  margin: 0 0 8px;
  line-height: 1.35;
  transition: opacity .2s ease;
}
.showcase-meta {
  font-size: .68rem;
  color: #999;
  margin: 0 0 10px;
  line-height: 1.5;
}
.showcase-more {
  font: 400 .62rem "DM Mono", monospace;
  letter-spacing: .06em;
  color: #555;
  transition: letter-spacing .2s ease;
}
@media (max-width: 640px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 2vh 24px 4vh; }
}

/* 视觉碎片 分区标题 */
.frag-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1vh 36px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.frag-cn {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: .05em;
  color: #141414;
}
.frag-en {
  font: .68rem "DM Mono", monospace;
  letter-spacing: .12em;
  color: #999;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .frag-head { padding: 1vh 24px 0; }
}

/* 视觉碎片下方的标签：轻灰底软块，无边框、无悬停、不可点击筛选 */
.frag-tags {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 36px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.frag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.frag-chip {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .04em;
  color: #6f6f6f;
  background: #efefed;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: default;
  user-select: none;
}
/* 视觉碎片区域：整页统一浅灰 */
.frag-zone {
  background: #f7f7f5;
  color: #141414;
  margin-top: 2vh;
}
.frag-zone .frag-cn { color: #141414; }
.frag-zone .frag-en { color: #999; }
.frag-zone .frag-chip {
  background: #efefed;
  color: #6f6f6f;
}
@media (max-width: 640px) {
  .frag-tags { padding: 14px 24px 0; }
}

.poster-wall {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4vh 36px 10vh;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 80px;
  row-gap: 90px;
  align-items: center;
  justify-items: center;
}
.poster-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 150px;
  text-decoration: none;
  cursor: zoom-in;
  transition: opacity .25s ease;
}
.poster-tile:hover { opacity: .7; }

/* 编辑模式：拖拽排序 */
.poster-wall.editing .poster-tile {
  cursor: grab;
  position: relative;
}
.poster-wall.editing .poster-tile:active {
  cursor: grabbing;
}
.poster-tile img,
.poster-tile video {
  display: block;
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.poster-tile video { background: #fff; }

.poster-notes {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4vh 36px 12vh;
  border-top: 1px solid #b9b9b9;
}
.poster-notes .lead {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.5;
  color: #1a1a1a;
  max-width: 760px;
  margin: 0 0 60px;
  letter-spacing: -.005em;
}
.poster-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}
.poster-notes-grid h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  color: #111;
}
.poster-notes-grid p {
  font-size: .92rem;
  line-height: 1.85;
  color: #444;
  margin: 0;
}
.poster-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.poster-tags li {
  font: 500 .7rem "DM Mono", monospace;
  letter-spacing: .08em;
  color: #555;
  border: 1px solid #aaa;
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
}

/* 海报页窄屏适配 */
@media (max-width: 1100px) {
  .poster-wall { grid-template-columns: repeat(5, 1fr); column-gap: 60px; row-gap: 72px; }
}
@media (max-width: 900px) {
  .poster-wall { grid-template-columns: repeat(4, 1fr); column-gap: 44px; row-gap: 64px; padding-left: 24px; padding-right: 24px; }
  .poster-cover { padding: 12vh 24px 4vh; }
}
@media (max-width: 640px) {
  .poster-wall {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 28px;
    row-gap: 48px;
    padding: 3vh 16px 6vh;
  }
  .poster-tile { height: 110px; }
  .poster-tile img, .poster-tile video { max-height: 110px; }
  .poster-notes-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .poster-notes { padding: 3vh 16px 8vh; }
  .poster-cover { padding: 10vh 16px 3vh; }
  .portfolio.portfolio-light .back { top: 16px; left: 16px; }
}

/* ---- Lightbox 弹窗（极简） ---- */
.lb {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  display: none;
  align-items: center; justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity .18s ease;
}
.lb.show { display: flex; opacity: 1; }
.lb img, .lb video {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain; border-radius: 4px;
}
/* 带缩放的灯箱：禁用浏览器默认手势，避免与缩放/拖拽冲突 */
.lb-zoommode { overflow: hidden; touch-action: none; }
.lb-zoommode #lb-img {
  transform-origin: center center;
  will-change: transform;
  cursor: zoom-in;
}
.lb-x {
  position: absolute; top: 20px; right: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none; color: #fff; font-size: 22px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; line-height: 1;
}
.lb-x:hover { background: rgba(255,255,255,.28); }

/* 画廊：大图 + 缩略条 */
.lb-gv {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.lb-gv-stage {
  flex: 1 1 auto;
  min-height: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 20px 96px;
  box-sizing: border-box;
}
.lb .lb-gv-main {
  display: block;
  max-width: 80vw;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.lb-gv-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px 0;
  -ms-overflow-style: none; scrollbar-width: none;
}
.lb-gv-bar::-webkit-scrollbar { display: none; }
.lb-gv-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  opacity: .45;
  cursor: pointer;
  transition: opacity .2s, border-color .2s;
  flex-shrink: 0;
}
.lb-gv-thumb.active { opacity: 1; border-color: rgba(255,255,255,.7); }
.lb-gv-thumb:hover { opacity: .85; }
.lb-back {
  position: absolute;
  top: 20px; left: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: none; color: #fff;
  font-size: 14px; cursor: pointer;
  transition: background .15s;
}
.lb-back:hover { background: rgba(255,255,255,.28); }

/* ---- 海报/作品集瀑布流网格 (旧版保留) ---- */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 72px;
}
.poster-grid a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #161618;
  transition: transform .25s ease, opacity .25s ease;
}
.poster-grid a:hover {
  transform: translateY(-3px);
  opacity: .85;
}
.poster-grid a img,
.poster-grid a video {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
  object-position: center;
}
/* 视频自动播放 */
.poster-grid video { background: #111; }
@media (max-width: 700px) {
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

/* ---- 列表页（暗色主题卡片）---- */
.portfolio-list main { padding: 9vh 32px 80px; }
.portfolio-list h1 { margin-bottom: 16px; color: #fff; }
.portfolio-list .eyebrow { color: #666; }
.portfolio-list .product-card { border-top-color: #2a2a2e; }
.portfolio-list .product-card strong { color: #e9e9e7; font-family: "Noto Sans SC", sans-serif; }
.portfolio-list .product-card em,
.portfolio-list .product-index { color: #888; }
.portfolio-list .card-tail .arrow { color: #666; }
.badge-done {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 600 .6rem "DM Mono", monospace;
  letter-spacing: .08em;
  color: #888;
  background: #1a1a1e;
  border: 1px solid #2a2a2e;
  line-height: 1;
}

/* ---- 窄屏适配 ---- */
@media (max-width: 700px) {
  .portfolio main { padding: 6vh 20px 60px; }
  .portfolio-list main { padding: 6vh 20px 60px; }
  .portfolio-hero h1 { font-size: clamp(1.6rem, 7vw, 2.6rem); }
  .portfolio-gallery.grid-2,
  .portfolio-gallery.grid-3 { grid-template-columns: 1fr; }
  .portfolio-meta { flex-direction: column; gap: 14px; }
  .product-card { grid-template-columns: 40px 1fr; gap: 14px; padding: 22px 0; }
  .product-card .card-tail { display: none; }
}

/* 编辑器 UI */

/* 编辑态：防止长按选文字干扰拖动 */
body.ed-mode { user-select: none; -webkit-user-select: none; }
body.ed-mode [data-ed-id] { cursor: pointer; }
body.ed-mode [data-ed-id].ed-grabbing { cursor: move; }
/* 选中框统一由 .ed-sel-box 绘制，避免元素 outline 与 overlay 重影 */
body.ed-mode [data-ed-id].ed-selected { outline: none; }
body.ed-mode [data-ed-id].ed-selected.ed-primary { outline: none; }

/* 编辑态文字：强制在容器宽度内换行，避免长串无空格文本（链接/英文）横向撑开；
   同时让 inline 元素（span/a）也能受 max-width:before 约束（配合 JS 临时转 inline-block） */
.ed-editing-text {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  max-width: 100% !important;
}

/* 选中框层（不拦截鼠标，跟随元素） */
.ed-overlay-layer {
  position: fixed; inset: 0; z-index: 99998; pointer-events: none;
}
.ed-sel-box {
  position: fixed; border: 2px solid #4f78ff; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}
.ed-sel-box.ed-primary { border-color: #ffb04f; }

/* 文字宽度调整柄 */
.ed-resize-handle {
  position: fixed; z-index: 99999; pointer-events: auto;
  background: rgba(79,120,255,.45); border: 1px solid #4f78ff; border-radius: 3px;
  transition: background .1s;
}
.ed-resize-handle:hover { background: rgba(79,120,255,.85); }
.ed-resize-n, .ed-resize-s { cursor: ns-resize; }
.ed-resize-e, .ed-resize-w { cursor: ew-resize; }
.ed-resize-nw, .ed-resize-se { cursor: nwse-resize; }
.ed-resize-ne, .ed-resize-sw { cursor: nesw-resize; }

/* 顶部工具条 */
.ed-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
  display: flex; align-items: center; gap: 6px;
  background: #141414; padding: 8px 12px;
  border-bottom: 1px solid #262629;
  font: 12px/1 "DM Mono", "Noto Sans SC", monospace;
  overflow-x: auto; white-space: nowrap;
}
.ed-bar .ed-logo { margin-right: 6px; color: #fff; font-weight: 500; }
.ed-bar button {
  background: #2a2a2e; color: #fff; border: 1px solid #3a3a40; border-radius: 7px;
  padding: 6px 8px; cursor: pointer; font: 11px "DM Mono", "Noto Sans SC", monospace;
}
.ed-bar button:hover { background: #4f78ff; border-color: #4f78ff; }
.ed-bar .ed-sep { width: 1px; height: 18px; background: #3a3a40; margin: 0 2px; }
.ed-bar button[data-act^="align-"] { background: #1f3a6e; border-color: #2f55a0; }
.ed-bar button[data-act^="align-"]:hover { background: #2f55a0; }
.ed-bar button[data-act="undo"] { background: #6e3a1f; border-color: #a05a2f; }
.ed-bar button[data-act="undo"]:hover { background: #a05a2f; }
.ed-bar button.ed-save { background: #1f8a4c; border-color: #28a85c; font-weight: 600; }
.ed-bar button.ed-save:hover { background: #28a85c; }

/* 操作提示 */
.ed-hint {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 99999;
  background: #1f1f23; color: #e0e0e3; border: 1px solid #35353b; border-radius: 999px;
  padding: 10px 18px; font: 12px "DM Mono", "Noto Sans SC", monospace;
  box-shadow: 0 8px 28px rgba(0,0,0,.35); opacity: 1; transition: opacity .6s;
  pointer-events: none;
}
.ed-hint.ed-hint-hide { opacity: 0; }

/* 浮动进入/退出按钮 */
.ed-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 99997;
  display: flex; align-items: center; gap: 6px;
  background: #4f78ff; color: #fff; border: none; border-radius: 999px;
  padding: 10px 16px; cursor: pointer;
  font: 12px/1 "DM Mono","Noto Sans SC",monospace; font-weight: 500;
  box-shadow: 0 8px 24px rgba(79,120,255,.4); transition: transform .15s, background .15s;
}
.ed-fab:hover { transform: translateY(-2px); background: #3f68f0; }
.ed-fab.ed-active { background: #1f1f23; border: 1px solid #4f78ff; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.ed-fab .ed-fab-dot { width: 8px; height: 8px; border-radius: 50%; background: #8fff9e; }
.ed-fab.ed-active .ed-fab-dot { background: #ff8f8f; }

@media (max-width: 700px) {
  .ed-bar { padding: 6px 8px; gap: 4px; }
  .ed-bar button { padding: 5px 6px; font-size: 10px; }
  .ed-fab { right: 10px; bottom: 10px; padding: 8px 12px; }
}

/* 多屏预览遮罩 + iframe */
.ed-preview-mask {
  position: fixed; inset: 0; z-index: 99996;
  background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 56px;
}
.ed-preview-frame {
  height: calc(100vh - 110px); background: #fff; border: 1px solid #4f78ff;
  border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.5); width: 1280px;
  transition: width .15s ease; max-width: 96vw;
}
.ed-preview-cap {
  position: fixed; top: 8px; left: 50%; transform: translateX(-50%);
  color: #fff; background: #141414cc; border: 1px solid #35353b;
  padding: 6px 14px; border-radius: 999px; font: 12px "DM Mono","Noto Sans SC",monospace;
  z-index: 99997; pointer-events: none;
}
.ed-preview-resize {
  position: fixed; top: 56px; width: 10px; height: calc(100vh - 110px);
  cursor: ew-resize; z-index: 99997;
}
.ed-preview-resize::after {
  content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px;
  background: #4f78ff; opacity: .6;
}



/* ===================== MG 科普动画页 ===================== */
/* 容器宽度对齐规则：父级 .portfolio main 内容宽 1036px，
   此处 padding 0 36px → 内容 964px，与 .proj-flow（项目职责）严格等宽同左边缘 */
.mg-sec {
  max-width: 1036px;
  margin: 0 auto 120px;
  padding: 0 36px;
}
.mg-sec:first-of-type {
  margin-top: 120px;
}
.mg-sec:last-of-type {
  margin-bottom: 40px;
}
.mg-sec-title {
  font: 1.05rem "DM Mono", monospace;
  font-weight: 400;
  letter-spacing: .08em;
  color: #6f6f6f;
  margin: 0 0 22px;
}
.mg-full img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  cursor: zoom-in;
}
.mg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mg-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.mg-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.mg-grid-4 img,
.mg-grid-3 img,
.mg-grid-2 img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  cursor: zoom-in;
  background: #fff;
}
.mg-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.mg-video-grid video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #000;
}

@media (max-width: 700px) {
  .mg-sec { padding: 0 20px; margin-bottom: 80px; }
  .mg-sec:first-of-type { margin-top: 70px; }
  .mg-grid-3, .mg-grid-2, .mg-video-grid { grid-template-columns: 1fr; gap: 14px; }
  /* 游戏界面 / 游戏插画：窄屏依然保持每行 4 张，只把间距收小 */
  .mg-grid-4 { gap: 8px; }
}

/* MG 页内合并的第二个项目（眼保健游戏）：分隔线 + 标题区上间距 */
.mg-part-sep {
  max-width: 1036px;
  margin: 40px auto 0;
  padding: 0 36px;
}
.mg-part-sep hr {
  border: 0;
  border-top: 1px solid #e1e1e1;
  margin: 0;
}
.proj-hero-text.mg-part2 {
  padding-top: 96px;
}
/* 第二个项目下方第一个图片区块，补回与首屏一致的上间距 */
.mg-sec.mg-sec-lead {
  margin-top: 120px;
}
@media (max-width: 700px) {
  .mg-part-sep { padding: 0 20px; margin-top: 20px; }
  .proj-hero-text.mg-part2 { padding-top: 56px; }
  .mg-sec.mg-sec-lead { margin-top: 70px; }
}

/* MG 页：单个全宽视频（其他动画概览区） */
.mg-video-single {
  margin-top: 18px;
}
/* 视频置于图片网格上方时：改为下间距 */
.mg-video-single.mg-video-top {
  margin-top: 0;
  margin-bottom: 18px;
}
.mg-video-single video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #000;
}

/* ====== HMI 语音助手状态帧卡片 ====== */
.hmi-va-states {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.hmi-va-state {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(0,0,0,.06);
}
.hmi-va-state:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.hmi-va-canvas {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  background: transparent;
}
.hmi-va-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(232,168,56,.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  z-index: 2;
}
.hmi-va-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: rgba(0,0,0,.4);
  font-size: 0.7rem;
  z-index: 2;
}
@media (max-width: 700px) {
  .hmi-va-states { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
