/* =========================================================
   Yuanhong Textile — Global Stylesheet
   B2B foreign-trade showcase site
   Design: clean & light — white base, navy as accent only
   (no large dark areas; fits towel/textile "clean & airy" look)
   ========================================================= */

:root {
  --navy-900: #081d33;
  --navy-800: #0F2A43;
  --navy-700: #143a5e;
  --navy-600: #1d4a78;
  --blue-500: #2C5282;
  --blue-400: #3E7CB1;
  --blue-300: #9cc0f5;
  --teal-400: #6E9BC4;
  --ink: #1c2b3a;
  --ink-soft: #44586c;
  --muted: #6b7c8f;
  --line: #e2e8f0;
  --bg-soft: #F5F7FA;
  --bg-white: #ffffff;
  --gold: #c8a24a;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.16);
  --maxw: 1180px;
  --header-h: 72px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-400); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--navy-800); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--bg-soft); color: var(--ink); }
.section--navy h2, .section--navy h3 { color: var(--navy-800); }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-500);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
  text-align: center; white-space: nowrap;
}
.btn--primary { background: var(--blue-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-400); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-500); }
/* btn--light / btn--outline-light: now live on LIGHT backgrounds (hero, cta-box),
   so they are re-skinned as navy-accented instead of white-on-dark. */
.btn--light { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn--outline-light { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--outline-light:hover { border-color: var(--blue-500); color: var(--blue-500); }
.btn--block { width: 100%; }

/* ---------- Language switcher ---------- */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--navy-800); background: #fff; cursor: pointer; white-space: nowrap;
  transition: all .2s ease;
}
.lang-toggle:hover { border-color: var(--blue-500); color: var(--blue-500); background: var(--bg-soft); }
.lang-toggle--block { display: flex; justify-content: center; margin-top: 12px; width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy-800); font-size: 18px; letter-spacing: -.02em; }
.brand .logo-mark { height: 44px; width: auto; flex: none; display: block; }
.footer-brand .logo-mark { height: 40px; }
.brand .brand-sub { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.brand:hover { color: var(--navy-800); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; font-size: 15px;
  padding: 9px 14px; border-radius: 8px;
}
.nav-links a:hover { color: var(--navy-800); background: var(--bg-soft); }
.nav-links a.active { color: var(--blue-500); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 9px; width: 42px; height: 42px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy-800); margin: 4px auto; transition: .25s; }

/* ---------- Hero (light, clean & airy) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 82% -10%, rgba(45,108,223,.10), transparent 60%),
    radial-gradient(900px 460px at 8% 110%, rgba(60,124,177,.08), transparent 55%),
    linear-gradient(160deg, #ffffff 0%, var(--bg-soft) 100%);
  color: var(--ink);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, var(--navy-800) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, var(--navy-800) 0 1px, transparent 1px 22px);
}
.hero .container { position: relative; z-index: 2; padding-top: 92px; padding-bottom: 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 {
  color: var(--navy-900); font-size: clamp(32px, 5vw, 56px); line-height: 1.08;
  margin-bottom: 22px; font-weight: 800; letter-spacing: -.02em;
}
.hero h1 .accent { color: var(--blue-500); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-badges .chip {
  font-size: 13px; font-weight: 600; color: var(--navy-700);
  border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px;
  background: #fff;
}
.hero-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, #eef3fb, #dbe7f6);
  border: 1px solid var(--line);
  min-height: 360px; box-shadow: var(--shadow);
  display: grid; place-items: center; color: var(--navy-700);
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: #fff; color: var(--navy-800);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats-bar .container { padding-top: 30px; padding-bottom: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; line-height: 1; color: var(--navy-800); }
.stat .num .plus { font-size: .62em; vertical-align: super; }
.stat .label { font-size: 14px; color: var(--muted); margin-top: 8px; font-weight: 600; letter-spacing: .02em; }

/* ---------- Product series cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-300); }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); color: #fff; margin-bottom: 18px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.card .tag { font-size: 12px; font-weight: 600; color: var(--blue-600, #1d4fa0); background: #eef3fb; padding: 4px 11px; border-radius: 999px; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--blue-500); }
.card .card-link svg { transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Process / industrial chain ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 14px; text-align: center;
}
.step .step-n { font-size: 13px; font-weight: 800; color: var(--blue-500); }
.step h4 { font-size: 16px; margin: 8px 0 4px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }
.step::after {
  content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  color: var(--blue-400); font-weight: 800; z-index: 3;
}
.step:last-child::after { display: none; }

/* ---------- Cert wall ---------- */
.cert-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; transition: box-shadow .25s, transform .25s;
}
.cert:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.cert .cert-badge {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500));
  border: 3px solid #eef3fb;
}
.cert h4 { font-size: 16px; margin: 0 0 6px; }
.cert p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- CTA (light card, navy accent) ---------- */
.cta-box {
  background: linear-gradient(135deg, #eef3fb, #f5f7fa);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 56px 40px; text-align: center; color: var(--navy-800);
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; opacity: 1; pointer-events: none;
  background-image: linear-gradient(135deg, rgba(45,108,223,.06), transparent 60%);
}
.cta-box > * { position: relative; z-index: 2; }
.cta-box h2 { color: var(--navy-900); font-size: clamp(24px, 3vw, 34px); }
.cta-box p { color: var(--ink-soft); font-size: 17px; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Two-column feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual {
  border-radius: var(--radius-lg); min-height: 340px;
  background: linear-gradient(150deg, #eef3fb, #dbe7f6);
  display: grid; place-items: center; color: var(--navy-700); position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: #e7f0fd; color: var(--blue-500);
  display: grid; place-items: center; margin-top: 2px;
}
.checklist strong { color: var(--navy-800); }

/* ---------- Tables (factory) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead { background: var(--bg-soft); color: var(--navy-800); }
table.data thead th { font-weight: 700; letter-spacing: .02em; }
table.data tbody tr:nth-child(even) { background: var(--bg-soft); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.qty { font-weight: 700; color: var(--blue-500); }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--navy-800); }
.field label .req { color: #e0533d; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(45,108,223,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .err { color: #e0533d; font-size: 13px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e0533d; }
.field.invalid .err { display: block; }

.form-alert { border-radius: 10px; padding: 14px 16px; font-size: 14px; margin-bottom: 18px; display: none; }
.form-alert.show { display: block; }
.form-alert.success { background: #e8f7f0; color: #1d7a55; border: 1px solid #b6e3cf; }
.form-alert.error { background: #fdecea; color: #b5392a; border: 1px solid #f3c4bc; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.btn-spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-aside .info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 18px;
}
.contact-aside h4 { font-size: 16px; margin-bottom: 12px; }
.contact-aside .row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-aside .row .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #eef3fb; color: var(--blue-500); display: grid; place-items: center; }
.contact-aside .row .v { font-size: 14px; color: var(--ink-soft); }
.contact-aside .row .v a { color: var(--ink); font-weight: 600; }
.contact-aside .row .v small { display: block; color: var(--muted); }

/* ---------- Footer (light) ---------- */
.site-footer { background: var(--bg-soft); color: var(--ink-soft); padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .brand { color: var(--navy-800); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 320px; }
.footer-col h5 { color: var(--navy-800); font-size: 15px; margin: 0 0 16px; letter-spacing: .02em; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: var(--blue-500); }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-markets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-markets .m { font-size: 12px; background: #fff; padding: 4px 10px; border-radius: 999px; color: var(--navy-700); border: 1px solid var(--line); }

/* ---------- Footer social / IM contact ---------- */
.footer-social { margin-top: 22px; }
.fs-label {
  display: block; font-size: 11px; font-weight: 700; color: var(--navy-800);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.fs-list { display: flex; flex-wrap: wrap; gap: 9px; }
.fs {
  display: block; width: 38px; height: 38px; flex: none; padding: 0; border: 0;
  background: none; border-radius: 11px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.fs svg { display: block; width: 38px; height: 38px; border-radius: 11px; }
.fs:hover, .fs:focus-visible {
  transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,42,67,.18); outline: none;
}
.fs:active { transform: translateY(0); }
.fs-hint { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.6; }

/* ---------- WeChat contact modal ---------- */
.wx-modal { position: fixed; inset: 0; z-index: 220; display: none; }
.wx-modal.is-open { display: block; }
.wx-mask { position: absolute; inset: 0; background: rgba(15,42,67,.46); }
.wx-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(320px, calc(100vw - 40px)); background: #fff; border-radius: 18px;
  padding: 26px 22px 20px; text-align: center; box-shadow: 0 26px 64px rgba(15,42,67,.3);
}
.wx-close {
  position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: 0;
  background: none; font-size: 22px; line-height: 1; color: var(--muted);
  cursor: pointer; border-radius: 8px;
}
.wx-close:hover { background: var(--bg-soft); color: var(--ink); }
.wx-close:focus { outline: none; }
.wx-close:focus-visible { box-shadow: 0 0 0 2px var(--blue-500); }
.wx-title { margin: 0 0 16px; font-size: 16px; color: var(--navy-800); }
.wx-qr-wrap { display: grid; place-items: center; min-height: 164px; }
.wx-qr { width: 164px; height: 164px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.wx-qr-ph {
  width: 164px; height: 164px; display: grid; place-items: center; text-align: center;
  font-size: 12px; line-height: 1.7; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 12px; background: var(--bg-soft);
}
.wx-id { margin: 16px 0 4px; font-size: 14px; color: var(--ink-soft); }
.wx-id b { color: var(--navy-800); font-size: 15px; }
.wx-copy {
  display: inline-block; margin-top: 10px; padding: 9px 22px; border-radius: 999px;
  border: 1px solid var(--blue-500); background: #fff; color: var(--blue-500);
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all .18s ease;
}
.wx-copy:hover, .wx-copy.is-done { background: var(--blue-500); color: #fff; }
.wx-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- Breadcrumb / page hero (light) ---------- */
.page-hero {
  background: linear-gradient(160deg, #ffffff, var(--bg-soft));
  color: var(--ink); padding: 64px 0 56px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .03; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, var(--navy-800) 0 1px, transparent 1px 24px);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--navy-900); font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.page-hero p { color: var(--ink-soft); font-size: 17px; max-width: 640px; margin: 0; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--blue-500); }
.breadcrumb span { color: var(--navy-800); }

/* ---------- Product detail blocks ---------- */
.series-block { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 26px; }
.series-head {
  display: flex; align-items: center; gap: 18px; padding: 26px 28px;
  background: var(--bg-soft); color: var(--navy-800); border-bottom: 1px solid var(--line);
}
.series-head .icon { width: 52px; height: 52px; flex: none; border-radius: 14px; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); display: grid; place-items: center; color: #fff; }
.series-head h3 { color: var(--navy-900); margin: 0; font-size: 21px; }
.series-head p { margin: 2px 0 0; color: var(--ink-soft); font-size: 14px; }
.series-body { padding: 26px 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
.series-body h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.series-body ul.dot { display: grid; gap: 9px; }
.series-body ul.dot li { padding-left: 22px; position: relative; color: var(--ink-soft); font-size: 15px; }
.series-body ul.dot li::before { content: "●"; position: absolute; left: 0; color: var(--blue-500); font-size: 10px; top: 6px; }
.customize-box { background: var(--bg-soft); border: 1px dashed var(--blue-300); border-radius: var(--radius); padding: 20px; }
.customize-box .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.customize-box .pill { font-size: 13px; font-weight: 600; background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; color: var(--navy-800); }

/* ---------- Photo slots (real photography, graceful fallback) ----------
   Real photos live in assets/img/<category>/<file>. Until a file exists the
   <img> gets .img-missing (opacity:0) and the parent's soft neutral
   background shows through — no broken-image icon. */
.img-slot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: opacity .25s ease;
}
.img-slot--hero { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
.img-slot--lg { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
.img-slot--square { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.img-missing { opacity: 0; }

/* ---------- Hero carousel ---------- */
.hero-slides {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, #eef3fb, #dbe7f6);
}
.hero-slides__still { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slides.is-carousel .hero-slides__still { display: none; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .6s ease; pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slides__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 20px 34px; color: #fff;
  font-size: 14px; font-weight: 600; line-height: 1.5;
  background: linear-gradient(to top, rgba(11, 31, 56, .66), rgba(11, 31, 56, 0));
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.hero-slides__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .86); color: var(--navy-800);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; opacity: 0;
  box-shadow: 0 2px 10px rgba(11, 31, 56, .22);
  transition: opacity .2s ease, background .2s ease;
}
.hero-slides:hover .hero-slides__nav,
.hero-slides:focus-within .hero-slides__nav { opacity: 1; }
.hero-slides__nav:hover { background: #fff; }
.hero-slides__nav:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; opacity: 1; }
.hero-slides__nav--prev { left: 12px; }
.hero-slides__nav--next { right: 12px; }
.hero-slides__dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2;
  display: flex; justify-content: center; align-items: center; gap: 7px;
}
.hero-slides__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .55); cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: background .2s ease, width .2s ease;
}
.hero-slides__dot.is-active { background: #fff; width: 22px; }
.hero-slides__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Series block with a leading photo column */
.series-body--media { grid-template-columns: 300px 1.4fr 1fr; }
.series-media { align-self: start; }

/* ---------- Honor list ---------- */
.honor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.honor {
  display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.honor .medal { flex: none; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--gold), #e8c87a); color: #5a3d00; display: grid; place-items: center; }
.honor .t { font-weight: 700; color: var(--navy-800); font-size: 15px; }
.honor .d { font-size: 13px; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile nav drawer ---------- */
.mobile-panel {
  display: none; position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: #fff; padding: 18px 22px 40px; overflow-y: auto;
}
.mobile-panel.open { display: block; }
.mobile-panel a { display: block; padding: 14px 8px; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: 16px; }
.mobile-panel a.active { color: var(--blue-500); }
.mobile-panel .btn { margin-top: 18px; }
.mobile-panel .lang-toggle {
  display: inline-flex; margin: 14px 0 6px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-weight: 700; color: var(--navy-800); background: #fff;
}
.mobile-panel .lang-toggle:hover { border-color: var(--blue-500); color: var(--blue-500); }

/* ---------- News grid (content managed in admin) ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.news-card__img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  background: var(--bg-soft);
}
.news-card__body { padding: 18px 20px 22px; }
.news-card__date { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.news-card__title { margin: 6px 0 8px; font-size: 17px; line-height: 1.45; color: var(--navy-800); }
.news-card__text { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .brand .logo-mark { height: 38px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { min-height: 280px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .step::after { display: none; }
  .cert-wall { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split .visual { min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 30px; }
  .series-body { grid-template-columns: 1fr; gap: 20px; }
  .hero-slides__nav { width: 32px; height: 32px; font-size: 17px; opacity: 1; }
  .hero-slides__caption { font-size: 13px; padding: 20px 14px 30px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .brand .logo-mark { height: 34px; }
  .brand { font-size: 16px; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .cards { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .cert-wall { grid-template-columns: 1fr; }
  .honor-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .form-card { padding: 26px 20px; }
  .cta-box { padding: 42px 22px; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
}

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