/* ==========================================================================
   v16 · 视觉精修
   1. 首屏介绍：3 秒内讲清「我是谁、做什么、去哪看」
   2. 数据卡：两项主数据放大，其余收为紧凑网格
   3. 减少装饰性英文小标签，正文最小 12px
   4. 作品：代表作 / 全部作品 两层
   5. 联系：微信二维码 + 简历下载
   ========================================================================== */

/* ---------- 1. 首屏介绍 ---------- */
.hero-intro {
  position: absolute;
  z-index: 6;
  left: var(--container-gutter);
  top: 50%;
  transform: translateY(calc(-50% + var(--hero-shift, 0px)));
  width: min(440px, 34vw);
  color: var(--ink);
  will-change: opacity, transform;
}
.hero-intro__eyebrow {
  display: flex; gap: 14px; margin: 0 0 18px;
  font-family: var(--type-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: #6d6d75;
}
.hero-intro__eyebrow span + span::before { content: "·"; margin-right: 14px; color: #b9b9c0; }
.hero-intro__name {
  margin: 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-family: var(--type-cn); font-weight: 600;
  font-size: clamp(44px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -.01em;
}
.hero-intro__name span {
  font-family: var(--type-display); font-style: italic; font-weight: 400;
  font-size: .4em; letter-spacing: .02em; color: #6d6d75;
}
.hero-intro__hook {
  margin: 20px 0 14px;
  font-family: var(--type-cn); font-weight: 500;
  font-size: clamp(21px, 2vw, 29px); line-height: 1.5; letter-spacing: -.01em;
}
.hero-intro__meta { margin: 0 0 26px; font-size: 13px; line-height: 1.8; color: #55555e; }
.hero-intro__meta i { font-style: normal; color: #c3c3c9; margin: 0 10px; }
.hero-intro__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid #d6d6dc; background: #ffffffe6;
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: background .2s, border-color .2s, transform .2s;
}
.hero-btn:hover { border-color: #0e0e10; transform: translateY(-1px); }
.hero-btn--dark { background: #0e0e10; border-color: #0e0e10; color: #fff; }
.hero-btn--dark:hover { background: #5b1a1a; border-color: #5b1a1a; }

.hero-proof {
  position: absolute; z-index: 6; margin: 0;
  right: var(--container-gutter); top: 50%;
  display: grid; gap: 26px; text-align: right; transform: translateY(calc(-50% + var(--hero-shift, 0px)));
}
.hero-proof div { display: grid; gap: 4px; }
.hero-proof dt {
  font-family: var(--type-display); font-weight: 400;
  font-size: clamp(34px, 3.2vw, 48px); line-height: 1; color: #5b1a1a;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.hero-proof dd { margin: 0; font-size: 12px; color: #55555e; letter-spacing: .04em; }


/* 平板：介绍仍在左侧，数据收到下方 */
@media (max-width: 1100px) {
  .hero-intro { top: calc(var(--nav-height) + 40px); transform: translateY(var(--hero-shift, 0px)); width: min(480px, 60vw); }
  .hero-proof { display: none; }
  .intro-invitation { left: auto !important; right: var(--container-gutter); transform: none !important; text-align: right; }
}

/* 手机：介绍在上，"一键直达"胶囊紧随其后，剪影在下 */
@media (max-width: 768px) {
  .hero-intro { left: 18px; right: 18px; width: auto; top: calc(var(--nav-height) + 18px); }
  .hero-intro__eyebrow { font-size: 10px; margin-bottom: 10px; }
  .hero-intro__name { font-size: 36px; gap: 10px; }
  .hero-intro__hook { font-size: 18px; margin: 10px 0 0; }
  .hero-intro__meta, .hero-intro__cta { display: none; }
  .intro-invitation {
    top: calc(var(--nav-height) + 178px) !important; left: 18px !important; right: auto;
    transform: none !important; text-align: left;
  }
  .intro-invitation > p { display: none; }
  /* 手机上首屏介绍紧挨着简介卡，简介卡不再重复名字与标语 */
  .morph__copy .intro-profile .hero-name-row,
  .morph__copy .intro-profile .hero-positioning { display: none; }
  .morph__copy .intro-profile .intro-profile__desc { font-size: 13px; color: #3e3e46; margin-top: 2px; }
  #parallax-status-text { display: none; }
  .parallax-bottom-bar { justify-content: flex-end !important; }
  .parallax-nav-btns button { white-space: nowrap; }
}

/* ---------- 2. 数据卡：主次分明 ---------- */
.morph__copy .glass-card__metrics {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 4px 10px !important;
}
.morph__copy .mini-metric { grid-column: span 2; padding: 8px 0 !important; border: 0 !important; }
.morph__copy .mini-metric--lead { grid-column: span 3; padding: 4px 0 14px !important; border-bottom: 1px solid #ececf0 !important; }
.morph__copy .mini-metric b { font-size: 20px !important; line-height: 1.2; }
.morph__copy .mini-metric--lead b { font-size: clamp(34px, 3vw, 44px) !important; line-height: 1.05; }
.morph__copy .mini-metric span { font-size: 11px !important; line-height: 1.45; color: #62626b; display: block; margin-top: 3px; }
.morph__copy .mini-metric--lead span { font-size: 12px !important; color: #3e3e46; }
@media (max-width: 768px) {
  .morph__copy .mini-metric b { font-size: 18px !important; }
  .morph__copy .mini-metric--lead b { font-size: 32px !important; }
  .morph__copy .mini-metric span { font-size: 10.5px !important; }
}

/* ---------- 3. 减少装饰性小标签、保证可读字号 ---------- */
.intro-profile__foot > span,
.portal-network > span,
.portal-core-sub,
.fff-card__bottom > span:last-child,
.horizontal-footer > span,
.site-footnote-en { display: none !important; }
.intro-profile__foot { justify-content: flex-end !important; }
.card-kicker { font-size: 11px !important; letter-spacing: .12em !important; }
.card-kicker > span:first-child { color: #8a6a6a; }

@media (min-width: 769px) {
  .intro-card-copy, .intro-profile__desc { font-size: 13px !important; line-height: 1.8 !important; }
  .morph__copy .glass-card__title { font-size: 20px !important; }
  .intro-detail-link { font-size: 12px !important; }
  .morph__copy .hero-current-strip strong { font-size: 13px !important; }
  .morph__copy .hero-current-strip span { font-size: 12px !important; line-height: 1.6; }
  .intro-preview__caption { font-size: 11px !important; }
  .section-desc { font-size: 14px !important; line-height: 1.85; color: #4f4f58; }
  .capability-portal .portal-desc { font-size: 13px !important; line-height: 1.85; }
  .capability-portal .portal-lead { font-size: 15px; }
  .portal-tags { font-size: 12px !important; }
  .tool-tag { font-size: 12px !important; }
  .tool-box h4 { font-size: 15px !important; }
  .fff-card__summary { font-size: 13px !important; line-height: 1.75; }
  .fff-card__stat span, .fff-card__role small, .fff-card__period { font-size: 12px !important; }
  .fff-card__bottom { font-size: 11px !important; }
  .fff-pill { font-size: 12px !important; }
  .p-slide__index { font-size: 11px !important; }
  .p-slide__tag { font-size: 11px !important; }
  .p-slide__desc { font-size: 13px !important; line-height: 1.85 !important; }
  .p-slide__context p { font-size: 12px !important; line-height: 1.8; }
  .p-slide__context strong { font-size: 13px !important; }
  .p-slide__source { font-size: 11px !important; }
  .p-slide__source span { display: none; }
  .parallax-bottom-bar { font-size: 12px !important; }
  .parallax-nav-btns button { font-size: 12px !important; padding: 7px 13px !important; }
  .horizontal-workspace .filter-btn { font-size: 12px !important; padding: 7px 13px !important; }
  .horizontal-workspace .catalog-search { font-size: 13px !important; }
  .horizontal-workspace #catalog-result-count { font-size: 12px !important; }
  .horizontal-workspace__header > p { font-size: 13px !important; }
  .horizontal-workspace .work-card__meta { font-size: 11px !important; }
  .horizontal-workspace .work-card__btn, .horizontal-workspace .work-card__ext { font-size: 12px !important; }
  .footer__grid li, .footer__grid p { font-size: 14px; }
}

/* ---------- 4. 作品两层 ---------- */
.portfolio-mode-switch .mode-count {
  font-family: var(--type-mono); font-size: .82em; opacity: .55; margin-left: 4px;
}
.see-all-btn {
  background: #0e0e10 !important; color: #fff !important; border-color: #0e0e10 !important;
}
.see-all-btn:hover { background: #5b1a1a !important; }
@media (max-width: 768px) {
  .parallax-nav-btns { gap: 6px; }
  .see-all-btn { padding: 7px 10px !important; }
  #parallax-status-text { font-size: 11px; }
}

/* ---------- 5. 联系：二维码 + 简历 ---------- */
.contact-wechat {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 22px; padding: 16px; border: 1px solid #e6e6ea; border-radius: 16px; background: #fafafa;
}
.contact-wechat img { width: 112px; height: 112px; border-radius: 10px; background: #fff; flex: none; }
.contact-wechat div { display: grid; gap: 4px; }
.contact-wechat strong { font-size: 15px; font-weight: 600; }
.contact-wechat span { font-size: 12px; color: #62626b; }
.footer-link-btn { font: inherit; color: inherit; padding: 0; background: none; border: 0; cursor: pointer; }
@media (max-width: 768px) {
  .contact-wechat img { width: 96px; height: 96px; }
  .contact-actions { display: grid !important; grid-template-columns: 1fr; gap: 8px; }
  .contact-actions .btn { justify-content: center; }
}

/* v17：文字型主数据（团队 AI 领头羊）用较小字号，避免溢出 */
.morph__copy .mini-metric--word b { font-family: var(--type-cn) !important; font-weight: 600; font-size: clamp(20px, 1.7vw, 26px) !important; line-height: 1.3 !important; padding-top: 8px; color: #5b1a1a; }
.hero-proof div:nth-child(2) dt { font-family: var(--type-cn); font-weight: 600; font-size: clamp(26px, 2.3vw, 34px); }
@media (max-width: 768px) { .morph__copy .mini-metric--word b { font-size: 19px !important; } }

/* v17：外链播放器与"去站酷观看"入口 */
.modal-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0e0e10; border-radius: 14px; overflow: hidden; }
.modal-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-image-wrap { position: relative; }
.modal-watch-link {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px;
  background: #0e0e10e6; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 8px 24px #0000002e; backdrop-filter: blur(8px);
}
.modal-watch-link:hover { background: #5b1a1a; color: #fff; }

/* v17 · 合作品牌带 */
.brand-strip { position: relative; z-index: 2; padding: 34px 0 30px; border-top: 1px solid #ececf0; border-bottom: 1px solid #ececf0; background: #fff; overflow: hidden; }
.brand-strip__label { margin: 0 0 18px; text-align: center; font-size: 12px; letter-spacing: .3em; color: #8a6a6a; }
.brand-strip__viewport { display: flex; width: max-content; animation: brand-marquee 46s linear infinite; }
.brand-strip:hover .brand-strip__viewport { animation-play-state: paused; }
.brand-strip__track { display: flex; gap: 56px; margin: 0; padding: 0 28px; list-style: none; }
.brand-strip__track li { font-family: var(--type-cn); font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; color: #2b2b31; white-space: nowrap; opacity: .82; }
.brand-strip__track li::after { content: "·"; margin-left: 56px; color: #c9b5b5; }
.brand-strip::before, .brand-strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 1; pointer-events: none; }
.brand-strip::before { left: 0; background: linear-gradient(90deg, #fff, #fff0); }
.brand-strip::after { right: 0; background: linear-gradient(-90deg, #fff, #fff0); }
@keyframes brand-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .brand-strip__viewport { animation: none; width: auto; flex-wrap: wrap; justify-content: center; } .brand-strip__track[aria-hidden] { display: none; } .brand-strip__track { flex-wrap: wrap; justify-content: center; row-gap: 12px; } }
@media (max-width: 768px) { .brand-strip { padding: 24px 0 22px; } .brand-strip__track { gap: 34px; } .brand-strip__track li::after { margin-left: 34px; } .brand-strip__track li { font-size: 17px; } }

/* v17 · 回到顶部 */
.back-to-top {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 70;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: #0e0e10e6; color: #fff; font-size: 18px; box-shadow: 0 8px 24px #0000002b;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s;
}
.back-to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: #5b1a1a; color: #fff; }
#portfolio:not([data-view=strip]) ~ .back-to-top { }

/* v18：文字型数据（上百个 / 联合智能体 BOT）避免撑破格子 */
.hero-proof div:nth-child(3) dt { font-family: var(--type-cn); font-weight: 600; font-size: clamp(26px, 2.3vw, 34px); }
.hero-proof div:nth-child(3) dd { max-width: 13em; margin-left: auto; line-height: 1.6; }
