﻿/* ============================================================
   Soaring Dragon FRP — Global Stylesheet (v2 minimal premium)
   Base + Components + Responsive. Design tokens in tokens.css.
   ============================================================ */

/* ---------- Base / Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.65;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { font-family: var(--font-family); color: var(--text-primary); }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.15; letter-spacing: var(--track-title); }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; letter-spacing: var(--track-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--bg-secondary); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h2, .section-dark p { color: #fff; }

.eyebrow {
  display: block; text-transform: uppercase; letter-spacing: var(--track-eyebrow);
  font-size: var(--fs-eyebrow); font-weight: 500; color: var(--text-muted); margin-bottom: 16px;
}
.text-narrow { max-width: var(--text-narrow); }
.lead { font-size: var(--fs-body-lg); color: var(--text-secondary); line-height: 1.7; max-width: 680px; }
.muted { color: var(--text-secondary); }

.section-head { margin-bottom: var(--space-lg); }
.section-head.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons (双 CTA 规范) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; border: 1px solid transparent;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  text-align: center; white-space: nowrap;
}
.btn-primary { background: #111; color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: #111; border-color: #111; }
.btn-secondary:hover { background: #f7f7f5; transform: translateY(-1px); }
.btn-dark-primary { background: #fff; color: #111; }
.btn-dark-primary:hover { background: #eee; transform: translateY(-1px); }
.btn-dark-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-dark-secondary:hover { border-color: #fff; transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn + .btn { margin-left: 12px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  border-bottom: 1px solid transparent; transition: border-color var(--t-fast);
}
.site-header.scrolled { border-bottom: 1px solid rgba(0,0,0,0.2); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-height); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: #fff; letter-spacing: -0.01em; }
.logo .logo-icon { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.logo small { display: block; font-weight: 400; font-size: 11px; color: rgba(255,255,255,0.65); letter-spacing: .02em; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(255,255,255,0.88); font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: #fff; transition: right var(--t-fast); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { font-weight: 600; color: #fff; }
.nav-cta { margin-left: 6px; }
.nav-toggle .bar { background: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ---------- Hero Banner (full-width carousel) ---------- */
.hero-banner { position: relative; height: min(72vh, 620px); min-height: 420px; overflow: hidden; background: var(--bg-secondary); }
.banner-slides { position: absolute; inset: 0; }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(20,20,20,0.62) 0%, rgba(20,20,20,0.28) 55%, rgba(20,20,20,0.05) 100%);
  display: flex; align-items: center;
}
.banner-content { max-width: 640px; color: #fff; }
.banner-content h1 { color: #fff; font-size: var(--fs-hero); margin-bottom: 20px; letter-spacing: var(--track-title); }
.banner-content .lead { color: rgba(255,255,255,0.88); margin-bottom: 30px; }
.banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.banner-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.banner-dots button { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.banner-dots button.active { background: #fff; }

/* ---------- Section title with red underline ---------- */
.section-title { text-align: center; margin-bottom: var(--space-lg); }
.section-title h2 { margin-bottom: 14px; }
.section-title .title-line { width: 56px; height: 3px; background: var(--brand); margin: 0 auto 18px; }
.section-title p { color: var(--text-secondary); max-width: 680px; margin: 0 auto; }

/* ---------- Page Banner (内页) ---------- */
.page-banner { padding: var(--space-xl) 0 var(--space-lg); background: #fff; }
.page-banner h1 { margin-bottom: 16px; }
.page-banner p { color: var(--text-secondary); max-width: 680px; }
.breadcrumb { margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: #111; }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }

/* ---------- Product category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--t-base); }
.cat-card:hover { box-shadow: var(--shadow-subtle); }
.cat-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cat-card .body { padding: 24px; }
.cat-card h3 { font-size: 20px; margin-bottom: 8px; }
.cat-card p { color: var(--text-secondary); font-size: 15px; margin-bottom: 16px; }
.cat-card .link { font-size: 14px; font-weight: 500; color: #111; border-bottom: 1px solid transparent; }
.cat-card .link:hover { border-bottom-color: #111; }

/* ---------- Product cards (产品页) ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--t-base); }
.prod-card:hover { box-shadow: var(--shadow-subtle); }
.prod-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.prod-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.prod-card h3 { font-size: 19px; margin-bottom: 8px; }
.prod-card p { color: var(--text-secondary); font-size: 15px; margin-bottom: 18px; flex: 1; }
.prod-card .cta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prod-card .wa { display: inline-flex; align-items: center; gap: 6px; color: #1a7f37; font-size: 14px; font-weight: 500; }
.prod-card .wa:hover { text-decoration: underline; }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-tabs button {
  min-height: 44px; padding: 10px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; transition: all var(--t-fast);
}
.filter-tabs button:hover { border-color: #111; color: #111; }
.filter-tabs button.active { background: #111; border-color: #111; color: #fff; }

/* ---------- Why us (numbered) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 60px; }
.why-item { border-top: 1px solid var(--border); padding-top: 24px; }
.why-item .num { font-size: 15px; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 10px; }
.why-item h3 { margin-bottom: 10px; }
.why-item p { color: var(--text-secondary); font-size: 16px; line-height: 1.65; }

/* ---------- Factory (placeholder warm-neutral) ---------- */
.factory-band { background: var(--bg-secondary); padding: var(--space-2xl) 0; }
.factory-placeholder {
  width: 100%; aspect-ratio: 21/9; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #e9e9e6, #dddcd8);
  display: flex; align-items: center; justify-content: center; color: #9a9a96;
  font-size: 20px; font-weight: 500; letter-spacing: .04em; margin-bottom: 48px;
}
.factory-stats { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; max-width: 960px; margin: 0 auto 40px; }
.factory-stat { flex: 1; min-width: 160px; text-align: center; }
.factory-stat strong { display: block; font-size: 36px; font-weight: 700; color: #111; margin-bottom: 8px; white-space: nowrap; }
.factory-stat span { font-size: 14px; color: var(--text-muted); }
.factory-note { text-align: center; color: var(--text-secondary); max-width: 560px; margin: 0 auto 32px; }
.factory-cta { text-align: center; }

/* ---------- Featured products ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.feat-card .thumb { aspect-ratio: 1/1; overflow: hidden; background: var(--bg-secondary); }
.feat-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.feat-card .body { padding: 20px 24px 24px; }
.feat-card h3 { font-size: 18px; margin-bottom: 8px; }
.proc-tag { display: inline-block; font-size: 12px; font-weight: 600; color: #555; border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; margin-right: 6px; margin-top: 6px; }

/* ---------- Process cards (3 工艺, image-top) ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proc-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow var(--t-base); }
.proc-card:hover { box-shadow: var(--shadow-subtle); }
.proc-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; }
.proc-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.proc-card .arrow-btn {
  position: absolute; right: 20px; bottom: -22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 4px 12px rgba(11,57,106,0.35);
}
.proc-card .body { padding: 32px 28px 28px; }
.proc-card .step-label { font-size: var(--fs-eyebrow); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--track-eyebrow); display: block; margin-bottom: 14px; }
.proc-card h3 { font-size: 20px; margin-bottom: 12px; }
.proc-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ---------- Category band (deep-red, CHOOSE WHAT YOU WANT) ---------- */
.cat-band { background: var(--brand-dark); color: #fff; padding: var(--space-2xl) 0; }
.cat-band .section-title h2 { color: #fff; }
.cat-band .section-title p { color: rgba(255,255,255,0.8); }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.cat-tabs button {
  min-height: 44px; padding: 10px 20px; border: 1px solid rgba(255,255,255,0.35); border-radius: var(--radius-sm);
  background: transparent; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; transition: all var(--t-fast);
}
.cat-tabs button:hover { background: rgba(255,255,255,0.12); }
.cat-tabs button.active { background: #fff; color: var(--brand-dark); border-color: #fff; }
.cat-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-band-card { background: #fff; border-radius: var(--radius); overflow: hidden; }
.cat-band-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; }
.cat-band-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cat-band-card .body { padding: 18px 20px; }
.cat-band-card h3 { font-size: 16px; margin-bottom: 4px; }
.cat-band-card p { color: var(--text-secondary); font-size: 14px; }

/* ---------- Certifications / Trust band ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 32px; background: #fff; }
.cert-card .cert-name { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.cert-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { padding: 22px 40px 22px 0; cursor: pointer; font-weight: 600; font-size: 17px; color: #111; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 20px; font-size: 22px; font-weight: 400; color: #111; transition: transform .2s; }
.faq-item details[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 40px 24px 0; color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
.faq-foot { text-align: center; margin-top: 32px; color: var(--text-secondary); font-size: 16px; }
.faq-foot a { font-weight: 600; color: #111; border-bottom: 1px solid #111; }
.faq-foot a:hover { background: #f7f7f5; }

/* ---------- CTA Banner (dark) ---------- */
.cta-band { background: #111; color: #fff; text-align: center; padding: var(--space-2xl) 0; }
.cta-band h2 { color: #fff; font-size: 38px; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 32px; font-size: 18px; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.form-card { max-width: 640px; }
.form-card h2 { margin-bottom: 8px; }
.form-card .form-sub { color: var(--text-secondary); margin-bottom: 32px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 8px; color: #111; }
.form-row label .opt { color: var(--text-muted); font-weight: 400; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px; font-family: inherit; color: #111; background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: #111; box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-muted); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input[type="file"] { padding: 10px 12px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-secondary); }
.form-check input { min-height: auto; width: auto; margin-top: 3px; }
.form-check a { text-decoration: underline; color: #111; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; text-align: center; }
.form-error { display: none; background: #fbeaec; border: 1px solid #f5c6cc; color: var(--error); padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }

.contact-info { display: grid; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ci { width: 44px; height: 44px; border-radius: var(--radius); background: #111; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-item h4 { font-size: 16px; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--text-secondary); font-size: 15px; }
.contact-item a:hover { color: #111; }

/* ---------- NotFound / ThankYou ---------- */
.notfound { text-align: center; padding: var(--space-2xl) 0; }
.notfound .code { font-size: 96px; font-weight: 800; color: #eee; line-height: 1; margin-bottom: 8px; }
.notfound h1 { margin-bottom: 16px; }
.notfound p { color: var(--text-secondary); max-width: 480px; margin: 0 auto 32px; }
.notfound .links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.thanks { text-align: center; padding: var(--space-2xl) 0; }
.thanks .icon { font-size: 56px; margin-bottom: 16px; }
.thanks h1 { margin-bottom: 16px; }
.thanks p { color: var(--text-secondary); max-width: 560px; margin: 0 auto 32px; }
.thanks .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.thanks .backlinks { margin-top: 28px; color: var(--text-muted); font-size: 14px; }
.thanks .backlinks a { color: #111; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #111; color: #fff; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: #CCC; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-about p { color: #AAA; font-size: 14px; margin-top: 16px; line-height: 1.7; }
.footer-contact li { font-size: 14px; margin-bottom: 12px; display: flex; gap: 10px; color: #CCC; }
.footer-contact a { color: #CCC; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding: 28px 0; font-size: 13px; color: #999; }
.footer-bottom .inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom .compliance { color: #777; max-width: 640px; line-height: 1.6; }

/* ---------- WhatsApp floating (sole functional color) ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18); transition: transform var(--t-fast);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal on scroll (progressive enhancement; content visible by default) ---------- */
.reveal { transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive (5-tier) ---------- */
@media (max-width: 1199px) {
  .cat-grid, .prod-grid, .feat-grid, .proc-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-band-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 640px; }
  .hero { min-height: auto; padding: 60px 0; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero h1 { font-size: 36px; }
  .lead { font-size: 16px; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .cat-grid, .prod-grid, .feat-grid, .proc-grid, .cert-grid { grid-template-columns: 1fr; }
  .cat-band-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw);
    background: #fff; flex-direction: column; gap: 0; justify-content: center; padding: 40px 32px;
    transform: translateX(100%); transition: transform .3s ease; box-shadow: -8px 0 30px rgba(0,0,0,0.08); z-index: 400;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { margin: 24px 0 0; }
  .nav-toggle { display: flex; }
  .btn { min-height: 52px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 12px 20px; }
  .factory-stats { gap: 24px; }
  .factory-stat strong { font-size: 32px; }
  .cta-band h2 { font-size: 30px; }
  .form-card { padding: 0; }
}

@media (min-width: 1440px) {
  .container { max-width: 1200px; }
}