/* ==========================================================
   广东新昊塑料科技有限公司 · 全站公共样式
   ========================================================== */

:root {
  --navy: #1E3A5F;
  --navy-deep: #16293F;
  --blue: #2E7DD1;
  --orange: #F39800;
  --bg-soft: #F5F7FA;
  --border: #E5E9EF;
  --text: #333;
  --text-dim: #666;
  --radius: 8px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 16px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------------- 导航 ---------------- */
.nav {
  background: var(--navy);
  color: #fff;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  white-space: nowrap;
}
.nav-logo img { height: 34px; width: auto; }
.nav-logo em { font-style: normal; color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  padding: 8px 4px;
  cursor: pointer;
}

.nav-menu { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-menu a {
  color: #fff;
  opacity: .85;
  position: relative;
  padding: 6px 0;
  transition: opacity .2s;
  white-space: nowrap;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .2s;
}
.nav-menu a:hover { opacity: 1; }
.nav-menu a:hover::after { width: 100%; }
.nav-menu a.active { opacity: 1; color: var(--orange); }
.nav-menu a.active::after { width: 100%; }

/* ---------------- 页脚 ---------------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .62);
  padding: 40px;
  text-align: center;
  font-size: 13px;
  line-height: 2;
}
.footer p { margin: 0 0 4px; }
.footer .footer-name { color: #fff; font-weight: 700; font-size: 15px; }
.footer a { color: rgba(255, 255, 255, .9); }
.footer a:hover { color: var(--orange); }

/* ---------------- 通用板块 ---------------- */
.section { padding: 72px 40px; max-width: 1200px; margin: 0 auto; }

.section > h2 {
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 4px solid var(--orange);
  line-height: 1.4;
}
.section > h2:not(:first-child) { margin-top: 48px; }

.section-title { text-align: center; margin: 0 0 48px; }
.section-title h2 { font-size: 32px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.section-title .line { width: 50px; height: 3px; background: var(--orange); margin: 0 auto 12px; }
.section-title p { color: #999; font-size: 14px; letter-spacing: 2px; margin: 0; }

.page-banner {
  background: linear-gradient(135deg, #1E3A5F 0%, #2E7DD1 100%);
  padding: 72px 40px;
  text-align: center;
  color: #fff;
}
.page-banner h1 { font-size: 36px; margin: 0 0 10px; font-weight: 800; }
.page-banner p { margin: 0; opacity: .82; font-size: 16px; }

/* ---------------- 按钮 ---------------- */
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: all .2s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d98600; }
.btn-outline { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------------- 首页 Hero ---------------- */
.hero { position: relative; height: 540px; overflow: hidden; background: var(--navy); }
.hero-bg {
  position: absolute; inset: 0;
  background: url("hero.webp") center / cover no-repeat;
  opacity: .8;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,58,95,.93) 0%, rgba(30,58,95,.55) 60%, rgba(30,58,95,.25) 100%);
}
.hero-content { position: relative; max-width: 1200px; margin: 0 auto; padding: 112px 40px; }
.hero-tag {
  display: inline-block;
  background: rgba(243, 152, 0, .15);
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 22px;
}
.hero h1 { font-size: 46px; font-weight: 900; color: #fff; line-height: 1.3; margin: 0 0 18px; max-width: 680px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-sub { font-size: 16px; color: rgba(255, 255, 255, .88); max-width: 640px; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------- 数据条 ---------------- */
.stats { background: var(--navy-deep); padding: 48px 40px; }
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 20%;
  height: 60%; width: 1px; background: rgba(255, 255, 255, .1);
}
.stat-num { font-size: 40px; font-weight: 900; color: var(--orange); line-height: 1.2; }
.stat-label { font-size: 14px; color: rgba(255, 255, 255, .7); margin-top: 8px; }

/* ---------------- 首页 关于 ---------------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 30px rgba(30, 58, 95, .12); }
.about-img img { width: 100%; height: 380px; object-fit: cover; }
.about-text h3 { font-size: 26px; color: var(--navy); margin: 0 0 18px; }
.about-text p { color: #555; font-size: 15px; }
.about-link { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 500; }
.about-link:hover { color: var(--orange); }

/* ---------------- 核心优势 ---------------- */
.advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.adv-card {
  background: var(--bg-soft);
  padding: 34px 26px;
  border-radius: var(--radius);
  border-top: 3px solid var(--blue);
  transition: all .25s;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(30, 58, 95, .1); background: #fff; }
.adv-icon {
  width: 44px; height: 44px;
  background: #E8F1FA; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 22px;
}
.adv-card h4 { font-size: 17px; color: var(--navy); margin: 0 0 10px; }
.adv-card p { font-size: 14px; color: var(--text-dim); margin: 0; }

/* ---------------- 产品卡片（首页 / 产品页共用） ---------------- */
.prod-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: block;
  transition: all .25s;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(30, 58, 95, .14); }
.prod-card img { width: 100%; object-fit: cover; transition: transform .3s; }
.prod-card:hover img { transform: scale(1.04); }
.prod-info { padding: 22px; }
.prod-info h3,
.prod-info h4 { color: var(--navy); margin: 0 0 8px; }
.prod-info p { color: #777; margin: 0; }
.prod-card.highlight { border: 2px solid var(--orange); }
.prod-card.highlight .prod-info h3,
.prod-card.highlight .prod-info h4 { color: var(--orange); }

/* 首页产品 3×2 */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.products .prod-card img { height: 180px; }
.products .prod-info h4 { font-size: 17px; }
.products .prod-info p { font-size: 13px; }

/* 产品中心页 */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prod-grid .prod-card img { height: 200px; }
.prod-grid .prod-info { padding: 24px; }
.prod-grid .prod-info h3 { font-size: 19px; margin-bottom: 10px; }
.prod-grid .prod-info p { font-size: 14px; margin-bottom: 10px; }
.prod-grid .tags { margin-top: 12px; }
.prod-grid .tag {
  display: inline-block;
  background: #F0F5FA; color: var(--blue);
  padding: 3px 10px; border-radius: 12px;
  font-size: 12px; margin: 0 6px 6px 0;
}
.prod-cta { text-align: center; margin-top: 50px; padding: 40px; background: var(--bg-soft); border-radius: var(--radius); }
.prod-cta h3 { font-size: 22px; color: var(--navy); margin: 0 0 10px; }
.prod-cta a {
  display: inline-block; margin-top: 16px;
  background: var(--orange); color: #fff;
  padding: 12px 32px; border-radius: 4px;
}

/* ---------------- 应用领域 ---------------- */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.apps-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 30px rgba(30, 58, 95, .12); }
.apps-img img { width: 100%; height: 340px; object-fit: cover; }
.apps-text h3 { font-size: 24px; color: var(--navy); margin: 0 0 18px; }
.apps-list li { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; color: #555; }
.apps-list li:last-child { border-bottom: 0; }
.apps-list li strong { color: var(--navy); margin-right: 8px; }

/* 应用领域页 */
.app-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.app-item:last-child { border-bottom: 0; }
.app-icon { width: 200px; height: 140px; border-radius: var(--radius); overflow: hidden; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-text h3 { font-size: 20px; color: var(--navy); margin: 0 0 8px; }
.app-text p { font-size: 14px; color: var(--text-dim); margin: 0; }

/* ---------------- 客户墙 ---------------- */
.clients { background: var(--bg-soft); padding: 64px 40px; text-align: center; }
.clients h3 { font-size: 22px; color: var(--navy); margin: 0 0 8px; }
.clients .clients-sub { color: #888; font-size: 14px; margin-bottom: 32px; }
.client-logos {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px; max-width: 1080px; margin: 0 auto;
}
.client-logo {
  background: #fff; border-radius: 6px;
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  transition: all .2s;
}
.client-logo:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.client-logo img { height: 34px; width: auto; object-fit: contain; }

/* ---------------- CTA ---------------- */
.cta {
  background: linear-gradient(135deg, #1E3A5F 0%, #2E7DD1 100%);
  padding: 64px 40px;
  text-align: center;
  color: #fff;
}
.cta h3 { font-size: 28px; margin: 0 0 12px; }
.cta p { opacity: .85; margin-bottom: 26px; }
.cta .btn-primary { background: var(--orange); }

/* ---------------- 关于页 ---------------- */
.img-block { border-radius: var(--radius); overflow: hidden; margin: 28px 0; }
.img-block img { width: 100%; height: auto; }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.cert-grid .cert-item {
  background: var(--bg-soft);
  padding: 20px;
  text-align: center;
  border-radius: 6px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
}

.cert-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 30px 0; }
.cert-card { border: 1px solid #e0e0e0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.cert-card img { width: 100%; height: auto; }
.cert-card .cert-cap { padding: 14px; background: var(--bg-soft); text-align: center; font-weight: 600; color: var(--navy); }

/* ---------------- 技术实力页 ---------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 24px 0; }
.two-col img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); }
.two-col p { font-size: 15px; color: #555; }

.cert-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
.cert-list .cert-item {
  background: var(--bg-soft);
  padding: 18px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
}

/* ---------------- 产品详情页 ---------------- */
.phero {
  background: linear-gradient(135deg, #1E3A5F 0%, #2E7DD1 100%);
  padding: 80px 40px;
  color: #fff;
}
.phero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center;
}
.phero .badge {
  display: inline-block; background: var(--orange);
  padding: 5px 16px; border-radius: 20px;
  font-size: 13px; margin-bottom: 20px;
}
.phero h1 { font-size: 42px; margin: 0 0 16px; line-height: 1.25; font-weight: 900; }
.phero p { opacity: .9; font-size: 16px; margin-bottom: 26px; }
.phero .btn-primary { margin-right: 12px; }
.phero-img { border-radius: var(--radius); overflow: hidden; }
.phero-img img { width: 100%; height: 280px; object-fit: cover; }

.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.spec-table th,
.spec-table td { border: 1px solid var(--border); padding: 12px 16px; text-align: left; font-size: 14px; }
.spec-table th { background: var(--bg-soft); color: var(--navy); font-weight: 500; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0; }
.feature { background: var(--bg-soft); padding: 22px; border-radius: var(--radius); }
.feature h4 { color: var(--navy); margin: 0 0 8px; font-size: 16px; }
.feature p { font-size: 14px; color: var(--text-dim); margin: 0; }

.cta-box {
  background: var(--navy); color: #fff;
  padding: 40px; text-align: center;
  border-radius: var(--radius); margin: 44px 0 0;
}
.cta-box h3 { font-size: 22px; margin: 0 0 10px; }
.cta-box p { opacity: .85; }
.cta-box .btn-primary { margin-top: 8px; }

/* ---------------- 联系我们页 ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 22px; color: var(--navy); margin: 0 0 20px; }
.info-row { display: flex; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: 0; }
.info-label { width: 84px; flex: none; color: #888; font-size: 14px; }
.info-value { flex: 1; color: var(--text); font-size: 15px; font-weight: 500; }
.info-value a { color: var(--navy); }
.info-value a:hover { color: var(--orange); }

.form-box { background: var(--bg-soft); padding: 30px; border-radius: var(--radius); }
.form-box h3 { font-size: 20px; color: var(--navy); margin: 0 0 6px; }
.form-box .form-hint { font-size: 13px; color: #888; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #DDD;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(46, 125, 209, .12); }
.form-group textarea { height: 100px; resize: vertical; }
.form-box button[type="submit"] {
  background: var(--orange); color: #fff;
  border: none; padding: 13px 32px;
  border-radius: 4px; font-size: 15px;
  font-family: inherit; cursor: pointer;
  transition: background .2s;
}
.form-box button[type="submit"]:hover { background: #d98600; }
.form-msg { margin-top: 14px; font-size: 14px; }
.form-msg.ok { color: #1a7f37; }
.form-msg.err { color: #c62828; }

.hp { position: absolute; left: -9999px; }

.fallback {
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  font-size: 14px;
  color: #555;
  line-height: 1.9;
}
.fallback strong { color: var(--navy); }
.fallback .tel {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: .5px;
}

.qr-box { text-align: center; }
.qr-box img { width: 170px; height: 170px; margin: 14px auto; border-radius: 6px; }
.qr-tip { font-size: 13px; color: #888; }

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 900px) {
  .nav { padding: 0 20px; height: 60px; }
  .nav-logo { font-size: 16px; }
  .nav-logo img { height: 28px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    padding: 6px 20px 14px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .nav-menu a:last-child { border-bottom: 0; }
  .nav-menu a::after { display: none; }

  .hero { height: auto; min-height: 420px; }
  .hero-content { padding: 60px 20px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .hero-btns { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-outline { text-align: center; }

  .stats { padding: 32px 20px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-num { font-size: 28px; }
  .stat-item:not(:last-child)::after { display: none; }

  .section { padding: 48px 20px; }
  .section > h2 { font-size: 22px; }
  .section-title h2 { font-size: 24px; }
  .section-title { margin-bottom: 32px; }

  .page-banner { padding: 48px 20px; }
  .page-banner h1 { font-size: 26px; }

  .about, .apps, .two-col, .contact-grid, .phero-inner, .cert-showcase { grid-template-columns: 1fr; gap: 28px; }
  .about-img img { height: 240px; }
  .apps-img img { height: 220px; }
  .two-col img { height: 220px; }
  .phero { padding: 48px 20px; }
  .phero h1 { font-size: 30px; }

  .advantages { grid-template-columns: 1fr; gap: 16px; }
  .adv-card { padding: 24px 20px; }

  .products, .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .prod-card img, .prod-grid .prod-card img { height: 130px; }
  .prod-info, .prod-grid .prod-info { padding: 16px; }
  .prod-info h4, .prod-grid .prod-info h3 { font-size: 15px; }
  .prod-info p, .prod-grid .prod-info p { font-size: 13px; }

  .app-item { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .app-icon { width: 100%; height: 180px; }

  .feature-grid, .cert-grid, .cert-list { grid-template-columns: 1fr; }

  .clients { padding: 40px 20px; }
  .client-logos { gap: 8px; }
  .client-logo { padding: 8px 12px; }
  .client-logo img { height: 26px; }

  .cta { padding: 44px 20px; }
  .cta h3 { font-size: 22px; }

  .footer { padding: 32px 20px; font-size: 12px; }
}

@media (max-width: 420px) {
  .products, .prod-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
