:root {
  --primary: #0b5aa0;
  --primary-dark: #08467d;
  --accent: #f2a33a;
  --text: #2b3440;
  --muted: #6b7684;
  --light: #f5f8fb;
  --line: #e5eaf0;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(16, 46, 80, 0.10);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* 顶栏 */
.topbar { background: var(--primary-dark); color: #dbe9f7; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 20px; gap: 10px; }
.topbar a { color: #fff; }
.topbar a:hover { text-decoration: underline; }

/* 头部 */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 56px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-size: 24px; color: #0a2238; letter-spacing: 1px; }
.logo-text small { color: #b8912f; font-size: 12px; letter-spacing: 3px; }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 12px 15px; font-size: 15px; color: var(--text);
  border-radius: 6px; transition: .2s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--primary); background: var(--light); }
.has-dropdown > a::after { content: "▾"; margin-left: 5px; font-size: 12px; }
.dropdown { position: absolute; left: 0; top: 100%; min-width: 180px; background: #fff; box-shadow: var(--shadow); border-radius: 0 0 10px 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 60; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-inner { padding: 8px; }
.dropdown a { display: block; padding: 9px 14px; font-size: 14px; color: var(--text); border-radius: 6px; }
.dropdown a:hover { color: var(--primary); background: var(--light); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--primary-dark); }

/* 首页轮播 */
.hero-slider { position: relative; height: 480px; overflow: hidden; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; }
.slide.active { opacity: 1; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,18,32,.88), rgba(4,18,32,.32)); display: flex; align-items: center; }
.slide-overlay .container { width: 100%; color: #fff; }
.slide-overlay h2 { font-size: 46px; margin-bottom: 12px; font-weight: 700; letter-spacing: 2px; }
.slide-overlay h2::after { content: ""; display: block; width: 58px; height: 3px; background: #c9a86a; margin-top: 14px; }
.slide-overlay p { font-size: 19px; margin-bottom: 26px; opacity: 1; max-width: 640px; color: #e6cf96; letter-spacing: 1px; }
.slider-dots { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); margin: 0 5px; cursor: pointer; }
.dot.active { background: #fff; width: 26px; border-radius: 6px; }

/* 区块 */
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head.left { text-align: left; margin-bottom: 20px; }
.section-head h2 { font-size: 28px; color: var(--primary-dark); }
.section-head p { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin-top: 4px; }
.intro { background: var(--white); }

/* 产品网格 */
.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: .25s; display: block; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.product-card-img { height: 210px; overflow: hidden; background: #eaf1f8; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-body { padding: 16px 18px 20px; }
.product-card-body h3 { font-size: 17px; color: var(--primary-dark); margin-bottom: 4px; }
.product-card-body p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.tag { display: inline-block; padding: 3px 10px; background: #eaf3fb; color: var(--primary); border-radius: 20px; font-size: 12px; }

/* 关于预览 */
.about-preview { background: var(--light); }
.about-preview-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.about-preview-text p { margin-bottom: 16px; color: #49535f; }
.about-preview-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* 案例 */
.case-text { max-width: 860px; margin: 0 auto; text-align: center; color: #49535f; }
.case-text p { margin-bottom: 14px; }

/* 新闻 */
.news-preview { background: var(--light); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: .25s; display: block; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card-img { height: 170px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 16px 18px; }
.news-card-body h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.5; }
.news-card-body p { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-body .date, .news-list-body .date { color: var(--accent); font-size: 12px; }

/* 按钮 */
.btn { display: inline-block; padding: 11px 26px; border-radius: 30px; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--accent); color: #fff; }

/* 页面横幅 */
.page-banner { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 46px 0; }
.page-banner h1 { font-size: 30px; margin-bottom: 6px; }
.page-banner p { opacity: .85; letter-spacing: 1px; }
.page-section { padding-top: 40px; }

/* 筛选栏 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-item { padding: 8px 18px; border: 1px solid var(--line); border-radius: 30px; color: var(--text); font-size: 14px; }
.filter-item:hover { border-color: var(--primary); color: var(--primary); }
.filter-item.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 面包屑 */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--primary); }

/* 产品详情 */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #eaf1f8; aspect-ratio: 4/3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs img { width: 90px; height: 68px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; opacity: .7; }
.gallery-thumbs img.active { border-color: var(--primary); opacity: 1; }
.product-detail-info h1 { font-size: 28px; color: var(--primary-dark); margin-bottom: 8px; }
.product-detail-info .muted { margin-bottom: 20px; }
.detail-meta { background: var(--light); border-radius: 10px; padding: 16px 18px; margin-bottom: 22px; }
.detail-meta span { display: block; margin-bottom: 6px; }
.detail-meta a { color: var(--primary); }
.detail-actions { display: flex; gap: 14px; }

/* 文章内容 */
.article h2 { font-size: 22px; color: var(--primary-dark); margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--accent); }
.article p { margin-bottom: 14px; color: #3c4550; }

/* 参数表 */
.param-table { width: 100%; border-collapse: collapse; margin-top: 6px; border: 1px solid var(--line); }
.param-table tr:nth-child(even) { background: var(--light); }
.param-table th { width: 180px; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--primary-dark); background: #f0f6fb; }
.param-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }

/* 时间线 */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-item { position: relative; margin-bottom: 26px; }
.timeline-item::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 3px solid #d7e8f7; }
.timeline-year { font-size: 22px; font-weight: 700; color: var(--primary); }
.timeline-content p { color: #3c4550; }

/* 荣誉 */
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.honor-card { text-align: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: .2s; }
.honor-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.honor-img { height: 140px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.honor-img img { max-height: 120px; }
.honor-card h3 { font-size: 16px; color: var(--primary-dark); }
.honor-card p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* 新闻列表 */
.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-list-item { display: flex; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: .2s; }
.news-list-item:hover { box-shadow: var(--shadow); }
.news-list-img { width: 220px; height: 140px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.news-list-img img { width: 100%; height: 100%; object-fit: cover; }
.news-list-body h3 { font-size: 18px; margin-bottom: 8px; color: var(--primary-dark); }
.news-list-body p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.news-detail .news-meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; display: flex; gap: 18px; }
.news-cover { margin: 20px 0; border-radius: var(--radius); overflow: hidden; }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-info h2, .contact-form h2 { font-size: 22px; color: var(--primary-dark); margin-bottom: 18px; }
.contact-info ul li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.contact-info strong { color: var(--primary-dark); }

/* 表单 */
.inquiry-form { margin-top: 14px; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.inquiry-form input, .inquiry-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; }
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,90,160,.12); }
.inquiry-form textarea { resize: vertical; }
.form-tip { margin-top: 10px; color: var(--primary); font-size: 13px; min-height: 18px; }

/* 页脚 */
.site-footer { background: #0a2439; color: #b7c7d6; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 50px 20px 40px; }
.footer-col h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p, .footer-col li { font-size: 14px; line-height: 1.8; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 响应式 */
@media (max-width: 900px) {
  .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .about-preview-inner, .product-detail, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-slider { height: 360px; }
  .slide-overlay h2 { font-size: 28px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px; }
  .main-nav > ul > li > a { padding: 12px 16px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; min-width: 0; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .product-grid, .news-grid, .honor-grid, .footer-inner { grid-template-columns: 1fr; }
  .news-list-item { flex-direction: column; }
  .news-list-img { width: 100%; height: 180px; }
  .topbar-inner { flex-direction: column; align-items: flex-start; }
}
