/* ============================================
   厦门鼎力盛科技有限公司 官网样式
   设计系统：深工业蓝 + 科技青强调色
   ============================================ */

:root {
  --navy: #0f4c81;        /* 主蓝（调亮，更清爽） */
  --navy-2: #1a619c;      /* 蓝亮一档 */
  --blue: #2a7fd4;        /* 品牌浅蓝 */
  --cyan: #00a8e8;        /* 强调青 */
  --cyan-dark: #0086b8;
  --orange: #ff8a00;      /* 活力橙（点缀色） */
  --orange-dark: #e67300;
  --orange-light: #ffab40;
  --text: #2b3a46;        /* 正文 */
  --text-light: #6b7a87;  /* 次要文字 */
  --bg-gray: #f4f8fb;     /* 浅灰底 */
  --border: #e3eaf0;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 4px 18px rgba(15, 76, 129, .09);
  --shadow-hover: 0 8px 28px rgba(15, 76, 129, .17);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; } /* clip 防窄屏横向溢出闪滚动条 */

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; } /* 1320 宽屏容器：减小左右留白 */

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: 14px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; }
.topbar a { color: var(--orange-light); }

/* ---------- 导航栏 ---------- */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(15,76,129,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff; font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
.logo-text .cn {
  font-size: 17.5px; font-weight: 700; color: var(--navy); display: block;
  line-height: 1.25; white-space: nowrap;
  text-align: justify; text-align-last: justify;
  /* 11 字 × 17.5 ≈ 英文行自然宽(10px×34字符≈192px)：容器由两行自然宽共同决定，
     justify 几乎不拉伸，英文词间隙保持自然（此前 22px 时英文行被拉 +50px、词间隙 +8px/个） */
}
.logo-text .en {
  font-size: 10px; color: var(--text-light); display: block; white-space: nowrap;
  text-transform: uppercase; /* HTML 里存原样全称，显示为大写字标风格 */
  text-align: justify; text-align-last: justify; /* 中英两行都撑满同一容器，左右边缘完全对齐 */
}

.nav-links { display: flex; gap: 6px; margin-left: auto; } /* 菜单与右侧按钮成组靠右 */
.nav-item { position: relative; }
.nav-item > a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 17px;
  color: var(--text);
  display: flex; align-items: center; gap: 5px;
  transition: all .25s;
}
.nav-item .caret { font-size: 10px; font-weight: 400; color: var(--text-light); transition: transform .25s; }
.nav-item:hover > a { color: var(--blue); background: #eef4fb; }
.nav-item:hover .caret { transform: rotate(180deg); color: var(--blue); }

/* ---------- 二级下拉菜单（悬停展开） ---------- */
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 200px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15,76,129,.16);
  padding: 8px 0; opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s; z-index: 130;
}
.dropdown::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; }
.dropdown a { display: block; padding: 9px 22px; font-size: 15px; color: var(--text); white-space: nowrap; transition: all .2s; }
.dropdown a:hover { color: var(--blue); background: #f2f7fd; box-shadow: inset 3px 0 0 var(--orange); }

/* 当前页高亮：每页 body 上加对应 class（首页无导航项，点 LOGO 返回） */
body.page-products  .nav-item > a[href="products.html"],
body.page-solutions .nav-item > a[href="solutions.html"],
body.page-news      .nav-item.nav-about > a,
body.page-about     .nav-item.nav-about > a,
body.page-contact   .nav-item.nav-about > a {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 500;
}

/* ---------- 导航右侧工具：搜索 / 语言 ---------- */
.nav-tools { display: flex; align-items: center; gap: 10px; margin-left: 12px; }

/* 移动端汉堡按钮：桌面隐藏，≤768px 显示
   图标与搜索/地球同款 SVG 线性描边（span 画横线在部分手机 WebView 不渲染，曾显示为空白按钮）；
   按钮间距始终用 margin 不用 flex gap（老款 WebView 不支持 gap，按钮会贴死） */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--white); border: 1px solid var(--border); border-radius: 50%; cursor: pointer;
  color: var(--text-light);
}
.nav-toggle svg { width: 18px; height: 18px; display: block; }
.nav-toggle .ico-close { display: none; }
body.nav-open .nav-toggle .ico-menu { display: none; }
body.nav-open .nav-toggle .ico-close { display: block; }
.tool { position: relative; }
/* 悬停桥：按钮与弹出面板之间的空隙仍算悬停区域，菜单不易闪没 */
.tool::after { content: ""; position: absolute; top: 100%; left: -12px; right: -12px; height: 14px; }
.tool-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white); color: var(--text-light);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.tool-btn svg { width: 18px; height: 18px; display: block; }
.tool-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 4px 12px rgba(255,138,0,.35); }
.pop-panel {
  position: absolute; top: calc(100% + 14px); right: 0; width: 270px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15,76,129,.16);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 130;
  text-align: left;
}
.tool:hover .pop-panel,
.tool:focus-within .pop-panel,
.tool.open .pop-panel { opacity: 1; visibility: visible; } /* open：移动端点按开合 */

/* 站内搜索面板 */
.search-panel { padding: 6px; }
.search-panel input {
  width: 100%; border: none; border-bottom: 1px solid var(--border);
  border-radius: 6px 6px 0 0; background: #fbfdff;
  padding: 10px 12px; font-size: 16px; font-family: inherit; color: var(--text); outline: none; /* 16px 防 iOS 聚焦缩放 */
}
.search-panel input:focus { border-bottom-color: var(--orange); }
.search-results { max-height: 300px; overflow-y: auto; }
.search-results a {
  display: block; padding: 9px 12px; font-size: 14.5px; color: var(--text);
  border-radius: 6px; transition: all .2s;
}
.search-results a:hover { background: #f2f7fd; color: var(--blue); }
/* 智能搜索结果：标题 + 描述双行，命中词高亮 */
.search-results .sr-item { border-bottom: 1px dashed var(--border); }
.search-results .sr-item:last-child { border-bottom: none; }
.search-results .sr-title { display: block; line-height: 1.5; }
.search-results .sr-desc { display: block; font-size: 12.5px; color: var(--text-light); line-height: 1.5; margin-top: 2px; }
.search-results mark { background: #ffedcc; color: inherit; border-radius: 2px; padding: 0 1px; }
/* 英文模式下新闻结果标注“中文内容” */
body.lang-en .search-results .sr-news .sr-title::after {
  content: "中文"; font-size: 11px; color: var(--orange-dark); background: #fff2e2;
  padding: 1px 8px; border-radius: 20px; margin-left: 8px; vertical-align: 1px; letter-spacing: 1px;
}
.search-hint, .search-empty { padding: 10px 12px; font-size: 13.5px; color: var(--text-light); }

/* 语言选择面板 */
.lang-panel { width: 185px; padding: 8px 6px; }
.lang-panel .panel-title { font-size: 12.5px; color: var(--text-light); letter-spacing: 1px; padding: 2px 10px 8px; }
.lang-opt { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 6px; font-size: 15px; color: var(--text); }
.lang-opt em { font-style: normal; font-weight: 700; color: var(--orange); }
.lang-opt:hover { background: #f2f7fd; color: var(--blue); }
.lang-opt.active { color: var(--blue); font-weight: 500; }

/* 轻提示（语言切换等场景） */
.toast {
  position: fixed; top: 92px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: 15px; padding: 10px 24px;
  border-radius: 30px; box-shadow: 0 10px 30px rgba(15,76,129,.3);
  opacity: 0; visibility: hidden; transition: all .3s; z-index: 300;
}
.toast.show { opacity: 1; visibility: visible; }

/* ---------- 首页 Banner 轮播（定时切换） ---------- */
.hero {
  position: relative; color: #fff;
  min-height: 560px; display: flex; align-items: center;
  overflow: hidden; background: var(--navy);
}
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: center/cover no-repeat;
  opacity: 0; visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,76,129,.92) 0%, rgba(26,97,156,.74) 55%, rgba(42,127,212,.40) 100%);
}
.hero-slide .container { position: relative; }
.hero-content {
  max-width: 660px;
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s ease .25s, transform .8s ease .25s;
}
.hero-slide.active .hero-content { opacity: 1; transform: none; }
.hero h1 { font-size: clamp(26px, 4.2vw + 12px, 44px); font-weight: 700; letter-spacing: 3px; margin-bottom: 18px; }
.hero .slogan { font-size: 19px; letter-spacing: 4px; color: var(--orange-light); margin-bottom: 14px; font-weight: 500; }
.hero p.desc { max-width: 640px; color: rgba(255,255,255,.82); font-size: 17px; }
.hero .btns { margin-top: 36px; display: flex; gap: 16px; }
/* 轮播控制：两侧切换箭头 + 底部居中圆点指示器 */
.hero-ctrl {
  position: absolute; left: 0; right: 0; bottom: 22px; z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 26px; height: 4px; border: none; border-radius: 2px; padding: 0;
  background: rgba(255,255,255,.42); cursor: pointer; transition: all .3s;
}
.hero-dots button.active { background: var(--orange); width: 40px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: all .25s;
}
.hero-arrow:hover { background: var(--orange); border-color: var(--orange); }
.hero-arrow.prev { left: 26px; }
.hero-arrow.next { right: 26px; }
.btn {
  display: inline-block; padding: 12px 34px; border-radius: 6px;
  font-size: 16px; transition: all .25s; letter-spacing: 1px;
}
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,138,0,.45); }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
/* 白底描边次级按钮（联系页第二个电话等场景） */
.btn-outline { border: 1px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42,127,212,.35); }

/* ---------- 数据条 ---------- */
.stats { background: var(--navy); padding: 34px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { text-align: center; }
.stat .num { font-size: clamp(26px, 2.4vw + 16px, 36px); font-weight: 700; color: var(--orange-light); line-height: 1.2; }
.stat .num span { font-size: 19px; }
.stat .label { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 4px; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section.gray { background: var(--bg-gray); }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .en { color: var(--cyan); font-size: 14px; letter-spacing: 4px; text-transform: uppercase; display: block; margin-bottom: 6px; }
.sec-head h2 { font-size: clamp(22px, 2.6vw + 13px, 32px); color: var(--navy); font-weight: 700; letter-spacing: 2px; }
.sec-head .sub { color: var(--text-light); margin-top: 8px; font-size: 16px; }
.sec-head .bar { width: 48px; height: 3px; background: var(--orange); margin: 16px auto 0; border-radius: 2px; }

/* 标题重点词橙色底线（关于我们"鼎力盛"标记）：底线与文字底部留出明显间隔 */
.sec-head h2 .mark-hl {
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 100% 4px;
  background-position: 0 100%;
  padding-bottom: 6px;
}

/* ---------- 首页关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-grid > * { min-width: 0; } /* 允许子项收缩：英文长词不会把网格列撑出屏幕 */
.about-grid h3 { font-size: clamp(20px, 2vw + 13px, 26px); color: var(--navy); margin-bottom: 16px; }
.about-grid p { color: var(--text-light); margin-bottom: 12px; text-align: justify; }
.about-grid .more { margin-top: 20px; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
/* 关于我们右侧宣传视频：高度撑满左栏（ABOUT US 标题→了解更多按钮底部）；object-fit:contain 完整显示画面不裁切，上下留深蓝边 */
.about-video { align-self: stretch; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.about-video video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- 产品卡片 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
/* 首页产品中心 7 卡：上 4（窄）下 3（宽）砖式穿插排布——两行左右边缘对齐、内部分界互相错开，避免 3+3+1 的孤卡 */
.prod-grid.grid-4-3 { grid-template-columns: repeat(12, 1fr); }
.prod-grid.grid-4-3 .prod-card:nth-child(-n+4) { grid-column: span 3; }
.prod-grid.grid-4-3 .prod-card:nth-child(n+5) { grid-column: span 4; }
.prod-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .3s; border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.prod-card .thumb {
  height: 210px; background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 14px;
}
.prod-card .thumb img { max-height: 100%; max-width: 100%; object-fit: contain; }
.prod-card .info { padding: 18px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.prod-card .tag {
  display: inline-block; align-self: flex-start;
  font-size: 13px; color: var(--cyan-dark); background: #e3f5fc;
  padding: 2px 10px; border-radius: 20px; margin-bottom: 8px;
}
.prod-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.prod-card p { font-size: 14.5px; color: var(--text-light); flex: 1; }
.prod-card .go {
  margin-top: 14px; font-size: 14px; color: var(--blue); font-weight: 500;
}
.prod-card:hover .go { color: var(--orange); }

/* ---------- 行业图标网格 ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.ind-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 8px; text-align: center; transition: all .3s;
}
.ind-item:hover { border-color: var(--cyan); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.ind-item .ico { font-size: 26px; margin-bottom: 8px; display: block; }
.ind-item span { font-size: 14px; color: var(--text); }

/* 行业图片卡片 */
.industry-grid.photos { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ind-item.photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ind-item.photo img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  transition: transform .4s;
}
.ind-item.photo span { padding: 10px 8px 12px; text-align: center; font-weight: 600; color: var(--navy); }
.ind-item.photo:hover img { transform: scale(1.06); }

/* ---------- 应用行业流动带（白底，自动横向滚动，悬停暂停） ---------- */
.scroll-band { background: var(--white); padding: 56px 0 52px; overflow: hidden; }
.scroll-band .sec-head { margin-bottom: 36px; }
.scroll-viewport { overflow: hidden; }
.scroll-track { display: flex; width: max-content; animation: bandFlow 48s linear infinite; }
.scroll-band:hover .scroll-track { animation-play-state: paused; }
.scroll-group { display: flex; gap: 16px; padding-right: 16px; }
@keyframes bandFlow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .scroll-track { animation: none; } }
.scroll-card { width: 252px; flex-shrink: 0; }
.scroll-card .pic {
  position: relative; height: 176px; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.scroll-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.scroll-card:hover .pic img { transform: scale(1.07); }
.scroll-card .pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(7,31,51,.78));
}
.scroll-card .tag {
  position: absolute; left: 13px; bottom: 10px; z-index: 2;
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 1px;
}
.scroll-card p { color: var(--text-light); font-size: 13.5px; margin-top: 10px; line-height: 1.65; }

/* ---------- 服务承诺 ---------- */
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.promise-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.promise {
  background: var(--white); border-radius: var(--radius); padding: 32px 24px;
  text-align: center; box-shadow: var(--shadow); border-top: 3px solid var(--orange);
}
/* 线性描边图标：圆角方底座 + 品牌色（替代 emoji，更商务专业；悬停转橙） */
.promise .ico {
  width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 18px;
  background: linear-gradient(135deg, #e9f4fb, #eef4fb);
  border: 1px solid var(--border);
  color: var(--navy); font-size: 30px; /* font-size 兼容子页仍用 emoji 的图标 */
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.promise .ico svg { width: 30px; height: 30px; display: block; }
.promise:hover .ico {
  color: var(--orange-dark); border-color: var(--orange-light);
  background: linear-gradient(135deg, #e9f4fb, #ffefd9);
  box-shadow: 0 6px 16px rgba(255,138,0,.16);
}
.promise h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.promise p { font-size: 14.5px; color: var(--text-light); }

/* ---------- 子页 Banner ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 50%, var(--blue) 100%);
  color: #fff; padding: 56px 0;
}
.page-banner .crumb { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.page-banner .crumb a { color: var(--orange-light); }
.page-banner h1 { font-size: clamp(21px, 2.8vw + 13px, 34px); letter-spacing: 3px; font-weight: 700; }
.page-banner .en { font-size: 14px; letter-spacing: 3px; color: rgba(255,255,255,.55); margin-top: 6px; }

/* ---------- 产品详情块 ---------- */
.prod-detail {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px;
  padding: 44px 0; align-items: center;
  border-bottom: 1px dashed var(--border);
}
.prod-detail:last-child { border-bottom: none; }
.prod-detail.reverse .pd-img { order: 2; }
.pd-img {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  height: clamp(230px, 32vw + 90px, 360px); /* 流式高度：手机矮、桌面 360 封顶 */
}
.pd-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-info .series {
  font-size: 13px; letter-spacing: 2px; color: var(--cyan-dark);
  background: #e3f5fc; display: inline-block; padding: 2px 12px; border-radius: 20px; margin-bottom: 10px;
}
.pd-info h2 { font-size: clamp(19px, 1.6vw + 14px, 25px); color: var(--navy); margin-bottom: 6px; }
.pd-info .model { color: var(--text-light); font-size: 15px; margin-bottom: 14px; }
.pd-info .desc { color: var(--text-light); font-size: 15.5px; text-align: justify; margin-bottom: 16px; }
.pd-info ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 18px; }
.pd-info ul li {
  font-size: 14.5px; color: var(--text); padding-left: 20px; position: relative;
}
.pd-info ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--orange);
}

/* 参数表 */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 6px; }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.spec-table th { background: #eef4fb; color: var(--navy); font-weight: 500; white-space: nowrap; }
.spec-table td { color: var(--text); }
/* 规格表横向滚动容器：手机上表格自身滚，页面不横移 */
.table-wrap { overflow-x: auto; margin-bottom: 20px; -webkit-overflow-scrolling: touch; }

/* 联系页电话按钮行：手机端（≤480px）竖排全宽 */
.tel-btn-row { display: flex; gap: 12px; }
.tel-btn-row .btn { flex: 1; text-align: center; }

/* ---------- 企业文化 ---------- */
.culture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.culture {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.culture::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--cyan), var(--blue));
}
.culture .no {
  position: absolute; right: 18px; top: 8px; font-size: 44px; font-weight: 800;
  color: rgba(21,101,192,.08);
}
.culture h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.culture h3 span { font-size: 12px; color: var(--cyan); letter-spacing: 2px; margin-left: 8px; }
.culture p { color: var(--text-light); font-size: 15px; }

/* ---------- 溯源流程 ---------- */
.trace-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 12px; }
.trace-step { text-align: center; position: relative; padding: 0 10px; }
.trace-step .ball {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(21,101,192,.35);
}
.trace-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -8px; top: 12px;
  color: var(--orange); font-size: 22px;
}
.trace-step h4 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.trace-step p { font-size: 13.5px; color: var(--text-light); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 32px;
}
.contact-card h3 { color: var(--navy); font-size: 21px; margin-bottom: 22px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-line .ico {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px;
  background: #e3f5fc; color: var(--cyan-dark);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.contact-line .ico svg { width: 20px; height: 20px; display: block; }
.contact-line .k { font-size: 13px; color: var(--text-light); }
.contact-line .v { font-size: 16px; color: var(--navy); font-weight: 500; }
.contact-line .v a { color: var(--blue); }

/* 表单 */
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.form-item input, .form-item textarea, .form-item select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 15px; font-family: inherit; background: #fbfdff; color: var(--text);
}
.form-item input:focus, .form-item textarea:focus { outline: none; border-color: var(--cyan); }

/* ---------- 新闻中心 ---------- */
.news-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.news-side { position: sticky; top: 92px; }
.news-side .box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px; margin-bottom: 22px; }
.news-side h4 { font-size: 16.5px; color: var(--navy); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); }
.news-cats button {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  text-align: left; padding: 10px 14px; margin-bottom: 4px; border: none; border-radius: 6px;
  background: transparent; font-size: 15px; color: var(--text); cursor: pointer; font-family: inherit;
  transition: all .2s; scroll-margin-top: 92px;
}
.news-cats button .cnt { font-size: 13px; color: var(--text-light); }
.news-cats button:hover { background: #f2f7fd; color: var(--blue); }
.news-cats button.active { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; }
.news-cats button.active .cnt { color: rgba(255,255,255,.85); }
.news-side .tel { font-size: 14px; color: var(--text-light); line-height: 2.15; }
.news-side .tel b { color: var(--navy); font-weight: 500; }
.news-side .tel a { color: var(--blue); font-weight: 500; }

/* 新闻列表条目：整条可点 */
.news-item { display: flex; gap: 22px; align-items: flex-start; padding: 24px 6px; border-bottom: 1px dashed var(--border); }
.news-item:hover { background: #fafcfe; }
.news-item .date { flex-shrink: 0; width: 78px; text-align: center; padding: 4px 0; border-right: 1px solid var(--border); }
.news-item .date .d { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.news-item .date .ym { font-size: 12.5px; color: var(--text-light); margin-top: 3px; }
.news-item .nb { flex: 1; min-width: 0; }
.news-item h3 { font-size: 17.5px; color: var(--navy); margin-bottom: 7px; transition: color .2s; }
.news-item:hover h3 { color: var(--blue); }
.news-item .sum { font-size: 14.5px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .more { display: inline-block; margin-top: 9px; font-size: 14px; color: var(--blue); font-weight: 500; }
.news-item:hover .more { color: var(--orange); }
.news-empty { padding: 70px 0; text-align: center; color: var(--text-light); }

/* 分类小标签（列表 + 详情页共用） */
.cat-chip { display: inline-block; font-size: 12.5px; padding: 2px 12px; border-radius: 20px; }
.cat-chip.company { color: var(--orange-dark); background: #fff2e2; }
.cat-chip.industry { color: var(--cyan-dark); background: #e3f5fc; }
.cat-chip.faq { color: #1a8a4d; background: #e7f6ed; }
/* 英文模式下新闻标注「中文内容」：纯 CSS 徽章（列表条目 / 文章头部） */
body.lang-en .news-item .meta::after,
body.lang-en .article-head .meta::after {
  content: "中文内容 / Chinese content"; font-size: 11.5px; font-weight: 400;
  color: var(--orange-dark); background: #fff2e2;
  padding: 2px 10px; border-radius: 20px; margin-left: 10px; vertical-align: 1px;
}

/* 英文文案比中文长：定点收紧排版，避免撑破或被裁 */
/* 1) 大屏：字距收窄（中文 3-4px 字距对英文会整行放不下）；Banner 高度由 site.js fitHero 按内容自动撑高 */
body.lang-en .hero h1 { letter-spacing: .5px; }
body.lang-en .hero .slogan { letter-spacing: 1px; }
body.lang-en .hero p.desc { font-size: 16px; }
/* 2) 关于我们：英文左栏更长，右侧视频不再拉伸对齐，固定 16:9 居中（与移动端单列回退一致） */
body.lang-en .about-video { align-self: center; aspect-ratio: 16/9; }
/* 3) 长英文单词（如 Technology、Traceability）不允许溢出容器 */
body.lang-en .hero-content, body.lang-en .hero p.desc, body.lang-en .about-grid p,
body.lang-en h1, body.lang-en h2, body.lang-en h3 { overflow-wrap: break-word; }
/* 4) 标题里的中文名分属多个文本节点（厦门+鼎力盛+科技有限公司），英译后直接拼接
      会变成无空格超长词 XIAMENDYNEXTechnology…：给高亮词两侧补空格断词 */
body.lang-en .mark-hl::before, body.lang-en .mark-hl::after { content: " "; }

/* 新闻详情页 */
.article-wrap { max-width: 860px; margin: 0 auto; }
.article-head { text-align: center; padding: 6px 0 26px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.article-head h1 { font-size: clamp(19px, 1.8vw + 13px, 27px); color: var(--navy); font-weight: 700; margin: 14px 0 12px; line-height: 1.5; }
.article-head .meta { font-size: 13.5px; color: var(--text-light); }
.article-body { font-size: 16px; line-height: 2.05; color: var(--text); }
.article-body p { margin-bottom: 18px; text-align: justify; }
.article-body h3 { font-size: 19px; color: var(--navy); margin: 32px 0 14px; padding-left: 12px; border-left: 4px solid var(--orange); }
.article-body img { border-radius: var(--radius); margin: 12px auto 22px; box-shadow: var(--shadow); }
.article-body img.img-center { display: block; width: auto; max-width: 72%; }
.article-body .img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0 22px; }
.article-body .img-grid img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.article-body a { color: var(--blue); text-decoration: none; border-bottom: 1px dashed rgba(42, 127, 212, .55); padding-bottom: 1px; }
.article-body a:hover { color: var(--orange); border-bottom: 1px solid var(--orange); }
.article-foot { margin-top: 44px; padding-top: 26px; border-top: 1px dashed var(--border); text-align: center; }

/* 文章底部：上一篇 / 下一篇（site.js 在文章页动态注入） */
.article-nav { display: flex; gap: 14px; margin: 36px 0 0; }
.art-nav-item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-gray); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.article-nav a.art-nav-item:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(15, 76, 129, .10); }
.article-nav .art-nav-item + .art-nav-item { text-align: right; }   /* 下一篇靠右 */
.art-nav-label { font-size: 13px; color: var(--text-light); letter-spacing: 1px; }
.art-nav-title { font-size: 15px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav .art-nav-none { opacity: .55; }
.article-nav .art-nav-none .art-nav-title { font-weight: 400; }

/* 文章底部：相关设备卡片（发布工具生成，图片+超链接到产品页）。
   选择器带 .article-body 前缀抬高优先级，盖掉上面 .article-body a / img 的通用样式 */
.article-body .related-eq { margin-top: 34px; }
.article-body .related-grid { display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.article-body .related-item { display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  overflow: hidden; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.article-body a.related-item:hover { color: var(--text); border-color: var(--blue);
  box-shadow: 0 6px 16px rgba(15, 76, 129, .12); transform: translateY(-2px); }
.article-body .related-img { position: relative; display: block;
  aspect-ratio: 4/3; background: #fff; border-bottom: 1px solid var(--border); }
/* 图片绝对定位填满 4:3 框 + contain 等比完整显示：不能在 aspect-ratio 容器里
   用 height:100%——百分比高度循环依赖会被图片原始比例把框撑得高低不齐；
   替换元素全 inset+auto 尺寸会退回原始宽度，必须显式 calc */
.article-body .related-img img { position: absolute; top: 10px; left: 10px;
  width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain;
  margin: 0; border-radius: 0; box-shadow: none; }
.article-body .related-name { height: 40px; display: flex; align-items: center;
  justify-content: center; padding: 0 8px; font-size: 13px; font-weight: 600;
  color: var(--text); text-align: center; line-height: 1.5; overflow: hidden; }
/* 英文模式：目录里带了英文名（data-en）的设备直接换显，新增设备不用改字典 */
body.lang-en .related-name[data-en] { font-size: 0; }
body.lang-en .related-name[data-en]::after { content: attr(data-en); font-size: 13px; }

/* ---------- CTA 横幅 ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: #fff; text-align: center; padding: 56px 0;
}
.cta h2 { font-size: clamp(20px, 2vw + 13px, 28px); letter-spacing: 2px; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.75); margin-bottom: 26px; }

/* ---------- 页脚 ---------- */
.footer { background: #0b3a63; color: rgba(255,255,255,.75); padding: 56px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; letter-spacing: 1px; }
.footer p { margin-bottom: 10px; line-height: 1.9; }
.footer ul li { margin-bottom: 10px; }
.footer ul a:hover { color: var(--orange-light); }
.footer .logo-mark { margin-bottom: 14px; }
.footer .cname { color: #fff; font-size: 19px; font-weight: 600; letter-spacing: 2px; margin-bottom: 8px; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
  text-align: center; font-size: 13.5px; color: rgba(255,255,255,.4);
}
.copyright a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.copyright a:hover { color: rgba(255,255,255,.85); }

/* ---------- 滚动渐显动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 官方 Logo ---------- */
.logo-icon { height: 38px; width: auto; display: block; } /* 38px 与两行文字块等高；DLS 横版标 2.25:1，44px 时占 99px 宽偏挤 */

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid.grid-4-3 { grid-template-columns: repeat(2, 1fr); }
  /* 必须用 nth-child(n) 提到与桌面 span 规则同特异性才能覆盖（纯 .prod-card 选择器永远输给 :nth-child） */
  .prod-grid.grid-4-3 .prod-card:nth-child(n) { grid-column: auto; }
  .industry-grid { grid-template-columns: repeat(4, 1fr); }
  .industry-grid.photos { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .promise-grid, .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .prod-detail { grid-template-columns: 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .news-side { position: static; }
  .about-video video { aspect-ratio: 16/9; } /* 单列堆叠时无左栏可对齐，回退 16:9 */
  .prod-detail.reverse .pd-img { order: 0; }
  .trace-flow { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .trace-step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 500px; }
  .hero h1 { font-size: 34px; }
  .hero-arrow { display: none; }
  .scroll-card { width: 224px; }
  .scroll-card .pic { height: 158px; }
  .nav-item > a { padding: 8px 10px; font-size: 15px; }
  .nav-item > a .caret { display: none; }
  .topbar .container { justify-content: center; }
}

/* ---------- ≤768px：汉堡抽屉导航（取代导航换行堆叠） ---------- */
@media (max-width: 768px) {
  .navbar .container { height: 64px; }
  .nav-toggle { display: flex; }
  .nav-tools { margin-left: auto; }
  /* 右侧三按钮等间距：老 WebView 不支持 flex gap，统一改 margin（搜索—10px—地球—10px—汉堡） */
  .nav-tools { gap: 0; }
  .nav-tools .tool + .tool { margin-left: 10px; }
  .nav-toggle { margin-left: 10px; }
  /* 导航行窄屏预算紧张：logo 缩小一档；按钮禁止被压缩（曾把 38px 汉堡挤成 36px）；
     logo 允许收缩+文字超出裁剪，兜底极窄屏（320px）不叠字 */
  .logo { gap: 8px; min-width: 0; flex: 1 1 auto; } /* 吃满左侧剩余宽度，给全称腾地方 */
  .logo-icon { height: 26px; } /* DLS 横版标宽约 2.25:1，38px 按钮组+图标占去近半屏宽，图标缩一档让位文字 */
  .logo-text { min-width: 0; overflow: hidden; }
  /* 全称 12 字（原 5 字）+ 34 字符英文行：字号随屏宽流动——360px 屏约 11.9px/6.8px、
     414px 屏约 13.7px/7.9px，两行均在容器内自然放下并两端对齐；320px 极窄屏兜底裁剪 */
  .logo-text .cn { font-size: clamp(9.5px, 3.3vw, 15px); }
  .logo-text .en { font-size: clamp(6px, 1.9vw, 8.8px); }
  .nav-toggle, .nav-tools .tool-btn { flex-shrink: 0; width: 34px; height: 34px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 140;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 1px solid var(--border);
    box-shadow: 0 18px 34px rgba(15,76,129,.16);
    max-height: calc(100vh - 64px); overflow-y: auto;
    padding: 10px 16px 16px; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, visibility .25s, transform .25s;
  }
  body.nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-item > a { padding: 13px 6px; font-size: 16px; justify-content: space-between; }
  .nav-item > a .caret { display: inline-block; } /* 恢复 ≤992 隐藏的 ▾：抽屉手风琴需要展开提示 */
  .nav-item .caret { transition: transform .25s; }
  .nav-item.open .caret { transform: rotate(180deg); }
  .nav-links .dropdown {
    position: static; transform: none; min-width: 0;
    opacity: 1; visibility: visible; box-shadow: none; border: none; border-radius: 0;
    padding: 0; margin: 0 0 6px 10px; display: none;
    border-left: 3px solid var(--border);
  }
  .nav-links .dropdown::before { display: none; }
  .nav-item.open .dropdown { display: block; }
  .nav-links .dropdown a { padding: 11px 16px; white-space: normal; }
  /* 弹出面板加宽，方便手指点选 */
  .pop-panel { width: min(86vw, 340px); }
  .lang-panel { width: 210px; }
  .news-side { position: static; }
}

@media (max-width: 640px) {
  /* 手机端产品卡片：2 列等宽居中（不再单列大卡），卡片同步紧凑化 */
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prod-grid.grid-4-3 { grid-template-columns: repeat(2, 1fr); }
  .prod-card .thumb { height: 120px; padding: 10px; }
  .prod-card .info { padding: 12px 14px 14px; }
  .prod-card .tag { font-size: 12px; margin-bottom: 6px; }
  .prod-card h3 { font-size: 15.5px; margin-bottom: 6px; }
  .prod-card p { font-size: 13px; line-height: 1.6; }
  .prod-card .go { margin-top: 10px; font-size: 13px; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid.photos { grid-template-columns: repeat(2, 1fr); }
  .promise-grid, .promise-grid.cols-3 { grid-template-columns: 1fr; }
  .hero { min-height: 470px; }
  .hero .slogan { font-size: 16px; letter-spacing: 2px; }
  .hero p.desc { font-size: 15px; }
  .hero .btns { flex-wrap: wrap; }
  .hero-ctrl { bottom: 14px; }
  .scroll-card { width: 192px; }
  .scroll-card .pic { height: 136px; }
  .pd-info ul { grid-template-columns: 1fr; }
  .culture-grid { grid-template-columns: 1fr; }
  .news-item { gap: 14px; }
  .news-item .date { width: 58px; }
  .news-item .date .d { font-size: 22px; }
}

/* ---------- ≤480px：小屏精修（顶部条只留热线 / 新闻竖排 / 按钮全宽） ---------- */
@media (max-width: 480px) {
  .topbar .container { justify-content: center; }
  .topbar .container > span:first-child { display: none; }
  .article-body .img-grid { grid-template-columns: 1fr; gap: 12px; }
  .article-body img.img-center { max-width: 100%; }
  .article-nav { flex-direction: column; gap: 10px; }
  .article-nav .art-nav-item + .art-nav-item { text-align: left; }
  .article-body .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .article-body .related-name { height: 38px; font-size: 12.5px; }
  body.lang-en .related-name[data-en]::after { font-size: 12.5px; }
  .stats { padding: 26px 0; }
  .stats .container { gap: 16px; }
  .stat .label { font-size: 12.5px; }
  .section { padding: 52px 0; }
  .sec-head { margin-bottom: 34px; }
  .container { padding: 0 16px; }
  .news-item { flex-direction: column; gap: 10px; padding: 20px 2px; }
  .news-item .date {
    width: auto; text-align: left; border-right: none;
    border-bottom: 1px solid var(--border); padding: 0 0 8px;
    display: flex; align-items: baseline; gap: 8px;
  }
  .news-item .date .d { font-size: 24px; }
  .news-item .date .ym { margin-top: 0; }
  .tel-btn-row { flex-direction: column; gap: 10px; }
  .tel-btn-row .btn { width: 100%; }
  .article-foot .btn { width: 100%; text-align: center; }
  .trace-flow { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { gap: 28px; }
}
