﻿/* ============================================================
   AIoT 企业官网样式（参考 shimeta 风格：深色导航 + 科技蓝 + 大图产品版块）
   桌面端 + 手机端响应式
   ============================================================ */
:root {
  --primary: #0b57d0;
  --primary-dark: #083a85;
  --primary-light: #e8f0fe;
  --dark: #0b1e33;
  --dark-2: #122a47;
  --text: #232a33;
  --muted: #7a8798;
  --border: #e5eaf1;
  --bg: #f5f8fc;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; color: var(--text); background: #fff; line-height: 1.65; font-size: 15px; }
a { color: inherit; text-decoration: none; transition: .2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: 10px 28px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 12px 34px; font-size: 15px; }
.center-more { text-align: center; margin-top: 36px; }

/* ---------- 顶部导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--dark); transition: .25s; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; height: 68px; gap: 30px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), #3d8bfd); border-radius: 8px; color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.logo-text { color: #fff; font-size: 19px; font-weight: 700; line-height: 1.15; display: flex; flex-direction: column; }
.logo-text small { font-size: 9px; letter-spacing: 2px; color: #7d95b5; font-weight: 400; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: #cfdcec; padding: 8px 14px; font-size: 15px; border-radius: 6px; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.header-tel { display: flex; align-items: center; gap: 8px; color: #fff; flex-shrink: 0; }
.tel-icon { font-size: 20px; }
.tel-num { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: 15px; }
.tel-num small { color: #7d95b5; font-size: 10px; font-weight: 400; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 20px; border-radius: 6px; padding: 4px 10px; cursor: pointer; }

/* ---------- 首页 Banner ---------- */
.hero-banner { background: linear-gradient(120deg, #0b1e33 0%, #123a6b 55%, #0b57d0 130%); color: #fff; position: relative; overflow: hidden; }
.hero-banner::before { content: ''; position: absolute; right: -120px; top: -80px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(61,139,253,.35), transparent 70%); }
.hero-banner::after { content: ''; position: absolute; left: 8%; bottom: -180px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(11,87,208,.4), transparent 70%); }
.hero-inner { position: relative; z-index: 1; padding: 88px 0 96px; text-align: center; }
.hero-tag { display: inline-block; border: 1px solid rgba(255,255,255,.4); border-radius: 30px; padding: 4px 18px; font-size: 13px; letter-spacing: 2px; color: #cfe0f5; margin-bottom: 20px; }
.hero-title { font-size: 44px; letter-spacing: 2px; margin-bottom: 18px; }
.hero-desc { color: #b9cbe4; font-size: 16px; white-space: pre-line; margin-bottom: 30px; }
.banner-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 通用区块 ---------- */
.section { padding: 70px 0; }
.section-gray { background: var(--bg); }
.section-dark { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, #16406f 100%); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-title { font-size: 30px; position: relative; display: inline-block; padding-bottom: 14px; }
.section-title::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 46px; height: 3px; background: var(--primary); border-radius: 2px; }
.section-en { color: #a9b6c6; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin-top: 4px; }
.section-sub { color: var(--muted); margin-top: 10px; font-size: 14px; }
.section-title-light { color: #fff; }
.section-title-light::after { background: #5b9bff; }
.section-sub-light { color: #b8c7dd; }
.section-en-light { color: #7d95b5; }

/* ---------- 产品大图横排版块（仿参考站 hero 产品） ---------- */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; padding: 0; margin-bottom: 34px; box-shadow: 0 6px 26px rgba(11,30,51,.05); }
.product-hero:last-child { margin-bottom: 0; }
.hero-media { background: linear-gradient(135deg, #eef4fc, #dce9f8); min-height: 320px; display: flex; align-items: center; justify-content: center; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-ph span { font-size: 96px; opacity: .5; }
.hero-info { padding: 40px 40px 40px 10px; }
.product-hero.flip .hero-media { order: 2; }
.product-hero.flip .hero-info { order: 1; padding: 40px 10px 40px 40px; }
.hero-model { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 700; border-radius: 4px; padding: 2px 10px; margin-left: 10px; vertical-align: middle; }
.hero-info h3 { font-size: 24px; margin-bottom: 12px; }
.hero-sum { color: var(--muted); margin-bottom: 18px; }
.hero-list { margin-bottom: 26px; }
.hero-list li { display: flex; gap: 10px; padding: 5px 0; color: var(--text); font-size: 14px; }
.hl-dot { color: var(--primary); font-weight: 800; }

/* ---------- 产品卡片 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.p-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(11,87,208,.15); border-color: var(--primary); }
.p-thumb { height: 200px; background: linear-gradient(135deg, #eef4fc, #dce9f8); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph-icon { font-size: 56px; opacity: .5; }
.p-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.p-body h3 { font-size: 16px; margin-bottom: 8px; }
.p-body p { color: var(--muted); font-size: 13px; flex: 1; }
.p-model { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 8px; margin: 8px 0; align-self: flex-start; }
.p-more { color: var(--primary); font-size: 13px; font-weight: 600; margin-top: 10px; }
.p-card:hover .p-more { transform: translateX(4px); }

/* ---------- 方案 / 案例 卡片 ---------- */
.card-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.card-item:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(11,87,208,.15); border-color: var(--primary); }
.ci-thumb { height: 190px; background: linear-gradient(135deg, #eef4fc, #dce9f8); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-icon { font-size: 52px; opacity: .85; }
.ci-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ci-body h3 { font-size: 17px; margin-bottom: 8px; }
.ci-body p { color: var(--muted); font-size: 13px; flex: 1; }
.ci-body .more { color: var(--primary); font-size: 13px; font-weight: 600; margin-top: 14px; }
.section-dark .card-item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.section-dark .ci-body h3 { color: #fff; }
.section-dark .ci-body p { color: #b8c7dd; }
.section-dark .ci-thumb { background: rgba(255,255,255,.08); }

/* ---------- 新闻列表（仿参考站：标题+摘要+日期/浏览） ---------- */
.news-list { display: flex; flex-direction: column; gap: 16px; max-width: 980px; margin: 0 auto; }
.news-row { display: flex; gap: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; align-items: center; transition: .2s; }
.news-row:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(11,87,208,.1); }
.news-row:hover .news-info h3 { color: var(--primary); }
.news-info { flex: 1; min-width: 0; }
.news-info h3 { font-size: 16px; margin-bottom: 6px; }
.news-info p { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { flex-shrink: 0; text-align: right; color: #a5b1c2; font-size: 12px; line-height: 1.8; }
.news-meta strong { display: block; color: var(--primary); font-size: 15px; }
.news-thumb { flex-shrink: 0; width: 150px; height: 96px; border-radius: 8px; overflow: hidden; background: #eef4fc; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-flag { display: inline-block; background: #d03050; color: #fff; font-size: 11px; border-radius: 3px; padding: 0 6px; margin-right: 6px; vertical-align: 2px; }

/* ---------- 国产化专区 ---------- */
.local-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.local-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.local-point { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 18px 20px; color: #dbe7f7; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.local-point b { color: #5b9bff; font-size: 18px; }
.local-art { text-align: center; font-size: 120px; opacity: .9; }
.local-art img { display: block; width: 100%; max-width: 540px; margin: 0 auto; border-radius: 16px; box-shadow: 0 18px 46px rgba(0,0,0,.38); border: 1px solid rgba(255,255,255,.2); }

/* ---------- 数据统计 ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-item { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 10px; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- 内页顶部横幅 + 面包屑 ---------- */
.page-head { background: linear-gradient(120deg, var(--dark) 0%, #16406f 100%); color: #fff; padding: 46px 0 20px; }
.page-head h1 { font-size: 28px; margin-bottom: 4px; }
.page-head .en { color: #7d95b5; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.breadcrumb { color: #9fb4d0; font-size: 13px; margin-top: 14px; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: #5b9bff; }

/* ---------- 详情页布局 ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; padding: 46px 0 70px; }
.detail-main { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.detail-title { font-size: 24px; line-height: 1.4; margin-bottom: 10px; }
.detail-meta { color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 20px; }
.detail-meta span { margin-right: 18px; }
.detail-lead { background: var(--primary-light); border-radius: 8px; padding: 14px 18px; color: var(--primary-dark); font-size: 15px; margin-bottom: 20px; }
.detail-img { border-radius: 8px; overflow: hidden; background: #eef4fc; margin-bottom: 20px; }
.detail-img img { width: 100%; max-height: 420px; object-fit: cover; }
.article-content { font-size: 15px; color: #333d4a; }
.article-content p { margin-bottom: 14px; }
.article-content ul, .article-content ol { margin: 0 0 14px 22px; }
.article-content li { margin-bottom: 6px; }
/* 富文本正文排版（后台图文混排输出） */
.article-content h1 { font-size: 24px; margin: 20px 0 12px; color: #1a2b4a; }
.article-content h2 { font-size: 21px; margin: 20px 0 12px; color: #1a2b4a; }
.article-content h3 { font-size: 18px; margin: 18px 0 10px; color: #1a2b4a; }
.article-content h4 { font-size: 16px; margin: 16px 0 8px; color: #1a2b4a; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.article-content figure { margin: 14px auto; text-align: center; }
.article-content figcaption { color: #94a3b8; font-size: 13px; margin-top: 6px; }
.article-content blockquote { border-left: 4px solid #0b57d0; background: #f4f8fd; padding: 10px 16px; color: #475569; margin: 0 0 14px; border-radius: 0 6px 6px 0; }
.article-content a { color: #0b57d0; text-decoration: underline; }
.article-content table { border-collapse: collapse; max-width: 100%; margin: 0 auto 14px; }
.article-content td, .article-content th { border: 1px solid #dbe3ef; padding: 8px 12px; font-size: 14px; }
.article-content th { background: #f4f8fd; }
.article-content pre, .article-content code { background: #f1f5f9; border-radius: 4px; font-size: 13px; font-family: Consolas, Monaco, monospace; }
.article-content pre { padding: 12px 14px; overflow-x: auto; }
.article-content code { padding: 1px 5px; }
.article-content pre code { padding: 0; background: transparent; }
.article-content hr { border: none; border-top: 1px solid #e2e8f2; margin: 16px 0; }
.article-content > *:last-child { margin-bottom: 0; }

/* 产品详情 hero */
.pd-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-bottom: 28px; }
.pd-media { background: linear-gradient(135deg, #eef4fc, #dce9f8); border-radius: 10px; min-height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-media .ph-icon { font-size: 90px; }
.pd-info h2 { font-size: 24px; margin-bottom: 12px; }
.pd-price { font-size: 24px; font-weight: 800; color: #d03050; margin-bottom: 14px; }
.pd-list li { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 10px 14px; font-size: 14px; text-align: left; }
.spec-table th { background: #f3f7fc; width: 220px; color: var(--primary-dark); }
.detail-cta { border-top: 1px dashed var(--border); margin-top: 26px; padding-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 侧栏 */
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.side-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.side-panel h3 { font-size: 15px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.side-link { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.side-link:hover { color: var(--primary); }
.side-date { color: #a5b1c2; font-size: 11px; flex-shrink: 0; }
.contact-mini p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.contact-mini b { color: var(--primary); font-size: 16px; }

/* 分类锚点 chips */
.chip-bar { display: flex; gap: 10px; flex-wrap: wrap; padding: 26px 0 6px; }
.chip { padding: 7px 20px; background: #fff; border: 1px solid var(--border); border-radius: 20px; font-size: 14px; color: var(--muted); }
.chip:hover, .chip.chip-active { color: #fff; background: var(--primary); border-color: var(--primary); }
.cat-group { margin: 36px 0 10px; }
.cat-group h2 { font-size: 21px; margin-bottom: 4px; }
.cat-group .en { color: #a9b6c6; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.cat-group-line { width: 40px; height: 3px; background: var(--primary); border-radius: 2px; margin: 10px 0 20px; }

/* ---------- 资料下载 ---------- */
.dl-row { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 24px; margin-bottom: 14px; transition: .2s; }
.dl-row:hover { border-color: var(--primary); box-shadow: 0 8px 22px rgba(11,87,208,.1); }
.dl-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; text-transform: uppercase; }
.dl-info { flex: 1; min-width: 0; }
.dl-info h3 { font-size: 15px; margin-bottom: 4px; }
.dl-info p { color: var(--muted); font-size: 13px; }
.dl-meta { flex-shrink: 0; color: #a5b1c2; font-size: 12px; text-align: right; line-height: 1.8; }
.dl-group { margin-bottom: 38px; }
.dl-group:last-child { margin-bottom: 0; }
.dl-cat { display: flex; align-items: baseline; gap: 10px; font-size: 19px; font-weight: 700; color: var(--dark); border-left: 4px solid var(--primary); padding-left: 12px; margin: 0 0 16px; }
.dl-cat em { font-style: normal; color: #a5b1c2; font-size: 12px; font-weight: 400; }
.dl-tags { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 7px; color: #8a96a8; font-size: 12px; }
.dl-tags span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ---------- 关于我们 ---------- */
.about-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; margin-bottom: 26px; }
.about-summary { font-size: 16px; color: var(--primary); font-weight: 600; border-left: 4px solid var(--primary); padding-left: 14px; margin-bottom: 18px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.mv-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.mv-card h3 { color: var(--primary); margin-bottom: 8px; }
.mv-card p { color: var(--muted); font-size: 14px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 50px 0 70px; }
.contact-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 24px; text-align: center; transition: .2s; }
.contact-item:hover { border-color: var(--primary); box-shadow: 0 10px 26px rgba(11,87,208,.1); }
.contact-item .ci-big { font-size: 38px; }
.contact-item h3 { font-size: 16px; margin: 10px 0 6px; }
.contact-item p { color: var(--muted); font-size: 14px; word-break: break-all; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark); color: #9fb4d0; margin-top: 0; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding: 50px 20px 36px; }
.footer-cols h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-desc { font-size: 13px; margin-bottom: 12px; }
.footer-contact { font-size: 13px; line-height: 2; }
.footer-cols ul li { margin-bottom: 8px; font-size: 13px; }
.footer-cols ul a:hover { color: #fff; }
.footer-btn { display: inline-block; margin-top: 12px; border: 1px solid #3d8bfd; color: #5b9bff; padding: 7px 24px; border-radius: 6px; font-size: 13px; }
.footer-btn:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 12px; text-align: center; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 手机端响应式 ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-hero, .pd-hero, .local-grid { grid-template-columns: 1fr; }
  .product-hero.flip .hero-media { order: 0; }
  .hero-info, .product-hero.flip .hero-info { padding: 26px; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; padding-bottom: 50px; }
  .header-tel { display: none; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--dark-2); flex-direction: column; padding: 10px 16px 16px; gap: 2px; box-shadow: 0 12px 24px rgba(0,0,0,.35); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 12px; }
  .nav-toggle { display: block; margin-left: auto; }
  .hero-title { font-size: 30px; }
  .hero-inner { padding: 56px 0 60px; }
  .section { padding: 48px 0; }
  .news-row { flex-wrap: wrap; }
  .news-thumb { width: 100%; height: 160px; }
  .news-meta { text-align: left; width: 100%; }
  .mv-grid { grid-template-columns: 1fr; }
  .local-art { font-size: 72px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .detail-main { padding: 22px; }
  .about-block { padding: 22px; }
  .logo-text { font-size: 16px; }
}
