/* =========================================================================
 *  全局样式  ——  制造业 / 工业风（深灰 + 橙色）
 *  如需调整主色调，修改下面 :root 中的 --accent 与 --dark 即可。
 * ========================================================================= */
:root {
  --dark: #0a1a2f;        /* 主深蓝（科技蓝底） */
  --dark-2: #0f2747;      /* 次深蓝 */
  --gray: #8b9bb4;        /* 辅助灰蓝 */
  --light: #f3f7fc;       /* 浅蓝背景 */
  --white: #ffffff;
  --accent: #1e9bff;      /* 科技蓝强调色 */
  --accent-2: #0066ff;
  --line: #e1e8f2;
  --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: #2a2e31;
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--light); }

/* ---------- 页眉导航 ---------- */
#nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo-mark { color: var(--accent); font-size: 22px; text-shadow: 0 0 12px rgba(30,155,255,.8); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-cn { font-weight: 800; font-size: 19px; letter-spacing: 1px; }
.logo-en { font-size: 11px; letter-spacing: 2px; color: var(--accent); font-weight: 600; }
.nav-links { display: flex; gap: 6px; }
.nav-link {
  color: #cfd3d6; padding: 8px 16px; border-radius: 4px; font-size: 15px; transition: .2s;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(30,155,255,.18); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- 轮播 Banner ---------- */
.banner { position: relative; height: 460px; overflow: hidden; }
.slides { position: relative; height: 100%; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s;
  display: flex; align-items: center;
}
.slide.active { opacity: 1; }
.slide-text { max-width: var(--max); margin: 0 auto; padding: 0 20px; color: #fff; }
.slide-text h1 { font-size: 44px; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.slide-text p { font-size: 19px; margin-bottom: 26px; opacity: .95; }
.dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: .2s; }
.dot.active { background: var(--accent); width: 28px; border-radius: 6px; }

/* ---------- 通用区块 ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--light); }
.section-title { text-align: center; font-size: 30px; margin-bottom: 40px; position: relative; }
.section-title::after {
  content: ""; display: block; width: 56px; height: 4px; background: var(--accent);
  margin: 14px auto 0; border-radius: 2px;
}

/* 简介 + 数据 */
.intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.intro-text h2 { font-size: 28px; margin-bottom: 16px; }
.intro-text p { color: #555; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.stat { background: var(--dark); color: #fff; border-radius: 8px; padding: 22px; text-align: center; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 14px; color: #cfd3d6; margin-top: 4px; }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(30,155,255,.18); border-color: var(--accent); }
.card-icon { font-size: 34px; color: var(--accent); margin-bottom: 12px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: #666; font-size: 15px; }
.card .cat { color: var(--accent); font-weight: 600; font-size: 13px; margin: 6px 0; }
.link { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; }

/* 产品卡片 */
.product-card { padding: 0; overflow: hidden; }
.product-card.clickable { cursor: pointer; }
.product-card img, .product-card .ph { width: 100%; height: 180px; object-fit: cover; }
.product-body { padding: 22px; }
.feat { list-style: none; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.feat li { background: var(--light); color: #555; padding: 4px 12px; border-radius: 20px; font-size: 13px; }
.products-grid { grid-template-columns: repeat(3, 1fr); }

/* 占位图 */
.ph { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: 1px; }

/* CTA */
.cta { background: var(--dark); color: #fff; text-align: center; padding: 60px 0; }
.cta h2 { font-size: 28px; margin-bottom: 10px; }
.cta p { margin-bottom: 24px; opacity: .9; }

/* 内页头图 */
.page-hero { background: linear-gradient(120deg, var(--dark), var(--accent-2)); color: #fff; padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: 38px; margin-bottom: 8px; }
.page-hero p { opacity: .9; font-size: 17px; }

/* 关于页 */
.prose p { font-size: 17px; color: #555; max-width: 900px; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; margin-top: 30px; }
.timeline-item { border-left: 3px solid var(--accent); padding: 10px 18px; background: var(--light); border-radius: 0 8px 8px 0; }
.timeline-item .year { font-size: 22px; font-weight: 800; color: var(--accent); }
.team-card .ph { height: 160px; border-radius: 8px; margin-bottom: 14px; }
.cert-list { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.cert-list li { background: var(--dark); color: #fff; padding: 10px 22px; border-radius: 6px; font-size: 15px; }

/* 新闻 */
.news-list { display: flex; flex-direction: column; gap: 22px; max-width: 860px; margin: 0 auto; }
.news-item { border: 1px solid var(--line); border-radius: 10px; padding: 26px; transition: .2s; }
.news-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); border-color: var(--accent); }
.news-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.news-date { color: var(--gray); font-size: 14px; }
.news-cat { background: var(--accent); color: #fff; padding: 2px 12px; border-radius: 20px; font-size: 12px; }
.news-item h3 { font-size: 21px; margin-bottom: 8px; }
.news-item p { color: #666; }
.news-content { margin-top: 10px; font-size: 15px; }

/* 联系 */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; background: var(--light); padding: 18px; border-radius: 8px; }
.info-ico { font-size: 22px; color: var(--accent); }
.info-item h4 { font-size: 15px; color: #888; margin-bottom: 2px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.form-tip { font-size: 13px; color: var(--gray); }

/* 页脚 */
#footer { background: var(--dark); color: #cfd3d6; padding: 50px 0 24px; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-logo { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-slogan { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 4px; line-height: 1.5; }
.footer-slogan-sub { font-size: 13px; color: #8b9094; margin-bottom: 0; line-height: 1.7; max-width: 340px; }
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 16px; }
.footer-col p, .footer-col a { color: #aeb3b7; font-size: 14px; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #3a3f43; margin-top: 30px; padding-top: 18px; font-size: 13px; color: #8b9094; }

/* ---------- 产品详情弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,26,47,.6); backdrop-filter: blur(2px); }
.modal-panel {
  position: relative; width: 92%; max-width: 1140px; margin: 2vh auto 0; max-height: 96vh; overflow: auto;
  background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2; width: 38px; height: 38px;
  border: none; border-radius: 50%; background: rgba(10,26,47,.55); color: #fff; font-size: 24px;
  line-height: 1; cursor: pointer; transition: .2s;
}
.modal-close:hover { background: var(--accent); transform: rotate(90deg); }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { min-height: 540px; }
.modal-media img, .modal-media .ph { width: 100%; height: 100%; min-height: 540px; object-fit: cover; }
.modal-info { padding: 48px 44px; }
.modal-info h2 { font-size: 30px; margin: 8px 0 18px; }
.modal-desc { color: #444; font-size: 17px; margin-bottom: 16px; }
.modal-detail { color: #666; font-size: 16px; line-height: 2; }
.modal-info .feat { margin-top: 22px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .intro, .contact-wrap { grid-template-columns: 1fr; }
  .cards, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--dark);
    flex-direction: column; padding: 10px; }
  .nav-links.open { display: flex; }
  .cards, .products-grid, .stats { grid-template-columns: 1fr; }
  .slide-text h1 { font-size: 30px; }
  .banner { height: 360px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-media { min-height: 220px; }
  .modal-media img, .modal-media .ph { min-height: 220px; }
  .modal-panel { margin: 4vh 14px 0; }
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; box-shadow: 0 6px 18px rgba(30,155,255,.45);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, background .2s;
}
.to-top:hover { background: var(--accent-2); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 640px) {
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; font-size: 20px; }
}
