/* ========== 基础变量 ========== */
:root {
  --navy: #0f2b4c;
  --navy-2: #163a63;
  --orange: #f28c28;
  --orange-dark: #d96a12;
  --text: #1f2d3d;
  --text-light: #5c6b7a;
  --line: #dfe6ee;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(15, 43, 76, 0.10);
  --radius: 10px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(217,106,18,.28); }
.btn-outline { border-color: rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-lg { padding: 13px 28px; font-size: 15px; }

.text-link { color: var(--orange-dark); font-weight: 600; font-size: 14px; }
.text-link:hover { color: var(--navy); }

/* ========== 顶部条与导航 ========== */
.topbar { background: var(--navy); color: rgba(255,255,255,.82); font-size: 12px; }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 34px; }
.topbar-right { margin-left: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(15,43,76,.08); }
.header-inner { display: flex; align-items: center; height: 72px; gap: 28px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; color: var(--navy); }
.brand-text { font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: .5px; }
.brand-text small { display: block; font-size: 8px; letter-spacing: 1.4px; color: var(--text-light); font-weight: 600; margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { position: relative; padding: 10px 14px; font-size: 14px; color: var(--text); font-weight: 500; }
.site-nav a:hover, .site-nav a.active { color: var(--orange-dark); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.header-cta { margin-left: 6px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 38px; height: 38px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; border-radius: 2px; transition: .25s; }

/* ========== Hero ========== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f8fb 0%, #e9f0f7 100%);
}
.hero::before {
  content: "";
  position: absolute;
  right: -120px; top: -180px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: rgba(15,43,76,.04);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: 540px; padding: 60px 0; position: relative; }
.hero-badge { display: inline-block; padding: 5px 14px; border: 1px solid rgba(242,140,40,.5); color: var(--orange-dark); background: rgba(242,140,40,.08); border-radius: 30px; font-size: 12px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.2; color: var(--navy); font-weight: 800; letter-spacing: 1px; }
.hero h1 span { color: var(--orange); display: block; }
.hero-lead { margin: 22px 0 28px; font-size: 16px; color: var(--text-light); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 30px; font-size: 13px; color: var(--text-light); }
.hero-points li { position: relative; padding-left: 18px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero-visual { display: flex; justify-content: center; }
.hero-svg { width: 100%; max-width: 560px; }

/* ========== 数据条 ========== */
.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 34px 10px; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: 0; }
.stat-item strong { display: block; font-size: 38px; line-height: 1; color: var(--orange); font-weight: 800; }
.stat-item strong span { font-size: 18px; margin-left: 2px; }
.stat-item p { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.72); }

/* ========== 通用区块 ========== */
.section { padding: 88px 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.section-heading h2 { font-size: 32px; color: var(--navy); line-height: 1.3; margin: 4px 0 10px; }
.section-heading p { color: var(--text-light); font-size: 15px; }
.section-heading.light h2 { color: #fff; }
.section-heading.light p { color: rgba(255,255,255,.65); }
.eyebrow { font-size: 12px; letter-spacing: 2px; color: var(--orange); font-weight: 700; }

/* ========== 产品 ========== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-tab { border: 1px solid var(--line); background: #fff; color: var(--text-light); padding: 8px 18px; border-radius: 30px; cursor: pointer; font-size: 13px; transition: .2s; }
.filter-tab:hover { border-color: var(--orange); color: var(--orange-dark); }
.filter-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card.hidden { display: none; }
.product-thumb { height: 170px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-thumb::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.product-thumb span { position: relative; font-size: 28px; font-weight: 800; letter-spacing: 3px; color: rgba(255,255,255,.9); }
.thumb-1 { background: linear-gradient(135deg, #1b3c60, #2e5f8f); }
.thumb-2 { background: linear-gradient(135deg, #2b4d6b, #567b99); }
.thumb-3 { background: linear-gradient(135deg, #b85c13, #f28c28); }
.thumb-4 { background: linear-gradient(135deg, #7d4a1e, #c47b32); }
.thumb-5 { background: linear-gradient(135deg, #1e4b54, #3d7c85); }
.thumb-6 { background: linear-gradient(135deg, #4b3c66, #7a6895); }
.product-body { padding: 22px; }
.product-body h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.product-model { font-size: 12px; color: var(--orange-dark); margin-bottom: 10px !important; }
.product-body p { color: var(--text-light); font-size: 13px; margin-bottom: 14px; }
.product-detail { border: 0; background: none; padding: 0; color: var(--orange-dark); font-weight: 600; font-size: 13px; cursor: pointer; }
.product-detail:hover { color: var(--navy); }

/* ========== 案例 ========== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { min-height: 280px; border-radius: var(--radius); overflow: hidden; position: relative; display: flex; align-items: flex-end; padding: 26px; background-size: cover; background-position: center; }
.case-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,24,43,.92), rgba(6,24,43,.15)); }
.case-1 { background-color: #234e70; background-image: radial-gradient(circle at 70% 25%, rgba(242,140,40,.4), transparent 45%), linear-gradient(135deg, #163a63, #0c2239); }
.case-2 { background-color: #3a5f52; background-image: radial-gradient(circle at 25% 20%, rgba(120,200,160,.25), transparent 45%), linear-gradient(135deg, #25483d, #102a22); }
.case-3 { background-color: #6c4a2f; background-image: radial-gradient(circle at 75% 30%, rgba(242,140,40,.3), transparent 45%), linear-gradient(135deg, #5a3c26, #2c1d13); }
.case-content { position: relative; z-index: 1; color: #fff; }
.case-content span { display: inline-block; font-size: 11px; letter-spacing: 1px; color: var(--orange); font-weight: 700; margin-bottom: 8px; }
.case-content h3 { font-size: 19px; line-height: 1.4; margin-bottom: 8px; }
.case-content p { font-size: 13px; color: rgba(255,255,255,.72); }

/* ========== 新闻 ========== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .25s; }
.news-card:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-4px); }
.news-card time { font-size: 12px; color: var(--orange-dark); font-weight: 600; }
.news-card h3 { font-size: 17px; color: var(--navy); margin: 10px 0; line-height: 1.5; }
.news-card p { font-size: 13px; color: var(--text-light); }

/* ========== 关于 ========== */
.about { background: var(--bg-soft); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.about-copy h2 { font-size: 30px; color: var(--navy); margin: 6px 0 16px; line-height: 1.4; }
.about-copy > p { color: var(--text-light); font-size: 15px; margin-bottom: 20px; }
.about-list { margin-bottom: 26px; }
.about-list li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 14px; color: var(--text-light); }
.about-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 800; }
.about-list strong { color: var(--navy); }

/* ========== 联系 ========== */
.contact-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-group label span { color: #e14b4b; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 13px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,140,40,.12); }
.form-group input.invalid, .form-group textarea.invalid { border-color: #e14b4b; }
.form-note { margin-top: 12px; font-size: 13px; min-height: 20px; }
.form-note.success { color: #20834b; }
.form-note.error { color: #c23b3b; }

.contact-info { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; }
.contact-info h3 { font-size: 20px; margin-bottom: 24px; color: #fff; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: rgba(242,140,40,.18); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.contact-item strong { display: block; font-size: 14px; }
.contact-item p { font-size: 13px; color: rgba(255,255,255,.68); }
.contact-qr { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); text-align: center; }
.contact-qr svg { width: 92px; height: 92px; margin: 0 auto 8px; background: #fff; border-radius: 6px; padding: 4px; }
.contact-qr p { font-size: 12px; color: rgba(255,255,255,.6); }

/* ========== 页脚 ========== */
.site-footer { background: #0a1d33; color: rgba(255,255,255,.65); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-mark { color: var(--orange); }
.footer-brand .brand-text small { color: rgba(255,255,255,.45); }
.footer-brand p { max-width: 280px; line-height: 1.8; }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-links a { display: block; margin-bottom: 9px; }
.footer-links a:hover { color: var(--orange); }
.footer-contact p { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; }

/* ========== 返回顶部 / 弹窗 ========== */
.back-to-top {
  position: fixed; right: 24px; bottom: 96px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 6px 18px rgba(217,106,18,.35);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--orange-dark); }

.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,20,36,.65); }
.modal-dialog { position: relative; background: #fff; border-radius: var(--radius); padding: 36px; max-width: 520px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: modalIn .25s ease; }
.modal-dialog h3 { font-size: 24px; color: var(--navy); margin: 8px 0 14px; }
.modal-dialog p { color: var(--text-light); font-size: 14px; margin-bottom: 24px; }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--text-light); cursor: pointer; }
.modal-close:hover { color: var(--navy); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ========== 404 ========== */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--bg-soft); padding: 40px 20px; }
.error-code { font-size: 120px; line-height: 1; font-weight: 800; color: var(--navy); }
.error-code span { color: var(--orange); }
.error-page h1 { font-size: 26px; margin: 10px 0; color: var(--navy); }
.error-page p { color: var(--text-light); margin-bottom: 24px; }

/* ========== 响应式 ========== */
@media (max-width: 980px) {
  .header-inner { gap: 14px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 10px 9px; font-size: 13px; }
  .header-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 48px 0; }
  .hero-visual { order: -1; }
  .hero-svg { max-width: 420px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .product-grid, .case-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  .topbar-inner { gap: 14px; font-size: 11px; }
  .topbar-right, .topbar-inner span:nth-child(2) { display: none; }
  .header-inner { height: 62px; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav { position: absolute; top: 62px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 15px 16px; display: none; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 6px; font-size: 14px; border-bottom: 1px solid var(--line); }
  .site-nav a.active::after { display: none; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 15px; }
  .hero-points { gap: 8px 18px; }
  .section { padding: 60px 0; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .section-heading h2 { font-size: 27px; }
  .product-grid, .case-grid, .news-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form, .contact-info { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .stat-item strong { font-size: 30px; }
}

/* ========== 语言切换 ========== */
.lang-switch {
  margin-left: 4px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .5px;
  transition: .2s;
}
.lang-switch:hover { border-color: var(--orange); color: var(--orange-dark); background: rgba(242,140,40,.08); }

/* ========== 产品缩略图扩展 ========== */
.thumb-7 { background: linear-gradient(135deg, #345b73, #668da4); }
.thumb-8 { background: linear-gradient(135deg, #6b553c, #a88455); }

/* ========== 地图 ========== */
.map-section { background: var(--bg-soft); }
.map-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8eef5;
}
.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  font-size: 14px;
  background: repeating-linear-gradient(45deg, #eef3f8, #eef3f8 12px, #e8eef5 12px, #e8eef5 24px);
}
.map-container.loaded .map-fallback { display: none; }

/* ========== 在线客服 ========== */
.service-widget { position: fixed; right: 24px; bottom: 28px; z-index: 120; }
.service-toggle {
  border: 0;
  border-radius: 30px;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15,43,76,.3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-toggle:hover { background: var(--navy-2); }
.service-dot { width: 8px; height: 8px; border-radius: 50%; background: #45d483; box-shadow: 0 0 0 4px rgba(69,212,131,.2); }
.service-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(15,43,76,.22);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s;
}
.service-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.service-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.service-head strong { color: var(--navy); font-size: 16px; }
.service-close { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--text-light); cursor: pointer; }
.service-intro { font-size: 12px; color: var(--text-light); margin-bottom: 14px; }
.service-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 7px;
  text-decoration: none;
}
.service-option:hover { background: var(--bg-soft); }
.service-opt-icon {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 50%;
  background: rgba(242,140,40,.15);
  color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.service-option strong { display: block; color: var(--navy); font-size: 13px; }
.service-option small { display: block; color: var(--text-light); font-size: 12px; }
.service-wechat { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; text-align: center; }
.service-wechat svg { width: 82px; height: 82px; margin: 0 auto 6px; border: 1px solid var(--line); border-radius: 5px; }
.service-wechat p { font-size: 11px; color: var(--text-light); }

@media (max-width: 680px) {
  .lang-switch { margin-left: 0; }
  .map-container { height: 300px; }
  .service-widget { right: 14px; bottom: 16px; }
  .service-panel { width: min(300px, calc(100vw - 28px)); }
  .back-to-top { right: 16px; bottom: 82px; }
}
