/* ============================================
   寰宇墙锯 HUANYU WALL SAW — 主样式表
   配色：深海蓝 #0B2545 / 安全橙 #F77F00
   ============================================ */

:root {
  --navy-900: #0B2545;
  --navy-800: #13315C;
  --navy-700: #1D4E89;
  --orange: #F77F00;
  --orange-dark: #d96c00;
  --ink: #1a2433;
  --gray-600: #55606e;
  --gray-400: #8b95a3;
  --line: #e6eaf0;
  --bg: #f5f7fa;
  --white: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(11,37,69,.08);
  --shadow-md: 0 10px 30px rgba(11,37,69,.10);
  --shadow-lg: 0 24px 60px rgba(11,37,69,.16);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(247,127,0,.32); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(247,127,0,.4); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--navy-800); padding: 11px 22px; font-size: 14px; }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; color: var(--navy-900); letter-spacing: .5px; }
.brand-text em { font-size: 10px; font-style: normal; color: var(--gray-400); letter-spacing: 1.5px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text em { color: rgba(255,255,255,.55); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 15px; font-weight: 500; color: var(--gray-600);
  position: relative; padding: 6px 0;
  transition: color .18s ease;
}
.main-nav a:hover { color: var(--navy-900); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--orange); transition: width .22s ease; border-radius: 2px;
}
.main-nav a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; background: none; border: none; cursor: pointer; align-items: center; justify-content: center; border-radius: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .22s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 700px at 80% -10%, #1D4E89 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center; padding: 88px 24px 72px;
}
.hero-badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(247,127,0,.16); border: 1px solid rgba(247,127,0,.4);
  color: #ffd9ad; font-size: 13.5px; font-weight: 500; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.16; font-weight: 800; letter-spacing: .5px; }
.hero h1 span { color: var(--orange); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.82); max-width: 540px; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.18); }
.stat strong { display: block; font-size: 26px; font-weight: 800; color: #fff; }
.stat span { font-size: 13px; color: rgba(255,255,255,.7); }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-banner { width: 100%; max-width: 460px; height: auto; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }

/* ---------- 通用 section ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: var(--orange); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--navy-900); line-height: 1.25; }
.section-head p { font-size: 17px; color: var(--gray-600); margin-top: 14px; }
.section-foot { text-align: center; margin-top: 48px; }

/* ---------- 产品 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-media {
  position: relative; background: #fff;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.product-img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; top: 16px; left: 16px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .5px;
}
.tag-hot { background: #e11d48; }
.tag-pro { background: var(--navy-700); }
.tag-hd { background: var(--orange); }
.product-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 24px; font-weight: 800; color: var(--navy-900); }
.product-series { font-size: 14px; color: var(--gray-400); margin: 4px 0 16px; }
.product-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.product-specs li { font-size: 13px; font-weight: 500; color: var(--navy-800); background: var(--bg); padding: 6px 12px; border-radius: 8px; }
.product-desc { font-size: 15px; color: var(--gray-600); margin-bottom: 22px; flex: 1; }
.product-body .btn { align-self: flex-start; }

/* ---------- 优势 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(247,127,0,.14), rgba(247,127,0,.05));
  display: flex; align-items: center; justify-content: center; color: var(--orange);
}
.feature-icon svg { width: 34px; height: 34px; }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--gray-600); }

/* ---------- 应用 ---------- */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.app-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(247,127,0,.4); }
.app-icon { width: 60px; height: 60px; border-radius: 14px; background: var(--navy-800); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.app-icon svg { width: 30px; height: 30px; }
.app-card h3 { font-size: 19px; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.app-card p { font-size: 15px; color: var(--gray-600); }

/* ---------- 关于 ---------- */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: var(--navy-900); line-height: 1.25; margin-bottom: 18px; }
.about-copy > p { font-size: 16px; color: var(--gray-600); margin-bottom: 24px; }
.about-list { list-style: none; margin-bottom: 32px; display: grid; gap: 12px; }
.about-list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.about-list svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.about-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 20px; text-align: center;
}
.about-stat strong { display: block; font-size: 38px; font-weight: 800; color: var(--orange); line-height: 1; }
.about-stat span { font-size: 14px; color: var(--gray-600); margin-top: 8px; display: block; }

/* ---------- 评价 ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stars { color: #f5b301; letter-spacing: 2px; font-size: 16px; }
.quote-card blockquote { font-size: 15px; color: var(--gray-600); flex: 1; }
.quote-card figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 16px; }
.quote-card figcaption strong { color: var(--navy-900); font-size: 15px; }
.quote-card figcaption span { font-size: 13px; color: var(--gray-400); }

/* ---------- CTA ---------- */
.section-cta {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-900));
  color: #fff; padding: 72px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; margin-bottom: 10px; }
.cta-inner p { font-size: 16px; color: rgba(255,255,255,.8); max-width: 620px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s ease; }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: rgba(247,127,0,.3); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-size: 16px; font-weight: 600; color: var(--navy-900);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--orange);
  transition: transform .2s ease; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; font-size: 15px; color: var(--gray-600); }

/* ---------- 联系 ---------- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 38px 32px; }
.contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.contact-info ul { list-style: none; display: grid; gap: 24px; margin-bottom: 28px; }
.contact-info li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info li svg { width: 26px; height: 26px; color: var(--orange); flex: none; margin-top: 2px; }
.contact-info li div { display: flex; flex-direction: column; }
.contact-info li span { color: rgba(255,255,255,.65); font-size: 13px; }
.contact-info li a, .contact-info li div > span:last-child { color: #fff; font-size: 16px; font-weight: 500; }
.contact-info li a:hover { color: var(--orange); }
.contact-company { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.75); font-size: 14px; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--navy-900); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfe;
  color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,127,0,.14); background: #fff;
}
.form-group textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-note { margin-top: 14px; font-size: 14px; text-align: center; min-height: 20px; }
.form-note.success { color: #15803d; }
.form-note.error { color: #dc2626; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { font-size: 14px; margin-top: 16px; max-width: 300px; line-height: 1.8; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.footer-col a, .footer-col span { font-size: 14px; color: rgba(255,255,255,.65); transition: color .18s ease; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: rgba(255,255,255,.55); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .app-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-banner { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 12px 24px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-sm { display: none; }
  .product-grid, .feature-grid, .app-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 56px 24px 48px; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
}
