/* YuYuan Garments — Global Site Styles */
:root {
  --navy: #0e2a43;
  --navy-2: #143a5c;
  --accent: #e8730c;
  --accent-dark: #c65f06;
  --ink: #1e2a35;
  --muted: #5b6b7a;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --line: #dfe6ec;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(14, 42, 67, 0.08);
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.15rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.center { text-align: center; }
.kicker {
  display: inline-block; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 8px;
}
.lead { color: var(--muted); max-width: 760px; }
.center .lead { margin: 10px auto 0; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy); color: #cfe0ef; font-size: 0.82rem;
}
.topbar .wrap { display: flex; justify-content: flex-end; gap: 24px; padding: 6px 20px; }
.topbar a { color: #cfe0ef; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  font-size: 1.5rem; font-weight: 800; color: var(--navy); letter-spacing: 1px;
}
.logo-mark span { color: var(--accent); }
.logo-sub { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }
.logo-img { height: 46px; width: auto; max-width: 220px; object-fit: contain; }
.footer-logo { height: 54px; width: auto; max-width: 240px; object-fit: contain; margin-bottom: 6px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; }
.main-nav a {
  display: block; padding: 10px 16px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a.active { background: var(--bg-alt); color: var(--accent-dark); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 540px;
  display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(10,25,40,0.78) 0%, rgba(10,25,40,0.45) 45%, rgba(10,25,40,0.15) 100%),
    url("../images/hero.jpg") center/cover no-repeat;
}
.hero-inner { color: #fff; max-width: 640px; padding: 80px 0; }
.hero .kicker { color: #ffb36b; }
.hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: 14px; }
.hero p { color: #e7eef5; font-size: 1.08rem; max-width: 540px; margin-bottom: 28px; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost { border: 2px solid rgba(255,255,255,0.7); color: #fff; margin-left: 12px; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 20px; }
.stat b { display: block; font-size: 2rem; color: #ffb36b; }
.stat span { font-size: 0.9rem; color: #c9d8e5; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(14,42,67,0.14); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.card-link { font-weight: 700; color: var(--accent-dark); margin-top: 12px; font-size: 0.92rem; }

.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.feature-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Split blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split .kicker { margin-bottom: 6px; }
.split h2 { margin-bottom: 14px; }
.split p { color: var(--muted); margin-bottom: 12px; }
.check-list { list-style: none; margin: 14px 0 22px; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 8px; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

/* ---------- Cert badges ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-align: center; box-shadow: var(--shadow);
}
.cert b { display: block; color: var(--navy); font-size: 1.25rem; margin-bottom: 6px; }
.cert span { color: var(--muted); font-size: 0.88rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; text-align: center; padding: 56px 20px;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #c9d8e5; margin-bottom: 24px; }

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(90deg, rgba(10,25,40,0.82) 0%, rgba(10,25,40,0.5) 100%),
    var(--navy) center/cover no-repeat;
  color: #fff; padding: 64px 0;
}
.page-banner h1 { color: #fff; font-size: 2.2rem; }
.page-banner p { color: #c9d8e5; max-width: 720px; margin-top: 10px; }
.breadcrumb { font-size: 0.85rem; color: #c9d8e5; margin-bottom: 14px; }
.breadcrumb a { color: #c9d8e5; }

/* ---------- Article ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article h2 { margin: 34px 0 12px; }
.article h3 { margin: 24px 0 8px; }
.article p, .article li { color: #37424d; }
.article ul, .article ol { margin: 10px 0 10px 24px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.94rem; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.spec-table th { background: var(--bg-alt); color: var(--navy); }

/* ---------- Product page hero image ---------- */
.product-cover { border-radius: var(--radius); box-shadow: var(--shadow); margin: 26px 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card h3 { margin-bottom: 14px; }
.contact-card p { margin-bottom: 10px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c9d8; padding: 48px 0 0; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9c9d8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0; font-size: 0.82rem; color: #8fa3b5;
}
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 20px; }
  .btn-ghost { margin-left: 0; margin-top: 12px; display: block; text-align: center; max-width: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
}
