/* ============================================================
   沈阳市带锯机床厂铸造分厂 官网样式
   配色：商务深蓝 #003399 / #3366CC / #FFCC00 / #FFFFFF / #CCCCCC
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #003399;
  --blue: #3366CC;
  --gold: #FFCC00;
  --white: #FFFFFF;
  --grey: #CCCCCC;
  --ink: #1a1a1a;
  --text: #333333;
  --muted: #666666;
  --bg: #F4F6FA;
  --line: #E2E6EE;
  --shadow: 0 4px 18px rgba(0,51,153,.08);
}
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
ul { list-style: none; }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--navy); color: #cdd9f5; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #dbe5fb; }
.topbar .tb-r span { margin-left: 22px; }

/* ---------- 头部 ---------- */
.site-header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 1000; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 86px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 52px; height: 52px; border-radius: 8px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
  font-weight: 700; font-size: 24px; letter-spacing: -1px; flex: none;
}
.logo-text { display: inline-flex; flex-direction: column; line-height: 1.2; }
.logo-text .cn { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.logo-text .en { font-size: 11px; color: var(--muted); letter-spacing: .5px; }
.main-nav ul { display: flex; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 0 20px; line-height: 86px; color: var(--ink);
  font-size: 16px; font-weight: 500; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 18px; width: 0; height: 3px;
  background: var(--gold); transition: all .25s; transform: translateX(-50%);
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.main-nav a:hover::after, .main-nav a.active::after { width: 26px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 6px auto; transition: .3s; }

/* ---------- 首屏横幅 ---------- */
.hero { position: relative; min-height: 480px; display: flex; align-items: center; color: var(--white);
  background: linear-gradient(rgba(0,30,90,.72), rgba(0,51,153,.82)), url("../images/common/hero.jpg") center/cover; }
.hero-inner { padding: 70px 0; max-width: 720px; }
.hero .tag { display: inline-block; background: rgba(255,204,0,.92); color: #2a2200; font-weight: 700;
  font-size: 13px; padding: 4px 14px; border-radius: 20px; margin-bottom: 22px; }
.hero h1 { font-size: 40px; line-height: 1.35; margin-bottom: 18px; font-weight: 700; }
.hero p { font-size: 17px; color: #e7edfb; margin-bottom: 32px; }
.btn { display: inline-block; padding: 12px 34px; border-radius: 4px; font-size: 15px; font-weight: 600; }
.btn-gold { background: var(--gold); color: #2a2200; }
.btn-gold:hover { background: #ffd633; color: #2a2200; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #002a80; color: #fff; }
.btn-outline { border: 1.5px solid #fff; color: #fff; margin-left: 14px; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ---------- 通用板块 ---------- */
.section { padding: 64px 0; }
.section.bg { background: var(--bg); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .sub { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.sec-head h2 { font-size: 30px; color: var(--navy); margin: 8px 0 12px; font-weight: 700; }
.sec-head .desc { color: var(--muted); max-width: 720px; margin: 0 auto; }
.title-bar { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.title-bar h2 { font-size: 26px; color: var(--navy); font-weight: 700; border-left: 5px solid var(--gold); padding-left: 14px; }
.title-bar .more { font-size: 14px; color: var(--muted); }
.title-bar .more:hover { color: var(--navy); }

/* ---------- 优势数据 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.adv-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 34px 24px; text-align: center; transition: .3s; }
.adv-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c3d2f2; }
.adv-item .num { font-size: 38px; font-weight: 700; color: var(--navy); line-height: 1; }
.adv-item .num em { font-style: normal; font-size: 17px; color: var(--blue); margin-left: 3px; }
.adv-item h3 { font-size: 17px; margin: 14px 0 8px; color: var(--ink); }
.adv-item p { font-size: 13.5px; color: var(--muted); }

/* ---------- 卡片网格 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  transition: .3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c3d2f2; }
.card .thumb { position: relative; overflow: hidden; aspect-ratio: 4/3; background: #dfe5f0; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.07); }
.card .thumb .cat-label {
  position: absolute; left: 12px; top: 12px; background: rgba(0,51,153,.88); color: #fff;
  font-size: 12px; padding: 3px 12px; border-radius: 3px;
}
.card .body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 17px; color: var(--ink); margin-bottom: 10px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 52px; }
.card h3 a:hover { color: var(--navy); }
.card p { font-size: 13.5px; color: var(--muted); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.card .meta { font-size: 13px; color: #999; border-top: 1px dashed var(--line); padding-top: 12px;
  display: flex; justify-content: space-between; align-items: center; }
.card .meta .go { color: var(--blue); font-weight: 600; }

/* ---------- 双栏图文 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.about-grid img { border-radius: 8px; box-shadow: var(--shadow); width: 100%; }
.about-text h2 { font-size: 28px; color: var(--navy); margin-bottom: 18px; }
.about-text p { margin-bottom: 14px; color: #444; }
.about-list { margin-top: 18px; }
.about-list li { padding: 7px 0 7px 30px; position: relative; }
.about-list li::before {
  content: "✓"; position: absolute; left: 0; top: 7px; width: 20px; height: 20px;
  background: var(--navy); color: var(--gold); border-radius: 50%; text-align: center;
  line-height: 20px; font-size: 12px; font-weight: 700;
}

/* ---------- 工艺流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px 18px; text-align: center; position: relative; }
.flow-step .step-no { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold);
  font-size: 18px; font-weight: 700; line-height: 44px; margin: 0 auto 14px; }
.flow-step h3 { font-size: 16px; margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: var(--muted); }

/* ---------- 首页新闻+案例 ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.news-mini li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.news-mini li:last-child { border-bottom: 0; }
.news-mini .date { flex: none; width: 64px; text-align: center; }
.news-mini .date b { display: block; font-size: 26px; color: var(--navy); line-height: 1.2; }
.news-mini .date span { font-size: 12px; color: #999; }
.news-mini .txt h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 5px; line-height: 1.5; }
.news-mini .txt p { font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 通栏 CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy), #0a4fc4); color: #fff; padding: 54px 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-size: 26px; margin-bottom: 8px; }
.cta p { color: #d7e2fa; }
.cta .btn-gold { padding: 14px 44px; font-size: 16px; }

/* ---------- 内页横幅 ---------- */
.page-banner { background: linear-gradient(rgba(0,30,90,.78), rgba(0,51,153,.85)), url("../images/common/hero.jpg") center/cover;
  color: #fff; padding: 64px 0; text-align: center; }
.page-banner h1 { font-size: 32px; margin-bottom: 10px; }
.page-banner .btitle { font-size: 32px; margin-bottom: 10px; font-weight: 700; color: #fff; }
.crumb { font-size: 13.5px; color: #cdd9f5; }
.crumb a { color: #dbe5fb; }
.crumb a:hover { color: var(--gold); }

/* ---------- 列表筛选 ---------- */
.list-layout { display: grid; grid-template-columns: 230px 1fr; gap: 34px; padding: 50px 0; align-items: start; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 22px; overflow: hidden; }
.side-box h3 { background: var(--navy); color: #fff; font-size: 16px; padding: 14px 18px; font-weight: 600; }
.side-box ul { padding: 8px 0; }
.side-box li a { display: block; padding: 10px 18px; color: #444; font-size: 14.5px; border-left: 3px solid transparent; }
.side-box li a:hover, .side-box li a.on { background: #f0f4fc; color: var(--navy); border-left-color: var(--gold); font-weight: 600; }
.side-contact { padding: 18px; font-size: 14px; }
.side-contact p { margin-bottom: 8px; color: #444; }
.side-contact b { color: var(--navy); }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: 14px; color: var(--muted); }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span {
  min-width: 40px; height: 40px; line-height: 40px; text-align: center; border: 1px solid var(--line);
  border-radius: 4px; padding: 0 12px; color: #444; font-size: 14px; background: #fff;
}
.pager a:hover { border-color: var(--navy); color: var(--navy); }
.pager .cur { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- 详情页 ---------- */
.detail { padding: 46px 0 60px; }
.detail-layout { display: grid; grid-template-columns: 46% 1fr; gap: 44px; align-items: start; }
.gallery .main-img { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #eef1f7; }
.gallery .main-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 12px; }
.gallery .thumbs img { aspect-ratio: 1; object-fit: cover; border: 2px solid transparent; border-radius: 4px; cursor: pointer; background: #eef1f7; }
.gallery .thumbs img.on, .gallery .thumbs img:hover { border-color: var(--navy); }
.detail-info h1 { font-size: 26px; color: var(--ink); margin-bottom: 14px; line-height: 1.4; }
.detail-info .lead { color: var(--muted); margin-bottom: 20px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.spec-table th { background: #f0f4fc; color: var(--navy); width: 38%; font-weight: 600; }
.detail-actions { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.detail-actions .btn { padding: 13px 36px; }
.detail-body { margin-top: 50px; }
.tab-bar { display: flex; border-bottom: 2px solid var(--line); margin-bottom: 28px; gap: 6px; flex-wrap: wrap; }
.tab-bar button {
  background: none; border: 0; padding: 12px 26px; font-size: 16px; cursor: pointer;
  color: #666; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600;
}
.tab-bar button.on { color: var(--navy); border-bottom-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
.detail-body h2 { font-size: 21px; color: var(--navy); margin: 28px 0 14px; padding-left: 12px; border-left: 4px solid var(--gold); }
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { margin-bottom: 14px; color: #3a3a3a; }
.detail-body ul.dot li { padding-left: 22px; position: relative; margin-bottom: 9px; }
.detail-body ul.dot li::before { content: "●"; position: absolute; left: 2px; top: 0; color: var(--blue); font-size: 10px; }
.detail-body img.inside { border-radius: 8px; margin: 18px 0; box-shadow: var(--shadow); }
.param-table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14px; }
.param-table th, .param-table td { border: 1px solid var(--line); padding: 9px 14px; text-align: center; }
.param-table th { background: var(--navy); color: #fff; font-weight: 600; }
.param-table tr:nth-child(even) td { background: #f7f9fd; }

/* ---------- 新闻/案例正文 ---------- */
.article { max-width: 860px; margin: 0 auto; padding: 46px 0 64px; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 28px; }
.article-head h1 { font-size: 27px; color: var(--ink); line-height: 1.45; margin-bottom: 16px; }
.article-meta { color: #999; font-size: 13.5px; display: flex; gap: 22px; flex-wrap: wrap; }
.article-body p { margin-bottom: 16px; font-size: 15.5px; color: #333; }
.article-body h2 { font-size: 20px; color: var(--navy); margin: 30px 0 14px; }
.article-body img { border-radius: 8px; margin: 22px 0; box-shadow: var(--shadow); width: 100%; }
.article-body a { color: var(--blue); text-decoration: underline; }
.article-body ul { margin: 0 0 16px 4px; }
.article-body ul.dot li { padding-left: 22px; position: relative; margin-bottom: 9px; color: #333; font-size: 15.5px; list-style: none; }
.article-body ul.dot li::before { content: "●"; position: absolute; left: 2px; top: 2px; color: var(--blue); font-size: 10px; }
.article-foot { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; font-size: 14px; }
.article-foot .prevnext { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.article-foot .prevnext a { max-width: 48%; }
.share-tags { margin: 10px 0 20px; }
.share-tags span { display: inline-block; background: #eef2fa; color: var(--blue); font-size: 13px; padding: 3px 13px; border-radius: 3px; margin: 0 8px 8px 0; }

/* ---------- 关于页 ---------- */
.page-hero { padding: 56px 0; }
.brand-story { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.story-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 30px 26px; }
.story-card h3 { color: var(--navy); font-size: 18px; margin-bottom: 12px; }
.story-card p { font-size: 14px; color: #555; }
.timeline { position: relative; margin: 20px 0 0; padding-left: 30px; border-left: 3px solid #d7e0f5; }
.timeline .t-item { position: relative; padding: 0 0 28px 18px; }
.timeline .t-item::before {
  content: ""; position: absolute; left: -39px; top: 4px; width: 15px; height: 15px;
  background: var(--gold); border: 3px solid var(--navy); border-radius: 50%;
}
.timeline .t-item b { color: var(--navy); font-size: 17px; display: block; }
.timeline .t-item p { color: #555; font-size: 14.5px; margin-top: 4px; }
.cert-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.cert-grid div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px 16px; text-align: center; font-weight: 600; color: var(--navy); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.contact-info .ci-ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%; background: #eef2fa; color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700;
}
.contact-info h3 { font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.contact-info p { color: var(--muted); font-size: 14.5px; }
.form-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 30px; box-shadow: var(--shadow); }
.form-box h3 { color: var(--navy); font-size: 20px; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-box label { display: block; font-size: 14px; color: #444; margin-bottom: 6px; }
.form-box input, .form-box textarea, .form-box select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--grey); border-radius: 4px;
  font-size: 14.5px; font-family: inherit; margin-bottom: 16px; background: #fff;
}
.form-box input:focus, .form-box textarea:focus, .form-box select:focus { outline: none; border-color: var(--blue); }
.form-box textarea { resize: vertical; min-height: 120px; }
.form-tip { color: #1a7a3c; font-size: 14px; display: none; margin-top: 10px; }
.map-box { margin-top: 26px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.map-box iframe { width: 100%; height: 340px; border: 0; display: block; }
.map-placeholder {
  height: 340px; background: linear-gradient(135deg,#e8eefb,#f6f8fd);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--navy);
  text-align: center; padding: 20px;
}
.map-placeholder b { font-size: 18px; margin-bottom: 8px; }
.map-placeholder span { color: var(--muted); font-size: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1f4d; color: #aebadb; padding: 56px 0 0; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #aebadb; }
.site-footer a:hover { color: var(--gold); }
.foot-about .logo-text .cn { color: #fff; }
.foot-about p { margin: 16px 0; line-height: 1.8; }
.foot-contact li { display: flex; gap: 10px; }
.foot-contact .k { color: #8fa2cc; flex: none; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 13px; color: #8494bd; }
.foot-bottom a { color: #8494bd; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 30px; width: 46px; height: 46px; border-radius: 6px;
  background: var(--navy); color: var(--gold); border: 0; font-size: 20px; cursor: pointer;
  opacity: 0; visibility: hidden; transition: .3s; z-index: 900; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.back-top.show { opacity: 1; visibility: visible; }

/* ---------- 面包屑/侧边联系 ---------- */
.service-strip { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.service-strip div { padding: 22px; text-align: center; border-right: 1px solid var(--line); }
.service-strip div:last-child { border-right: 0; }
.service-strip b { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.service-strip span { font-size: 13px; color: var(--muted); }

/* ================= 响应式 ================= */
@media (max-width: 992px) {
  .adv-grid, .flow, .cert-grid, .service-strip { grid-template-columns: repeat(2,1fr); }
  .card-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid, .split-grid, .contact-grid, .detail-layout { grid-template-columns: 1fr; }
  .list-layout { grid-template-columns: 1fr; }
  .side-box { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .brand-story { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-toggle { display: block; }
  .site-header .container { height: 64px; }
  .logo-text .cn { font-size: 16px; }
  .logo-mark { width: 44px; height: 44px; font-size: 20px; }
  .main-nav {
    position: fixed; top: 64px; left: 0; right: 0; background: #fff; max-height: 0;
    overflow: hidden; transition: max-height .35s; box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .main-nav.open { max-height: 480px; overflow-y: auto; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { line-height: 50px; padding: 0 24px; border-bottom: 1px solid #f0f2f7; }
  .main-nav a::after { display: none; }
  .main-nav a.active { background: #f0f4fc; }
  .hero { min-height: 400px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 15px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .section { padding: 44px 0; }
  .sec-head h2, .title-bar h2 { font-size: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .adv-grid, .flow, .cert-grid, .service-strip { grid-template-columns: 1fr; }
  .service-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-banner h1 { font-size: 24px; }
  .detail-info h1, .article-head h1 { font-size: 21px; }
  .form-row { grid-template-columns: 1fr; }
  .article-foot .prevnext a { max-width: 100%; }
  .cta .container { justify-content: center; text-align: center; }
}
