/* ==========================================================================
   layout.css —— 各页面区块的结构布局（尺寸/排列），三套主题共用
   颜色、字体、边框、阴影等视觉表现由各主题的 theme.css 定义并可随意覆盖
   ========================================================================== */

.center { text-align: center; }
.center .btn { margin-top: 26px; }
.narrow { max-width: 820px; }
.kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.lead { font-size: clamp(15px, 1.5vw, 18px); }
.empty { padding: 60px 0; text-align: center; opacity: .6; }

/* ------------------------------------------------------------------ 首屏 */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-in { position: relative; display: flex; align-items: center; min-height: clamp(460px, 76vh, 760px); padding-top: 40px; padding-bottom: 40px; }
.hero-txt { max-width: 720px; }
.hero-txt h1 { font-size: clamp(30px, 5vw, 60px); margin-bottom: 20px; }
.hero-txt .lead { max-width: 34em; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; font-size: 13.5px; }
.hero-badges li { display: flex; align-items: center; gap: 7px; }

/* ------------------------------------------------------------- 亮点四宫格 */
.hl i { display: inline-flex; margin-bottom: 16px; }
.hl h3 { font-size: 17px; margin-bottom: 8px; }
.hl p { font-size: 14px; opacity: .75; margin: 0; }

/* ----------------------------------------------------------- 分类 / 产品 */
.cat-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip { padding: 9px 20px; font-size: 14px; white-space: nowrap; transition: all .25s var(--ease); }
.p-grid { margin-top: 30px; }
.p-cat { font-size: 12px; letter-spacing: .1em; margin-bottom: 8px; opacity: .7; }
.p-toolbar { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.p-search { display: flex; gap: 8px; }
.p-search input { padding: 9px 14px; border: 1px solid var(--line); background: transparent; color: inherit; min-width: 220px; }
.cat-desc { margin-top: 22px; opacity: .7; max-width: 60em; }

/* ------------------------------------------------------------- 关于板块 */
.ab-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.ab-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.ab-txt h2 { font-size: clamp(22px, 2.8vw, 34px); }
.ab-txt p { opacity: .8; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 26px; margin-top: 36px; }
.stat b { font-size: clamp(26px, 3.4vw, 40px); line-height: 1; }
.stat i { font-style: normal; font-size: 14px; margin-left: 2px; }
.stat span { display: block; font-size: 13px; opacity: .65; margin-top: 6px; }
.stat.big { text-align: center; }
.stat.big b { font-size: clamp(30px, 4.4vw, 52px); }

/* ------------------------------------------------------------- 优势 / 应用 */
.adv { display: flex; gap: 18px; padding: 26px; }
.adv b { font-size: 26px; line-height: 1; opacity: .35; }
.adv h3 { font-size: 17px; margin-bottom: 6px; }
.adv p { font-size: 14px; opacity: .75; margin: 0; }
.app-card { display: block; overflow: hidden; }
.app-txt { padding: 18px 4px 0; }
.app-txt h3 { font-size: 16px; margin-bottom: 4px; }
.app-txt p { font-size: 13.5px; opacity: .7; margin: 0; }

/* ---------------------------------------------------------------- 流程 */
.proc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.proc-i b { font-size: 13px; letter-spacing: .16em; display: block; margin-bottom: 12px; }
.proc-i h3 { font-size: 16px; margin-bottom: 6px; }
.proc-i p { font-size: 13.5px; opacity: .7; margin: 0; }

/* ---------------------------------------------------------------- 新闻 */
.n-card { display: block; overflow: hidden; }
.n-body { padding: 18px 4px 0; }
.n-meta { font-size: 12.5px; opacity: .6; margin-bottom: 8px; letter-spacing: .04em; }
.n-card h3 { font-size: 17px; margin-bottom: 8px; }
.n-card p { font-size: 13.5px; opacity: .72; margin: 0; }

/* ------------------------------------------------------------- CTA 横幅 */
.cta-band { padding: clamp(40px, 6vw, 76px) 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-in h2 { font-size: clamp(21px, 2.6vw, 32px); margin-bottom: 8px; }
.cta-in p { margin: 0; opacity: .8; }

/* ------------------------------------------------------------- 产品详情 */
.pd-info h1 { font-size: clamp(23px, 3vw, 34px); margin-bottom: 10px; }
.pd-model { font-size: 14px; opacity: .75; margin-bottom: 16px; }
.pd-sum { opacity: .8; }
.pd-tags { margin: 14px 0 20px; }
.pd-keyspec { margin-bottom: 26px; }
.pd-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-3dnote { font-size: 12.5px; opacity: .6; margin-top: 12px; }
.pd-tabs { margin-top: clamp(40px, 6vw, 76px); }
.feat-grid { margin-top: 30px; }
.feat h3 { font-size: 16px; margin-bottom: 6px; }
.feat p { font-size: 14px; opacity: .75; margin: 0; }
.app-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.app-list li { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 14.5px; }
.doc-list li { padding: 13px 0; font-size: 14.5px; }
.doc-list a:hover { text-decoration: underline; }
.pd-rel { margin-top: clamp(46px, 7vw, 86px); }
.pd-rel h2 { font-size: clamp(20px, 2.4vw, 28px); }

/* ------------------------------------------------------------- 关于页面 */
.mv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; margin-bottom: 50px; }
.mv-i h3 { font-size: clamp(19px, 2.2vw, 26px); margin: 0; }
.vals .val { padding: 26px; }
.vals h3 { font-size: 17px; }
.vals p { font-size: 14px; opacity: .75; margin: 0; }
.timeline { display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 24px 0; }
.timeline b { font-size: 20px; }
.timeline h3 { font-size: 16px; margin-bottom: 4px; }
.timeline p { font-size: 14px; opacity: .72; margin: 0; }
.gal figure, .honors figure { margin: 0; }
.gal figcaption, .honors figcaption { font-size: 13.5px; opacity: .7; padding-top: 12px; }
.honors img { object-fit: contain; }

/* ------------------------------------------------------------- 联系我们 */
.c-cards { margin: 40px 0 clamp(40px, 6vw, 70px); }
.c-card { padding: 26px; }
.c-card i { display: inline-flex; margin-bottom: 12px; }
.c-card h3 { font-size: 14px; letter-spacing: .08em; margin-bottom: 8px; }
.c-card a, .c-card span { font-size: 14.5px; opacity: .8; word-break: break-all; }
.c-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.c-form h2 { font-size: clamp(20px, 2.4vw, 28px); }
.c-form .note { font-size: 13px; opacity: .65; margin-bottom: 22px; }
.c-side h2 { font-size: 18px; }
.dept li { padding: 16px 0; display: grid; gap: 3px; font-size: 14px; }
.dept b { font-size: 14px; }
.dept span { opacity: .7; }
.qr { margin-top: 24px; text-align: center; }
.qr img { width: 160px; margin: 0 auto 10px; }
.qr span { font-size: 13px; opacity: .65; }
.c-map { margin-top: clamp(40px, 6vw, 70px); }
.c-map iframe { width: 100%; height: 460px; border: 0; display: block; }

/* ------------------------------------------------------------- 文章页面 */
.article h1 { font-size: clamp(24px, 3.4vw, 40px); margin: 10px 0 12px; }
.art-cover { margin: 26px 0 34px; }
.art-more { margin-top: 60px; }
.art-more h2 { font-size: 20px; margin-bottom: 22px; }

@media (max-width: 1024px) {
  .proc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-in, .mv, .c-main { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* --- 首屏：由内容决定高度，避免大片空白 --- */
  body .hero-in { min-height: auto; padding-top: 44px; padding-bottom: 52px; }
  .hero-txt h1 { font-size: clamp(27px, 7.4vw, 34px); margin-bottom: 16px; }
  .hero-txt .lead { font-size: 15px; margin-bottom: 24px; }
  .hero-btns { gap: 10px; }
  body .hero-badges { margin-top: 26px; gap: 10px 14px; font-size: 12.5px; }
  body .hero-badges li { flex: 0 0 calc(50% - 7px); }
  .kicker { font-size: 11px; letter-spacing: .16em; margin-bottom: 10px; }

  /* --- 分类条：横滑，不再堆成三四行 --- */
  body .cat-strip {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    scroll-snap-type: x proximity; padding-bottom: 4px; margin-inline: -20px;
    padding-inline: 20px;
  }
  body .cat-strip::-webkit-scrollbar { height: 0; }
  .cat-chip { flex: 0 0 auto; scroll-snap-align: start; }

  .p-grid { margin-top: 22px; }
  .p-toolbar { align-items: stretch; gap: 12px; }
  .p-search { width: 100%; }
  .p-search input { flex: 1; min-width: 0; font-size: 16px; }

  /* --- 数据 / 流程 / 时间轴 --- */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
  .stat.big b { font-size: 30px; }
  .proc { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .timeline li { grid-template-columns: 66px 1fr; gap: 14px; padding: 18px 0; }
  .timeline b { font-size: 17px; }
  .adv { padding: 20px; gap: 14px; }
  .app-list { grid-template-columns: minmax(0, 1fr); }

  /* --- 产品详情 --- */
  .pd { gap: 26px; }
  .pd-info h1 { font-size: 23px; }
  .pd-btns { gap: 10px; }
  .pd-rel { margin-top: 40px; }

  /* --- 联系我们 --- */
  .c-cards { margin: 26px 0 34px; }
  .c-card { padding: 20px; }
  .c-main { gap: 26px; }
  .c-map iframe { height: 300px; }
  .qr img { width: 140px; }

  /* --- 文章 --- */
  .article h1 { font-size: 24px; }
  .art-cover { margin: 18px 0 24px; }
  .art-more { margin-top: 40px; }

  /* --- 页脚 --- */
  .ftr-top { gap: 28px; padding-bottom: 28px; }
  .ftr-bot { flex-direction: column; gap: 8px; align-items: flex-start; }
}
