/* ==========================================================================
   米奥机器人 MIOROBOT — 二级页面样式
   （产品详情页 / 新闻资讯列表）在 style.css 之后加载
   ========================================================================== */

/* ---------- 页面头部（内页 hero） ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(104px, 13vh, 148px);
  padding-bottom: clamp(36px, 5vw, 64px);
  background:
    radial-gradient(110% 80% at 88% 0%, rgba(126, 217, 207, .28) 0%, transparent 58%),
    radial-gradient(80% 70% at 4% 100%, rgba(122, 63, 208, .10) 0%, transparent 62%),
    linear-gradient(180deg, #fbfdff 0%, #f2f7fd 62%, #ffffff 100%);
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 42, 91, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 42, 91, .045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(80% 70% at 60% 20%, #000 15%, transparent 76%);
  -webkit-mask-image: radial-gradient(80% 70% at 60% 20%, #000 15%, transparent 76%);
  pointer-events: none;
}
.page-hero .shell { position: relative; }

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 18px;
  font-size: 14px; color: var(--ink-300);
}
.crumbs a { color: var(--ink-400); transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--mint-700); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--ink-300); opacity: .7; }
.crumbs [aria-current="page"] { color: var(--ink-700); }

.page-title {
  font-family: var(--font-cn-heavy);
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.16; letter-spacing: -.015em;
  color: var(--ink-900);
}
.page-title em {
  display: block; margin-top: 12px;
  font-family: var(--font-cn); font-style: normal;
  font-size: clamp(14px, 1.5vw, 17px); font-weight: 400;
  color: var(--ink-400); letter-spacing: .01em;
}
.page-lead {
  margin-top: 18px; max-width: 62ch;
  font-size: 15.5px; color: var(--ink-400);
}
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* 两个版本各有一份按钮组，[hidden] 必须压过 display:flex */
.page-hero-actions[hidden] { display: none; }

/* 内页版块锚点（导航跳转用） */
.page-anchor { scroll-margin-top: 84px; }

/* 紧随内页头部的版块收紧上间距，避免出现大片空白
   （用显式类名而非相邻兄弟选择器，避免受注释 / 空白影响） */
.section.is-first { padding-top: clamp(36px, 4.6vw, 62px); }
/* 版本面板里的第一个版块同样收紧上间距 —— hidden 的面板不参与渲染，
   因此这条规则会自动作用于「当前可见」的那个面板。 */
.ver-panel > .section:first-child { padding-top: clamp(36px, 4.6vw, 62px); }

/* ---------- 安装流程（支持与服务页） ---------- */
.support-install {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: start;
  margin-top: clamp(28px, 3.4vw, 46px);
}
/* 竖版视频：限制宽度并居中，避免出现大片黑边 */
.install-video {
  margin: 0 auto; width: 100%; max-width: 360px;
  border-radius: var(--r-lg); overflow: hidden;
  background: #061733; box-shadow: var(--shadow-lg);
}
.install-video video {
  display: block; width: 100%; height: auto;
  aspect-ratio: 9 / 16; object-fit: cover; background: #061733;
}
.install-video figcaption {
  padding: 12px 16px; font-size: 13.5px; color: rgba(255, 255, 255, .72);
  background: #061733;
}

.install-steps { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); counter-reset: step; }
.install-steps li { display: flex; gap: 18px; align-items: flex-start; }
/* 只命中序号徽章（直接子元素），正文里的 <b> 强调不受影响 */
.install-steps li > b {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-en); font-size: 15px; font-weight: 700;
  color: var(--mint-700); background: rgba(126, 217, 207, .16);
  border: 1px solid rgba(78, 194, 182, .3);
}
.install-steps li h3 { font-size: 16.5px; color: var(--ink-900); margin-bottom: 6px; }
.install-steps li p { font-size: 14.5px; line-height: 1.75; color: var(--ink-400); }
.install-steps li p b { display: inline; color: var(--ink-800); font-weight: 700; }

/* ---------- 常见问题（手风琴，用原生 details） ---------- */
.faq-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(26px, 3vw, 42px);
  align-items: start;
}
.faq-col { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 36px); min-width: 0; }
.faq-group h3 {
  font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mint-700); margin-bottom: 6px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 14px 0; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600; line-height: 1.55; color: var(--ink-800);
  transition: color .28s var(--ease);
}
.faq-item summary::-webkit-details-marker,
.faq-item summary::marker { display: none; }
.faq-item summary:hover { color: var(--mint-700); }
.faq-item summary::after {
  content: "+"; flex: none; font-family: var(--font-en);
  font-size: 19px; line-height: 1; color: var(--mint-600);
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--mint-700); }
.faq-answer { padding: 0 0 16px; }
.faq-answer p { font-size: 14.5px; line-height: 1.78; color: var(--ink-400); }
.faq-answer p b { color: var(--mint-700); }

/* ---------- 售后质保卡片 ---------- */
.warranty-sub {
  display: block; font-size: 14px; color: var(--mint-700);
  letter-spacing: .02em; margin-top: -4px;
}
/* 「3 年」「2 年」这类年限不要被折行拆开 */
.case-card p b, .warranty-sub { white-space: nowrap; }
.case-card .warranty-sub + p { margin-top: 6px; }

/* ---------- 企业资质（关于米奥页） ---------- */
.cert-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(26px, 3vw, 40px);
}
.cert-item {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cert-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert-thumb {
  display: block; position: relative;
  aspect-ratio: 3 / 4; overflow: hidden;
  background: linear-gradient(140deg, #f4f8fc, #e8f1fa);
}
.cert-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .5s var(--ease);
}
.cert-item:hover .cert-thumb img { transform: scale(1.03); }
.cert-item figcaption { padding: 0 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.cert-item figcaption b { font-size: 14px; line-height: 1.45; color: var(--ink-900); }
.cert-item figcaption span {
  font-size: 13px; color: var(--mint-700);
  letter-spacing: .02em;
}
/* 横版图（联合创新中心铜牌）跨两列，用 3:2 比例，避免被竖版框裁掉 */
.cert-item.is-wide { grid-column: span 2; }
.cert-item.is-wide .cert-thumb { aspect-ratio: 3 / 2; }
.cert-item.is-wide .cert-thumb img { object-position: center; }

/* ---------- 新闻列表 ---------- */
.news-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: clamp(22px, 3vw, 34px);
}
.news-filters { display: flex; flex-wrap: wrap; gap: 9px; }
.news-filters button {
  padding: 8px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; color: var(--ink-600);
  transition: all .35s var(--ease);
}
.news-filters button:hover { border-color: rgba(11, 42, 91, .24); color: var(--ink-900); }
.news-filters button.is-active {
  background: var(--ink-800); border-color: var(--ink-800); color: #fff; font-weight: 700;
}
.news-count { font-size: 14px; color: var(--ink-300); }

.news-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.news-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 194, 182, .42);
  box-shadow: var(--shadow-md);
}
/* class 上的 display 会覆盖 [hidden] 的默认样式，筛选时需要显式声明 */
.news-card[hidden] { display: none; }
.news-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(140deg, #eef5fc, #dbe9f6);
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-tag {
  position: absolute; left: 14px; top: 14px;
  padding: 5px 13px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; color: #fff;
  background: rgba(11, 42, 91, .82);
  backdrop-filter: blur(6px);
}
.news-body { display: flex; flex-direction: column; flex: 1; padding: clamp(18px, 2vw, 24px); }
.news-body h3 {
  font-size: 17.5px; line-height: 1.45; margin-bottom: 10px;
  transition: color .3s var(--ease);
}
.news-card:hover .news-body h3 { color: var(--mint-700); }
.news-body p {
  font-size: 14px; color: var(--ink-400); line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: auto; padding-top: 18px;
  font-size: 13.5px; color: var(--ink-300);
}
.news-meta .arrow {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink-800); font-weight: 700;
}
.news-meta .arrow svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.news-card:hover .news-meta .arrow svg { transform: translateX(3px); }

/* 置顶 / 大卡 */
.news-card.is-feature { grid-column: span 2; }
.news-card.is-feature .news-thumb { aspect-ratio: 2.1 / 1; }
.news-card.is-feature .news-body h3 { font-size: clamp(19px, 2.2vw, 24px); }

.news-empty {
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px);
  border-radius: var(--r-lg); text-align: center;
  background: var(--bg-soft); border: 1px dashed var(--line);
  color: var(--ink-400);
}
.news-empty b { display: block; font-family: var(--font-head); font-size: 18px; color: var(--ink-900); margin-bottom: 8px; }

/* ---------- 微信公众号入口 ---------- */
.wx-band {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(22px, 3vw, 44px); align-items: center;
  margin-top: clamp(40px, 5vw, 68px);
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(100% 150% at 100% 0%, rgba(126, 217, 207, .24) 0%, transparent 62%),
    linear-gradient(120deg, #f7fbff 0%, #eef5fc 100%);
  border: 1px solid var(--line-soft);
}
.wx-band h3 { font-size: clamp(19px, 2.2vw, 25px); margin-bottom: 10px; }
.wx-band p { font-size: 15px; color: var(--ink-400); max-width: 52ch; }
.wx-band .wx-qr {
  justify-self: center; text-align: center;
  padding: 14px; border-radius: var(--r-md);
  background: #fff; box-shadow: var(--shadow-md);
}
.wx-band .wx-qr img { width: 160px; height: auto; border-radius: var(--r-sm); }
.wx-band .wx-qr span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-400); }

/* ---------- 产品视频 ---------- */
.video-section { background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%); }
.video-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.video-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-el {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  background: #061733;
}
.video-card figcaption {
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px) clamp(20px, 2.4vw, 26px);
}
.video-card figcaption b {
  display: block; font-family: var(--font-head);
  font-size: 17px; color: var(--ink-900);
}
.video-card figcaption span {
  display: block; margin-top: 5px;
  font-size: 13.5px; color: var(--ink-400);
}
.video-note {
  margin-top: clamp(18px, 2.4vw, 28px);
  text-align: center; font-size: 13.5px; color: var(--ink-300);
}

/* ---------- 内页 CTA 条 ---------- */.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(40px, 5vw, 68px) 0;
  background:
    radial-gradient(70% 120% at 88% 0%, rgba(126, 217, 207, .26) 0%, transparent 60%),
    linear-gradient(150deg, #061b3e 0%, #0b2a5b 55%, #10386f 100%);
  color: #fff;
}
.cta-band .shell {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px;
}
.cta-band h2 {
  color: #fff; font-family: var(--font-cn-heavy);
  font-size: clamp(22px, 2.8vw, 34px); line-height: 1.3;
}
.cta-band p { margin-top: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .68); }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* 两个版本各有一条 CTA 条，[hidden] 需要能盖住默认样式 */
.cta-band[hidden] { display: none; }
.cta-band .btn-ghost {
  color: #fff; background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .26);
}
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); }
.cta-band .btn-primary {
  background: linear-gradient(120deg, #7ed9cf 0%, #4ec2b6 60%, #2ea79b 100%);
  color: #04263f;
  box-shadow: 0 18px 36px -20px rgba(78, 194, 182, .8);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card.is-feature { grid-column: span 2; }
  .wx-band { grid-template-columns: 1fr; }
  .wx-band .wx-qr { justify-self: start; }
  .video-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-install { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .page-hero { padding-top: 96px; }
  .cta-band .shell { flex-direction: column; align-items: flex-start; }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 安装流程改为上下排列，视频居中 */
  .support-install { grid-template-columns: 1fr; }
  .install-video { max-width: 320px; }
  .faq-grid { grid-template-columns: 1fr; gap: clamp(20px, 3vw, 30px); }
}

@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card.is-feature { grid-column: span 1; }
  .news-card.is-feature .news-thumb { aspect-ratio: 16 / 9; }
  .page-hero-actions .btn { flex: 1 1 100%; }
  .wx-band .wx-qr img { width: 130px; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert-thumb { aspect-ratio: 4 / 3; }
  .install-steps li { gap: 14px; }
  .install-steps li b { width: 38px; height: 38px; font-size: 13.5px; }
}
