/* ==========================================================
   XX Semiconductor - Rectifier Bridge Manufacturer
   Theme: Tech Blue #1a56db / Dark Gray #1f2937
   ========================================================== */

:root {
  --blue: #1a56db;
  --blue-dark: #1e429f;
  --blue-deep: #16307a;
  --blue-light: #e8effc;
  --blue-lighter: #f2f6fe;
  --dark: #1f2937;
  --dark-2: #374151;
  --dark-3: #4b5563;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e5e7eb;
  --success: #059669;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
  --container: 1160px;
  --header-h: 72px;
  font-size: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

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

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--dark); flex-shrink: 0; }
.brand svg { flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; object-fit: contain; }
.footer-brand .brand-logo { height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--dark); }
.brand-sub { font-size: .68rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--dark-2); font-size: .95rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm); transition: all .2s;
}
.site-nav a:hover { color: var(--blue); background: var(--blue-lighter); }
.site-nav a.active { color: var(--blue); background: var(--blue-light); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.lang-toggle {
  border: 1px solid var(--border); background: #fff; color: var(--dark-2);
  padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.lang-toggle:hover { border-color: var(--blue); color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .2s;
  font-family: inherit; line-height: 1.4; text-align: center;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 18px rgba(26, 86, 219, .35); transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--dark-2); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; align-items: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .25s; }
.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 {
  background: linear-gradient(135deg, #111827 0%, var(--dark) 45%, #172554 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 85% 20%, rgba(26, 86, 219, .28), transparent 65%),
    radial-gradient(ellipse 500px 500px at 10% 90%, rgba(26, 86, 219, .18), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: 48px; padding: 88px 0 96px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26, 86, 219, .18); border: 1px solid rgba(96, 148, 255, .4);
  color: #b9c9f2; font-size: .82rem; font-weight: 600; letter-spacing: .05em;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.3; font-weight: 700; letter-spacing: .01em; margin-bottom: 20px; }
.hero h1 .hl { color: #7ea4f8; }
.hero p { color: #c3cbdb; font-size: 1.05rem; max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual svg { width: 100%; max-width: 380px; filter: drop-shadow(0 20px 40px rgba(26, 86, 219, .45)); }
.hero-visual img { width: 100%; max-width: 360px; filter: drop-shadow(0 20px 40px rgba(26, 86, 219, .45)); }

.hero-stats {
  position: relative; border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(17, 24, 39, .5);
}
.hero-stats .container {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 28px;
}
.stat b { display: block; font-size: 1.9rem; color: #fff; font-weight: 700; line-height: 1.2; }
.stat b em { font-style: normal; color: #7ea4f8; font-size: 1.1rem; margin-left: 2px; }
.stat span { color: #9aa5b8; font-size: .88rem; }

/* ============ Sections ============ */
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--blue); font-size: .8rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--dark); line-height: 1.35; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1rem; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: all .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: #cfd9ec; }

.card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--dark); }
.card p { color: var(--muted); font-size: .92rem; }

/* Product cards */
.product-card { display: flex; flex-direction: column; color: var(--dark); position: relative; }
.product-card:hover { color: var(--dark); }
.product-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.product-model { font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; }
.spec-chips { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.spec-chips li {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: .85rem;
}
.spec-chips li span { display: block; color: var(--muted); font-size: .74rem; margin-bottom: 1px; }
.spec-chips li b { color: var(--dark); font-weight: 700; }
.spec-chips li.wide { grid-column: 1 / -1; }
.product-desc { color: var(--muted); font-size: .9rem; flex: 1; margin-bottom: 16px; }
.view-detail { color: var(--blue); font-weight: 600; font-size: .9rem; }
.product-card:hover .view-detail { text-decoration: underline; }

.badge {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 999px;
}
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-dark { background: #e5e7eb; color: var(--dark-2); }

/* Applications */
.app-card { text-align: center; padding: 26px 18px; }
.app-card .app-icon {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), #dbe7fb);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.app-card h3 { font-size: 1rem; margin-bottom: 6px; }
.app-card p { font-size: .84rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 60%, var(--blue-deep) 100%);
  color: #fff; border-radius: 16px; padding: 52px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: 8px; }
.cta-band p { color: #d4e0f9; font-size: .98rem; }

/* ============ Page banner (subpages) ============ */
.page-banner {
  background: linear-gradient(135deg, #111827 0%, var(--dark) 50%, #172554 100%);
  color: #fff; padding: 60px 0; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 500px 300px at 90% 10%, rgba(26, 86, 219, .3), transparent 60%);
}
.page-banner .container { position: relative; }
.breadcrumb { font-size: .85rem; color: #9aa5b8; margin-bottom: 12px; }
.breadcrumb a { color: #b9c9f2; }
.breadcrumb a:hover { color: #fff; }
.page-banner h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
.page-banner p { color: #c3cbdb; margin-top: 10px; max-width: 640px; }

/* ============ Products page ============ */
.filter-bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-group-wide { width: 100%; }
.filter-group-search { margin-left: auto; }
.filter-label { font-size: .85rem; font-weight: 600; color: var(--dark-2); }
.search-box {
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  padding: 8px 14px; font-size: .88rem; color: var(--dark); font-family: inherit;
  min-width: 220px;
}
.search-box:focus { outline: 2px solid var(--blue-light); border-color: var(--blue); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); background: #fff; color: var(--dark-2);
  font-size: .84rem; font-weight: 600; padding: 6px 16px; border-radius: 999px;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.select-box {
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  padding: 8px 12px; font-size: .88rem; color: var(--dark-2); font-family: inherit;
  cursor: pointer; min-width: 130px;
}
.select-box:focus { outline: 2px solid var(--blue-light); border-color: var(--blue); }

.result-count { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.result-count b { color: var(--blue); font-size: 1rem; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.empty-state {
  text-align: center; color: var(--muted); padding: 80px 20px;
  background: var(--bg-soft); border: 1px dashed var(--border); border-radius: var(--radius);
}

/* ============ Product detail ============ */
.detail-layout { padding: 56px 0 80px; }
.detail-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 32px;
}
.detail-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.detail-head .badges { display: flex; gap: 8px; margin-bottom: 14px; }
.detail-head p { color: var(--muted); max-width: 620px; }

.quick-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px; }
.quick-spec {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.quick-spec span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.quick-spec b { font-size: 1.35rem; color: var(--blue); font-weight: 700; }
.quick-spec b i { font-style: normal; font-size: .85rem; color: var(--dark-2); margin-left: 2px; }

.detail-section { margin-bottom: 48px; }
.detail-section h2 {
  font-size: 1.3rem; margin-bottom: 20px; padding-left: 14px; position: relative; color: var(--dark);
}
.detail-section h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  background: var(--blue); border-radius: 2px;
}

/* Spec table */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.spec-table { width: 100%; border-collapse: collapse; min-width: 620px; background: #fff; }
.spec-table th, .spec-table td { padding: 13px 20px; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--border); }
.spec-table th { background: var(--blue-lighter); color: var(--dark); font-weight: 600; white-space: nowrap; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--dark-2); font-weight: 500; white-space: nowrap; }
.spec-table tbody tr:hover td { background: #fafbfd; }

.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--dark-2); font-size: .95rem; }
.feature-list li::before {
  content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue); font-size: .8rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 3px;
}

.tag-cloud { display: flex; gap: 10px; flex-wrap: wrap; }
.tag-cloud .tag {
  background: var(--blue-lighter); border: 1px solid #d3e0f9; color: var(--blue-dark);
  border-radius: 999px; padding: 7px 18px; font-size: .88rem; font-weight: 500;
}

.detail-cta {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 16px; padding: 40px 44px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.detail-cta h3 { font-size: 1.3rem; margin-bottom: 8px; }
.detail-cta p { color: #d4e0f9; font-size: .95rem; margin-bottom: 0; }
.detail-cta .btn-outline-light { margin-top: 0; }

/* ============ Support ============ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; position: relative; box-shadow: var(--shadow); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step-card p { font-size: .88rem; color: var(--muted); }

.faq-list { max-width: 820px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 24px;
  font-weight: 600; color: var(--dark); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.3rem; color: var(--blue); font-weight: 400; line-height: 1; transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--muted); font-size: .93rem; }
.faq-item[open] summary { color: var(--blue); background: var(--blue-lighter); }

.download-list { list-style: none; }
.download-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; background: #fff; flex-wrap: wrap;
}
.download-list .dl-name { font-weight: 600; color: var(--dark); }
.download-list .dl-name span { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }

/* 下载工具栏（搜索 + 类别筛选） */
.dl-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.dl-toolbar .search-box { min-width: 260px; }
.dl-toolbar .result-count { margin: 0 0 0 auto; }

/* ============ About ============ */
.about-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-split .about-text p { color: var(--muted); margin-bottom: 16px; font-size: .96rem; }
.about-visual {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--muted); background:
  repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 12px, #e8edf4 12px, #e8edf4 24px);
  text-align: center; padding: 24px;
}
.img-placeholder svg { opacity: .5; }
.img-placeholder small { font-size: .75rem; color: #9aa5b8; }

.factory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (min-width: 1024px) { .factory-grid { grid-template-columns: repeat(4, 1fr); } }
.factory-item {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: #fff; box-shadow: var(--shadow); transition: all .25s;
}
.factory-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.factory-item .factory-img { aspect-ratio: 4 / 3; background: var(--bg-soft); }
.factory-item .factory-img img { width: 100%; height: 100%; object-fit: cover; }
.factory-item figcaption { padding: 14px 18px; font-size: .88rem; color: var(--dark-2); font-weight: 500; }

.cert-card { text-align: center; padding: 30px 22px; color: var(--dark); }
a.cert-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cert-card .cert-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain; margin: 0 auto 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff;
}
.cert-card .cert-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.cert-card h3 { font-size: 1rem; margin-bottom: 6px; }
.cert-card p { font-size: .84rem; }

/* ============ Contact ============ */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-info-card { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 36px 32px; }
.contact-info-card h2 { font-size: 1.3rem; margin-bottom: 26px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-line .ci-icon {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .09);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #7ea4f8;
}
.contact-line b { display: block; font-size: .86rem; color: #9aa5b8; font-weight: 500; margin-bottom: 2px; }
.contact-line span { font-size: .95rem; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .9rem; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--dark-2); margin-bottom: 7px; }
.form-group label .req { color: #dc2626; margin-left: 2px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: .94rem; font-family: inherit; color: var(--dark);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light);
}
.form-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none; background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--success);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: .92rem; margin-bottom: 18px;
}
.form-success.show { display: block; }
.form-error { display: none; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: var(--radius-sm); padding: 14px 18px; font-size: .92rem; margin-bottom: 18px; }
.form-error.show { display: block; }
/* 蜜罐字段：正常用户看不见，机器人会填 —— 服务端据此判定并静默丢弃 */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ============ Footer ============ */
.site-footer { background: var(--dark); color: #9aa5b8; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px;
}
.footer-brand p { font-size: .88rem; margin-top: 14px; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; font-weight: 600; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #9aa5b8; font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .88rem; align-items: flex-start; }
.footer-contact { list-style: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .grid-3, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 64px 0 72px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { display: none; }
  .about-split { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .quick-specs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 4px;
    box-shadow: var(--shadow-lg); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .header-actions .btn { display: none; }
  .site-nav .btn-nav-mobile { display: inline-flex; margin-top: 8px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .grid-3, .grid-4, .products-grid, .factory-grid, .form-row, .feature-list { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats .container { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .cta-band, .detail-cta { padding: 34px 26px; flex-direction: column; align-items: flex-start; }
  .form-card { padding: 26px 20px; }
  .contact-info-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 32px; }
  .filter-bar { gap: 12px; }
}

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