/* ============================================================
   翰鼎智装 · 官方网站样式表
   设计系统：工程蓝 + 金属金，专业严谨的建材工程行业视觉
   ============================================================ */

:root {
  --c-primary: #12467a;        /* 主色 工程蓝 */
  --c-primary-dark: #0b3055;   /* 深蓝 */
  --c-primary-light: #1d5f9e;  /* 亮蓝 */
  --c-accent: #b98a3e;         /* 强调 金属金 */
  --c-accent-light: #d4a85f;   /* 亮金 */
  --c-accent-soft: #f0e3c8;
  --c-text: #24313d;
  --c-text-sub: #5b6b7a;
  --c-text-light: #8b98a5;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f7fa;
  --c-bg-alt: #eef2f6;
  --c-line: #e2e8ee;
  --c-white: #ffffff;
  --shadow-sm: 0 2px 12px rgba(18, 70, 122, 0.06);
  --shadow-md: 0 8px 30px rgba(18, 70, 122, 0.12);
  --shadow-lg: 0 18px 50px rgba(11, 48, 85, 0.18);
  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 1200px;
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部工具条 ---------- */
.topbar {
  background: var(--c-primary-dark);
  color: #cfe0f0;
  font-size: 13px;
  height: 36px;
  display: flex;
  align-items: center;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 22px; }
.topbar .tb-right b { color: var(--c-accent); font-size: 14px; letter-spacing: .5px; }
.topbar a:hover { color: #fff; }

/* ---------- 头部导航 ---------- */
.header {
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--c-line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 9px;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(18,70,122,.28);
  position: relative;
  overflow: hidden;
}
.logo-mark svg { width: 26px; height: 26px; }
.logo-txt strong { display: block; font-size: 19px; color: var(--c-primary-dark); letter-spacing: 1px; line-height: 1.2; }
.logo-txt span { display: block; font-size: 10px; color: var(--c-accent); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav > li > a {
  padding: 8px 16px; font-size: 15px; color: var(--c-text);
  border-radius: 6px; transition: .2s; display: flex; align-items: center; gap: 4px;
  font-weight: 500;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--c-primary); background: rgba(18,70,122,.05); }
.nav > li.active > a { font-weight: 600; }
.nav .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .5; margin-top: 3px; }

/* 下拉菜单 */
.dropdown {
  position: absolute; top: calc(100% - 6px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border-radius: 10px; box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line); min-width: 200px; padding: 10px;
  opacity: 0; visibility: hidden; transition: .22s; z-index: 110;
}
.nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: 9px 14px; border-radius: 6px; font-size: 14px; color: var(--c-text-sub); white-space: nowrap; }
.dropdown a:hover { background: var(--c-bg-soft); color: var(--c-primary); }

.header-cta {
  background: var(--c-primary); color: #fff; padding: 10px 20px; border-radius: 6px;
  font-size: 14px; font-weight: 500; transition: .2s; flex-shrink: 0;
}
.header-cta:hover { background: var(--c-primary-dark); box-shadow: var(--shadow-md); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--c-primary-dark); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- 通用区块 ---------- */
section { position: relative; }
.sec { padding: 84px 0; }
.sec-soft { background: var(--c-bg-soft); }
.sec-dark { background: var(--c-primary-dark); color: #dce8f2; }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-tag {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 2px;
  color: var(--c-accent); text-transform: uppercase; margin-bottom: 14px;
  padding-bottom: 10px; position: relative;
}
.sec-tag::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 2px; background: var(--c-accent);
}
.sec-head.left .sec-tag::after { left: 0; transform: none; }
.sec-head h2 { font-size: 34px; color: var(--c-primary-dark); line-height: 1.35; font-weight: 700; letter-spacing: .5px; }
.sec-dark .sec-head h2 { color: #fff; }
.sec-head p { margin-top: 16px; color: var(--c-text-sub); font-size: 16px; line-height: 1.8; }
.sec-dark .sec-head p { color: #b9cbdb; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 6px; font-size: 15px; font-weight: 500;
  transition: .22s; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: #a2772f; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--c-primary); color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, #0b3055 0%, #12467a 48%, #1d5f9e 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 80%);
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -140px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,138,62,.28), transparent 65%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; min-height: 560px; padding-top: 60px; padding-bottom: 60px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 7px 14px; border-radius: 30px; margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px rgba(185,138,62,.25); }
.hero h1 { font-size: 47px; line-height: 1.3; font-weight: 700; letter-spacing: 1px; margin-bottom: 22px; }
.hero h1 .hl { color: #e8c887; }
.hero .lead { font-size: 17px; color: #d3e2f0; max-width: 560px; margin-bottom: 34px; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-art {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 20px; position: relative;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 45%),
    linear-gradient(145deg, #1d5f9e, #0b3055);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-art svg { width: 78%; height: 78%; opacity: .95; }
.hero-float {
  position: absolute; background: #fff; color: var(--c-primary-dark);
  border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
}
.hero-float .ic { width: 40px; height: 40px; border-radius: 9px; background: var(--c-accent-soft); display: flex; align-items: center; justify-content: center; }
.hero-float .ic svg { width: 22px; height: 22px; }
.hero-float .tx strong { display: block; font-size: 20px; line-height: 1.1; }
.hero-float .tx span { font-size: 12px; color: var(--c-text-sub); }
.hero-float.f1 { top: 8%; left: -8%; }
.hero-float.f2 { bottom: 10%; right: -6%; }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.stat { padding: 30px 24px; text-align: center; border-right: 1px solid var(--c-line); }
.stat:last-child { border-right: 0; }
.stat .num { font-size: 34px; font-weight: 700; color: var(--c-primary); line-height: 1; }
.stat .num span { color: var(--c-accent); }
.stat .label { margin-top: 10px; font-size: 14px; color: var(--c-text-sub); }
.stats-wrap { margin-top: -46px; position: relative; z-index: 5; }

/* ---------- 产品卡片 ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.prod-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--c-line); transition: .28s; position: relative;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.prod-thumb {
  height: 210px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.prod-thumb svg { width: 70%; height: 70%; transition: .4s; }
.prod-card:hover .prod-thumb svg { transform: scale(1.06); }
.prod-thumb .tag-new {
  position: absolute; top: 14px; left: 14px; background: var(--c-accent);
  color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 4px; letter-spacing: 1px;
}
.prod-body { padding: 22px 22px 24px; }
.prod-body h3 { font-size: 19px; color: var(--c-primary-dark); margin-bottom: 8px; }
.prod-body p { font-size: 14px; color: var(--c-text-sub); line-height: 1.75; min-height: 48px; }
.prod-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.prod-specs span { font-size: 12px; background: var(--c-bg-soft); color: var(--c-primary); padding: 4px 9px; border-radius: 4px; }
.prod-more { margin-top: 16px; font-size: 14px; color: var(--c-primary); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.prod-more svg { width: 14px; height: 14px; transition: .2s; }
.prod-card:hover .prod-more svg { transform: translateX(4px); }

/* ---------- 特性 / 优势 ---------- */
.feat {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 28px;
  border: 1px solid var(--c-line); transition: .25s; position: relative;
}
.feat:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feat-ic {
  width: 56px; height: 56px; border-radius: 12px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eaf2fa, #dbe9f5);
}
.feat-ic svg { width: 28px; height: 28px; }
.feat h3 { font-size: 19px; color: var(--c-primary-dark); margin-bottom: 10px; }
.feat p { color: var(--c-text-sub); font-size: 14px; line-height: 1.8; }
.feat .fnum { position: absolute; top: 22px; right: 24px; font-size: 40px; font-weight: 800; color: var(--c-bg-alt); line-height: 1; }

/* ---------- 分栏图文 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; position: relative; background: var(--c-primary); }
.split-visual svg { width: 100%; height: 100%; display: block; }
.split-copy h2 { font-size: 32px; color: var(--c-primary-dark); line-height: 1.4; margin-bottom: 18px; }
.split-copy .lead-p { font-size: 16px; color: var(--c-text-sub); margin-bottom: 22px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; }
.check-list .ck {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c-accent-soft);
  color: var(--c-accent); flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.check-list .ck svg { width: 13px; height: 13px; }
.check-list strong { color: var(--c-primary-dark); }

/* ---------- AI 工作台展示 ---------- */
.dashboard {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-line); overflow: hidden;
}
.dash-top { background: var(--c-primary-dark); padding: 14px 20px; display: flex; align-items: center; gap: 8px; }
.dash-top .dot { width: 11px; height: 11px; border-radius: 50%; }
.dash-top .d1 { background: #e06c5a; } .dash-top .d2 { background: #e6b750; } .dash-top .d3 { background: #5fb87a; }
.dash-top .title { margin-left: 12px; color: #bcd0e2; font-size: 13px; letter-spacing: .5px; }
.dash-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.dash-side { background: var(--c-bg-soft); border-right: 1px solid var(--c-line); padding: 18px 12px; }
.dash-side .si { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; font-size: 13px; color: var(--c-text-sub); margin-bottom: 4px; }
.dash-side .si svg { width: 16px; height: 16px; }
.dash-side .si.on { background: #fff; color: var(--c-primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.dash-main { padding: 22px; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.dash-card { background: var(--c-bg-soft); border-radius: 10px; padding: 16px; }
.dash-card .k { font-size: 12px; color: var(--c-text-sub); }
.dash-card .v { font-size: 26px; font-weight: 700; color: var(--c-primary-dark); margin-top: 4px; }
.dash-card .v em { font-style: normal; font-size: 13px; color: #3aa76d; margin-left: 6px; }
.dash-chart { background: var(--c-bg-soft); border-radius: 10px; padding: 18px; height: 190px; display: flex; align-items: flex-end; gap: 10px; }
.dash-chart .bar { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(to top, var(--c-primary), var(--c-primary-light)); opacity: .85; position: relative; }
.dash-chart .bar:nth-child(even) { background: linear-gradient(to top, var(--c-accent), #d9b26b); }

/* ---------- 时间线 / 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ''; position: absolute; top: 32px; left: 6%; right: 6%; height: 2px; background: var(--c-line); }
.step { text-align: center; position: relative; padding: 0 12px; }
.step .circle {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: #fff; border: 2px solid var(--c-primary); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
  position: relative; z-index: 2; box-shadow: 0 0 0 6px var(--c-bg-soft);
}
.step h3 { font-size: 17px; color: var(--c-primary-dark); margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--c-text-sub); line-height: 1.7; }

/* ---------- 客户 / 合作 ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.partner {
  background: #fff; border: 1px solid var(--c-line); border-radius: 8px;
  padding: 18px 26px; font-size: 16px; color: var(--c-text-sub); font-weight: 600;
  letter-spacing: 1px; min-width: 150px; text-align: center;
}
.partner:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------- CTA 横幅 ---------- */
.cta {
  background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary));
  color: #fff; padding: 62px 0; position: relative; overflow: hidden;
}
.cta::after { content: ''; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(185,138,62,.3), transparent 65%); }
.cta .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { font-size: 30px; margin-bottom: 10px; }
.cta p { color: #cfe0f0; font-size: 16px; }

/* ---------- 页脚 ---------- */
.footer { background: #0a2540; color: #aebfd0; padding: 66px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 46px; }
.footer .logo-txt strong { color: #fff; }
.footer-about p { line-height: 1.9; margin-top: 18px; color: #93a9bd; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--c-accent); }
.footer-links li { margin-bottom: 11px; }
.footer-links a:hover { color: var(--c-accent); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; line-height: 1.6; }
.footer-contact svg { width: 16px; height: 16px; color: var(--c-accent); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #7f96ab; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 内页 Banner ---------- */
.page-banner {
  background: linear-gradient(120deg, #0b3055, #1d5f9e); color: #fff;
  padding: 62px 0 56px; position: relative; overflow: hidden;
}
.page-banner::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; }
.page-banner .container { position: relative; z-index: 2; }
.crumb { font-size: 13px; color: #a9c4dd; margin-bottom: 14px; }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 8px; opacity: .5; }
.page-banner h1 { font-size: 34px; font-weight: 700; letter-spacing: 1px; }
.page-banner p { color: #c7d9ea; margin-top: 10px; font-size: 16px; max-width: 700px; }

/* ---------- 产品筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 22px; border: 1px solid var(--c-line); background: #fff; border-radius: 30px;
  font-size: 14px; color: var(--c-text-sub); cursor: pointer; transition: .2s;
}
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-btn.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ---------- 产品详情列表项 ---------- */
.plist-item { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 26px; transition: .25s; }
.plist-item:hover { box-shadow: var(--shadow-md); }
.plist-thumb { height: 220px; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.plist-thumb svg { width: 72%; height: 72%; }
.plist-copy h3 { font-size: 22px; color: var(--c-primary-dark); margin-bottom: 12px; }
.plist-copy p { color: var(--c-text-sub); font-size: 14px; line-height: 1.85; margin-bottom: 14px; }
.plist-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; margin-top: 12px; }
.plist-meta div { font-size: 13px; color: var(--c-text-sub); }
.plist-meta b { color: var(--c-primary); font-weight: 600; }

/* ---------- 平台功能模块 ---------- */
.mod-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 30px; transition: .25s; }
.mod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.mod-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.mod-ic { width: 48px; height: 48px; border-radius: 11px; background: linear-gradient(135deg, #eaf2fa, #dbe9f5); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mod-ic svg { width: 25px; height: 25px; }
.mod-head h3 { font-size: 18px; color: var(--c-primary-dark); }
.mod-card p { color: var(--c-text-sub); font-size: 14px; line-height: 1.8; }
.mod-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.mod-tags span { font-size: 12px; background: var(--c-bg-soft); color: var(--c-primary); padding: 4px 10px; border-radius: 4px; }

/* ---------- 关于我们 ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--c-line); }
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before { content: ''; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.tl-item .year { font-size: 15px; font-weight: 700; color: var(--c-primary); }
.tl-item p { color: var(--c-text-sub); font-size: 14px; margin-top: 4px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { text-align: center; padding: 34px 24px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
.value-card .vi { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 18px; background: var(--c-accent-soft); color: var(--c-accent); display: flex; align-items: center; justify-content: center; }
.value-card .vi svg { width: 30px; height: 30px; }
.value-card h3 { font-size: 18px; color: var(--c-primary-dark); margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--c-text-sub); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-info .ci-item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.ci-ic { width: 46px; height: 46px; border-radius: 10px; background: var(--c-accent-soft); color: var(--c-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-ic svg { width: 22px; height: 22px; }
.ci-tx h4 { font-size: 15px; color: var(--c-primary-dark); margin-bottom: 4px; }
.ci-tx p { color: var(--c-text-sub); font-size: 14px; line-height: 1.7; }

.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--c-text); margin-bottom: 8px; }
.form-group label .req { color: #d9534f; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 6px;
  font-size: 14px; font-family: inherit; color: var(--c-text); transition: .2s; background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(18,70,122,.08); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--c-text-light); margin-top: 4px; }

.map-box { border-radius: var(--radius-lg); overflow: hidden; height: 260px; background: var(--c-bg-alt); position: relative; display: flex; align-items: center; justify-content: center; border: 1px solid var(--c-line); }
.map-box svg { width: 100%; height: 100%; }
.map-box .map-label { position: absolute; background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-md); font-size: 13px; color: var(--c-primary-dark); font-weight: 600; }

/* ---------- 提示条 ---------- */
.notice { background: #fff8e8; border: 1px solid #f0d99a; color: #8a6d1f; padding: 14px 18px; border-radius: 8px; font-size: 14px; line-height: 1.7; }
.notice b { color: #6b5210; }

.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--c-primary-dark); color: #fff; padding: 13px 26px; border-radius: 8px;
  font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .3s; z-index: 999;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.back-top {
  position: fixed; right: 24px; bottom: 30px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; visibility: hidden; transition: .3s; z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top svg { width: 20px; height: 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff; height: auto;
    box-shadow: var(--shadow-md); padding: 10px 0; gap: 0; border-top: 1px solid var(--c-line);
  }
  .nav.open > li { height: auto; }
  .nav.open > li > a { padding: 14px 24px; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 0; min-width: 0; display: none; }
  .nav.open > li:hover .dropdown { display: block; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .plist-item { grid-template-columns: 1fr; }
  .plist-thumb { height: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar .tb-left { display: none; }
  .topbar .container { justify-content: center; }
  .sec { padding: 60px 0; }
  .sec-head h2 { font-size: 26px; }
  .hero h1 { font-size: 31px; }
  .hero .lead { font-size: 15px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
  .grid-3, .grid-4, .grid-2, .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
  .step .circle { margin-bottom: 12px; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .dash-card .v { font-size: 19px; }
  .cta .container { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .plist-meta { grid-template-columns: 1fr; }
  .hero-float.f1 { left: 0; } .hero-float.f2 { right: 0; }
}

/* ---------- 产品中心：品类子菜单与分区 ---------- */
.category-submenu {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 18px 22px; margin-bottom: 26px; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.sub-chip {
  display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 30px;
  font-size: 14px; color: var(--c-primary); background: var(--c-bg-soft);
  border: 1px solid transparent; transition: .2s; font-weight: 500;
}
.sub-chip:hover { border-color: var(--c-primary); background: #fff; transform: translateY(-2px); }

.cat-block { margin-bottom: 56px; padding-top: 10px; }
.cat-head {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px; margin-bottom: 24px;
  background: linear-gradient(120deg, #0b3055, #1d5f9e); border-radius: var(--radius-lg);
  color: #fff;
}
.cat-head-ic {
  width: 76px; height: 76px; border-radius: 12px; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cat-head-ic img { width: 90%; height: 90%; border-radius: 8px; }
.cat-head h2 { font-size: 23px; margin-bottom: 6px; }
.cat-head p { font-size: 14px; color: #cfe0f0; max-width: 720px; }

/* 公司简介 lead 段落间距优化 */
.split-copy .lead-p + .lead-p { margin-top: -8px; }

/* stats 独立区块在首页的排布 */
.stats-wrap + .sec { margin-top: 0; }

/* ---------- 联系我们：业务覆盖地图 ---------- */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); background: #fff; }
.map-title { padding: 13px 18px; font-size: 15px; font-weight: 600; color: var(--c-primary-dark); border-bottom: 1px solid var(--c-line); }
.map-canvas { width: 100%; height: 300px; background: #eef2f6; }
.map-cities { padding: 12px 18px; font-size: 13px; color: var(--c-text-sub); line-height: 1.7; border-top: 1px solid var(--c-line); }
.map-cities b { color: var(--c-primary); }

/* ---------- AI工作台 · 内部登录入口 ---------- */
.internal-login-sec { background: var(--c-bg-soft); }
.login-panel {
  display: grid; grid-template-columns: 1.1fr .9fr; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.login-panel-copy {
  background: linear-gradient(135deg, #0b3055, #1d5f9e); color: #fff; padding: 48px 44px;
}
.login-panel-copy h2 { font-size: 30px; margin: 14px 0 16px; }
.login-panel-copy > p { color: #cfdff0; font-size: 15px; line-height: 1.9; margin-bottom: 22px; }
.login-panel-copy .check-list .ck { background: rgba(255,255,255,.15); color: #f0d79a; }
.login-panel-copy .check-list li { color: #dce8f2; margin-bottom: 12px; }
.login-panel-form { background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-panel-form-inner { width: 100%; max-width: 340px; }
.login-panel-form-inner h3 { font-size: 24px; color: var(--c-primary-dark); margin-bottom: 6px; }
.lp-sub { color: var(--c-text-sub); font-size: 14px; margin-bottom: 26px; }
.lp-field { margin-bottom: 18px; }
.lp-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--c-text); }
.lp-field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 6px;
  font-size: 14px; font-family: inherit; transition: .2s;
}
.lp-field input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(18,70,122,.08); }
.lp-error { color: var(--a-danger, #d64545); font-size: 13px; min-height: 20px; margin-bottom: 6px; }
.lp-foot { text-align: center; color: var(--c-text-light); font-size: 12px; margin-top: 18px; }

@media (max-width: 800px) {
  .login-panel { grid-template-columns: 1fr; }
  .login-panel-copy { padding: 32px 26px; }
  .login-panel-form { padding: 30px 24px; }
}

/* ---------- 顶部工具条：网站管理后台入口 ---------- */
.topbar .admin-entry {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; margin-left: 2px; border-radius: 4px;
  color: #e8f1fa; font-size: 12px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.35); transition: .2s; white-space: nowrap;
}
.topbar .admin-entry svg { width: 12px; height: 12px; flex-shrink: 0; }
.topbar .admin-entry:hover { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.6); }
@media (max-width: 800px) {
  .topbar .tb-right { gap: 10px; }
  .topbar .admin-entry { padding: 2px 8px; }
}

/* ---------- 工程案例页 ---------- */
.case-stats-sec { background: linear-gradient(120deg, #0b3055, #1d5f9e); padding: 30px 0; }
.case-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case-stat { text-align: center; color: #fff; }
.cs-num { font-size: 34px; font-weight: 700; color: #f0d79a; line-height: 1.2; }
.cs-txt { font-size: 14px; color: #cfe0f0; margin-top: 6px; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { font-size: 30px; color: var(--c-primary-dark); margin-bottom: 10px; }
.section-head p { color: var(--c-text-sub); font-size: 15px; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 26px; }
.case-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: .25s; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.case-thumb { position: relative; width: 100%; height: 190px; overflow: hidden; background: #eef2f6; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.case-card:hover .case-thumb img { transform: scale(1.05); }
.case-badge { position: absolute; top: 12px; left: 12px; background: var(--c-primary); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 20px; }
.case-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.case-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.case-cat { font-size: 12px; color: var(--c-primary); background: var(--c-bg-soft); padding: 3px 10px; border-radius: 4px; }
.case-loc { font-size: 12px; color: var(--c-text-light); }
.case-body h3 { font-size: 18px; color: var(--c-primary-dark); margin-bottom: 10px; }
.case-desc { font-size: 13px; color: var(--c-text-sub); line-height: 1.7; margin-bottom: 14px; flex: 1; }
.case-prods { display: flex; flex-wrap: wrap; gap: 6px; }
.case-prods span { font-size: 12px; color: #5b6b7a; background: #f3f6f9; padding: 3px 9px; border-radius: 3px; }
@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) {
  .case-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cs-num { font-size: 28px; }
  .case-grid { grid-template-columns: 1fr; }
}

/* ---------- 多语言切换器 ---------- */
.topbar .tb-right { display: inline-flex; align-items: center; gap: 12px; }
.lang-switcher { position: relative; display: inline-block; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  padding: 3px 9px; border-radius: 4px; color: #e8f1fa; font-size: 12px;
  background: transparent; border: 1px solid rgba(255,255,255,.35);
  font-family: inherit; line-height: 1.4; transition: .2s; white-space: nowrap;
}
.lang-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.lang-btn:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.6); color: #fff; }
.lang-caret { font-size: 10px; opacity: .8; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 9999;
  min-width: 210px; background: #fff; border: 1px solid var(--c-line);
  border-radius: 8px; box-shadow: 0 10px 32px rgba(11,48,85,.18);
  padding: 6px; display: none;
}
.lang-menu.open { display: block; }
.lang-menu::before {
  content: ''; position: absolute; right: 16px; top: -6px; width: 10px; height: 10px;
  background: #fff; border-left: 1px solid var(--c-line); border-top: 1px solid var(--c-line);
  transform: rotate(45deg);
}
.lang-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 10px; border: none; background: transparent; cursor: pointer;
  border-radius: 5px; font-size: 13px; color: var(--c-text); font-family: inherit; transition: .15s;
}
.lang-item:hover { background: var(--c-bg-soft); }
.lang-item.active { background: #eaf2fa; color: var(--c-primary); font-weight: 600; }
.li-flag { font-size: 15px; line-height: 1; }
.li-label { flex: 1; }
.li-ok { color: var(--c-primary); font-weight: 700; }
@media (max-width: 800px) {
  .topbar .tb-right { gap: 8px; }
  .lang-btn { padding: 2px 7px; }
  .lang-cur { display: none; }
}

/* ---------- 阿拉伯语 RTL（从右到左）适配 ---------- */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .container { direction: rtl; }
/* 顶部工具条：品牌与右侧工具左右镜像 */
html[dir="rtl"] .topbar .tb-inner,
html[dir="rtl"] .topbar .container { direction: rtl; }
html[dir="rtl"] .topbar .tb-left,
html[dir="rtl"] .topbar .tb-right { direction: rtl; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .lang-menu::before { right: auto; left: 16px; }
html[dir="rtl"] .lang-item { text-align: right; }
html[dir="rtl"] .lang-item .li-ok { margin-left: auto; margin-right: 0; }
/* 导航菜单镜像 */
html[dir="rtl"] .main-nav,
html[dir="rtl"] .nav-list { direction: rtl; }
/* 通用区块文字右对齐，但保留编号/图标的视觉顺序 */
html[dir="rtl"] .section-head,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .split-copy,
html[dir="rtl"] .case-body,
html[dir="rtl"] .lp-sub { text-align: right; }
/* 表单输入右对齐 */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select { direction: rtl; text-align: right; }
/* 流程/步骤序号等保持 LTR 数字方向，避免数字倒序 */
html[dir="rtl"] .cs-num,
html[dir="rtl"] .stat-num,
html[dir="rtl"] .step-no,
html[dir="rtl"] .year { direction: ltr; unicode-bidi: embed; }
/* 案例/产品卡片内部保持自然方向 */
html[dir="rtl"] .case-card,
html[dir="rtl"] .product-card { direction: rtl; }
