/* =========================================================
   湘中弹簧官网 - style.css
   原创工业风设计：深钢蓝 + 活力橙
   ========================================================= */

:root {
  --blue-900: #0e2236;
  --blue-800: #14304d;
  --blue-700: #1b4065;
  --blue-600: #24527f;
  --blue-100: #e8f0f8;
  --blue-50: #f4f8fc;
  --orange-500: #f5821f;
  --orange-600: #e06f0d;
  --gray-900: #1c2530;
  --gray-600: #5b6b7b;
  --gray-400: #9aa8b5;
  --gray-200: #e3e9ef;
  --gray-100: #f0f3f6;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(14, 34, 54, 0.08);
  --shadow-lg: 0 12px 40px rgba(14, 34, 54, 0.14);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #ffd9a8; }
.topbar a:hover { color: #fff; }
.topbar-phone { font-weight: 600; letter-spacing: 0.5px; }

/* ---------- 导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200), 0 4px 16px rgba(14, 34, 54, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: 0 4px 12px rgba(245, 130, 31, 0.35);
}
.logo-text strong { display: block; font-size: 20px; color: var(--blue-900); letter-spacing: 2px; }
.logo-text span { font-size: 12px; color: var(--gray-600); letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--orange-500); background: var(--blue-50); }
.nav-links a.active { color: var(--orange-500); font-weight: 700; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-500);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 130, 31, 0.35);
}
.nav-cta:hover { background: var(--orange-600); transform: translateY(-1px); }

/* 语言切换 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-700);
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--orange-500); color: var(--orange-500); }
@media (max-width: 720px) {
  .lang-switch { padding: 5px 10px; font-size: 12px; }
}

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: none; background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(36, 82, 127, 0.55), transparent 60%),
    linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 45%, var(--blue-700) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -160px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 130, 31, 0.28), transparent 65%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 96px;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: rgba(245, 130, 31, 0.18);
  border: 1px solid rgba(245, 130, 31, 0.5);
  color: #ffd9a8;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 2px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--orange-500); }
.hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  margin-bottom: 14px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 34px;
}
.hero-meta b { color: #fff; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-orange { background: var(--orange-500); color: #fff; box-shadow: 0 6px 20px rgba(245, 130, 31, 0.4); }
.btn-orange:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.hero-card img { border-radius: 12px; width: 100%; height: auto; }
.hero-card .sign-caption {
  padding: 12px 6px 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

/* ---------- 信任条 ---------- */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.stat { text-align: center; }
.stat .num {
  font-size: 34px;
  font-weight: 800;
  color: var(--blue-800);
}
.stat .num em { font-style: normal; color: var(--orange-500); }
.stat .label { font-size: 14px; color: var(--gray-600); margin-top: 2px; }

/* ---------- 通用 section ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--blue-50); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .kicker {
  display: inline-block;
  color: var(--orange-500);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 34px; color: var(--blue-900); font-weight: 800; letter-spacing: 1px; }
.section-head p { color: var(--gray-600); margin-top: 12px; font-size: 15px; }

/* ---------- 产品分类卡片 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-500);
}
.cat-icon {
  width: 74px; height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blue-50);
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.cat-card:hover .cat-icon { background: var(--orange-500); border-color: var(--orange-500); }
.cat-card h3 { font-size: 18px; color: var(--blue-900); margin-bottom: 8px; }
.cat-card p { font-size: 13.5px; color: var(--gray-600); margin-bottom: 14px; }
.cat-card .more { font-size: 13px; color: var(--orange-500); font-weight: 600; }

/* ---------- 产品展示 ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.prod-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-600); }
.prod-fig {
  background: linear-gradient(150deg, #f7fafd, #eaf1f8);
  padding: 30px 20px;
  display: flex; align-items: center; justify-content: center;
  height: 210px;
}
.prod-fig svg { width: 150px; height: 150px; }
.prod-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 17px; color: var(--blue-900); margin-bottom: 8px; }
.prod-body p { font-size: 13.5px; color: var(--gray-600); flex: 1; }
.prod-body .prod-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.prod-tags span {
  font-size: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  padding: 3px 10px;
  border-radius: 999px;
}
.prod-body .prod-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-500);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- 优势 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.adv-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--orange-500);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.adv-card .adv-num { font-size: 30px; font-weight: 800; color: var(--blue-100); line-height: 1; }
.adv-card h3 { font-size: 17px; color: var(--blue-900); margin: 10px 0 8px; }
.adv-card p { font-size: 13.5px; color: var(--gray-600); }

/* ---------- 加工能力 ---------- */
.cap-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cap-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--gray-200);
}
.cap-list li:last-child { border-bottom: none; }
.cap-dot {
  width: 10px; height: 10px;
  background: var(--orange-500);
  border-radius: 50%;
  margin-top: 10px;
  flex-shrink: 0;
}
.cap-list b { display: block; color: var(--blue-900); font-size: 15.5px; }
.cap-list span { font-size: 14px; color: var(--gray-600); }

.cap-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cap-table th, .cap-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--gray-200);
}
.cap-table th {
  background: var(--blue-800);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
}
.cap-table tr:last-child td { border-bottom: none; }
.cap-table td:first-child { color: var(--gray-600); white-space: nowrap; }
.cap-table td b { color: var(--blue-900); }

/* ---------- 流程 ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: flow;
}
.flow-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}
.flow-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.flow-card::before {
  counter-increment: flow;
  content: "0" counter(flow);
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-100);
  margin-bottom: 10px;
}
.flow-card h3 { font-size: 16.5px; color: var(--blue-900); margin-bottom: 8px; }
.flow-card p { font-size: 13.5px; color: var(--gray-600); }

/* ---------- CTA 联系区 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange-500), var(--orange-600));
  border-radius: 18px;
  padding: 48px 44px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: 0 12px 36px rgba(245, 130, 31, 0.35);
}
.cta-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.cta-band p { opacity: 0.92; font-size: 15px; }
.cta-phones { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-phone {
  background: #fff;
  color: var(--orange-600) !important;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.cta-phone small { display: block; font-size: 11.5px; font-weight: 600; color: var(--gray-600); }

/* ---------- 页脚 ---------- */
.footer { background: var(--blue-900); color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 64px 0 44px;
}
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; letter-spacing: 1px; }
.footer-about p { font-size: 13.5px; line-height: 1.9; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.72); transition: all 0.2s; }
.footer-links a:hover { color: var(--orange-500); padding-left: 4px; }
.footer-contact li { margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact a { color: #ffd9a8; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- 内页 Hero ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding: 64px 0;
}
.page-hero h1 { font-size: 36px; font-weight: 800; letter-spacing: 2px; }
.page-hero .crumbs { font-size: 13.5px; color: rgba(255, 255, 255, 0.65); margin-top: 10px; }
.page-hero .crumbs a { color: #ffd9a8; }

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-card h3 { font-size: 20px; color: var(--blue-900); margin-bottom: 20px; }
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--gray-200);
}
.contact-row:last-child { border-bottom: none; }
.contact-ico {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-700);
}
.contact-row b { display: block; font-size: 15px; color: var(--blue-900); }
.contact-row span, .contact-row a { font-size: 14.5px; color: var(--gray-600); }
.contact-row a.tel { color: var(--orange-500); font-size: 19px; font-weight: 800; letter-spacing: 1px; }

/* ---------- 产品详情页 ---------- */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.pd-fig {
  background: linear-gradient(150deg, #f7fafd, #eaf1f8);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.pd-fig-img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}
.pd-badge {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pd-title {
  font-size: 30px;
  color: var(--blue-900);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.35;
}
.pd-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 2;
  margin-bottom: 18px;
  word-break: break-word;
}
.pd-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.pd-tags span {
  font-size: 12.5px;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  padding: 5px 13px;
  border-radius: 999px;
}
.pd-spec {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--blue-700);
  margin-bottom: 26px;
  line-height: 1.9;
}
.pd-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.pd-phone-btn {
  border-color: var(--blue-300) !important;
  color: var(--blue-700) !important;
}
.pd-wechat {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--gray-600);
}
.pd-wechat a {
  color: var(--orange-500);
  font-weight: 600;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .cat-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-wrap { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .hero-card { max-width: 480px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    box-shadow: 0 12px 24px rgba(14, 34, 54, 0.12);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; }
  .nav-cta { justify-content: center; }
  .cat-grid, .adv-grid, .prod-grid, .flow-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 27px; }
  .hero h1 { font-size: 30px; }
  .cta-band { padding: 34px 26px; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-slogan { display: none; }

  /* 产品详情页手机适配 */
  .pd-grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-fig { padding: 24px 16px; min-height: 0; }
  .pd-fig-img { max-height: 240px; }
  .pd-title { font-size: 24px; }
  .pd-desc { font-size: 14.5px; }
  .pd-btns .btn { width: 100%; justify-content: center; }
  .pd-spec { padding: 15px 16px; font-size: 13.5px; }
}
