/* ============================================================
   恒泰五金官网 · 设计系统
   深蓝 × 工业橙 · 系统字体栈 · 移动优先
   ============================================================ */

:root {
  --navy-950: #0a1524;
  --navy-900: #0f1f36;
  --navy-800: #16304f;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --paper: #f6f8fa;
  --white: #ffffff;
  --ink: #16233a;
  --muted: #5d6b82;
  --line: #e5eaf1;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(15, 31, 54, .06);
  --shadow-md: 0 12px 32px rgba(15, 31, 54, .12);
  --shadow-lg: 0 24px 56px rgba(10, 21, 36, .28);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--orange); color: #fff; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ============ 顶部导航 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(249, 115, 22, .35);
}

.brand-text { font-weight: 800; font-size: 18px; color: var(--navy-900); line-height: 1.2; }
.brand-sub { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .12em; }

.menu { display: flex; align-items: center; gap: 28px; }
.menu a { font-size: 15px; color: var(--ink); position: relative; padding: 6px 0; }
.menu a:not(.menu-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--orange); transition: width .25s;
}
.menu a:not(.menu-cta):hover::after { width: 100%; }

.menu-cta {
  background: var(--orange); color: #fff !important;
  padding: 10px 22px !important; border-radius: 999px;
  font-weight: 600; box-shadow: 0 6px 18px rgba(249, 115, 22, .3);
  transition: transform .2s, background .2s;
}
.menu-cta:hover { background: var(--orange-dark); transform: translateY(-2px); }

.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 首屏 ============ */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: linear-gradient(105deg, rgba(10, 21, 36, .92) 0%, rgba(10, 21, 36, .62) 52%, rgba(10, 21, 36, .30) 100%),
              url("../images/hero.jpg") center / cover no-repeat;
  color: #fff; padding: 140px 0 96px;
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }

.hero-eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .08em;
  color: var(--orange); background: rgba(249, 115, 22, .12);
  border: 1px solid rgba(249, 115, 22, .35);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 22px;
}

.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.22; font-weight: 800; letter-spacing: .01em; }
.hero h1 .accent { color: var(--orange); }

.hero-desc { margin-top: 20px; font-size: 17px; color: rgba(255, 255, 255, .82); max-width: 520px; }

.hero-cta { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px; font-size: 16px; font-weight: 600;
  border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 24px rgba(249, 115, 22, .35); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-block { width: 100%; }

.hero-stats {
  list-style: none; margin-top: 48px; display: flex; gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 26px;
}
.hero-stats li { flex: 1; padding: 0 20px; border-left: 1px solid rgba(255, 255, 255, .14); }
.hero-stats li:first-child { border-left: 0; padding-left: 0; }
.hero-stats b { display: block; font-size: 30px; font-weight: 800; color: var(--orange); }
.hero-stats span { font-size: 14px; color: rgba(255, 255, 255, .7); }

/* 首屏右侧装饰：浮动标签牌 */
.hero-side { position: relative; }
.hero-tag {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 16px;
}
.hero-tag h3 { font-size: 17px; margin-bottom: 6px; }
.hero-tag p { font-size: 14px; color: rgba(255, 255, 255, .68); }
.hero-tag .big { font-size: 26px; font-weight: 800; color: var(--orange); display: block; margin-bottom: 4px; }

/* ============ 通用节 ============ */
.section { padding: 96px 0; }

.section-dark { background: var(--navy-900); color: #fff; }
.section-dark .section-desc, .section-dark p { color: rgba(255, 255, 255, .75); }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  color: var(--orange); text-transform: uppercase; margin-bottom: 12px;
}

.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.3; }
.section-desc { margin-top: 14px; color: var(--muted); font-size: 16px; }

.section-head { margin-bottom: 48px; max-width: 640px; }

/* ============ 产品卡片 ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.card-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-photo img { transform: scale(1.06); }

.card-body { padding: 26px 26px 30px; }
.card-body h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.card-body p { font-size: 15px; color: var(--muted); }
.card-body .spec {
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--orange-dark); font-weight: 600;
}

/* ============ 关于我们 ============ */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 60px; align-items: center; }
.about-grid p { margin-top: 18px; font-size: 16px; }

.about-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.about-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 21, 36, .55), transparent 45%);
}

.certs { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.cert {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px; padding: 16px 22px;
}
.cert-title { font-weight: 800; font-size: 17px; color: var(--orange); margin: 0 !important; }
.cert-sub { font-size: 13px; color: rgba(255, 255, 255, .65); margin: 4px 0 0 !important; }

/* ============ 工厂实力 ============ */
.strength-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }

.strength-photo {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.strength-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.strength-photo .badge {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-sm);
}

.cards-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(249, 115, 22, .1); border: 1px solid rgba(249, 115, 22, .25);
  display: flex; align-items: center; justify-content: center; color: var(--orange-dark);
}
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ============ 合作流程 ============ */
.process-bg {
  background: linear-gradient(rgba(10, 21, 36, .94), rgba(10, 21, 36, .94)),
              url("../images/factory.jpg") center / cover fixed no-repeat;
}

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.steps li {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 28px 24px; position: relative;
  transition: transform .3s, background .3s;
}
.steps li:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .09); }

.steps b {
  font-size: 44px; font-weight: 800; color: transparent;
  -webkit-text-stroke: 1.5px var(--orange); display: block; margin-bottom: 14px; line-height: 1;
}
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { font-size: 14px; color: rgba(255, 255, 255, .65); }

/* ============ 联系我们 ============ */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }

.contact-info { list-style: none; margin-top: 30px; display: grid; gap: 18px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info svg { flex: none; margin-top: 4px; color: var(--orange); }
.contact-info b { display: block; font-size: 15px; font-weight: 700; }
.contact-info span { font-size: 15px; color: var(--muted); }

.form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 34px 32px;
}
.form h3 { font-size: 22px; font-weight: 800; margin-bottom: 22px; }

.form input, .form textarea {
  width: 100%; font-family: inherit; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 13px 16px; margin-bottom: 14px; background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .15); background: #fff;
}
.form textarea { resize: vertical; min-height: 110px; }

.form-tip { margin-top: 12px; font-size: 14px; text-align: center; color: var(--muted); min-height: 20px; }
.form-tip.ok { color: #16a34a; font-weight: 600; }
.form-tip.err { color: #dc2626; }

/* ============ 页脚 ============ */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .55); padding: 36px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer a { color: rgba(255, 255, 255, .75); }
.footer a:hover { color: var(--orange); }

/* ============ 滚动显现动画 ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .hero { padding: 120px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .about-grid, .strength-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }

  .menu {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
    padding: 0 24px;
  }
  .menu.open { max-height: 480px; padding: 12px 24px 20px; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu a.menu-cta { border-bottom: 0; margin-top: 12px; text-align: center; }
  .hamburger { display: block; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { min-height: 88vh; }
  .hero-stats { gap: 0; }
  .hero-stats li { padding: 0 12px; }
  .hero-stats b { font-size: 24px; }
  .cards { grid-template-columns: 1fr; }
  .cards-2col { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
}
