/* =============================================================
   Waweis — Homepage-only sections (linked by index.html)
   Tokens per docs/建站开发方案.md §5
   ============================================================= */

/* ---------- Trust bar (cert badges) ---------- */
.trust-bar { background: linear-gradient(180deg, transparent, rgba(255,255,255,.04)); border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; }
.trust-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; padding-top: 16px; padding-bottom: 16px; }
.trust-bar .trust-item { font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px; color: #B9C7DC; font-weight: 500; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--color-muted); }
.trust-item svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* ---------- Stats strip ---------- */
.stats { background: var(--color-accent-soft); position: relative; }
.stats::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 56px; height: 3px; background: var(--color-amber); border-radius: 0 0 3px 3px; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 50px; padding-bottom: 50px; text-align: center; position: relative; z-index: 1; }
.stat { position: relative; padding: 18px 8px; border-radius: 12px; transition: background .22s ease; }
.stat:hover { background: rgba(45,127,249,.08); }
.stat-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--color-surface); border: 1px solid var(--color-line); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; box-shadow: 0 2px 6px rgba(11,31,58,.05); }
.stat-ico svg { width: 22px; height: 22px; }
.stat-num { font-family: var(--font-heading); font-size: 42px; font-weight: 700; color: var(--color-primary); line-height: 1.1; letter-spacing: -.5px; }
.stat-num em { font-style: normal; color: var(--color-amber); }
.stat-label { margin-top: 8px; font-size: 13px; letter-spacing: .4px; color: var(--color-primary-deep); font-weight: 600; }

/* ---------- Section heading ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head .eyebrow, .section-eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-accent); margin-bottom: 12px; font-weight: 700; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 12px; }
.section-head p { color: var(--color-muted); font-size: 16px; }
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- Featured products ---------- */
.section-products { padding: 72px 0; background: var(--color-bg); }
.section-products .section-head { margin-bottom: 36px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--color-accent-soft); }
.product-card .thumb { aspect-ratio: 4/3; background: #F1F4F9; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .badge { position: absolute; top: 12px; left: 12px; background: var(--color-amber); color: #0B1F3A; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; padding: 4px 8px; border-radius: 999px; text-transform: uppercase; }
.product-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--color-accent); font-weight: 700; }
.product-card h3 { font-size: 16px; line-height: 1.35; }
.product-card h3 a { color: var(--color-text); }
.product-card h3 a:hover { color: var(--color-accent); text-decoration: none; }
.product-card .spec { font-size: 13px; color: var(--color-muted); }
.product-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.product-card .meta span { font-family: var(--font-mono); font-size: 11px; background: var(--color-bg); color: var(--color-muted); padding: 3px 8px; border-radius: 999px; }
.product-card .card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--color-accent); margin-top: auto; }
.product-card .card-cta:hover { text-decoration: none; color: var(--color-primary); }
.products-more { text-align: center; margin-top: 36px; }

/* ---------- Why choose us ---------- */
.section-why { padding: 80px 0; background: var(--color-surface); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-card); padding: 28px 24px; transition: border-color .22s ease, transform .22s ease; }
.why-card:hover { border-color: var(--color-accent-soft); transform: translateY(-2px); }
.why-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--color-accent-soft); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.why-card .icon svg { width: 24px; height: 24px; }
.why-card h3 { font-size: 17px; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--color-muted); line-height: 1.65; }

/* ---------- OEM / ODM steps ---------- */
.section-oem { padding: 80px 0; background: var(--color-bg); }
.oem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: oem; position: relative; }
.oem-grid::before { content: ""; position: absolute; top: 44px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--color-accent-soft) 0 6px, transparent 6px 12px); z-index: 0; }
.oem-step { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-card); padding: 28px 24px; position: relative; box-shadow: var(--shadow-card); transition: transform .22s ease; z-index: 1; }
.oem-step:hover { transform: translateY(-3px); }
.oem-step .num { width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent); font-family: var(--font-heading); font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; letter-spacing: -1px; box-shadow: 0 0 0 4px var(--color-bg); }
.oem-step h3 { font-size: 17px; margin: 14px 0 8px; }
.oem-step p { font-size: 14px; color: var(--color-muted); line-height: 1.65; }
.oem-cta { text-align: center; margin-top: 38px; }

/* ---------- Factory strip ---------- */
.factory-strip { position: relative; color: #fff; overflow: hidden; }
.factory-strip img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.factory-strip .overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,21,40,.94) 0%, rgba(11,31,58,.78) 55%, rgba(11,31,58,.45) 100%); }
.factory-strip .container { position: relative; z-index: 1; padding-top: 84px; padding-bottom: 84px; max-width: 820px; margin: 0 auto; text-align: center; }
.factory-strip .eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-amber); margin-bottom: 14px; }
.factory-strip h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.factory-strip p { color: #D7E2F2; font-size: 15px; margin-bottom: 6px; }
.factory-strip p + p { color: #B9C7DC; font-size: 13px; margin-bottom: 24px; }
.factory-strip .btn-row { margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- News ---------- */
.section-news { padding: 80px 0; background: var(--color-surface); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease; }
.news-card:hover { border-color: var(--color-accent-soft); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.news-card .thumb { aspect-ratio: 16/9; background: #F1F4F9; display: block; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card .date { font-family: var(--font-mono); font-size: 12px; color: var(--color-amber); font-weight: 700; letter-spacing: .5px; }
.news-card h3 { font-size: 16px; line-height: 1.4; }
.news-card h3 a { color: var(--color-text); }
.news-card h3 a:hover { color: var(--color-accent); text-decoration: none; }
.news-card p { font-size: 13.5px; color: var(--color-muted); flex: 1; line-height: 1.65; }
.news-card .more { font-size: 13px; font-weight: 700; color: var(--color-accent); }

/* ---------- CTA band + inquiry form ---------- */
.cta-band { background: linear-gradient(120deg, var(--color-primary-deep), var(--color-primary)); color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 72px; padding-bottom: 72px; align-items: start; }
.cta-band .eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-amber); }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 10px 0 14px; }
.cta-band .lead { color: #C7D5EA; margin-bottom: 22px; }
.contact-lines { display: flex; flex-direction: column; gap: 12px; }
.contact-line { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #DDE7F5; }
.contact-line svg { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; color: var(--color-amber); }
.contact-line a { color: #fff; font-weight: 600; }
.inquiry-form { background: var(--color-surface); border-radius: var(--radius-card); padding: 28px; color: var(--color-text); box-shadow: var(--shadow-hover); }
.inquiry-form h3 { font-size: 19px; margin-bottom: 4px; }
.inquiry-form .sub { font-size: 13px; color: var(--color-muted); margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--color-text); }
.form-field label .req { color: #D64545; }
.form-field input, .form-field textarea, .form-field select {
  font: inherit; font-size: 14px; color: var(--color-text);
  border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  padding: 10px 12px; background: #FBFCFE; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); }
.form-field textarea { resize: vertical; min-height: 88px; }
.form-field .err { font-size: 12px; color: #D64545; display: none; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #D64545; }
.form-field.invalid .err { display: block; }
.form-note { font-size: 12px; color: var(--color-muted); margin-top: 4px; }
.form-ok { display: none; background: #E8F7EE; color: #1E7B4F; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.form-ok.show { display: block; }

/* ---------- Footer ---------- (moved to style.css — shared by all pages) */

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .cta-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .oem-grid { grid-template-columns: 1fr; }
  .section-products, .section-why, .section-oem, .section-news { padding: 60px 0; }
}
@media (max-width: 576px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 30px; }
  .section-products, .section-why, .section-oem, .section-news { padding: 52px 0; }
  .trust-bar .container { gap: 8px 16px; }
  .factory-strip .container { padding-top: 60px; padding-bottom: 60px; }
  .cta-grid { padding-top: 56px; padding-bottom: 56px; }
}