@charset "utf-8";
/* ==========================================================================
   张家港市旭海化工有限公司 - 全站统一样式表
   配色方案：商务深蓝 (#003399 / #3366CC / #FFCC00 / #FFFFFF / #CCCCCC / #000000)
   ========================================================================== */

:root {
  --brand: #003399;
  --brand-2: #3366CC;
  --accent: #FFCC00;
  --white: #FFFFFF;
  --gray: #CCCCCC;
  --ink: #000000;
  --brand-dark: #002266;
  --brand-soft: #EAF0FB;
  --text: #333333;
  --text-light: #666666;
  --line: #E2E6EF;
  --bg-soft: #F5F7FC;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 51, 153, .10);
  --shadow-lg: 0 14px 40px rgba(0, 51, 153, .16);
  --wrap: 1200px;
}

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

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

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--brand); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--brand-2); }
ul, ol { list-style: none; }

h1, h2, h3, h4 { line-height: 1.35; color: var(--brand-dark); font-weight: 700; }
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 19px; }
h4 { font-size: 17px; }
p { margin-bottom: 14px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ""; display: table; clear: both; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--brand);
  color: var(--white);
  font-size: 14px;
  line-height: 38px;
  font-weight: 500;
  border-bottom: 3px solid var(--accent);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar span { white-space: nowrap; }
.topbar a { color: var(--white); }
.topbar a:hover { color: var(--accent); }
.topbar .tb-right { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 头部导航 ---------- */
.site-header { background: var(--white); box-shadow: 0 2px 12px rgba(0, 51, 153, .08); position: relative; z-index: 60; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; letter-spacing: 1px; border: 2px solid var(--accent);
}
.logo-text b { display: block; font-size: 21px; color: var(--brand); line-height: 1.25; letter-spacing: .5px; }
.logo-text small { display: block; font-size: 11px; color: var(--text-light); letter-spacing: .6px; text-transform: uppercase; }

.header-tel { text-align: right; }
.header-tel small { display: block; font-size: 12px; color: var(--text-light); }
.header-tel b { font-size: 22px; color: var(--brand); letter-spacing: .5px; }

.nav-toggle {
  display: none; width: 44px; height: 40px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--white); cursor: pointer; padding: 9px 10px;
}
.nav-toggle i { display: block; height: 2px; background: var(--brand); margin: 4px 0; border-radius: 2px; }

.main-nav { background: var(--brand-dark); }
.main-nav ul { display: flex; flex-wrap: wrap; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; color: var(--white); padding: 15px 26px; font-size: 17px; font-weight: 600; letter-spacing: .5px;
}
.main-nav a:hover, .main-nav a.is-active { background: var(--brand-2); color: var(--white); }
.main-nav a.is-active { box-shadow: inset 0 -3px 0 var(--accent); }

/* ---------- 通用区块 ---------- */
.section { padding: 62px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 28px; margin-bottom: 10px; }
.section-head p { color: var(--text-light); font-size: 15px; margin: 0; }
.section-head::after {
  content: ""; display: block; width: 60px; height: 4px; background: var(--accent);
  margin: 16px auto 0; border-radius: 3px;
}
.section-head.left { text-align: left; }
.section-head.left::after { margin-left: 0; }

.btn {
  display: inline-block; padding: 12px 30px; border-radius: 30px; font-size: 15px;
  background: var(--brand); color: var(--white); border: 2px solid var(--brand); font-weight: 600;
  transition: all .25s ease; cursor: pointer;
}
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: var(--white); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: var(--white); }
.btn.gold { background: var(--accent); border-color: var(--accent); color: var(--brand-dark); }
.btn.gold:hover { background: #E6B800; border-color: #E6B800; color: var(--brand-dark); }

/* ---------- 内页 Banner ---------- */
.page-banner {
  background: linear-gradient(120deg, rgba(0, 34, 102, .92), rgba(0, 51, 153, .78)),
              url("../img/banner-factory.jpg") center/cover no-repeat;
  color: var(--white); padding: 54px 0; text-align: center;
}
.page-banner h1 { color: var(--white); font-size: 30px; margin-bottom: 8px; }
.page-banner p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 15px; }

/* 面包屑 */
.breadcrumb { background: var(--brand-soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.breadcrumb .wrap { padding: 12px 20px; color: var(--text-light); }
.breadcrumb a { color: var(--brand); }
.breadcrumb span { color: var(--text-light); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: all .3s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--brand-2); }
.card .thumb { position: relative; overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 3; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card .body h3 { font-size: 17px; margin-bottom: 8px; }
.card .body h3 a { color: var(--brand-dark); }
.card .body h3 a:hover { color: var(--brand-2); }
.card .body p { color: var(--text-light); font-size: 14px; margin: 0 0 14px; }
.card .meta { margin-top: auto; font-size: 13px; color: var(--text-light); display: flex; justify-content: space-between; gap: 10px; }
.card .more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--brand); }
.card .more::after { content: " →"; }

.tag {
  position: absolute; left: 12px; top: 12px; background: rgba(0, 51, 153, .9); color: var(--white);
  font-size: 12px; padding: 4px 12px; border-radius: 20px;
}
.tag.gold { background: rgba(255, 204, 0, .95); color: var(--brand-dark); font-weight: 700; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; color: var(--white); min-height: 460px; display: flex; align-items: center;
  background: linear-gradient(115deg, rgba(0, 24, 77, .95) 0%, rgba(0, 45, 128, .88) 45%, rgba(30, 76, 168, .72) 100%),
              url("../img/banner-factory.jpg") center/cover no-repeat;
}
.hero-inner { max-width: 680px; padding: 70px 0; }
.hero h1, .hero h2 {
  color: var(--white); font-size: 38px; line-height: 1.3; margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 17, 51, .60);
}
.hero h1 em, .hero h2 em { color: var(--accent); font-style: normal; text-shadow: 0 2px 10px rgba(0, 17, 51, .50); }
.hero p.lead { font-size: 17px; color: rgba(255, 255, 255, .96); margin-bottom: 26px; text-shadow: 0 1px 6px rgba(0, 17, 51, .5); }
.hero .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
/* Hero 内的白色描边按钮：深色底图上必须改为白字白框，否则默认深蓝字看不清 */
.hero .btn.hero-ghost {
  background: rgba(255, 255, 255, .10); color: var(--white); border-color: var(--white);
}
.hero .btn.hero-ghost:hover { background: var(--white); color: var(--brand); border-color: var(--white); }
.hero-facts { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.hero-facts div b { display: block; font-size: 30px; color: var(--accent); line-height: 1.2; text-shadow: 0 2px 8px rgba(0, 17, 51, .55); }
.hero-facts div span { font-size: 13px; color: rgba(255, 255, 255, .92); }

/* ---------- 优势条 ---------- */
.feature-strip { background: var(--brand); color: var(--white); }
.feature-strip .grid { padding: 34px 0; gap: 20px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item .ico {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 204, 0, .16);
  border: 1px solid rgba(255, 204, 0, .5); color: var(--accent); display: flex; align-items: center;
  justify-content: center; font-size: 18px; font-weight: 700;
}
.feature-item h3 { color: var(--white); font-size: 16px; margin-bottom: 4px; }
.feature-item p { color: rgba(255, 255, 255, .92); font-size: 14px; margin: 0; }

/* ---------- 关于我们 / 图文混排 ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.prose h2 { margin-bottom: 16px; }
.prose p { color: var(--text); }
.prose ul.ticks { margin: 10px 0 18px; }
.prose ul.ticks li { position: relative; padding-left: 24px; margin-bottom: 8px; color: var(--text); }
.prose ul.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
}

/* ---------- 数据统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 14px; }
.stat b { display: block; font-size: 34px; color: var(--brand); line-height: 1.2; }
.stat span { font-size: 14px; color: var(--text-light); }

/* ---------- 列表页侧栏布局 ---------- */
.layout-aside { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 32px; align-items: start; }
.aside-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.aside-box h2 {
  font-size: 17px; padding: 14px 18px; background: var(--brand); color: var(--white); margin: 0;
}
.aside-box .aside-body { padding: 12px 18px 18px; }
.side-nav li { border-bottom: 1px dashed var(--line); }
.side-nav li:last-child { border-bottom: 0; }
.side-nav a { display: block; padding: 11px 0; font-size: 15px; color: var(--text); }
.side-nav a:hover, .side-nav a.is-active { color: var(--brand); font-weight: 600; }
.aside-contact p { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }
.aside-contact p b { color: var(--brand); font-size: 17px; }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 40px; height: 40px; line-height: 38px; text-align: center; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 14px; color: var(--text);
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .current { background: var(--brand); border-color: var(--brand); color: var(--white); font-weight: 700; }

/* ---------- 详情页 ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.detail-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.detail-media .sub-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.detail-media .sub-imgs img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }
.detail-info h1 { font-size: 26px; margin-bottom: 12px; }
.detail-info h2 { font-size: 26px; margin-bottom: 12px; }
.cat-intro { background: var(--brand-soft); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; color: var(--text-light); font-size: 15px; line-height: 1.8; }
.cat-intro a { color: var(--brand); font-weight: 600; }
.detail-info .lead { color: var(--text-light); font-size: 15px; border-left: 4px solid var(--accent); padding-left: 14px; margin-bottom: 20px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0 22px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.spec-table th { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; width: 130px; }
.spec-table tr:nth-child(even) td { background: #FBFCFE; }
.detail-body { margin-top: 46px; }
.detail-body h2 { font-size: 22px; margin: 30px 0 14px; padding-left: 14px; border-left: 5px solid var(--brand); }
.detail-body h3 { font-size: 18px; margin: 22px 0 10px; }
.detail-body ul.ticks li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.detail-body ul.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
}
.detail-body figure { margin: 22px 0; }
.detail-body figure img { border-radius: var(--radius); width: 100%; }
.detail-body figcaption { font-size: 13px; color: var(--text-light); text-align: center; margin-top: 8px; }
.info-list { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0; }
.info-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.info-list li:last-child { border-bottom: 0; }
.info-list li b { color: var(--brand-dark); }

/* 相邻导航 */
.prev-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.prev-next a { color: var(--brand); }

/* 相关推荐 */
.related { margin-top: 54px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: start; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact-list li b { flex: 0 0 84px; color: var(--brand-dark); }
.contact-list li span { color: var(--text); }
.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow); }
.msg-form .field { margin-bottom: 16px; }
.msg-form label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--brand-dark); font-weight: 600; }
.msg-form input, .msg-form textarea, .msg-form select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 15px; color: var(--text); background: #FCFDFF;
}
.msg-form input:focus, .msg-form textarea:focus, .msg-form select:focus { outline: 2px solid var(--brand-2); border-color: var(--brand-2); }
.msg-form textarea { min-height: 120px; resize: vertical; }
.form-tip { font-size: 13px; color: var(--text-light); margin-top: 10px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255, 255, 255, .82); margin-top: 60px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding: 48px 0 34px; }
.footer-top h3 { color: var(--white); font-size: 16px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-top h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--accent); border-radius: 2px; }
.footer-top p, .footer-top li { font-size: 14px; line-height: 1.9; }
.footer-top a { color: rgba(255, 255, 255, .82); }
.footer-top a:hover { color: var(--accent); }
.footer-top ul li { border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.footer-top ul li:last-child { border-bottom: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .logo-mark { width: 46px; height: 46px; flex: 0 0 46px; font-size: 17px; }
.footer-brand b { color: var(--white); font-size: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 0; font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: rgba(255, 255, 255, .72);
}
.footer-bottom a { color: rgba(255, 255, 255, .82); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: var(--white); border: 0; font-size: 20px; cursor: pointer;
  box-shadow: var(--shadow-lg); display: none; z-index: 80;
}
.to-top.show { display: block; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
  .layout-aside { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.rev .split-media { order: 0; }
  .detail-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header-tel { display: none; }
  .nav-toggle { display: block; }
  .header-main { flex-wrap: wrap; }
  .main-nav ul { display: none; flex-direction: column; padding: 0; }
  .main-nav ul.open { display: flex; }
  .main-nav a { padding: 13px 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .main-nav a.is-active { box-shadow: inset 4px 0 0 var(--accent); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1, .hero h2 { font-size: 28px; }
  .hero p.lead { font-size: 15px; }
  .hero-facts { gap: 22px; }
  .hero-facts div b { font-size: 24px; }
  .section { padding: 44px 0; }
  .page-banner { padding: 38px 0; }
  .page-banner h1 { font-size: 24px; }
  .topbar { font-size: 12px; }
  .topbar .tb-right { display: none; }
  .topbar .wrap { justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; padding: 34px 0 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .logo-text b { font-size: 17px; }
  .logo-mark { width: 44px; height: 44px; flex: 0 0 44px; font-size: 16px; }
  .hero h1, .hero h2 { font-size: 23px; }
  .detail-media .sub-imgs { grid-template-columns: repeat(2, 1fr); }
  .spec-table th { width: 96px; }
  .prev-next { flex-direction: column; }
}
