/* ============================================================
   浙江德圣钢业有限公司 · 官网改版
   品牌主色（与 logo 配色对齐）：
   藏青 #152a44 / 深蓝 #03497e / 过渡蓝 #1a6db5
   辅助色：深灰 #1a2a3a / 金属银 #eef3f8
   统一品牌视觉规范
   ============================================================ */

:root {
  --brand-dark: #152a44;
  --brand: #03497e;
  --brand-bright: #1a6db5;
  --brand-deep: #0b243c;
  --ink: #1a2a3a;
  --ink-soft: #3d5063;
  --metal: #eef3f8;
  --metal-line: #dbe6f0;
  --white: #ffffff;
  --accent: #ff7a00;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(3, 73, 126, .10);
  --shadow-hover: 0 16px 40px rgba(3, 73, 126, .18);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #f4f8fc;
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color .25s, transform .25s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ 顶部工具条 ============ */
.topbar {
  background: var(--brand-deep);
  color: #cfe6f7;
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a:hover { color: #fff; }
.topbar .hotline { color: #fff; font-weight: 600; }
.topbar .hotline b { color: var(--brand-bright); font-size: 15px; margin-left: 4px; }

/* ============ 头部 ============ */
.header {
  background: var(--white);
  box-shadow: 0 2px 14px rgba(3, 73, 126, .08);
  position: sticky; top: 0; z-index: 100;
}
.header .container { display: flex; align-items: center; height: 86px; gap: 30px; flex-wrap: nowrap; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 52px; width: auto; display: block; }
.logo-mark {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-bright) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 22px;
  box-shadow: 0 6px 16px rgba(3, 73, 126, .35);
}
.logo-text .name { font-size: 22px; font-weight: 800; color: var(--brand-deep); letter-spacing: 1px; }
.logo-text .sub { font-size: 12px; color: var(--ink-soft); letter-spacing: 3px; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 0; margin-left: auto; flex-shrink: 0; white-space: nowrap; }
.nav a {
  padding: 10px 12px; font-size: 16px; color: var(--ink);
  font-weight: 500; border-radius: 8px; position: relative; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--brand); background: #eef7fd; }
.nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 3px; border-radius: 3px; background: var(--brand);
}
.nav .nav-cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-bright) 100%);
  color: #fff !important; box-shadow: 0 6px 14px rgba(3, 73, 126, .35);
}
.nav .nav-cta:hover { transform: translateY(-2px); color: #fff !important; }

/* ============ 面包屑 / 页头横幅 ============ */
.page-hero {
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 55%, var(--brand-bright) 100%);
  color: #fff; padding: 58px 0 50px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.page-hero::before {
  content: ""; position: absolute; right: 80px; bottom: -80px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255,255,255,.05);
}
.page-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: 2px; }
.page-hero .en { font-size: 14px; opacity: .85; letter-spacing: 4px; text-transform: uppercase; margin-top: 6px; }
.breadcrumb { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.8); position: relative; z-index: 2; }
.breadcrumb a:hover { color: #fff; }

/* ============ 通用板块标题 ============ */
.section { padding: 70px 0; }
.section.alt { background: var(--white); }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head .en {
  display: inline-block; font-size: 13px; letter-spacing: 6px; text-transform: uppercase;
  color: var(--brand); font-weight: 700; margin-bottom: 8px;
}
.sec-head h2 { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: 2px; }
.sec-head h2 span { color: var(--brand); }
.sec-head .line { width: 60px; height: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); border-radius: 4px; margin: 18px auto 0; }

/* ============ 首页轮播 ============ */
.hero-slider { position: relative; overflow: hidden; background: var(--brand-deep); }
.hero-slide { display: none; position: relative; }
.hero-slide.active { display: block; animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-slide img { width: 100%; height: 480px; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,61,110,.82) 0%, rgba(11,61,110,.35) 50%, transparent 100%);
  display: flex; align-items: center;
}
.hero-overlay .container { width: 1200px; }
.hero-caption h2 { font-size: 42px; color: #fff; font-weight: 800; line-height: 1.3; letter-spacing: 2px; }
.hero-caption h2 b { color: var(--brand-bright); }
.hero-caption p { color: #d6eaff; font-size: 18px; margin-top: 16px; max-width: 560px; }
.hero-caption .hero-btns { margin-top: 28px; display: flex; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px;
  border-radius: 30px; font-size: 16px; font-weight: 600; cursor: pointer; border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-bright) 100%); color: #fff; box-shadow: 0 8px 20px rgba(3,73,126,.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(3,73,126,.5); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: all .3s; }
.hero-dots span.on { width: 34px; border-radius: 6px; background: var(--brand-bright); }

/* ============ 特色数字带 ============ */
.quick-stats { background: var(--white); padding: 46px 0; }
.quick-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-item { text-align: center; position: relative; }
.stat-item + .stat-item::before {
  content: ""; position: absolute; left: -15px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 46px; background: var(--metal-line);
}
.stat-item .num { font-size: 40px; font-weight: 800; color: var(--brand); line-height: 1; }
.stat-item .num b { color: var(--brand-bright); }
.stat-item .label { font-size: 15px; color: var(--ink-soft); margin-top: 10px; }

/* ============ 主打产品 ============ */
.feature-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card .thumb { height: 190px; overflow: hidden; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.08); }
.card .thumb .tag {
  position: absolute; left: 14px; top: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 20px;
}
.card .body { padding: 20px; }
.card .body h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.card .body p { font-size: 13px; color: var(--ink-soft); margin-top: 8px; min-height: 40px; }
.card .more { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--brand); font-weight: 600; }
.card .more:hover { color: var(--brand-deep); }

/* ============ 产品分类 ============ */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.cat-item {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  text-align: center; transition: all .3s; border: 1px solid var(--metal-line);
  box-shadow: var(--shadow); position: relative;
}
.cat-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.cat-item .thumb { height: 170px; overflow: hidden; background: #eef3f8; }
.cat-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-item:hover .thumb img { transform: scale(1.08); }
.cat-item .cat-body { padding: 18px 12px 20px; }
.cat-item h3 { font-size: 17px; font-weight: 700; color: var(--brand-deep); transition: color .3s; }
.cat-item .en { font-size: 11px; color: var(--ink-soft); letter-spacing: 1px; margin-top: 6px; transition: color .3s; }
.cat-item:hover h3 { color: var(--brand); }

/* ============ 荣誉资质 / 车间设备 ============ */
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.honor-item { background: var(--white); border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--shadow); transition: transform .3s; }
.honor-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.honor-item .badge { width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, #eef7fd, #d8edfb); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.honor-item h3 { font-size: 16px; color: var(--ink); font-weight: 700; }
.honor-item p { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ============ 新闻动态 ============ */
.news-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.news-list .news-item { display: flex; gap: 18px; background: var(--white); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); transition: transform .3s; }
.news-list .news-item:hover { transform: translateX(6px); box-shadow: var(--shadow-hover); }
.news-item .date { text-align: center; min-width: 64px; }
.news-item .date .d { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1; }
.news-item .date .m { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.news-item .txt h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.news-item .txt p { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* ============ 侧栏二维码卡 ============ */
.side-qr { background: linear-gradient(160deg, var(--brand-deep), var(--brand)); border-radius: var(--radius); padding: 30px; color: #fff; text-align: center; box-shadow: var(--shadow); }
.side-qr h3 { font-size: 20px; font-weight: 800; letter-spacing: 2px; }
.side-qr .qr-box { width: 180px; height: 180px; margin: 20px auto; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.side-qr .qr-box img { width: 100%; height: 100%; object-fit: contain; }
.side-qr p { font-size: 13px; opacity: .9; }
.side-qr .phone { font-size: 24px; font-weight: 800; color: #fff; margin: 10px 0 4px; }

/* ============ 内页布局 ============ */
.page-main { padding: 60px 0; }
.page-grid { display: grid; grid-template-columns: 260px 1fr; gap: 36px; }
.aside { position: sticky; top: 110px; align-self: start; }
.aside-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.aside-card .hd { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; padding: 18px 22px; font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.aside-card .hd .en { font-size: 11px; letter-spacing: 2px; opacity: .8; display: block; margin-top: 2px; }
.aside-menu a { display: block; padding: 14px 22px; font-size: 15px; color: var(--ink-soft); border-bottom: 1px solid var(--metal); transition: all .25s; }
.aside-menu a:hover, .aside-menu a.active { color: var(--brand); background: #eef7fd; padding-left: 26px; }
.aside-menu a:last-child { border-bottom: none; }
.content-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.content-card h2 { font-size: 24px; color: var(--brand-deep); font-weight: 800; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--metal); }
.content-card p { color: var(--ink-soft); margin-bottom: 14px; line-height: 1.9; }

/* ============ 产品网格（内页） ============ */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-grid .card .thumb { height: 220px; }

/* ============ 联系我们 ============ */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.contact-info .ci-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #f7fbfe; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid var(--metal-line); }
.ci-item .ci-ico { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-bright)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ci-item .ci-txt h4 { font-size: 15px; color: var(--ink); font-weight: 700; }
.ci-item .ci-txt p { font-size: 16px; color: var(--brand-deep); font-weight: 600; margin-top: 4px; }

/* ============ 页脚 ============ */
.footer { background: var(--ink); color: #9db2c6; margin-top: 0; }
.footer-top { padding: 60px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col .fh { font-size: 17px; color: #fff; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-col .fh::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--brand-bright); border-radius: 3px; }
.footer-col p { font-size: 14px; line-height: 1.9; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: #9db2c6; }
.footer-col a:hover { color: var(--brand-bright); }
.footer-col .brand { font-size: 22px; color: #fff; font-weight: 800; letter-spacing: 1px; margin-bottom: 12px; }
.footer-qr { width: 110px; height: 110px; background: #fff; border-radius: 10px; padding: 6px; }
.footer-qr img { width: 100%; height: 100%; object-fit: contain; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: 13px; color: #7c90a5; }
.footer-bottom a { color: #9db2c6; }
.footer-bottom a:hover { color: var(--brand-bright); }

/* ============ 右侧悬浮二维码 ============ */
.float-qr {
  position: fixed; right: 18px; bottom: 90px; z-index: 200; display: flex; flex-direction: column; gap: 12px;
}
.float-qr .fq-btn {
  width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 0 8px 20px rgba(3,73,126,.45); cursor: pointer; position: relative; transition: transform .3s;
}
.float-qr .fq-btn:hover { transform: translateY(-4px); }
.float-qr .fq-pop {
  position: absolute; right: 68px; bottom: 0; width: 200px; background: #fff; border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,.18); padding: 18px; text-align: center; opacity: 0; visibility: hidden; transform: translateX(10px); transition: all .3s;
}
.float-qr .fq-btn:hover .fq-pop { opacity: 1; visibility: visible; transform: translateX(0); }
.fq-pop img { width: 150px; height: 150px; margin: 0 auto 10px; }
.fq-pop b { display: block; font-size: 15px; color: var(--brand-deep); }
.fq-pop span { font-size: 12px; color: var(--ink-soft); }

/* ============ 行业应用领域 ============ */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-item {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  border-top: 4px solid transparent;
}
.app-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-top-color: var(--brand); }
.app-item .app-ico { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-bright)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; box-shadow: 0 6px 14px rgba(3,73,126,.25); }
.app-item h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.app-item p { font-size: 14px; color: var(--ink-soft); margin-top: 10px; line-height: 1.8; }

/* ============ 核心优势 ============ */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.adv-item { text-align: center; padding: 34px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s; position: relative; overflow: hidden; }
.adv-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); transform: scaleX(0); transition: transform .3s; }
.adv-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.adv-item:hover::before { transform: scaleX(1); }
.adv-item .adv-num { font-size: 44px; font-weight: 800; color: var(--brand); line-height: 1; }
.adv-item .adv-num b { color: var(--brand-bright); }
.adv-item h3 { font-size: 18px; color: var(--ink); font-weight: 700; margin-top: 14px; }
.adv-item p { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* ============ 生产工艺流程 ============ */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.proc-step { text-align: center; position: relative; }
.proc-step .p-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--brand); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 26px; transition: all .3s; }
.proc-step:hover .p-ico { background: var(--brand); color: #fff; transform: scale(1.08); }
.proc-step h3 { font-size: 15px; color: var(--ink); font-weight: 700; }
.proc-step p { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.proc-step:not(:last-child)::after { content: "→"; position: absolute; top: 22px; right: -14px; font-size: 20px; color: var(--brand-bright); }

/* ============ 深色品牌带（企业实力 CTA） ============ */
.brand-cta {
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand-dark) 45%, var(--brand) 100%);
  padding: 70px 0; color: #fff; position: relative; overflow: hidden;
}
.brand-cta::after { content: ""; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.05); }
.brand-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; z-index: 2; }
.brand-cta h2 { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.brand-cta h2 span { color: var(--brand-bright); }
.brand-cta p { font-size: 15px; color: #c8d9e8; margin-top: 12px; max-width: 620px; }
.brand-cta .btn-primary { background: linear-gradient(135deg, var(--brand-bright) 0%, #2f8fd4 100%); }

/* ============ 响应式 ============ */
@media (max-width: 1200px) { .container { width: 100%; } }
@media (max-width: 900px) {
  .nav { display: none; }
  .feature-cards, .cats, .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-stats .container { grid-template-columns: repeat(2, 1fr); }
  .news-wrap, .contact-grid, .page-grid, .footer-top { grid-template-columns: 1fr; }
  .hero-slide img { height: 320px; }
  .hero-caption h2 { font-size: 30px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .proc-step:not(:last-child)::after { display: none; }
  .brand-cta .container { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .feature-cards, .cats, .honor-grid, .prod-grid, .app-grid, .adv-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .hero-slide img { height: 240px; }
  .hero-caption h2 { font-size: 24px; }
  .hero-caption p { font-size: 15px; }
}
