/* ============================================================
   西东物联官网 - 全局样式表
   配色：品牌蓝色系（主蓝 #1657B0 / 深蓝 #0A1F3F / 浅蓝底 #E8F2FC）
   布局：桌面优先，900px / 640px 双档移动端适配
   ============================================================ */

:root {
  /* 品牌蓝色系 */
  --primary: #0A1F3F;          /* 深蓝：标题 / 主文字 */
  --primary-mid: #0E3A73;      /* 渐变辅助蓝 */
  --accent: #1657B0;           /* 品牌蓝：按钮 / 强调 */
  --accent-hover: #0E4185;     /* 品牌蓝悬浮 */
  --secondary: #1858C0;        /* 链接蓝 */
  --text: #1E293B;
  --muted: #64748B;
  --bg: #ffffff;
  --surface: #F5F9FD;          /* 浅蓝底：区块背景 */
  --surface-2: #E8F2FC;        /* 浅蓝底：卡片 / 分隔 */
  --border: #D9E5F2;
  --radius: 10px;
  --shadow: 0 4px 6px -1px rgba(10, 31, 63, 0.08);
  --max-width: 1200px;
  --header-height: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: var(--text); line-height: 1.75; background: var(--bg); -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
/* 中文排版优化：标题行平衡、正文两端对齐避免单字孤行 */
h1, h2, h3, h4, h5, h6, .section-title { text-wrap: balance; }
p, .section-subtitle, .lead, .card p, .feature-cell p, .related-card p, .case-card p, .faq-a, .about-intro p, .footer-brand p, .hero p, .page-hero .section-subtitle { text-wrap: pretty; text-align: justify; text-justify: inter-ideograph; }
a { color: var(--secondary); text-decoration: none; transition: .2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === 按钮 === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; transition: .2s; border: none; cursor: pointer; min-height: 44px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn-outline { background: #fff; color: var(--accent); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-hover); }

/* === 页头 === */
header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); height: var(--header-height); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--primary); font-size: 1.15rem; }
.logo img { height: 160px; width: auto; }
img[src$="logo.png"] { height: 160px; width: auto; }
nav ul { display: flex; gap: 32px; list-style: none; }
nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
nav a:hover, nav a.active { color: var(--accent); }
/* 导航下拉快速导航 */
nav li.has-drop { position: relative; }
nav li.has-drop > a::after { content: ""; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: 6px; vertical-align: middle; opacity: 0.55; transition: .2s; }
nav li.has-drop:hover > a::after { transform: rotate(180deg); }
.nav-drop { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 36px -8px rgba(10,31,63,0.18); padding: 10px 0; min-width: 230px; z-index: 1001; margin-top: 10px; }
.nav-drop::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
nav li.has-drop:hover .nav-drop { display: block; }
.nav-drop .drop-head { padding: 8px 20px 4px; font-size: 0.74rem; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; }
.nav-drop .drop-divider { height: 1px; background: var(--border); margin: 8px 0; }
.nav-drop a { display: block; padding: 9px 20px; font-size: 0.9rem; color: var(--text); white-space: nowrap; }
.nav-drop a:hover { background: var(--surface-2); color: var(--accent); }
.nav-drop a.drop-all { color: var(--accent); font-weight: 600; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.hamburger { width: 22px; height: 2px; background: var(--primary); position: relative; transition: .25s; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--primary); transition: .25s; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.mobile-menu-btn[aria-expanded="true"] .hamburger { background: transparent; }
.mobile-menu-btn[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* === 区块 === */
.section { padding: 84px 0; }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--primary); margin-bottom: 16px; font-weight: 700; letter-spacing: -0.02em; }
.section-subtitle { color: var(--muted); font-size: 1.1rem; margin-bottom: 48px; max-width: 760px; line-height: 1.7; }
.section-header { margin-bottom: 48px; }

/* === 首页 Hero === */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); color: #fff; padding: 120px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(46, 110, 200, 0.35) 0%, transparent 45%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 5vw, 2.9rem); line-height: 1.5; margin-bottom: 24px; font-weight: 700; max-width: 820px; }
.hero p { color: rgba(255,255,255,0.85); font-size: clamp(1rem, 2.5vw, 1.2rem); max-width: 720px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* === 数据条 === */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.stat { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 24px; text-align: center; backdrop-filter: blur(4px); }
.stat-num { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; color: #fff; line-height: 1.2; }
.stat-label { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-top: 6px; }

/* === 卡片 === */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -6px rgba(10, 31, 63, 0.15); }
.card h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 12px; }
.card p, .card li { color: var(--muted); font-size: 0.95rem; }
.card img.small, .card .img-placeholder.small { margin-top: auto; }
.card-grid-software { grid-template-columns: repeat(3, 1fr); }
.card ul { padding-left: 18px; margin-top: 12px; }
.card li { margin-bottom: 8px; }
.icon { width: 48px; height: 48px; background: var(--surface-2); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--accent); font-size: 1.4rem; }

/* === 图片占位 === */
.img-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #F5F9FD, #E8F2FC); border: 2px dashed var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 24px; margin: 24px 0; font-size: 0.9rem; }
.img-placeholder.small { aspect-ratio: auto; min-height: 140px; height: 140px; padding: 12px; margin: 18px 0 0; }
.img-placeholder span { max-width: 360px; line-height: 1.6; }

/* === 真实图片（替换占位框后使用） === */
.img-real { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 8px 24px -10px rgba(10,31,63,0.25); margin: 24px 0; }
.img-real.small { height: 140px; width: 100%; max-height: none; object-fit: contain; margin: 18px 0 0; }
.detail-overview .img-real { margin: 0; }

/* === FAQ === */
.faq { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-q { font-weight: 600; color: var(--primary); margin-bottom: 10px; font-size: 1.05rem; }
.faq-a { color: var(--muted); }

/* === CTA === */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); color: #fff; text-align: center; }
.cta-section .section-title { color: #fff; }
.cta-section .section-subtitle { color: rgba(255,255,255,0.8); margin: 0 auto 32px; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 860px; margin-bottom: 32px; }

.feature-list li { margin-bottom: 16px; padding-left: 8px; }
.feature-list strong { color: var(--primary); }

/* === 表格（移动端横向滚动） === */
table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
th, td { border: 1px solid var(--border); padding: 14px 16px; text-align: left; vertical-align: top; }
th { background: var(--surface); font-weight: 600; color: var(--primary); }
.compare-table th { width: 30%; }

/* === 标签 === */
.tags { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.tag { padding: 6px 16px; background: #fff; border: 1px solid var(--border); border-radius: 20px; font-size: 0.85rem; color: var(--muted); }
.tag.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* === 案例 === */
.case-card { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; margin-bottom: 56px; }
.case-card h3 { color: var(--primary); font-size: 1.3rem; margin-bottom: 16px; }
.case-card .meta { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; display: block; }
.case-card p { color: var(--muted); margin-bottom: 12px; }

/* === 关于我们 === */
.about-intro p { margin-bottom: 20px; font-size: 1.05rem; color: var(--text); }
.contact-info { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.contact-info li { margin-bottom: 12px; color: var(--muted); }

/* === 二级页头（与首页同款深蓝横幅，与下方内容视觉分离） === */
.breadcrumb { background: var(--surface); padding: 16px 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(46, 110, 200, 0.35) 0%, transparent 45%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; margin-bottom: 16px; }
.page-hero .section-subtitle { color: rgba(255,255,255,0.82); margin-bottom: 0; }
.page-hero .hero-btns { margin-top: 28px; }
.page-hero .tags { margin: 20px 0 0; }
.page-hero .tag { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.9); }

/* === 产品详情页 === */
.detail-body { padding: 64px 0; }
.detail-overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.detail-overview .img-placeholder { margin: 0; }
.detail-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.detail-info-card h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 16px; }
.detail-info-card ul { list-style: none; }
.detail-info-card li { padding: 10px 0; border-bottom: 1px dashed var(--border); color: var(--text); font-size: 0.95rem; }
.detail-info-card li:last-child { border-bottom: none; }
.detail-info-card li strong { color: var(--primary); display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 2px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-cell { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature-cell h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 10px; }
.feature-cell h3::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; margin-right: 10px; vertical-align: 2px; }
.feature-cell p { color: var(--muted); font-size: 0.93rem; }

/* 关联导航卡片 */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.related-card { display: block; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; transition: .2s; color: var(--text); }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -6px rgba(10, 31, 63, 0.14); border-color: var(--accent); color: var(--text); }
.related-card .rc-tag { display: inline-block; font-size: 0.78rem; color: var(--accent); background: var(--surface-2); border-radius: 4px; padding: 2px 10px; margin-bottom: 10px; font-weight: 600; }
.related-card h3 { color: var(--primary); font-size: 1rem; margin-bottom: 8px; }
.related-card p { color: var(--muted); font-size: 0.9rem; }
.related-card .rc-more { display: inline-block; margin-top: 12px; font-size: 0.88rem; color: var(--accent); font-weight: 600; }

/* 产品卡详情按钮 */
a.btn-detail { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
a.btn-detail:hover { color: var(--accent-hover); }
a.btn-detail::after { content: "→"; transition: .2s; }
a.btn-detail:hover::after { transform: translateX(3px); }
/* 方案详情页量化价值卡片（浅底） */
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; text-align: center; }
.stat-value { font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 700; color: var(--primary); line-height: 1.4; }
.stat-card .stat-label { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }

/* 产品快速导航（详情页底部） */
.product-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.product-nav a { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 10px; font-size: 0.9rem; color: var(--text); font-weight: 500; transition: .2s; }
.product-nav a:hover, .product-nav a.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 技术参数表 */
.spec-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.spec-table th { width: 220px; background: var(--surface); color: var(--primary); font-weight: 600; white-space: nowrap; }
.spec-table td { color: var(--text); line-height: 1.6; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* === 页脚 === */
footer { background: #071628; color: #cbd5e1; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img { height: 60px; margin-bottom: 16px; border-radius: 4px; }
.footer-brand p { color: #94a3b8; font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #64748b; }

/* ============================================================
   移动端适配（≤900px 平板 / ≤640px 手机）
   ============================================================ */
@media (max-width: 900px) {
  nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 24px 16px; box-shadow: 0 12px 24px -8px rgba(10,31,63,0.12); }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav li { border-bottom: 1px solid var(--surface-2); }
  nav li:last-child { border-bottom: none; }
  nav a { display: block; padding: 14px 0; font-size: 1rem; }
  /* 移动端：下拉导航改为内嵌展开列表 */
  .nav-drop { display: block; position: static; transform: none; box-shadow: none; border: none; border-left: 3px solid var(--surface-2); margin: 0 0 6px 14px; padding: 0; min-width: 0; border-radius: 0; }
  .nav-drop a { padding: 10px 16px; font-size: 0.92rem; color: var(--muted); white-space: normal; }
  .nav-drop a:hover { background: var(--surface-2); }
  .nav-drop .drop-head { display: none; }
  .nav-drop .drop-divider { display: none; }
  .mobile-menu-btn { display: flex; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .case-card { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 72px; }
  .page-hero { padding: 56px 0 52px; }
  .detail-overview { grid-template-columns: 1fr; gap: 24px; }

  /* 表格横向滚动（触摸顺滑） */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  th, td { min-width: 120px; }

  .btn { width: auto; }
  .hero-btns .btn { flex: 1 1 auto; min-width: 160px; }
}

@media (max-width: 640px) {
  :root { --header-height: 100px; }
  .container { padding: 0 18px; }
  .logo { font-size: 1rem; gap: 8px; }
  .logo img { height: 88px; }
  img[src$="logo.png"] { height: 88px; }

  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat { padding: 18px; }
  .section { padding: 48px 0; }
  .section-subtitle { margin-bottom: 32px; font-size: 1rem; }
  .hero { padding: 56px 0 56px; }
  .hero h1 { font-size: 1.6rem; line-height: 1.5; }
  .hero p { font-size: 0.98rem; margin-bottom: 24px; }
  .hero-btns { gap: 12px; }
  .hero-btns .btn { flex: 1 1 100%; }
  .stats { margin-top: 36px; }

  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-grid-software { grid-template-columns: 1fr; }
  .card { padding: 22px; }

  .img-placeholder { padding: 16px; font-size: 0.85rem; margin: 18px 0; }
  .img-placeholder span { max-width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 48px 0 24px; }
  .footer-bottom { flex-direction: column; }

  .lead { font-size: 1rem; }
  .faq-item { padding: 18px 0; }
  .faq-q { font-size: 1rem; }
  .about-intro p { font-size: 1rem; }
  .case-card h3 { font-size: 1.15rem; }
  .detail-body { padding: 44px 0; }
  .detail-info-card { padding: 20px; }
  .feature-grid, .related-grid { grid-template-columns: 1fr; }
  .product-nav { grid-template-columns: repeat(2, 1fr); }
  .spec-table th { width: 140px; padding: 12px 14px; }
  .spec-table td { padding: 12px 14px; }

  /* 面包屑过长时允许换行 */
  .breadcrumb { font-size: 0.82rem; }
}

/* ===== 咨询热线弹窗 ===== */
.consult-overlay {
  position: fixed; inset: 0;
  background: rgba(10,31,63,.5);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
}
.consult-overlay.show { display: flex; }
.consult-modal {
  position: relative; background: #fff; border-radius: 14px;
  width: 100%; max-width: 360px; padding: 34px 28px 28px;
  box-shadow: 0 20px 60px rgba(10,31,63,.35);
  text-align: center; animation: consultPop .18s ease-out;
}
@keyframes consultPop {
  from { transform: translateY(8px) scale(.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.consult-modal .consult-close {
  position: absolute; top: 10px; right: 14px; border: none; background: none;
  font-size: 1.7rem; line-height: 1; color: #0A1F3F; cursor: pointer; opacity: .45;
}
.consult-modal .consult-close:hover { opacity: 1; }
.consult-modal .consult-title {
  margin: 0 0 18px; color: #0A1F3F; font-size: 1.2rem; font-weight: 700;
}
.consult-modal .consult-line {
  margin: 12px 0; font-size: 1.08rem; color: #1657B0; font-weight: 600;
}
.consult-modal .consult-line a {
  color: #1657B0; text-decoration: none; border-bottom: 1px dashed #1657B0;
}
.consult-modal .consult-note { margin-top: 16px; color: #6b7686; font-size: .9rem; }
