/* ==========================================================
   常州市厚港金属科技有限公司 官网样式 v2
   工业级钢材官网设计规范 | Responsive
   设计原则：低饱和藏青蓝+钢灰+琥珀橙，直角/小圆角，细线分割，
   弱阴影，无弹跳动效，信息密度高，去除模板化"AI 感"
   ========================================================== */

:root {
  --primary: #1a4d8f;
  --primary-dark: #123b6d;
  --navy: #142a4d;
  --navy-deep: #0b1a30;
  --accent: #c97714;
  --accent-deep: #a5600d;
  --steel: #5c6b7d;
  --gray-bg: #f3f5f8;
  --gray-line: #dde3ea;
  --text: #33383f;
  --text-light: #6a7280;
  --white: #ffffff;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  background: #fff;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; border: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #b9c6d8; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a { color: #b9c6d8; margin-left: 18px; }
.topbar a:hover { color: #fff; }
.topbar .tb-left span { margin-right: 22px; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 22px; }
.topbar .tb-item svg { width: 13px; height: 13px; fill: var(--accent); flex: 0 0 auto; }

/* ---------- Header ---------- */
.header { background: #fff; border-bottom: 1px solid var(--gray-line); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 56px; width: auto; margin-right: 14px; }
.logo .logo-text .cn { font-size: 24px; font-weight: 700; color: var(--navy); letter-spacing: 1px; line-height: 1.25; }
.logo .logo-text .en { font-size: 11px; color: #8a95a5; letter-spacing: .5px; }

.nav { display: flex; align-items: center; flex: 0 0 auto; }
.nav > ul { display: flex; list-style: none; }
.nav > ul > li { position: relative; flex-shrink: 0; }
.nav > ul > li > a {
  display: block; padding: 0 13px; height: 82px; line-height: 82px;
  font-size: 15px; color: var(--text); font-weight: 500; white-space: nowrap;
}
.nav > ul > li > a:hover, .nav > ul > li.active > a { color: var(--primary); }
.nav > ul > li.active > a::after,
.nav > ul > li > a:hover::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 0;
  height: 3px; background: var(--accent);
}

/* 产品中心下拉面板 */
.prod-drop {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-top: 2px solid var(--primary);
  box-shadow: 0 10px 26px rgba(11, 32, 64, .14); z-index: 220; padding: 16px 0 20px;
}
.prod-drop.show { display: block; }
.prod-drop-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.prod-drop-head b { font-size: 16px; color: var(--navy); }
.prod-drop-head span { font-size: 12px; color: var(--text-light); }
.prod-drop-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.pd-item {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 11px 4px; background: var(--gray-bg); border: 1px solid var(--gray-line);
  border-radius: 2px; font-size: 13px; color: var(--text); white-space: nowrap; transition: all .15s;
}
.pd-item:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pd-ico { color: var(--primary); font-size: 10px; }
.pd-item:hover .pd-ico { color: #fff; }
.news-drop-grid { grid-template-columns: repeat(2, 1fr) !important; max-width: 420px; }

.header-right { display: flex; align-items: center; flex: 0 0 auto; }
.search-box { position: relative; margin-left: 14px; }
.search-box input {
  width: 176px; height: 36px; border: 1px solid var(--gray-line); border-radius: 2px;
  padding: 0 40px 0 14px; font-size: 13px; outline: none; color: var(--text);
  background: var(--gray-bg); transition: border-color .2s, background .2s;
}
.search-box input:focus { border-color: var(--primary); background: #fff; }
.search-box button {
  position: absolute; right: 4px; top: 0; width: 34px; height: 36px; border: 0;
  background: transparent; color: var(--primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.search-box button svg { width: 16px; height: 16px; fill: var(--primary); }
.header-phone { text-align: right; margin-left: 18px; }
.header-phone .t { font-size: 12px; color: var(--text-light); }
.header-phone .n { font-size: 19px; font-weight: 700; color: var(--primary); line-height: 1.2; white-space: nowrap; }

/* mobile nav toggle */
.nav-toggle { display: none; font-size: 24px; color: var(--navy); cursor: pointer; padding: 4px 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 560px; overflow: hidden; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s; }
.hero .slide.active { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 24, 46, .85) 0%, rgba(20, 42, 77, .55) 46%, rgba(9, 24, 46, .28) 100%);
}
.hero .hero-content { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; }
.hero .eyebrow { color: var(--accent); font-size: 14px; letter-spacing: 5px; margin-bottom: 14px; font-weight: 600; }
.hero .eyebrow::before { content: ""; display: inline-block; width: 34px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 12px; }
.hero h1 { color: #fff; font-size: 44px; font-weight: 700; line-height: 1.3; margin-bottom: 14px; }
.hero .hero-sub { color: #d3ddef; font-size: 19px; margin-bottom: 28px; }
.hero .hero-points { display: flex; gap: 0; margin-bottom: 32px; border-top: 1px solid rgba(255,255,255,.18); }
.hero .hero-points .p { color: #fff; padding: 16px 34px 0 0; }
.hero .hero-points .p + .p { padding-left: 34px; border-left: 1px solid rgba(255,255,255,.18); }
.hero .hero-points .p b { display: block; font-size: 18px; font-weight: 700; }
.hero .hero-points .p span { font-size: 12px; color: #aebdd6; }
.hero .btn-hero {
  display: inline-block; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  padding: 11px 32px; border-radius: 2px; letter-spacing: 1px;
}
.hero .btn-hero:hover { background: var(--accent-deep); color: #fff; }
.hero .hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; background: rgba(10, 26, 48, .35); color: #fff;
  border: 1px solid rgba(255,255,255,.28); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center; }
.hero .hero-arrow:hover { background: var(--primary); border-color: var(--primary); }
.hero .hero-arrow.prev { left: 20px; }
.hero .hero-arrow.next { right: 20px; }
.hero .hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero .hero-dots i { width: 26px; height: 3px; background: rgba(255,255,255,.35); cursor: pointer; }
.hero .hero-dots i.active { background: var(--accent); }

/* ---------- Section base ---------- */
.section { padding: 60px 0; }
.section.gray { background: var(--gray-bg); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.section-title .sub { color: var(--text-light); font-size: 13px; letter-spacing: 4px; margin-top: 8px; text-transform: uppercase; }
.section-title .line { width: 46px; height: 3px; background: var(--accent); margin: 14px auto 0; }

/* ---------- Advantage cards (4) ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--gray-line); background: #fff; }
.adv-card { padding: 30px 26px; border-left: 1px solid var(--gray-line); text-align: left; position: relative; }
.adv-card:first-child { border-left: 0; }
.adv-card::before { content: ""; position: absolute; left: 26px; top: 0; width: 40px; height: 3px; background: var(--primary); }
.adv-card .ico { width: 46px; height: 46px; margin-bottom: 18px; background: var(--gray-bg); border: 1px solid var(--gray-line); display: flex; align-items: center; justify-content: center; }
.adv-card .ico svg { width: 24px; height: 24px; fill: var(--primary); }
.adv-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.adv-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ---------- Products ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card { background: #fff; border: 1px solid var(--gray-line); transition: border-color .2s, box-shadow .2s; }
.prod-card:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(11, 32, 64, .08); }
.prod-card .pic { position: relative; display: block; overflow: hidden; aspect-ratio: 1/1; background: var(--gray-bg); }
.prod-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prod-card:hover .pic img { transform: scale(1.04); }
.prod-card .tag { position: absolute; top: 10px; left: 0; background: var(--primary); color: #fff; font-size: 12px; padding: 4px 12px; letter-spacing: 1px; }
.prod-card .body { padding: 16px 20px 18px; border-top: 1px solid var(--gray-line); }
.prod-card .body h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; font-weight: 700; }
.prod-card .body h3 a { color: inherit; }
.prod-card .body h3 a:hover { color: var(--primary); }
.prod-card .body p { font-size: 13px; color: var(--text-light); height: 40px; overflow: hidden; line-height: 1.6; }
.prod-card .body .meta { display: flex; gap: 14px; font-size: 12px; color: var(--steel); margin-top: 8px; }
.prod-card .body .more { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--primary); font-weight: 600; }
.prod-card .body .more:hover { color: var(--accent); }

/* ---------- Why choose (4 reasons) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { background: #fff; border: 1px solid var(--gray-line); padding: 24px 22px; position: relative; }
.why-card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 3px; background: var(--accent); transition: width .25s; }
.why-card:hover::after { width: 100%; }
.why-card .num { font-size: 30px; font-weight: 800; color: var(--primary); opacity: .25; line-height: 1; font-family: Georgia, "Times New Roman", serif; }
.why-card h3 { font-size: 17px; color: var(--navy); margin: 10px 0 8px; }
.why-card p { font-size: 13px; color: var(--text-light); }

/* ---------- Applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.app-card { background: #fff; border: 1px solid var(--gray-line); padding: 24px 14px; text-align: center; transition: all .2s; }
.app-card:hover { border-color: var(--primary); background: var(--navy); }
.app-card:hover h3, .app-card:hover p { color: #fff; }
.app-card .ico { width: 44px; height: 44px; margin: 0 auto 12px; background: var(--gray-bg); display: flex; align-items: center; justify-content: center; }
.app-card .ico svg { width: 22px; height: 22px; fill: var(--primary); }
.app-card:hover .ico { background: rgba(255,255,255,.12); }
.app-card:hover .ico svg { fill: var(--accent); }
.app-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.app-card p { font-size: 12px; color: var(--text-light); }

/* ---------- About home ---------- */
.about-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 44px; align-items: center; }
.about-wrap .about-pic { position: relative; }
.about-wrap .about-pic img { border: 1px solid var(--gray-line); }
.about-wrap .about-pic .badge-exp { position: absolute; right: -12px; bottom: -16px; background: var(--accent); color: #fff; padding: 12px 18px; text-align: center; }
.about-wrap .about-pic .badge-exp b { display: block; font-size: 24px; line-height: 1.1; }
.about-wrap .about-pic .badge-exp span { font-size: 12px; }
.about-wrap h2 { font-size: 26px; color: var(--navy); margin-bottom: 14px; line-height: 1.4; }
.about-wrap h2 i { color: var(--primary); font-style: normal; }
.about-wrap p { color: var(--text-light); margin-bottom: 10px; text-align: justify; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.about-stats .st { background: var(--gray-bg); border-left: 3px solid var(--primary); padding: 12px 14px; }
.about-stats .st b { display: block; font-size: 22px; color: var(--navy); line-height: 1.3; font-family: Georgia, "Times New Roman", serif; }
.about-stats .st span { font-size: 12px; color: var(--text-light); }
.btn-more { display: inline-block; background: var(--primary); color: #fff; padding: 9px 28px; border-radius: 2px; font-size: 14px; letter-spacing: 1px; }
.btn-more:hover { background: var(--navy); color: #fff; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.news-item { display: flex; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-line); align-items: flex-start; }
.news-item .date { flex: 0 0 58px; text-align: center; border: 1px solid var(--gray-line); padding: 8px 4px; }
.news-item .date b { display: block; font-size: 20px; color: var(--primary); line-height: 1.2; font-family: Georgia, "Times New Roman", serif; }
.news-item .date span { font-size: 11px; color: var(--text-light); }
.news-item h3 { font-size: 15px; line-height: 1.5; }
.news-item h3 a { color: var(--navy); }
.news-item h3 a:hover { color: var(--primary); }
.news-item p { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ---------- Partner strip ---------- */
.partner-strip { background: var(--navy); }
.partner-strip .container { display: flex; align-items: center; justify-content: space-between; padding: 30px 20px; }
.partner-strip h3 { color: #fff; font-size: 22px; }
.partner-strip p { color: #b9c6d8; font-size: 14px; margin-top: 4px; }
.partner-strip .btn-more { background: var(--accent); }
.partner-strip .btn-more:hover { background: var(--accent-deep); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #93a3ba; font-size: 13px; }
.footer .container { display: grid; grid-template-columns: 4fr 2fr 2fr 3fr; gap: 40px; padding-top: 46px; padding-bottom: 32px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; position: relative; padding-bottom: 8px; letter-spacing: 1px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--accent); }
.footer ul { list-style: none; }
.footer ul li { padding: 4px 0; }
.footer ul li a { color: #93a3ba; }
.footer ul li a:hover { color: #fff; }
.footer .f-about p { margin-top: 10px; line-height: 1.8; }
.footer .f-contact li { padding: 5px 0; display: flex; gap: 8px; align-items: flex-start; }
.footer .f-contact svg { width: 14px; height: 14px; fill: var(--accent); flex: 0 0 auto; margin-top: 4px; }
.footer .f-contact .n { font-size: 20px; color: var(--accent); font-weight: 700; }
.footer .f-qr { text-align: center; }
.footer .f-qr img { width: 108px; height: 108px; background: #fff; padding: 4px; border: 1px solid rgba(255,255,255,.15); }
.footer .f-qr span { display: block; margin-top: 8px; font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0; text-align: center; color: #6f7f95; font-size: 12px; }
.footer-bottom a { color: #6f7f95; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Inner page ---------- */
.page-banner { position: relative; height: 210px; background: linear-gradient(100deg, var(--navy-deep), var(--primary-dark)); display: flex; align-items: center; }
.page-banner::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34%; height: 100%;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 12px); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: 30px; letter-spacing: 2px; }
.page-banner .crumb { color: #93a3ba; font-size: 13px; margin-top: 6px; }
.page-banner .crumb a { color: #c5d2e4; }
.page-banner .crumb a:hover { color: var(--accent); }
.page-banner .crumb span { margin: 0 8px; color: #5a6d88; }

.pages { padding: 40px 0 56px; }
.page-body { background: #fff; border: 1px solid var(--gray-line); padding: 34px; }
.page-body h2.page-title { font-size: 22px; color: var(--navy); text-align: center; margin-bottom: 16px; }
.page-meta { text-align: center; color: var(--text-light); font-size: 13px; border-bottom: 1px solid var(--gray-line); padding-bottom: 14px; margin-bottom: 22px; }
.content { line-height: 2; color: var(--text); font-size: 15px; }
.content h2 { font-size: 19px; color: var(--navy); margin: 24px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.content h3 { font-size: 16px; color: var(--navy); margin: 18px 0 10px; }
.content p { margin-bottom: 12px; }
.content img { border: 1px solid var(--gray-line); margin: 0; display: block; }
.content p img { display: block; }
.content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.content table th { background: var(--navy); color: #fff; padding: 9px 12px; text-align: center; font-weight: 600; }
.content table td { border: 1px solid var(--gray-line); padding: 8px 12px; text-align: center; }
.content table tr:nth-child(even) td { background: var(--gray-bg); }
.content ul { padding-left: 22px; margin-bottom: 12px; }
.content li { margin-bottom: 6px; }
.content .faq-item { border: 1px solid var(--gray-line); padding: 14px 16px; margin-bottom: 12px; background: var(--gray-bg); border-left: 3px solid var(--primary); }
.content .faq-item b { color: var(--navy); }
.content .faq-item p { margin: 6px 0 0; }
.content .img-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 12px 0; }
.content .img-strip img { width: 100%; aspect-ratio: 1/1; object-fit: cover; margin: 0 !important; border: 0; display: block; }
.content .img-strip img:nth-child(n+2) { border-left: 2px solid #fff; }
.content .img-strip img:nth-child(4) { border-top: 2px solid #fff; }
.content .img-strip img:nth-child(5) { border-top: 2px solid #fff; }
.content .img-strip img:nth-child(6) { border-top: 2px solid #fff; }
.content .note { background: #eef3fa; border-left: 4px solid var(--primary); padding: 12px 16px; margin: 16px 0; font-size: 14px; }
/* 正文内链接：显式可点击样式，防止被误判为不可点 */
.content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; word-break: break-all; }
.content a:hover { color: var(--primary-dark); text-decoration: none; }
.content a img { border: 0; display: inline-block; }

/* ---------- 页脚友情链接 ---------- */
.footer-links { border-top: 1px solid rgba(255,255,255,.12); background: var(--navy-deep); }
.footer-links .container { display: flex; align-items: center; flex-wrap: wrap; padding: 12px 0; gap: 6px; }
.fl-label { color: var(--text-light); font-size: 13px; white-space: nowrap; margin-right: 4px; }
.fl-list { display: flex; flex-wrap: wrap; gap: 4px 0; }
.fl-list a { color: #9fb0c4; font-size: 13px; padding: 2px 10px; border-right: 1px solid rgba(255,255,255,.15); white-space: nowrap; }
.fl-list a:hover { color: var(--accent); }
.fl-list a:last-child { border-right: 0; }

/* ---------- Product detail ---------- */
.detail-title { font-size: 20px; color: var(--navy); padding-left: 12px; border-left: 4px solid var(--primary); margin-bottom: 16px; }
.prod-detail { display: grid; grid-template-columns: 5fr 7fr; gap: 36px; margin-bottom: 28px; }
.prod-gallery .main-pic { border: 1px solid var(--gray-line); background: var(--gray-bg); position: relative; }
.prod-gallery .main-pic img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
  background: rgba(10,26,48,.45); color: #fff; font-size: 20px; cursor: pointer; z-index: 4;
  display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); }
.gal-arrow:hover { background: var(--primary); }
.gal-arrow.prev { left: 8px; }
.gal-arrow.next { right: 8px; }
.gal-count { position: absolute; right: 8px; bottom: 8px; background: rgba(10,26,48,.6); color: #fff;
  font-size: 12px; padding: 2px 10px; z-index: 4; letter-spacing: 1px; }
.prod-gallery .thumbs { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.prod-gallery .thumbs img { width: 64px; height: 64px; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: .85; }
.prod-gallery .thumbs img.active { border-color: var(--primary); opacity: 1; }
.prod-info h1 { font-size: 25px; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.prod-info .sub { font-size: 14px; color: var(--primary); margin-bottom: 14px; font-weight: 600; }
.prod-info .info-list { border: 1px solid var(--gray-line); }
.prod-info .info-list .row2 { display: grid; grid-template-columns: 118px 1fr; border-bottom: 1px solid var(--gray-line); }
.prod-info .info-list .row2:last-child { border-bottom: 0; }
.prod-info .info-list .row2 dt { background: var(--gray-bg); padding: 9px 14px; color: var(--text-light); font-size: 13px; }
.prod-info .info-list .row2 dd { padding: 9px 14px; font-size: 14px; }
.prod-info .info-list .row2 dd a { color: var(--primary); }
.prod-info .btns { display: flex; gap: 12px; margin-top: 20px; }
.prod-info .btns a { flex: 1; text-align: center; padding: 11px 0; border-radius: 2px; font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.btn-ask { background: var(--accent); color: #fff; }
.btn-ask:hover { background: var(--accent-deep); color: #fff; }
.btn-tel { background: var(--primary); color: #fff; }
.btn-tel:hover { background: var(--navy); color: #fff; }
.prev-next { display: flex; justify-content: space-between; border-top: 1px solid var(--gray-line); padding-top: 12px; margin-top: 20px; font-size: 14px; color: var(--text-light); }
.prev-next a { color: var(--text-light); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prev-next a:hover { color: var(--primary); }

/* ---------- Sidebar layout ---------- */
.with-side { display: grid; grid-template-columns: 252px 1fr; gap: 28px; }
.sidebar .side-box { border: 1px solid var(--gray-line); margin-bottom: 20px; }
.sidebar .side-box h3 { background: var(--navy); color: #fff; font-size: 15px; padding: 12px 16px; letter-spacing: 1px; }
.sidebar .side-box ul { list-style: none; }
.sidebar .side-box ul li a { display: block; padding: 10px 16px; border-bottom: 1px solid var(--gray-line); color: var(--text); font-size: 14px; position: relative; }
.sidebar .side-box ul li a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.sidebar .side-box ul li a:hover, .sidebar .side-box ul li.active a { color: var(--primary); background: var(--gray-bg); }
.sidebar .side-box ul li.active a::before { background: var(--accent); }
.sidebar .side-contact { background: var(--navy); color: #fff; padding: 18px; }
.sidebar .side-contact h3 { color: #fff; background: none; padding: 0 0 10px; font-size: 15px; }
.sidebar .side-contact p { font-size: 13px; color: #b9c6d8; margin: 6px 0; }
.sidebar .side-contact .n { font-size: 20px; color: var(--accent); font-weight: 700; }

/* ---------- List pages ---------- */
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.list-head h2 { font-size: 21px; color: var(--navy); padding-left: 12px; border-left: 4px solid var(--primary); }
.list-head .count { color: var(--text-light); font-size: 13px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; padding: 10px 14px; background: var(--gray-bg); border: 1px solid var(--gray-line); }
.filter-bar .fb-label { font-size: 13px; color: var(--text-light); margin-right: 6px; }
.filter-bar a { display: inline-block; font-size: 13px; background: #fff; border: 1px solid var(--gray-line); padding: 5px 16px; color: var(--navy); }
.filter-bar a:hover, .filter-bar a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-list { list-style: none; }
.page-list li { display: flex; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--gray-line); }
.page-list li .d { flex: 0 0 72px; text-align: center; border: 1px solid var(--gray-line); padding: 6px; margin-right: 16px; }
.page-list li .d b { display: block; font-size: 18px; color: var(--primary); font-family: Georgia, "Times New Roman", serif; }
.page-list li .d span { font-size: 11px; color: var(--text-light); }
.page-list li .t { flex: 1; }
.page-list li .t h3 { font-size: 16px; }
.page-list li .t h3 a { color: var(--navy); }
.page-list li .t h3 a:hover { color: var(--primary); }
.page-list li .t p { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.page-list li .go { color: var(--text-light); font-size: 16px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; min-width: 36px; height: 36px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid var(--gray-line); color: var(--text); font-size: 14px; background: #fff; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active, .pagination .page-num-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { opacity: .5; }
.pagination .page-status { border: 0; color: var(--text-light); font-size: 13px; }

/* ---------- Message form ---------- */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--navy); font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; border: 1px solid var(--gray-line); border-radius: 2px; padding: 10px 14px; font-size: 14px; outline: none; font-family: inherit; background: #fff; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group .checkcode { display: flex; align-items: center; gap: 10px; }
.form-group .checkcode img { height: 38px; border: 1px solid var(--gray-line); cursor: pointer; }
.form-btn { background: var(--primary); color: #fff; border: 0; padding: 11px 44px; border-radius: 2px; font-size: 15px; cursor: pointer; letter-spacing: 2px; }
.form-btn:hover { background: var(--navy); }
.form-tip { font-size: 13px; color: var(--text-light); margin-top: 12px; text-align: center; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.contact-info .ci { display: flex; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--gray-line); }
.contact-info .ci .ico { flex: 0 0 42px; height: 42px; background: var(--gray-bg); border: 1px solid var(--gray-line); display: flex; align-items: center; justify-content: center; margin-right: 14px; }
.contact-info .ci .ico svg { width: 20px; height: 20px; fill: var(--primary); }
.contact-info .ci b { color: var(--navy); font-size: 15px; }
.contact-info .ci p { color: var(--text-light); font-size: 14px; }
.contact-info .ci .n { color: var(--primary); font-size: 21px; font-weight: 700; }

/* ---------- Modal (PbootCMS 自带评论/上传弹窗基础样式) ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 1050; background: rgba(9,24,46,.55); overflow-y: auto; }
.modal.show, .modal.fade.show { display: block; }
.modal-dialog { position: relative; max-width: 560px; margin: 8vh auto 20px; padding: 0 16px; }
.modal-dialog.modal-lg { max-width: 820px; }
.modal-content { background: #fff; border: 1px solid var(--gray-line); border-top: 3px solid var(--primary); box-shadow: 0 14px 40px rgba(9,24,46,.25); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--gray-line); }
.modal-title { font-size: 16px; color: var(--navy); margin: 0; }
.modal-header .close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--text-light); cursor: pointer; }
.modal-body { padding: 18px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--gray-line); }
.modal-footer .btn, .modal-body .btn, .btn { display: inline-block; background: var(--primary); color: #fff; border: 0; padding: 8px 22px; font-size: 14px; cursor: pointer; }
.modal-footer .btn-secondary, .modal-body .btn-secondary { background: var(--gray-bg); color: var(--text); border: 1px solid var(--gray-line); }
.modal-body .form-control { width: 100%; border: 1px solid var(--gray-line); padding: 8px 12px; font-size: 14px; margin-bottom: 10px; }
.modal-body textarea.form-control { min-height: 90px; }
.modal-body label { font-size: 14px; color: var(--navy); margin-right: 8px; }
.modal-body .btn-success { background: var(--accent); }

/* ---------- Float buttons ---------- */
.float-bar { position: fixed; right: 16px; bottom: 84px; z-index: 99; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.float-bar a { width: 44px; height: 44px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(11, 32, 64, .3); }
.float-bar a:hover { background: var(--navy); }
.float-bar a svg { width: 20px; height: 20px; fill: #fff; }
.float-wx { width: 44px; height: 44px; background: #fff; border: 1px solid var(--gray-line); border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(11, 32, 64, .18); overflow: hidden; }
.float-wx img { width: 100%; height: 100%; object-fit: cover; display: block; }
.float-wx span { font-size: 11px; color: var(--accent); font-weight: 600; line-height: 1.3; text-align: center; padding: 2px; }
.float-wx:hover { border-color: var(--primary); }
.wx-modal-mask { display: none; position: fixed; inset: 0; background: rgba(9,24,46,.55); z-index: 400; align-items: center; justify-content: center; }
.wx-modal { background: #fff; border-radius: 10px; padding: 26px 30px 22px; text-align: center; position: relative; box-shadow: 0 18px 50px rgba(0,0,0,.3); max-width: 86vw; }
.wx-modal img { width: 190px; height: 190px; object-fit: contain; display: block; margin: 0 auto; }
.wx-modal p { margin: 14px 0 0; font-size: 14px; color: var(--navy); }
.wx-modal-close { position: absolute; top: 8px; right: 14px; font-size: 24px; line-height: 1; color: var(--text-light); cursor: pointer; }
.wx-modal-close:hover { color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav > ul > li > a { padding: 0 10px; font-size: 14px; }
  .header-phone { display: none; }
}

@media (max-width: 1080px) {
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .adv-card:nth-child(odd) { border-left: 0; }
  .adv-card { border-top: 1px solid var(--gray-line); }
  .adv-card:first-child, .adv-card:nth-child(2) { border-top: 0; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .about-wrap { grid-template-columns: 1fr; gap: 30px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .with-side { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .prod-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .hero { height: 460px; }
  .hero h1 { font-size: 34px; }
  .search-box { display: none; }
}

@media (max-width: 768px) {
  .topbar .tb-right { display: none; }
  .header .container { height: 62px; }
  .logo img { height: 42px; }
  .logo .logo-text .cn { font-size: 18px; }
  .logo .logo-text .en { display: none; }
  .nav { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,.15); flex-direction: column; padding-top: 56px; transition: right .3s; z-index: 300; overflow-y: auto; }
  .nav.open { right: 0; }
  .nav > ul { flex-direction: column; width: 100%; }
  .nav > ul > li > a { height: 46px; line-height: 46px; border-bottom: 1px solid var(--gray-line); padding: 0 16px; font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav > ul > li.has-prod > a::after, .nav > ul > li.has-news > a::after { content: '▾'; float: right; font-size: 12px; color: var(--text-light); transition: transform .2s; }
  .nav > ul > li.has-prod > a[aria-expanded="true"]::after, .nav > ul > li.has-news > a[aria-expanded="true"]::after { transform: rotate(180deg); }
  .prod-drop { position: static; display: none; box-shadow: none; border-top: none; padding: 2px 12px 12px; }
  .nav.open .prod-drop { display: none; }
  .nav.open .prod-drop.show { display: block; }
  .prod-drop-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .prod-drop-grid .pd-item { padding: 8px 6px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .prod-drop-head { flex-direction: column; align-items: flex-start; gap: 3px; margin: 10px 0 8px; }
  .prod-drop-head b { font-size: 14px; }
  .prod-drop-head span { font-size: 11px; line-height: 1.4; }
  .nav-toggle { display: block; }
  .nav-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 290; display: none; }
  .nav-mask.show { display: block; }
  .header-phone { display: none; }
  .hero { height: 360px; }
  .hero h1 { font-size: 25px; }
  .hero .hero-sub { font-size: 14px; }
  .hero .hero-points { flex-wrap: wrap; }
  .hero .hero-points .p { padding: 10px 20px 0 0; }
  .hero .hero-points .p + .p { padding-left: 20px; }
  .hero .hero-points .p b { font-size: 14px; }
  .adv-grid, .why-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adv-card { padding: 20px 16px; }
  .prod-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 22px; }
  .footer .container { grid-template-columns: 1fr; gap: 24px; }
  .page-banner { height: 160px; }
  .page-banner h1 { font-size: 24px; }
  .page-body { padding: 18px; }
  .form-group .row2 { grid-template-columns: 1fr; }
  .hero .hero-arrow { display: none; }
}
