/* ============================================================
 * 淄博泰钲机械厂 · 首页样式
 * 主题：钢蓝 + 工业橙 · 扁平化
 * ============================================================ */
:root {
  --blue-900: #0f2740;
  --blue-800: #16324a;
  --blue-700: #1e4265;
  --blue-600: #2a567f;
  --blue-100: #dce8f2;
  --orange: #f07f24;
  --orange-dark: #d96b12;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #1f2d3d;
  --text-2: #5a6a7d;
  --line: #e3e9f0;
  --shadow: 0 18px 48px rgba(15, 39, 64, 0.10);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 通用区头 ---------- */
.sec { padding: 96px 0; }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 10px;
}
.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--blue-800);
  letter-spacing: 1px;
}
.sec-head .bar {
  width: 56px; height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 18px auto 0;
}
.sec-head p.sub { color: var(--text-2); margin-top: 16px; font-size: 15px; }

/* ---------- 顶部 ---------- */
.topbar {
  background: var(--blue-900);
  color: #9db4c8;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #cfe0ef; }
.topbar a:hover { color: var(--orange); }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 42px; height: 42px;
  background: var(--blue-800);
  border-radius: 10px;
  display: grid; place-items: center;
  flex: none;
}
.brand .logo svg { width: 26px; height: 26px; }
.brand .name { font-size: 18px; font-weight: 700; color: var(--blue-800); letter-spacing: 1px; }
.brand .name small { display: block; font-size: 10px; font-weight: 400; color: var(--text-2); letter-spacing: 2.5px; }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  transition: 0.2s;
}
.nav-links a:hover { color: var(--orange); background: #fdf1e5; }
.nav-phone {
  display: flex; align-items: center; gap: 8px;
  color: var(--blue-800); font-weight: 700; font-size: 16px;
  white-space: nowrap;
}
.nav-phone svg { width: 18px; height: 18px; color: var(--orange); }

.nav-burger {
  display: none;
  border: 0; background: none; cursor: pointer;
  width: 40px; height: 40px;
}
.nav-burger svg { width: 26px; height: 26px; color: var(--blue-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(860px, calc(100vh - 108px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% 18%, rgba(61, 107, 143, 0.28), transparent 62%),
    radial-gradient(760px 420px at 12% 88%, rgba(240, 127, 36, 0.14), transparent 60%),
    linear-gradient(160deg, #0f2740 0%, #16324a 48%, #1e4265 100%);
  color: #fff;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 96px 0 110px;
}
.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 127, 36, 0.16);
  border: 1px solid rgba(240, 127, 36, 0.45);
  color: #ffc896;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.22;
  letter-spacing: 2px;
  max-width: 15em;
}
.hero h1 .hl { color: var(--orange); }
.hero .lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: #c8d8e6;
}
.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: 0.2s;
  cursor: pointer;
  border: 0;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 26px rgba(240, 127, 36, 0.4); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.hero-stats {
  margin-top: 64px;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stats .stat {
  padding: 24px 36px 0 0;
  margin-right: 36px;
  min-width: 130px;
}
.hero-stats .num { font-size: 32px; font-weight: 800; color: #fff; }
.hero-stats .num em { font-style: normal; color: var(--orange); font-size: 20px; margin-left: 2px; }
.hero-stats .lbl { font-size: 13px; color: #9db4c8; letter-spacing: 1px; margin-top: 4px; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  letter-spacing: 3px;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- 关于我们 ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.about-img .badge {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--blue-800);
  color: #fff;
  padding: 14px 22px;
  border-top-right-radius: var(--radius);
  font-size: 14px;
  letter-spacing: 1px;
}
.about-img .badge b { color: var(--orange); font-size: 22px; margin-right: 6px; }

.about h2 { font-size: clamp(24px, 3vw, 34px); color: var(--blue-800); margin-bottom: 20px; }
.about h2 .hl { color: var(--orange); }
.about p { color: var(--text-2); margin-bottom: 14px; font-size: 15.5px; }
.about-points {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.about-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}
.about-points svg {
  width: 20px; height: 20px;
  color: var(--orange);
  flex: none;
  margin-top: 3px;
}

/* ---------- 核心产品 ---------- */
.products { background: var(--bg); }
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.prod-grid .card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 39, 64, 0.06);
  transition: 0.25s;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}
.prod-grid .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--blue-100);
}
.prod-grid .thumb { overflow: hidden; }
.prod-grid .thumb img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.prod-grid .card:hover .thumb img { transform: scale(1.045); }
.prod-grid .body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.prod-grid h3 { font-size: 20px; color: var(--blue-800); margin-bottom: 10px; }
.prod-grid h3 span { font-size: 12px; font-weight: 400; color: var(--orange); letter-spacing: 2px; margin-left: 8px; }
.prod-grid p { font-size: 14.5px; color: var(--text-2); flex: 1; }
.prod-grid .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.prod-grid .tags i {
  font-style: normal;
  font-size: 12px;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 4px 12px;
  border-radius: 999px;
}
.prod-grid .card.wide { grid-column: span 1; }
.prod-grid .card.feature { grid-column: span 2; flex-direction: row; }
.prod-grid .card.feature .thumb { width: 46%; flex: none; }
.prod-grid .card.feature .thumb img { height: 100%; aspect-ratio: auto; }
.prod-grid .card.feature .body { padding: 30px 32px; }

/* ---------- 产品系列明细 ---------- */
.series { background: var(--blue-900); color: #cfdcea; }
.series .sec-head h2 { color: #fff; }
.series .sec-head p.sub { color: #9db4c8; }
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.series-block {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: 0.25s;
}
.series-block:hover {
  background: rgba(240, 127, 36, 0.09);
  border-color: rgba(240, 127, 36, 0.45);
  transform: translateY(-4px);
}
.series-block h3 {
  color: #fff;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.series-block h3::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--orange);
  flex: none;
}
.series-block p { font-size: 14px; color: #9db4c8; line-height: 1.9; }

/* ---------- 应用领域 ---------- */
.fields { background: var(--white); }
.field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.field {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  transition: 0.25s;
  border: 1px solid transparent;
}
.field:hover { background: var(--white); box-shadow: var(--shadow); border-color: var(--blue-100); }
.field .ico {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  display: grid; place-items: center;
}
.field .ico svg { width: 32px; height: 32px; color: #fff; }
.field h3 { font-size: 17px; color: var(--blue-800); margin-bottom: 6px; }
.field p { font-size: 13px; color: var(--text-2); }

/* ---------- 优势 ---------- */
.why { background: var(--bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.why-item { padding: 6px 4px; }
.why-item .num {
  font-size: 46px;
  font-weight: 800;
  color: var(--blue-100);
  line-height: 1;
}
.why-item h3 { font-size: 18px; color: var(--blue-800); margin: 12px 0 10px; }
.why-item p { font-size: 14px; color: var(--text-2); }

/* ---------- 联系我们 ---------- */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}
.c-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: 0.25s;
  border: 1px solid transparent;
}
.c-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.c-card .ico { color: var(--orange); margin-bottom: 14px; }
.c-card .ico svg { width: 34px; height: 34px; }
.c-card h3 { font-size: 15px; color: var(--text-2); font-weight: 500; letter-spacing: 2px; margin-bottom: 8px; }
.c-card .val { font-size: 17px; font-weight: 700; color: var(--blue-800); line-height: 1.5; word-break: break-all; }
.c-card .val a:hover { color: var(--orange); }

.contact-cta {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  border-radius: var(--radius);
  padding: 46px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: #fff;
}
.contact-cta h3 { font-size: clamp(20px, 2.6vw, 28px); }
.contact-cta p { color: #b8cde0; margin-top: 8px; font-size: 15px; }
.contact-cta .btn { flex: none; }

/* ---------- 无障碍跳转 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  background: var(--orange);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--bg);
  overflow: hidden;
  transition: 0.2s;
}
.faq-list details[open] { border-color: var(--blue-100); background: var(--white); box-shadow: 0 8px 26px rgba(15, 39, 64, 0.07); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--blue-800);
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--orange);
  font-weight: 400;
  transition: 0.25s;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list .a {
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.9;
}
.faq-list .a a { color: var(--orange); font-weight: 600; }

/* ---------- 页脚 ---------- */
footer {
  background: var(--blue-900);
  color: #8ba3ba;
  padding: 44px 0 36px;
  font-size: 13.5px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.f-brand b { display: block; color: #fff; font-size: 16px; letter-spacing: 1px; margin-bottom: 8px; }
.f-brand span { display: block; line-height: 2; }
.f-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.f-nav a {
  color: #b9cde0;
  padding: 4px 12px;
  border-radius: 6px;
  transition: 0.2s;
}
.f-nav a:hover { color: var(--orange); background: rgba(255, 255, 255, 0.06); }
.f-contact { text-align: right; }
.f-contact span { display: block; line-height: 2; }
.f-icp { margin-top: 6px; font-size: 12.5px; opacity: 0.85; }
.f-icp a { letter-spacing: 0.5px; }
footer a { color: #b9cde0; }
footer a:hover { color: var(--orange); }
@media (max-width: 680px) {
  .f-contact { text-align: left; }
}

/* ---------- 入场动画（仅在 JS 可用时才隐藏，保证无 JS / SEO 可见） ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: 0.7s ease; }
html.js .reveal.on { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid .card.feature { grid-column: span 2; }
  .series-grid { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .sec { padding: 64px 0; }
  .topbar .hide-m { display: none; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 10px 4%;
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: 0 20px 40px rgba(15, 39, 64, 0.12);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .nav-phone span { display: none; }
  .hero-inner { padding: 70px 0 90px; }
  .hero-stats .stat { padding-right: 20px; margin-right: 20px; }
  .prod-grid { grid-template-columns: 1fr; }
  .prod-grid .card.feature { grid-column: span 1; flex-direction: column; }
  .prod-grid .card.feature .thumb img { aspect-ratio: 3/2; }
  .series-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .contact-cta { padding: 34px 26px; }
  .hero-stats .num { font-size: 26px; }
}
