/* ============ 上海铭驹胶粘制品有限公司 - 企业官网样式 ============ */
:root {
  --primary: #0a4d9e;
  --primary-dark: #072f63;
  --primary-light: #e8f1fb;
  --accent: #f5821f;
  --accent-dark: #d96a0c;
  --text: #333;
  --text-light: #666;
  --bg-light: #f6f8fb;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(10, 77, 158, .10);
  --shadow-hover: 0 10px 30px rgba(10, 77, 158, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部通栏 ---------- */
.topbar {
  background: var(--primary-dark);
  color: #cfe0f5;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--accent); }

/* ---------- 导航 ---------- */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 20px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; font-size: 19px; color: var(--primary-dark); letter-spacing: 1px; }
.logo-text span { font-size: 11px; color: var(--text-light); letter-spacing: .5px; }
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 18px; font-size: 16px; color: var(--text); border-radius: 6px; font-weight: 500;
}
.nav a:hover { color: var(--primary); background: var(--primary-light); }
.nav a.active { color: #fff; background: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--primary); cursor: pointer; }

/* ---------- Hero 轮播 ---------- */
.hero { position: relative; height: 520px; overflow: hidden; background: var(--primary-dark); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  display: flex; align-items: center; justify-content: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.45);
}
.hero-content { position: relative; text-align: center; color: #fff; padding: 0 20px; max-width: 900px; }
.hero-content h1 { font-size: 44px; letter-spacing: 2px; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero-content p { font-size: 19px; color: #e3edf9; margin-bottom: 30px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 34px; border-radius: 6px; font-size: 16px; font-weight: 500;
  transition: all .25s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { border: 2px solid rgba(255,255,255,.8); color: #fff; padding: 10px 32px; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); padding: 10px 32px; }
.btn-outline:hover { background: var(--primary); color: #fff; }

.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dots button {
  width: 34px; height: 5px; border: none; border-radius: 3px;
  background: rgba(255,255,255,.4); cursor: pointer; transition: background .3s;
}
.hero-dots button.active { background: var(--accent); }

/* ---------- 特性条 ---------- */
.feature-bar { background: var(--primary); color: #fff; padding: 18px 0; }
.feature-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.feature-bar .fb-item strong { font-size: 22px; display: block; color: #ffd9b3; }
.feature-bar .fb-item span { font-size: 14px; color: #d5e4f7; }

/* ---------- 通用 Section ---------- */
.section { padding: 70px 0; }
.section.alt { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 45px; }
.section-head .sub { color: var(--accent); font-weight: 600; letter-spacing: 3px; font-size: 14px; text-transform: uppercase; }
.section-head h2 { font-size: 32px; color: var(--primary-dark); margin-top: 6px; }
.section-head .line { width: 60px; height: 4px; background: var(--accent); margin: 14px auto 0; border-radius: 2px; }
.section-head p.desc { color: var(--text-light); margin-top: 14px; max-width: 800px; margin-left: auto; margin-right: auto; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-card .thumb { height: 260px; overflow: hidden; background: #f0f4f9; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-card .tag { display: inline-block; font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 2px 10px; border-radius: 20px; align-self: flex-start; margin-bottom: 10px; }
.product-card h3 { font-size: 19px; color: var(--primary-dark); margin-bottom: 10px; }
.product-card p { font-size: 14px; color: var(--text-light); flex: 1; }
.product-card .more { margin-top: 14px; color: var(--accent); font-size: 14px; font-weight: 500; }
.product-card .more:hover { color: var(--accent-dark); }

/* ---------- 优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.adv-item {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); border-top: 4px solid transparent; transition: all .3s;
}
.adv-item:hover { border-top-color: var(--accent); transform: translateY(-4px); }
.adv-item .num { font-size: 40px; font-weight: bold; color: var(--primary-light); line-height: 1; -webkit-text-stroke: 1px var(--primary); }
.adv-item h3 { font-size: 18px; color: var(--primary-dark); margin: 12px 0 8px; }
.adv-item p { font-size: 14px; color: var(--text-light); }

/* ---------- 客户群体 / 服务流程 ---------- */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.client-box {
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.client-box h3 { font-size: 19px; margin-bottom: 14px; color: #ffd9b3; }
.client-box ul li { padding: 5px 0; font-size: 14.5px; color: #e3edf9; }
.client-box ul li::before { content: "▸ "; color: var(--accent); }

/* ---------- 视频区 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.video-card { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-card video { width: 100%; height: 260px; object-fit: cover; display: block; background: #000; }
.video-card .cap { background: var(--white); padding: 14px 18px; font-size: 15px; color: var(--primary-dark); font-weight: 500; }

/* ---------- 图集 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid .g-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.gallery-grid .g-item img { width: 100%; height: 200px; object-fit: cover; transition: transform .5s; }
.gallery-grid .g-item:hover img { transform: scale(1.07); }
.gallery-grid .g-cap {
  padding: 9px 10px; font-size: 14px; color: var(--primary-dark);
  background: #fff; text-align: center; font-weight: 500;
}

/* ---------- 首页案例卡 ---------- */
.case-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.case-mini {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px; border-top: 4px solid var(--accent); transition: transform .3s, box-shadow .3s;
}
.case-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.case-mini .tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 13px; padding: 3px 14px; border-radius: 20px; margin-bottom: 12px; }
.case-mini h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 4px; }
.case-mini .years { color: var(--accent-dark); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.case-mini p { font-size: 14.5px; color: var(--text-light); margin-bottom: 14px; }
.case-mini .more { color: var(--accent); font-size: 14px; font-weight: 500; }
@media (max-width: 640px) { .case-mini-grid { grid-template-columns: 1fr; } }

/* ---------- 设备-起订量卡片 ---------- */
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.equip-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.equip-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.equip-card > img { width: 100%; height: 240px; object-fit: cover; }
.equip-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.equip-card .qty { display: inline-block; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 14px; border-radius: 20px; align-self: flex-start; margin-bottom: 12px; }
.equip-card h3 { font-size: 19px; color: var(--primary-dark); margin-bottom: 10px; }
.equip-card p { font-size: 14px; color: var(--text-light); flex: 1; }
@media (max-width: 992px) { .equip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .equip-grid { grid-template-columns: 1fr; } }

/* ---------- 合作客户覆盖 ---------- */
.cov-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.cov-stat { background: linear-gradient(135deg, #fff7f0 0%, #fff 100%); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); border-bottom: 3px solid var(--accent); }
.cov-stat .num { font-size: 44px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.cov-stat .num span { font-size: 22px; color: var(--accent-dark); margin-left: 2px; }
.cov-stat .lbl { font-size: 14.5px; color: var(--text-light); }
.cov-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cov-tag { display: inline-block; background: #fff; border: 1.5px solid #e8e8e8; color: var(--text); padding: 9px 18px; border-radius: 24px; font-size: 14.5px; transition: all .25s; cursor: default; }
.cov-tag:hover { border-color: var(--accent); color: var(--accent-dark); background: #fff7f0; transform: translateY(-2px); }
@media (max-width: 800px) { .cov-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cov-stat .num { font-size: 36px; } }

/* ---------- FAQ mini preview ---------- */
.faq-grid-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.fq-mini { background: #fff; border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); border-top: 3px solid var(--accent); position: relative; transition: transform .3s; }
.fq-mini:hover { transform: translateY(-4px); }
.fq-mini .fq-num { position: absolute; top: 18px; right: 22px; font-size: 32px; font-weight: 800; color: #fff5ec; line-height: 1; }
.fq-mini h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 10px; font-weight: 600; padding-right: 40px; }
.fq-mini p { font-size: 14.5px; color: var(--text-light); line-height: 1.8; }
.fq-mini p b { color: var(--primary); }
@media (max-width: 700px) { .faq-grid-mini { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 60px 0; text-align: center;
}
.cta h2 { font-size: 30px; margin-bottom: 12px; }
.cta p { color: #cfe0f5; margin-bottom: 26px; font-size: 16px; }

/* ---------- 关于页 ---------- */
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.about-intro .txt h2 { font-size: 28px; color: var(--primary-dark); margin-bottom: 18px; }
.about-intro .txt p { color: var(--text-light); margin-bottom: 14px; text-align: justify; }
.about-intro .pic img { border-radius: var(--radius); box-shadow: var(--shadow-hover); }
.info-list { background: var(--bg-light); border-radius: var(--radius); padding: 26px 30px; margin-top: 18px; }
.info-list li { display: flex; padding: 7px 0; font-size: 15px; border-bottom: 1px dashed #dde6f0; }
.info-list li:last-child { border-bottom: none; }
.info-list li b { color: var(--primary-dark); min-width: 100px; flex-shrink: 0; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); margin-bottom: 20px; display: flex; gap: 18px; align-items: flex-start;
}
.contact-card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.contact-card h3 { font-size: 17px; color: var(--primary-dark); margin-bottom: 4px; }
.contact-card p { font-size: 15px; color: var(--text-light); }
.contact-card a { color: var(--primary); font-weight: 500; }
.contact-card a:hover { color: var(--accent); }
.form-box { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-box h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid #d7e1ec; border-radius: 6px;
  font-size: 15px; font-family: inherit; transition: border .2s; background: #fbfdff;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-tip { font-size: 13px; color: #999; margin-top: 12px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--primary-dark); color: #b9cde6; padding: 55px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer p, .footer li { font-size: 14px; line-height: 2; }
.footer a:hover { color: var(--accent); }
.footer .copyright { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 18px 0; font-size: 13px; color: #8aa8c9; }

/* ---------- 面包屑 / 页头 ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; text-align: center; padding: 62px 0;
}
.page-banner h1 { font-size: 34px; margin-bottom: 8px; }
.page-banner p { color: #cfe0f5; font-size: 15px; }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: all .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .product-grid, .adv-grid, .client-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro, .contact-grid { grid-template-columns: 1fr; }
  .hero { height: 440px; }
  .hero-content h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 12px 20px 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .product-grid, .adv-grid, .client-grid, .video-grid, .form-row { grid-template-columns: 1fr; }
  .feature-bar .container { grid-template-columns: repeat(2, 1fr); }
  .hero { height: 400px; }
  .hero-content h1 { font-size: 27px; }
  .hero-content p { font-size: 15px; }
  .section { padding: 50px 0; }
  .section-head h2 { font-size: 25px; }
  .topbar .hide-sm { display: none; }
}
