/* ============================================================
   熊猫Ultra 产品详情页 — 高保真样式
   基准：本站 html 根字号由 media.css 按视口分段（1920→16px，
   1400–1600→15px，640–1399→14px）。所有 rem 按 16px 基准标定，
   1920 视口下 final_px = rem × 16，与设计稿 1:1。
   ============================================================ */

section[class^="panda-"] {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #222;
  -webkit-font-smoothing: antialiased;
}
section[class^="panda-"], section[class^="panda-"] * { box-sizing: border-box; }
section[class^="panda-"] img { display: block; max-width: 100%; }
:where(section[class^="panda-"]) :where(p, h2, h3) { margin: 0; }

.panda-container { width: 1400px; margin: 0 auto; padding: 0 2rem; max-width: 100%; }

/* ---------- 分区标题：设计稿 45–46px → 2.85rem ---------- */
.panda-h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #222;
  text-align: center;
}
.panda-h2-white { color: #fff; }

/* ============ HERO ============ */
.panda-hero { position: relative; height: 46.875rem; background: #0a1622; overflow: hidden; }
.panda-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.panda-hero-inner { position: absolute; left: 36%; top: 46%; transform: translate(-50%, -50%); text-align: center; z-index: 1; }
.panda-hero-text { max-width: 100%; }
.panda-hero-title {
  font-size: 3.5rem; font-weight: 800; line-height: 1.25; color: #171c24;
  white-space: nowrap;
}
.panda-hero-sub {
  font-size: 3.25rem; font-weight: 700; line-height: 1.3; color: #171c24;
  white-space: nowrap; margin-top: 3rem;
}
.panda-hero-pill {
  display: inline-block; margin-top: 3.2rem;
  font-size: 1.875rem; font-weight: 500; line-height: 1.3; letter-spacing: .05em;
  color: #fff; padding: .5em 2.6em; border-radius: 3em;
  background: #30d6f6;
}

/* ============ 功能条（青带） ============ */
.panda-funcs { background: #00d2fc; padding: 1.55rem 0; }
.panda-func-grid { display: flex; justify-content: center; gap: 7.1rem; }
.panda-func { text-align: center; }
.panda-func img { width: 5.44rem; height: auto; margin: 0 auto; }
.panda-func span {
  display: block; margin-top: .9rem;
  font-size: 1.5rem; font-weight: 600; letter-spacing: .05em; color: #fff;
}

/* ============ 行走的品牌代言人（照片铺底 + 顶部白色渐变蒙层） ============ */
.panda-brand { position: relative; height: 43.6rem; overflow: hidden; }
.panda-brand .panda-container { position: relative; z-index: 2; padding-top: 5.8rem; }
.panda-brand-desc {
  max-width: 55.1rem; margin: 2.3rem auto 0;
  font-size: 1.875rem; line-height: 1.2; color: #333; text-align: center;
}
.panda-brand-scene { position: absolute; inset: 0; margin: 0; }
.panda-brand-scene::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .9) 30%, rgba(255, 255, 255, 0) 58%);
}
.panda-brand-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
}

/* ============ 智能语音交互 ============ */
.panda-voice { position: relative; height: 41.8rem; padding: 0; background: #f4f4f4; overflow: hidden; display: flex; align-items: center; }
.panda-voice-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 78%; }
.panda-voice-photo { position: absolute; inset: 0; margin: 0; }
/* HTML 文字层仅小屏使用（桌面端文案已烘培进 scene-voice.jpg，显示会重影） */
.panda-voice-text { display: none; }

/* ============ 搭配多种特色工作模式 ============ */
.panda-modes { background: #e7fbff; padding: 5.5rem 0 6rem; }
.panda-mode-grid { display: flex; justify-content: center; gap: 11.9rem; margin-top: 5rem; }
.panda-mode { width: 8.8rem; text-align: center; }
.panda-mode img { width: 8.8rem; height: auto; margin: 0 auto; }
.panda-mode span {
  display: block; margin-top: 3.75rem;
  font-size: 1.6rem; font-weight: 600; letter-spacing: .05em; color: #222;
}

/* ============ 精准导航定位 ============ */
.panda-nav { position: relative; min-height: 53rem; overflow: hidden; background: #0d2b3a; }
.panda-nav-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.panda-nav-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 210, 252, .95) 0%, rgba(0, 210, 252, .55) 26%, rgba(127, 233, 252, .18) 55%, rgba(0, 210, 252, .38) 100%);
}
.panda-nav-inner { position: relative; text-align: center; padding-top: 5.2rem; }
.panda-nav-desc {
  margin: 2.6rem auto 0; max-width: 64rem;
  font-size: 1.875rem; line-height: 1.6; font-weight: 500; color: #fff;
}

/* ============ 多模态交互升级 ============ */
.panda-cards { background: #e7fbff; padding: 5.75rem 0 7rem; }
.panda-cards .panda-container { width: 100%; max-width: 1600px; padding: 0; }
.panda-cards .panda-h2 { font-size: 2.5rem; }
.panda-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.4rem; margin-top: 5rem; }
.panda-card { overflow: hidden; }
.panda-card > img { width: 100%; height: 24.9rem; object-fit: cover; object-position: center 35%; }
.panda-card-body { padding: 2rem 0 0; text-align: center; }
.panda-card-body b { display: block; font-size: 1.5rem; font-weight: 700; color: #222; }
.panda-card-body p { margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.75; color: #555; }

/* ============ 配送体验全新升级 ============ */
.panda-delivery { padding: 6.4rem 0 8.4rem; }
.panda-delivery .panda-container { width: 100%; max-width: 1600px; padding: 0 2rem; }
.panda-delivery-imgwrap { margin-top: 5rem; }
.panda-delivery-imgwrap > img {
  width: 100%; height: 56.25rem; object-fit: cover; object-position: center 18%;
  border-radius: 1.2rem;
}
.panda-delivery-h {
  margin-top: 2rem;
  font-size: 2rem; font-weight: 700; line-height: 1.3; color: #222; text-align: left;
}
.panda-delivery-desc { margin-top: 1.5rem; font-size: 1.6rem; line-height: 1.6; color: #444; }
.panda-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; margin-top: 3rem; }
.panda-dual-col { min-width: 0; }
.panda-dual-col > img { width: 100%; height: 27.9rem; object-fit: cover; border-radius: 1.2rem; }
.panda-dual-col b { display: block; margin-top: 2.4rem; font-size: 1.875rem; font-weight: 700; color: #222; }
.panda-dual-col p { margin-top: 1.6rem; font-size: 1.6rem; line-height: 1.6; color: #555; }

/* ============ 产品参数 ============ */
.panda-params { position: relative; background: #e7fbff; padding: 5.25rem 0 6.5rem; overflow: hidden; }
.panda-params .panda-container { width: 100%; max-width: 1600px; padding: 0; }
.panda-params-robot { position: absolute; left: 22rem; top: 14.8rem; width: 12.9rem; height: auto; pointer-events: none; }
.panda-params-main { position: relative; margin-left: 42.6rem; }
.panda-params-title { font-size: 2.5rem; font-weight: 700; line-height: 1.25; color: #222; text-align: left; }
.panda-params-rule { display: block; width: 34.4rem; height: 1px; background: #969696; margin-top: 2.4rem; }
.panda-params-grid {
  display: grid; grid-template-columns: repeat(2, max-content);
  column-gap: 8.25rem; row-gap: 3.2rem; margin-top: 10rem;
}
.panda-param-label { display: block; font-size: 1rem; letter-spacing: .2em; color: #999; }
.panda-param-value { display: block; margin-top: .5rem; font-size: 1.4rem; font-weight: 700; color: #2b3a4a; }

/* ============ 应用场景 ============ */
.panda-app { padding: 5.6rem 0 5.9rem; }
.panda-app .panda-container { width: 100%; max-width: 1600px; padding: 0; }
.panda-app-grid { display: flex; gap: 1.6rem; margin-top: 4.7rem; }
.panda-app-grid > img { flex: 1 1 0; width: 32%; aspect-ratio: 516 / 359; object-fit: cover; border-radius: .9rem; }

/* ============ 动效（与 panda.js 契约一致） ============ */
.panda-hero-title .ch { display: inline-block; opacity: 0; transform: translateY(.6em); }
.panda-anim .panda-hero-title .ch {
  animation: pandaUp .8s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes pandaUp {
  from { opacity: 0; transform: translateY(.6em); }
  to   { opacity: 1; transform: translateY(0); }
}
.panda-fade { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.panda-fade.inview { opacity: 1; transform: none; }
.panda-func[data-stagger-group] .panda-fade,
.panda-mode[data-stagger-group] .panda-fade,
.panda-card[data-stagger-group] .panda-fade,
.panda-dual-col[data-stagger-group] .panda-fade,
.panda-param[data-stagger-group] .panda-fade,
.panda-app-grid > img[data-stagger-group] .panda-fade { transition-delay: calc(var(--stagger-i, 0) * 90ms); }

/* ============ 响应式（rem 同基准；小屏根字号 14–15px 由 media.css 控制） ============ */
@media (max-width: 1400px) {
  .panda-h2 { font-size: 2.35rem; }
  .panda-cards .panda-h2 { font-size: 2.1rem; }
  .panda-hero-title, .panda-hero-sub { font-size: 3.1rem; }
  .panda-hero-pill { font-size: 2.05rem; }
  .panda-voice-desc { font-size: 1.5rem; }
  .panda-nav-desc { font-size: 1.6rem; }
  .panda-brand-desc { font-size: 1.55rem; }
  .panda-mode span, .panda-func span { font-size: 1.5rem; }
  .panda-mode, .panda-mode img { width: 8.4rem; }
  .panda-func img { width: 4.7rem; }
  .panda-card-body b { font-size: 1.3rem; }
  .panda-card-body p { font-size: 1.2rem; }
  .panda-delivery-h { font-size: 2.25rem; }
  .panda-delivery-desc, .panda-dual-col p { font-size: 1.5rem; }
  .panda-dual-col b { font-size: 1.6rem; }
  .panda-param-label { font-size: .95rem; }
  .panda-param-value { font-size: 1.45rem; }
  .panda-params-robot { width: 10rem; }
}

@media (max-width: 1200px) {
  .panda-hero-title, .panda-hero-sub { font-size: 2.5rem; }
  .panda-hero-pill { font-size: 1.7rem; }
  .panda-func-grid { gap: 3.2rem; }
  .panda-card-grid { gap: 1.6rem; }
  .panda-card-body { padding: 1.6rem 1.2rem 1.9rem; }
  /* 参数区改为上下堆叠（侧排版在 ≤1400 可用宽度不足会溢出） */
  .panda-params-main { margin-left: 0; }
  .panda-params-robot { position: static; display: block; margin: 0 auto 2.4rem; width: 9rem; }
  .panda-params-title { text-align: center; }
  .panda-params-rule { margin-left: auto; margin-right: auto; }
  .panda-params-grid { justify-content: center; margin-top: 3rem; column-gap: 3.5rem; }
}

@media (max-width: 992px) {
  .panda-hero-title, .panda-hero-sub { font-size: 2.05rem; }
  .panda-hero-pill { font-size: 1.4rem; }
  .panda-hero-inner { top: 44%; }
  .panda-hero-sub { margin-top: 1.7rem; }
  .panda-hero-pill { margin-top: 1.6rem; }
  .panda-h2 { font-size: 2.05rem; }
  .panda-cards .panda-h2 { font-size: 1.85rem; }
  .panda-voice { padding: 4.5rem 0 5rem; }
  .panda-modes { padding: 3.8rem 0 4.5rem; }
  .panda-mode-grid { margin-top: 3.1rem; }
  .panda-mode, .panda-mode img { width: 7rem; }
  .panda-mode span { margin-top: 2.5rem; font-size: 1.3rem; letter-spacing: .05em; }
  .panda-func img { width: 3.8rem; }
  .panda-func span { font-size: 1.2rem; }
  .panda-func-grid { gap: 2rem; }
  .panda-nav { min-height: 40rem; }
  .panda-nav-desc { font-size: 1.35rem; margin-top: 1.7rem; }
  .panda-cards { padding: 4rem 0 5rem; }
  .panda-card-grid { margin-top: 3.1rem; }
  .panda-card > img { height: 17rem; }
  .panda-card-body b { font-size: 1.2rem; }
  .panda-card-body p { font-size: 1.1rem; margin-top: 1.3rem; }
  .panda-delivery { padding: 4rem 0 5rem; }
  .panda-delivery .panda-container { padding: 0 1.6rem; }
  .panda-delivery-imgwrap > img { height: 36rem; }
  .panda-delivery-h { font-size: 1.75rem; margin-top: 2.8rem; }
  .panda-delivery-desc { font-size: 1.3rem; margin-top: 1.3rem; }
  .panda-dual { margin-top: 3.5rem; gap: 1.6rem; }
  .panda-dual-col > img { height: 19rem; }
  .panda-dual-col b { margin-top: 1.6rem; font-size: 1.4rem; }
  .panda-dual-col p { margin-top: .9rem; font-size: 1.3rem; }
  .panda-params { padding: 4.5rem 0 5.5rem; }
  .panda-params .panda-container { padding: 0 1.6rem; }
  .panda-params-grid { margin-top: 2.8rem; row-gap: 2.4rem; }
  .panda-param-value { font-size: 1.25rem; }
  .panda-params-robot { width: 7.5rem; }
  .panda-app { padding: 3.2rem 0; }
  .panda-app-grid { margin-top: 2.8rem; }
  .panda-brand { height: 32rem; }
  .panda-brand .panda-container { padding-top: 3.8rem; }
  .panda-brand-desc { margin-top: 1.6rem; font-size: 1.3rem; }
  .panda-brand-scene { margin-top: 0; }
  .panda-brand-img { height: 100%; }
}

@media (max-width: 768px) {
  .panda-container { padding: 0 1.2rem; }
  /* Hero：白底文字块 + 下方横幅（cover 放大裁剪，机器人 x63-80% 必须完整入镜） */
  .panda-hero { height: auto; min-height: 0; background: #fff; }
  .panda-hero::after { display: none; }
  .panda-hero-inner { position: relative; left: auto; top: auto; transform: none; width: 100%; z-index: 1; padding: 2.4rem 1.2rem 2rem; }
  .panda-hero-text { position: relative; }
  .panda-hero-img { position: relative; width: 100%; height: 27rem; object-fit: cover; object-position: 84% 50%; }
  .panda-hero-title, .panda-hero-sub { font-size: 2.05rem; }
  .panda-hero-sub { margin-top: 1.4rem; }
  .panda-hero-pill { font-size: 1.5rem; margin-top: 1.6rem; }
  .panda-func-grid { flex-wrap: wrap; gap: 1.8rem 2.6rem; padding: 0 1rem; }
  .panda-func { flex: 0 0 auto; }
  .panda-func img { width: 3.4rem; }
  .panda-func span { font-size: 1.1rem; margin-top: .7rem; }
  .panda-h2 { font-size: 2.05rem; }
  .panda-cards .panda-h2 { font-size: 1.8rem; }
  /* 品牌区：白底文字层 + 下方场景图（cover 放大，机器人居中 x45-54%，任意宽度均完整） */
  .panda-brand { height: auto; background: #fff; }
  .panda-brand .panda-container { position: relative; z-index: 2; padding: 2.8rem 1.2rem 2rem; }
  .panda-brand-scene { position: relative; inset: auto; margin: 0; }
  .panda-brand-scene::after { display: none; }
  .panda-brand-img { width: 100%; height: 24rem; object-fit: cover; object-position: 50% 50%; }
  .panda-brand-desc { font-size: 1.35rem; line-height: 1.6; margin-top: 1.4rem; }
  /* 语音区：与品牌区完全同构 —— 白底文字层 + 下方整幅照片 + 同款顶部白渐变（兼盖照片烘培小字） */
  .panda-voice { display: block; height: auto; background: #fff; padding: 0; overflow: hidden; }
  .panda-voice-text {
    display: block; position: relative; z-index: 2;
    width: 100%; max-width: 100%; margin: 0 auto; padding: 2.8rem 1.2rem 2rem;
    text-align: center;
  }
  .panda-voice-desc { margin-top: 1.4rem; font-size: 1.35rem; line-height: 1.6; color: #333; }
  .panda-voice-desc span { display: block; }
  .panda-voice-photo { position: relative; inset: auto; }
  /* 横向定位：机器人(x39-47%)为画面主角居右三分之二处，右侧烘培标题/描述(x58%起)仍裁出画面，无需白渐变 */
  .panda-voice-img { position: relative; inset: auto; width: 100%; height: 26rem; object-fit: cover; object-position: 24% 50%; }
  .panda-modes { padding: 3.4rem 0 4rem; }
  /* 手机端固定 2×2，避免 3+1 孤行 */
  .panda-mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.8rem 1.6rem; margin: 2.6rem auto 0; max-width: 32rem; padding: 0 1.2rem; }
  .panda-mode { width: auto; }
  .panda-mode img { width: 6.2rem; margin: 0 auto; }
  .panda-mode span { margin-top: 1.8rem; font-size: 1.3rem; letter-spacing: .05em; }
  /* 导航区：cover 放大场景图（机器人 x52-63% 完整入镜） + 下方青色底文字块 */
  .panda-nav { min-height: 0; background: linear-gradient(180deg, #00d2fc 0%, #7fe9fc 100%); }
  .panda-nav-bg { position: relative; inset: auto; width: 100%; height: 22rem; object-fit: cover; object-position: 60% 50%; }
  /* mask 复用为顶部窄色带：盖住照片顶部烘培的“餐厅稳定性强”小字（与下方青底文字重复），18% 高度渐隐融入场景 */
  .panda-nav-mask {
    display: block; position: absolute; left: 0; right: 0; top: 0; height: 6rem;
    background: linear-gradient(180deg, rgba(0, 190, 238, .96) 0%, rgba(0, 195, 240, .75) 45%, rgba(0, 200, 242, 0) 100%);
  }
  .panda-nav-inner { position: relative; padding: 2.6rem 1.2rem 3rem; }
  .panda-nav-desc { font-size: 1.45rem; margin-top: 1.4rem; }
  .panda-cards { padding: 3.4rem 0 4.2rem; }
  .panda-card-grid { grid-template-columns: 1fr; gap: 1.8rem; margin-top: 2.4rem; }
  .panda-card { flex: 0 0 auto; }
  /* 特写图主体撑满全图，放大必切主体 —— 小屏恢复完整展示不裁剪 */
  .panda-card > img { width: 100%; height: auto; }
  .panda-card-body { padding: 1.8rem 1.4rem 2rem; }
  .panda-card-body b { font-size: 1.5rem; }
  .panda-card-body p { font-size: 1.3rem; margin-top: 1rem; }
  .panda-delivery { padding: 3.4rem 0 4.2rem; }
  .panda-delivery .panda-container { padding: 0 1.2rem; }
  .panda-delivery-imgwrap > img { width: 100%; height: 24rem; object-fit: cover; object-position: 50% 50%; border-radius: .8rem; }
  .panda-delivery-h { font-size: 1.8rem; margin-top: 2.2rem; text-align: center; }
  .panda-delivery-desc { font-size: 1.4rem; margin-top: 1.1rem; text-align: center; }
  .panda-dual { grid-template-columns: 1fr; margin-top: 3rem; gap: 2.2rem; }
  /* 底盘/餐盘特写同卡片：主体撑满全图，完整展示不裁剪 */
  .panda-dual-col > img { width: 100%; height: auto; }
  .panda-dual-col b { margin-top: 1.4rem; font-size: 1.6rem; text-align: center; }
  .panda-dual-col p { margin-top: .8rem; font-size: 1.35rem; text-align: center; }
  .panda-params { padding: 3.6rem 0 4.5rem; }
  .panda-params .panda-container { padding: 0 1.2rem; }
  .panda-params-title { text-align: center; }
  .panda-params-grid { grid-template-columns: 1fr; margin-top: 2.4rem; row-gap: 2rem; max-width: 100%; }
  .panda-param-label { font-size: 1.05rem; }
  .panda-param-value { font-size: 1.45rem; margin-top: .9rem; }
  .panda-params-robot { position: static; display: block; margin: 2.4rem auto 0; width: 8.5rem; }
  .panda-app { padding: 3rem 0; }
  .panda-app-grid { flex-direction: column; gap: 1.2rem; margin-top: 2.4rem; }
  /* 应用场景：cover 放大，机器人纵向几乎占满全图，逐张微调纵向定位保证完整 */
  .panda-app-grid > img { width: 100%; flex: 0 0 auto; height: 16rem; object-fit: cover; object-position: 50% 60%; }
  .panda-app-grid > img:nth-child(2) { object-position: 50% 50%; }
  .panda-app-grid > img:nth-child(3) { object-position: 50% 75%; }
  .panda-fade { transform: translateY(24px); }
}

@media (max-width: 480px) {
  .panda-hero-title, .panda-hero-sub { font-size: 1.75rem; }
  .panda-hero-pill { font-size: 1.3rem; }
  .panda-h2 { font-size: 1.8rem; }
  .panda-cards .panda-h2 { font-size: 1.6rem; }
  .panda-nav-desc { font-size: 1.3rem; }
  .panda-mode img { width: 5.4rem; }
  .panda-mode span { font-size: 1.15rem; }
  .panda-func img { width: 2.9rem; }
  .panda-func span { font-size: 1rem; }
  .panda-card-body b { font-size: 1.4rem; }
  .panda-card-body p { font-size: 1.25rem; }
  .panda-delivery-h { font-size: 1.6rem; }
  .panda-delivery-desc { font-size: 1.3rem; }
  .panda-dual-col b { font-size: 1.5rem; }
  .panda-dual-col p { font-size: 1.25rem; }
  .panda-brand-desc { font-size: 1.25rem; }
  .panda-param-value { font-size: 1.35rem; }
  .panda-params-robot { width: 7.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .panda-hero-title .ch { opacity: 1 !important; transform: none !important; animation: none !important; }
  .panda-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
}
