/* ============================================================
   百家纪元（北京）数字科技有限公司 企业官网
   主色 #3462AD，简约大气（百家纪元 企业官网样式）
   ============================================================ */
:root {
  --primary: #3462ad;
  --primary-dark: #284e8c;
  --primary-light: #eaf1fb;
  --ink: #1f2a3a;
  --text: #333;
  --muted: #777;
  --line: #eaeef5;
  --bg-soft: #f6f8fc;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 8px 30px rgba(52, 98, 173, 0.10);
  --shadow-hover: 0 18px 50px rgba(52, 98, 173, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", "PingFang SC", "Microsoft YaHei", "Open Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- 顶部工具条 ---------- */
.top-bar {
  background: var(--primary-dark);
  color: #cfe0f7;
  font-size: 13px;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.top-bar a { color: #cfe0f7; }
.top-bar .tb-right span { margin-left: 18px; }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo .mark {
  width: 40px; height: 40px; border-radius: 8px;
  object-fit: contain;
  background: transparent;
  display: block;
}
.logo .name { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: 1px; }

.main-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a.nav-link {
  display: block; padding: 10px 16px; color: var(--ink); font-weight: 500; font-size: 15px;
  border-radius: 4px; position: relative;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--primary); }
.main-nav a.nav-link.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--primary); border-radius: 2px;
}
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 4px; font-weight: 600;
  cursor: pointer; border: none; font-size: 15px; transition: all .25s; line-height: 1.2;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-light); }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: #fff; color: var(--primary); }
.user-box { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.user-box .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); }

/* 沉浸式头部：导航悬浮于 banner 之上，滚动后转白底（全站新模板通用） */
.top-bar { display: none; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(11,26,58,.55), rgba(11,26,58,0));
  box-shadow: none;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header .logo .mark { filter: brightness(0) invert(1); }
.site-header .logo .name { color: #fff; }
/* 选择器需带 .main-nav a 才能压过基础规则的 .main-nav a.nav-link */
.site-header .main-nav a.nav-link { color: #fff; }
.site-header .main-nav a.nav-link:hover,
.site-header .main-nav a.nav-link.active { color: #cfe0f7; }
.site-header .main-nav a.nav-link.active::after { background: #fff; }
.menu-toggle span { background: #fff; }
body.scrolled .site-header { background: var(--white); box-shadow: 0 2px 18px rgba(0,0,0,.08); }
body.scrolled .site-header .logo .mark { filter: none; }
body.scrolled .site-header .logo .name { color: var(--ink); }
body.scrolled .site-header .main-nav a.nav-link { color: var(--ink); }
body.scrolled .site-header .main-nav a.nav-link:hover,
body.scrolled .site-header .main-nav a.nav-link.active { color: var(--primary); }
body.scrolled .site-header .main-nav a.nav-link.active::after { background: var(--primary); }
body.scrolled .menu-toggle span { background: var(--ink); }
/* 首页 banner 更高，导航相应加高；滚动后回到默认 74px */
body[data-page="home"] .site-header .container { height: 84px; }

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative; color: #fff; min-height: 620px;
  height: clamp(620px, 56.25vw, 780px); /* 视频 16:9 比例，随视口增高 */
  overflow: hidden;
  background: linear-gradient(135deg, #1b3261, #284e8c 55%, #3462ad);
}
.hero .slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; transition: opacity 1s ease; padding: 0;
  background-size: cover; background-position: center;
}
.hero .slide.active { opacity: 1; }
.hero .slide::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(11,26,58,.86), rgba(11,26,58,.48) 65%, rgba(11,26,58,.22)); }
.hero .slide-video { background: #0e1d3a; background-size: cover; background-position: center; }
.hero .slide-video video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* 自动播放被浏览器策略拦截时的手动补播入口 */
.hero .slide-video .hero-play-fallback { display: none; position: absolute; z-index: 4; top: 46%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; padding: 0; border: 1.5px solid rgba(255,255,255,.85); border-radius: 50%; background: rgba(9,24,54,.35); cursor: pointer; }
.hero .slide-video.play-blocked .hero-play-fallback { display: block; }
.hero .slide-video .hero-play-fallback::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); border-left: 13px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
/* vegas 风格：激活首屏缓慢推近（ken-burns） */
@keyframes bjKenburns { 0% { transform: scale(1.08); } 100% { transform: scale(1.22); } }
.hero .slide.active { animation: bjKenburns 7s ease-out forwards; }
/* 视频屏不做推近动画，保持画面完整 */
.hero .slide-video.active { animation: none; }
.hero .slide-inner { will-change: transform; }
.hero .slide-inner { position: relative; z-index: 3; max-width: 760px; padding-top: 84px; }
.hero .eyebrow { letter-spacing: 3px; font-size: 14px; color: #cfe0f7; text-transform: uppercase; }
.hero h1 { font-size: 44px; line-height: 1.25; margin: 16px 0 18px; font-weight: 700; }
.hero p { font-size: 18px; color: #e7eefb; margin-bottom: 30px; max-width: 620px; }
.hero .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; width: 28px; border-radius: 6px; }

/* ---------- 通用区块 ---------- */
.section { padding: 86px 0; }
.section.bg-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .en { color: var(--primary); letter-spacing: 3px; font-size: 13px; text-transform: uppercase; font-weight: 600; }
.section-head h2 { font-size: 34px; color: var(--ink); margin: 10px 0 14px; position: relative; display: inline-block; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--primary); margin: 16px auto 0; border-radius: 3px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- 数据指标 ---------- */
.stats { background: linear-gradient(135deg, #284e8c, #3462ad); color: #fff; }
.stats .row { justify-content: center; gap: 0; }
.stat { flex: 1; min-width: 200px; text-align: center; padding: 30px 10px; color: #fff; text-decoration: none; display: block; transition: background .2s, transform .2s; border-radius: 8px; }
.stat:hover, .stat:focus { background: rgba(255,255,255,.1); text-decoration: none; color: #fff; transform: translateY(-3px); }
.stat:hover .label, .stat:focus .label { color: #fff; }
.stat .num { font-size: 42px; font-weight: 700; }
.stat .label { color: #d6e3f7; letter-spacing: 1px; }
.stat .num { font-variant-numeric: tabular-nums; }

/* ---------- 滚动渐显（reveal） ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero .slide.active { animation: none; }
}

/* ---------- 卡片网格（产品套件/解决方案） ---------- */
.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: all .3s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card .icon {
  width: 56px; height: 56px; border-radius: 12px; background: var(--primary-light);
  color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .icon svg { width: 30px; height: 30px; }
/* 产品套件：4 列布局 + 主题色图标底块（参考 mjera.cn） */
.product-suite .grid { gap: 20px; }
.product-suite .card .icon {
  width: 62px; height: 62px; border-radius: 10px; margin-bottom: 20px;
  background: var(--primary); color: #fff;
}
.product-suite .card .icon svg { width: 32px; height: 32px; }
.product-suite .card .icon img { width: 36px; height: 36px; display: block; object-fit: contain; }
.product-suite .card h3 { font-size: 18px; }
.card h3 { font-size: 20px; color: var(--ink); margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
.card .more { color: var(--primary); font-weight: 600; font-size: 14px; }
.card .more::after { content: " →"; }

/* ---------- 服务矩阵（深色） ---------- */
.matrix { background: var(--ink); color: #fff; }
.matrix .section-head h2 { color: #fff; }
.matrix .section-head .en { color: #7fa3e0; }
.matrix .section-head p { color: #aab6c8; }
.matrix .card { background: #27313f; border-color: #333f4f; }
.matrix .card:hover { box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.matrix .card .icon { background: rgba(52,98,173,.25); color: #9fc0f2; }
.matrix .card .icon img { width: 30px; height: 30px; display: block; }
.matrix .card h3 { color: #fff; }
.matrix .card p { color: #9aa6b6; }

/* ---------- 案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: all .3s; }
.case-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case-item .thumb { height: 150px; background: linear-gradient(135deg, #e9f1fb, #d3e2f7); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; font-size: 18px; }
.case-item .meta { padding: 16px; }
.case-item .meta h4 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.case-item .meta span { color: var(--muted); font-size: 13px; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, #3462ad, #4a78c8); color: #fff; text-align: center; }
.cta h2 { font-size: 32px; margin: 0 0 14px; }
.cta p { font-size: 17px; color: #e7eefb; margin: 0 0 28px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #16202e; color: #aab6c8; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 16px; margin: 0 0 18px; }
.site-footer .f-about p { font-size: 14px; line-height: 1.9; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer ul li a:hover { color: #fff; }
.site-footer .contact-line { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14px; }
/* 通用联系行：页脚之外（联系页信息卡等）同样生效，防止 SVG 无约束放大导致错位 */
.contact-line { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 4px; color: var(--primary); }
.site-footer .contact-line svg { width: 18px; height: 18px; flex: 0 0 18px; color: #5a86d6; margin-top: 3px; }
.footer-bottom { border-top: 1px solid #243043; margin-top: 48px; padding: 20px 0 2px; text-align: center; font-size: 13px; color: #6f7f93; }
.footer-beian { padding: 0 0 20px; text-align: center; font-size: 13px; color: #6f7f93; }
.footer-beian a { color: #6f7f93; }
.footer-beian a:hover { color: #fff; text-decoration: underline; }

/* ---------- 关于页 ---------- */
/* 内页 banner：复用首页建筑图，统一深蓝遮罩；高度收敛，不挤压正文 */
.page-hero {
  position: relative; display: flex; align-items: center;
  min-height: clamp(300px, 28vw, 400px);
  padding: 110px 0 50px;
  overflow: hidden;
  /* 背景图由后台栏目广告位（pid=4~8）通过内联 style 输出，此处仅保留兜底色 */
  background-color: #0e1d3a;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11,26,58,.86), rgba(11,26,58,.48) 65%, rgba(11,26,58,.22)),
              linear-gradient(0deg, rgba(11,26,58,.42), transparent 45%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 38px; margin: 0 0 10px; }
.page-hero p { color: #dbe6f7; font-size: 17px; margin: 0; max-width: 640px; line-height: 1.7; }
.about-copy p { font-size: 16px; color: #4a4a4a; margin-bottom: 18px; }
.about-copy .lead { font-size: 19px; color: var(--ink); font-weight: 500; }
.value-card { text-align: center; padding: 30px 22px; }
.value-card .icon { margin: 0 auto 16px; }
.timeline { border-left: 2px solid var(--line); padding-left: 28px; }
.timeline .item { position: relative; margin-bottom: 28px; }
.timeline .item::before { content: ""; position: absolute; left: -35px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); }

/* ---------- 产品页 ---------- */
.prod-card { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.prod-card .icon { width: 64px; height: 64px; }
.prod-list ul { list-style: none; margin: 14px 0 0; padding: 0; }
.prod-list li { padding: 6px 0 6px 22px; position: relative; color: #555; font-size: 14.5px; }
.prod-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
/* 产品详情页要点：复用列表页 ✓ 视觉，仅作用于产品详情正文 */
.prod-features ul { list-style: none; margin: 14px 0 0; padding: 0; }
.prod-features li { padding: 6px 0 6px 22px; position: relative; color: #555; font-size: 14.5px; }
.prod-features li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ---------- 联系页 / 表单 ---------- */
.contact-wrap { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: 14px; }
.form-group label .req { color: #e05656; }
.form-control {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px;
  font-size: 15px; font-family: inherit; color: var(--text); background: #fff; transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(52,98,173,.12); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-hint.form-ok { color: #1a8f5a; font-weight: 600; font-size: 13px; }
/* 表单提交成功态 */
.form-success { text-align: center; padding: 26px 10px 12px; }
.form-success[hidden] { display: none; }
.fs-check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #e6f7ee; color: #1a8f5a; display: flex; align-items: center; justify-content: center; animation: fsPop .4s ease-out; }
.fs-check svg { width: 34px; height: 34px; }
@keyframes fsPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.form-success h4 { margin: 0 0 10px; font-size: 20px; color: var(--ink); }
.form-success p { margin: 0 0 24px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.form-success .btn { min-width: 140px; }
/* 24h限频：修改模式提示条（首页弹窗 & 联系页共用） */
.edit-notice { display: flex; align-items: flex-start; gap: 9px; background: #eef4ff; border: 1px solid #cfe0ff; color: #2b5ca8; border-radius: 6px; padding: 10px 12px; margin: 0 0 16px; font-size: 13px; line-height: 1.6; }
.edit-notice[hidden] { display: none; }
.edit-notice svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
/* 咨询服务标识：从生态合作卡片带入，只读展示（首页弹窗 & 联系页共用） */
.service-badge { display: flex; align-items: center; gap: 8px; background: #f0f7ff; border: 1px solid #d6e6ff; color: #2b5ca8; border-radius: 6px; padding: 9px 12px; margin: 0 0 16px; font-size: 13px; line-height: 1.5; }
.service-badge[hidden] { display: none; }
.service-badge svg { flex: 0 0 16px; width: 16px; height: 16px; }
.service-badge strong { font-weight: 700; }
.msg-box { padding: 12px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; display: none; }
.msg-box.ok { display: block; background: #eaf6ee; color: #2c7a48; border: 1px solid #bfe6cb; }
.msg-box.err { display: block; background: #fdecec; color: #c0392b; border: 1px solid #f3c4c4; }
.file-list { margin-top: 10px; font-size: 13px; color: var(--muted); }
.file-list a { color: var(--primary); }
.info-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }

/* ---------- 登录页 ---------- */
.auth-wrap { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 38px 34px; }
.auth-card h2 { text-align: center; margin: 0 0 6px; color: var(--ink); }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 26px; }
.auth-tabs { display: flex; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.auth-tabs button { flex: 1; background: none; border: none; padding: 12px; cursor: pointer; font-size: 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; }
.auth-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-card .name-initial { font-size: 13px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: rgba(25,35,50,.95); color: #fff; padding: 12px 22px; border-radius: 6px;
  font-size: 14px; z-index: 9999; opacity: 0; transition: all .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 合作伙伴 Logo 墙 ---------- */
.partner-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 8px; }
.partner-logo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 110px; display: flex; align-items: center; justify-content: center; padding: 18px; transition: all .3s; }
.partner-logo:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-4px); }
.partner-logo img { max-height: 54px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: all .3s; }
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }
.partner-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }

/* ---------- 成功案例轮播墙 ---------- */
.case-marquee { display: flex; overflow: hidden; margin-top: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.case-track { display: flex; gap: 22px; width: max-content; flex: 0 0 auto; padding: 6px 0; animation: caseScroll 55s linear infinite; }
.case-marquee:hover .case-track { animation-play-state: paused; }
.case-card { width: 300px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); flex: none; transition: transform .35s ease; }
.case-card:hover { transform: translateY(-6px); }
.case-card img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .6s ease; }
.case-card:hover img { transform: scale(1.06); }
.case-cap { padding: 12px 14px 14px; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes caseScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- 应用实景展示 ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.showcase-grid.two { max-width: 1000px; margin: 0 auto; }
.showcase-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.showcase-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,40,80,.16); }
.showcase-card .shot { height: 300px; overflow: hidden; background: #f5f8fd; }
.showcase-card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.showcase-card:hover .shot img { transform: scale(1.04); }
.showcase-card .cap { padding: 18px 22px 22px; }
.showcase-card .cap h4 { margin: 0 0 6px; color: var(--ink); font-size: 17px; }
.showcase-card .cap span { color: var(--muted); font-size: 14px; }

/* ---------- 关于页商业模式图 / 公司风采 ---------- */
.model-figure img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid figure { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); position: relative; background: #fff; }
.gallery-grid img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform .6s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { padding: 12px 16px; font-size: 14px; color: var(--ink); }

/* ---------- 产品页配图卡片 ---------- */
.prod-card.media { grid-template-columns: 320px 1fr; gap: 30px; align-items: center; }
.prod-card.media .prod-media { width: 320px; height: 210px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.prod-card.media .prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.prod-card.media .prod-media:hover img { transform: scale(1.05); }
.prod-card.media .icon { width: 56px; height: 56px; margin-bottom: 16px; }

/* ---------- 关于页配图 ---------- */
.about-figure { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.about-figure img { width: 100%; height: 420px; object-fit: cover; }
.about-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.about-split .about-copy p { font-size: 15.5px; }

/* ---------- 资讯中心 / 图片中心 ---------- */
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumb a { color: var(--primary); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--body); font-size: 14px; cursor: pointer; transition: all .25s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty-tip { text-align: center; color: var(--muted); padding: 40px 0; }

/* 资讯列表 */
.news-list { display: grid; gap: 22px; }
.news-item { display: grid; grid-template-columns: 300px 1fr; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: all .3s; }
.news-item:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-4px); }
.news-item .thumb { height: 200px; overflow: hidden; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-item:hover .thumb img { transform: scale(1.05); }
.news-item .info { padding: 22px 26px 22px 0; display: flex; flex-direction: column; }
.news-item .meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.news-item .tag { display: inline-block; background: rgba(52,98,173,.1); color: var(--primary); font-size: 12px; padding: 4px 10px; border-radius: 4px; }
.news-item .date { font-size: 13px; color: var(--muted); }
.news-item h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.45; color: var(--ink); }
.news-item p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .more { color: var(--primary); font-size: 14px; margin-top: auto; }

/* 文章详情 */
.article { max-width: 860px; margin: 0 auto; }
.art-head { text-align: center; margin-bottom: 26px; }
.art-head .tag { display: inline-block; background: rgba(52,98,173,.1); color: var(--primary); font-size: 12px; padding: 4px 12px; border-radius: 4px; margin-bottom: 14px; }
.art-head h1 { font-size: 30px; line-height: 1.4; margin: 0 0 14px; color: var(--ink); }
.art-meta { color: var(--muted); font-size: 13px; }
.art-cover { width: fit-content; max-width: 100%; margin: 0 auto 28px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #f4f7fb; }
.art-cover img { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.art-body p { font-size: 16px; line-height: 1.9; color: var(--body); margin: 0 0 18px; }
.art-body .lead { font-size: 17px; color: var(--ink); font-weight: 500; border-left: 3px solid var(--primary); padding-left: 16px; }
.article-nav { max-width: 860px; margin: 40px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
/* ---------- 分页 ---------- */
.pagination {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.pagination li { display: inline-block; }
.pagination li a {
  display: block;
  min-width: 40px;
  padding: 8px 14px;
  text-align: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .2s ease;
}
.pagination li a:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.pagination li.active a {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}
.pagination li.disabled a {
  color: #c3ccda;
  cursor: default;
  pointer-events: none;
}
.btn-plain { border: 1px solid var(--line); background: #fff; color: var(--body); }
.related { max-width: 1080px; margin: 56px auto 0; }
.rel-title { font-size: 20px; color: var(--ink); margin-bottom: 20px; }
.rel-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: all .3s; }
.rel-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.rel-card .thumb { height: 150px; overflow: hidden; }
.rel-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-card h4 { margin: 14px 16px 8px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.rel-card .date { display: block; padding: 0 16px 16px; font-size: 13px; color: var(--muted); }

/* 图集 */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.photo-grid.small { grid-template-columns: repeat(4, 1fr); }
.photo-item { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #0f1c33; aspect-ratio: 4/3; box-shadow: var(--shadow); transition: transform .3s; }
.photo-item:hover { transform: translateY(-5px); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; }
.photo-item:hover img { transform: scale(1.06); }
.photo-item .pinfo { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 14px; background: linear-gradient(transparent, rgba(11,24,45,.86)); color: #fff; }
.photo-item .pinfo h4 { margin: 0; font-size: 15px; font-weight: 500; }
.photo-item .pinfo .tag { display: inline-block; font-size: 11px; background: rgba(255,255,255,.22); padding: 2px 8px; border-radius: 3px; margin-bottom: 6px; }

/* 图片详情 */
.photo-detail { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.pd-stage { width: fit-content; max-width: 100%; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #0f1c33; }
.pd-stage img { display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.pd-info .tag { display: inline-block; background: rgba(52,98,173,.1); color: var(--primary); font-size: 12px; padding: 4px 12px; border-radius: 4px; margin-bottom: 12px; }
.pd-info h1 { font-size: 26px; margin: 0 0 14px; color: var(--ink); line-height: 1.4; }
.pd-info p { line-height: 1.8; color: var(--body); }
.pd-nav { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.pd-nav a { font-size: 14px; color: var(--primary); }
.pd-nav .btn { color: var(--body); }

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .top-bar .container { font-size: 12px; }
  .main-nav { position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; box-shadow: 0 8px 20px rgba(0,0,0,.1); max-height: 0; overflow: hidden; transition: max-height .3s; z-index: 70; }
  /* 展开后必须给足高度（下拉全开可达 1200px），并允许内部滚动，否则内容被截断 */
  .main-nav.open { max-height: calc(100dvh - 64px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  /* 展开态菜单为白底，nav-link 强制深色，修复顶部未滚动时白底白字 */
  .site-header .main-nav a.nav-link, body.scrolled .site-header .main-nav a.nav-link { color: var(--ink); }
  .site-header .main-nav a.nav-link:hover, body.scrolled .site-header .main-nav a.nav-link:hover { color: var(--primary); }
  /* 关键：列布局下交叉轴是水平方向，必须 stretch 才能让每项通栏、分隔线满宽 */
  .main-nav ul { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .main-nav > ul > li { width: 100%; }
  .main-nav a.nav-link { display: flex; align-items: center; justify-content: center; position: relative; text-align: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
  /* 右侧 chevron：隐藏原 ▾ 字符，用边框画箭头；展开时由向右转为向下并高亮标题 */
  .nav-dropdown > .nav-link .nav-caret { position: absolute; right: 22px; top: 50%; margin: -5px 0 0; width: 9px; height: 9px; font-size: 0; line-height: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s, opacity .2s; opacity: .65; }
  .nav-dropdown.open > .nav-link .nav-caret { transform: rotate(45deg); opacity: 1; }
  .nav-dropdown.open > .nav-link { color: var(--primary) !important; }
  .menu-toggle { display: flex; }
  .site-header .container,
  body.scrolled .site-header .container { height: 64px; }
  .main-nav { top: 64px; }
  .hero .slide-inner { padding-top: 64px; }
  /* 手机端首屏视频全屏铺满（100dvh 避开移动端地址栏伸缩） */
  .hero { min-height: 100dvh; height: 100dvh; }
  body[data-page="home"] .site-header .container { height: 64px; }
  /* 小屏禁用 ken-burns：整屏缩放会把首屏文案推出视口左侧 */
  .hero .slide.active { animation: none; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .grid-4, .grid-3, .grid-2, .case-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat { min-width: 50%; }
  .case-card { width: 210px; }
  .case-card img { height: 145px; }
}
/* 竖屏（手机 + 平板）：16:9 视频按宽度完整显示，虚化海报铺底，文案沉底。
   横屏保持 cover 铺满（横屏比例接近 16:9，裁切极少）。 */
@media (max-width: 991px) and (orientation: portrait) {
  /* 竖屏首屏：视频 contain 完整显示（不裁左右）居中偏上，banner 虚化铺底填满整屏，文案沉底叠加 */
  .hero { min-height: 100dvh; height: 100dvh; }
  .hero .slide { position: absolute; inset: 0; align-items: flex-end; padding-bottom: 92px; }
  .hero-dots { display: none !important; }
  .hero .slide-video { background-image: url('/assets/baijiajy/img/banners/banner-1.png'); }
  /* 虚化海报铺满整屏，填补视频 contain 上下的留白，保证整屏都是 banner 视觉 */
  .hero .slide-video::after { content: ""; position: absolute; inset: -30px; z-index: 0; background: inherit; background-size: cover; background-position: center; filter: blur(26px) brightness(.72); pointer-events: none; }
  /* contain 保留 16:9 完整画面；object-position 28% 把画面提到上部，给沉底文案让位 */
  .hero .slide-video video { background: transparent; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center 28%; }
  /* 按钮定位到 contain 画面中心：画面顶 = (100dvh-56.25vw)*0.28，中心再加半屏画面高 */
  .hero .slide-video .hero-play-fallback { top: calc((100dvh - 56.25vw) * .28 + 28.125vw); }
  /* 顶部压暗保导航可读，中部透出画面，底部加深保文案可读 */
  .hero .slide::before { background: linear-gradient(180deg, rgba(11,26,58,.34) 0%, rgba(11,26,58,.10) 26%, rgba(11,26,58,.55) 60%, rgba(11,26,58,.94) 100%); }
  .hero .slide-inner { padding-top: 0; }
  .hero .slide.active { animation: none; }
}
@media (max-width: 991px) {
  .partner-wall { grid-template-columns: repeat(3, 1fr); }
  .case-card { width: 250px; }
  .case-card img { height: 170px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-card .shot { height: 260px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .prod-card.media { grid-template-columns: 1fr; }
  .prod-card.media .prod-media { width: 100%; height: 220px; }
  .about-split { grid-template-columns: 1fr; gap: 28px; }
  .about-figure img { height: 280px; }
}
@media (max-width: 600px) {
  .partner-wall { grid-template-columns: repeat(2, 1fr); }
}

/* 资讯 / 图集响应式 */
@media (max-width: 991px) {
  .news-item { grid-template-columns: 240px 1fr; gap: 18px; }
  .news-item .thumb { height: 170px; }
  .news-item .info { padding: 18px 20px 18px 0; }
  .news-item h3 { font-size: 17px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .photo-detail { grid-template-columns: 1fr; gap: 24px; }
  .pd-stage img { max-height: 420px; }
  .art-head h1 { font-size: 25px; }
}
@media (max-width: 767px) {
  .news-item { grid-template-columns: 1fr; gap: 0; }
  .news-item .thumb { height: 190px; }
  .news-item .info { padding: 18px 20px 22px; }
  .news-item h3 { font-size: 17px; }
  .photo-grid, .photo-grid.small { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .photo-item .pinfo { padding: 20px 10px 10px; }
  .photo-item .pinfo h4 { font-size: 13px; }
  .art-head h1 { font-size: 22px; }
  .art-body p { font-size: 15px; }
  .article-nav { flex-direction: column; gap: 12px; text-align: center; }
  .pd-info h1 { font-size: 21px; }
  .pd-stage img { max-height: 300px; }
  .related { margin-top: 36px; }
}
@media (max-width: 480px) {
  .filter-bar { gap: 8px; }
  .chip { padding: 6px 13px; font-size: 13px; }
}

/* ============================================================
   首页交互增强（2026-11-20）：导航下拉 / 案例弹窗 / 表单弹窗 / 生态合作
   ============================================================ */
/* 顶部导航下拉：对齐美家 full-width mega 菜单 */
.site-header .container { position: relative; }
.nav-dropdown { position: static; }
.nav-caret { margin-left: 5px; font-size: 11px; opacity: .75; }
.dropdown-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 42px rgba(15, 31, 56, .14); border: 1px solid var(--line); border-top: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 60; padding: 30px 34px 34px;
}
.nav-dropdown.open .dropdown-panel,
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 14px; }
.dropdown-inner { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 34px; }
.dropdown-featured { border-right: 1px solid var(--line); padding-right: 28px; min-width: 0; }
.dropdown-featured h4 { margin: 0 0 12px; font-size: 20px; color: var(--ink); }
.dropdown-featured p { margin: 0 0 18px; font-size: 13px; line-height: 1.75; color: var(--muted); overflow-wrap: anywhere; }
.dropdown-all { display: inline-block; font-size: 13px; color: var(--primary); font-weight: 600; text-decoration: none; }
.dropdown-all:hover { text-decoration: underline; }
.dropdown-col { min-width: 0; }
.dropdown-col h4 { margin: 0 0 8px; padding-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); position: relative; }
.dropdown-col h4::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--primary); }
.dropdown-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; }
.dropdown-links a { display: flex; align-items: flex-start; gap: 11px; padding: 11px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); min-width: 0; transition: background .15s; }
.dropdown-links a:hover { background: var(--primary-light); }
.dl-ico { flex: 0 0 34px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--primary-light); color: var(--primary); }
.dl-ico img { width: 22px; height: 22px; object-fit: contain; }
.dl-ico svg { width: 20px; height: 20px; display: block; }
/* 产品 SVG 是白色线性图标（首页蓝底卡片用），下拉补主题蓝方块使其可见 */
.dropdown-links-products .dl-ico { background: var(--primary); }
.dropdown-links-products .dl-ico img { width: 22px; height: 22px; }
/* 生态下拉：SVG 自带彩色方块底，去浅蓝底并撑满显示 */
.dropdown-panel-eco .dl-ico { background: transparent; flex-basis: 32px; width: 32px; height: 32px; }
.dropdown-panel-eco .dl-ico img { width: 32px; height: 32px; }
.dl-txt { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.dl-txt strong { font-size: 13px; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-txt small { font-size: 11.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 产品卡片整卡可点 */
.card-link { text-decoration: none; color: inherit; cursor: pointer; }
.card-link .more { margin-top: auto; }

/* 应用实景卡片可点提示 */
.showcase-card { position: relative; cursor: pointer; }
.showcase-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(31,42,58,.55); color: #fff; font-size: 15px; font-weight: 600;
  border-radius: var(--radius); opacity: 0; transition: opacity .2s; pointer-events: none;
}
.showcase-card:hover .showcase-hint,
.showcase-card:focus .showcase-hint { opacity: 1; }

/* 生态合作板块 */
.ecosystem .section-head { text-align: center; }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.eco-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.eco-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
/* 生态图标：SVG 自带彩色渐变方块底（对齐美家风格），容器去掉浅蓝底让方块完整显示 */
.eco-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.eco-icon img { width: 44px; height: 44px; object-fit: contain; }
.eco-icon svg { width: 30px; height: 30px; padding: 7px; box-sizing: content-box; border-radius: 10px; background: var(--primary-light); color: var(--primary); }
.eco-item h3 { margin: 0 0 12px; font-size: 18px; color: var(--ink); }
.eco-item p { margin: 0 0 20px; font-size: 14px; line-height: 1.75; color: var(--muted); flex: 1; }
.eco-item .btn { align-self: flex-start; }

/* 弹窗 */
.bj-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.bj-modal.open { display: flex; }
.bj-modal-backdrop { position: absolute; inset: 0; background: rgba(15,25,45,.6); backdrop-filter: blur(2px); }
.bj-modal-dialog {
  position: relative; z-index: 1; background: var(--white); border-radius: 12px;
  width: min(680px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.28); padding: 32px; animation: bjModalIn .2s ease-out;
}
.bj-form-dialog { width: min(460px, 100%); }
@keyframes bjModalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.bj-modal-close {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; line-height: 30px;
  border: none; background: transparent; font-size: 28px; color: var(--muted); cursor: pointer; border-radius: 50%;
}
.bj-modal-close:hover { background: var(--bg-soft); color: var(--ink); }
body.modal-open { overflow: hidden; }
.case-detail img { max-width: 100%; height: auto; border-radius: 6px; }
/* 移动端应用实景：案例弹窗 */
.case-modal-title { margin: 0 0 16px; font-size: 22px; color: var(--ink); }
.case-modal-shot { width: fit-content; max-width: 100%; margin: 0 auto 18px; }
.case-modal-shot img { width: auto; max-width: 100%; height: auto; display: block; border-radius: 8px; }
.case-modal-lead { color: var(--muted); line-height: 1.8; margin: 0 0 16px; }
.case-modal-detail { border-top: 1px solid var(--line); padding-top: 16px; }
.case-modal-sub { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 10px; padding-left: 10px; border-left: 3px solid var(--primary); }
.case-modal-detail .case-detail { line-height: 1.95; color: var(--ink); font-size: 14px; }
.case-modal-detail .case-detail p { margin: 0 0 10px; }
.case-modal-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.case-modal-actions .btn { min-width: 180px; }

/* 生态合作独立页：banner 复用统一 .page-hero（pid=9 后台广告位），下方图文沿用美家时代节奏 */
.partner-rows { padding: 70px 0 90px; background: #fff; }
.partner-rows .p-row { display: flex; align-items: center; gap: 30px; margin-bottom: 40px; scroll-margin-top: 100px; }
.partner-rows .p-text, .partner-rows .p-pic { flex: 0 0 50%; max-width: 50%; }
.partner-rows .p-pic { text-align: center; padding: 20px; }
.partner-rows .p-pic img { max-width: 100%; height: auto; display: inline-block; }
.partner-rows .p-text { padding: 20px 30px; }
.partner-rows .p-text h2 { margin: 0; font-size: 30px; font-weight: 500; line-height: 1.5; color: #333; }
.partner-rows .p-sep { width: 36px; height: 3px; background: var(--primary); margin: 8px 0 20px; }
.partner-rows .p-text p { margin: 0 0 24px; font-size: 14px; line-height: 2; color: #777; }
.partner-rows .p-join {
  display: inline-block; border: 0; border-radius: 3px; background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 500; line-height: 26px; padding: 10px 40px; cursor: pointer;
}
.partner-rows .p-join:hover { background: #2a5191; }

@media (max-width: 991px) {
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .dropdown-panel, .dropdown-panel-eco,
  .nav-dropdown.open .dropdown-panel-eco,
  .nav-dropdown:hover .dropdown-panel-eco,
  .nav-dropdown:focus-within .dropdown-panel-eco { position: static; left: auto; right: auto; transform: none; width: 100%; display: none; box-shadow: none; border: none; padding: 12px 0; }
  .nav-dropdown.open .dropdown-panel, .nav-dropdown.open .dropdown-panel-eco { display: block; }
  /* 移动端：下拉只显示标题列表，不展示描述/副标题/图标（对齐文档参考效果） */
  .dropdown-panel .dropdown-featured, .dropdown-panel .dropdown-col > h4 { display: none; }
  .dropdown-inner { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .dropdown-col { padding: 0; border: none; }
  .dropdown-links { grid-template-columns: 1fr; gap: 0; }
  /* 子项：图标 + 标题横向排列（对齐参考图），副标题仍隐藏（需求：不展示内容） */
  .dropdown-links a { display: flex; align-items: center; gap: 11px; padding: 11px 34px; border-bottom: 1px solid var(--line); font-size: 15px; border-radius: 0; }
  .dropdown-links .dl-ico { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 7px; }
  .dropdown-links .dl-ico svg { width: 17px; height: 17px; }
  .dropdown-links-products .dl-ico, .dropdown-panel-eco .dl-ico { background: var(--primary); }
  .dropdown-links-products .dl-ico img, .dropdown-panel-eco .dl-ico img { width: 18px; height: 18px; }
  .dropdown-links .dl-txt small { display: none; }
  .dropdown-links .dl-txt strong { font-weight: 400; }
  .eco-grid { grid-template-columns: 1fr; }
  .partner-rows { padding: 40px 0 50px; }
  .partner-rows .p-row, .partner-rows .p-row-2 { flex-direction: column; gap: 8px; margin-bottom: 30px; }
  .partner-rows .p-text, .partner-rows .p-pic { flex: 1 1 auto; max-width: 100%; }
  .partner-rows .p-text { padding: 14px 12px; }
  .partner-rows .p-text h2 { font-size: 24px; }
  .partner-rows .p-pic { padding: 10px; }
  .bj-modal-dialog { padding: 24px 20px; }
}

/* ============================================================
   移动端适配修复（2026-11-23）：首屏文字入场 / 浮动客服
   ============================================================ */
/* 首屏文案动态入场：DOMContentLoaded 后由 JS 加 .enter 触发 */
.hero .slide-inner .eyebrow,
.hero .slide-inner h1,
.hero .slide-inner p,
.hero .slide-inner .hero-actions {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.hero .slide-inner.enter .eyebrow { opacity: 1; transform: none; transition-delay: .05s; }
.hero .slide-inner.enter h1 { opacity: 1; transform: none; transition-delay: .18s; }
.hero .slide-inner.enter p { opacity: 1; transform: none; transition-delay: .32s; }
.hero .slide-inner.enter .hero-actions { opacity: 1; transform: none; transition-delay: .46s; }
@media (prefers-reduced-motion: reduce) {
  .hero .slide-inner .eyebrow, .hero .slide-inner h1, .hero .slide-inner p, .hero .slide-inner .hero-actions { opacity: 1; transform: none; transition: none; }
}

/* 浮动客服：拨打电话 + 留言咨询（仅移动端显示；PC 无拨号能力，隐藏避免无效入口） */
.floating-contact { display: none; position: fixed; right: 20px; bottom: 24px; z-index: 80; flex-direction: column; gap: 10px; }
.floating-contact a, .floating-contact button {
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(15,31,56,.22); transition: transform .2s, box-shadow .2s;
  padding: 0; text-decoration: none;
}
.floating-contact a:hover, .floating-contact button:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(15,31,56,.3); }
.fc-call { background: var(--primary); color: #fff; }
.fc-msg { background: #fff; color: var(--primary); border: 1px solid var(--line) !important; }
.floating-contact svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767px) {
  .floating-contact { display: flex; right: 14px; bottom: 16px; }
  .floating-contact a, .floating-contact button { width: 44px; height: 44px; }
}
