/* =====================================================================
   Site D — CHUANGSU Toys official flagship (chuangsutoys.com)
   Palette: deep navy / warm gold / porcelain — corporate flagship look
   ===================================================================== */
:root {
  --navy: #0d2440;
  --navy-2: #16324f;
  --navy-3: #1e4266;
  --gold: #c9a24b;
  --gold-2: #b08a35;
  --ink: #1d2a38;
  --muted: #5a6a7c;
  --line: #dde4ec;
  --bg: #f5f7fa;
  --paper: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--gold-2); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* top strip */
.topstrip { background: var(--navy); color: #b9c8d8; font-size: 12.5px; text-align: center; letter-spacing: .04em; padding: 7px 16px; border-bottom: 1px solid rgba(201,162,75,.45); }

/* header */
header.site { background: var(--paper); border-bottom: 4px solid var(--gold); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 46px; height: 46px; object-fit: contain; }
.brand .name { font-size: 20px; font-weight: 800; letter-spacing: .02em; color: var(--navy); line-height: 1.12; }
.brand .name span { font-weight: 300; }
.brand .name small { display: block; font-size: 10px; font-weight: 700; color: var(--gold-2); letter-spacing: .22em; text-transform: uppercase; }
nav.main ul { list-style: none; display: flex; gap: 22px; }
nav.main a { font-size: 14px; font-weight: 600; color: var(--ink); padding: 6px 1px; border-bottom: 2px solid transparent; white-space: nowrap; }
nav.main a:hover, nav.main a.active { color: var(--navy); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 12px; cursor: pointer; font-size: 18px; }

/* hero */
.hero { background: linear-gradient(115deg, #0b1f38 0%, #14304e 55%, #1b3c5f 100%); color: #fff; padding: 78px 0 86px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(720px 340px at 88% 8%, rgba(201,162,75,.16), transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 46px; align-items: center; position: relative; z-index: 1; }
.hero .kicker { display: inline-block; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; border: 1px solid rgba(201,162,75,.55); padding: 6px 14px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.18; max-width: 22ch; margin-bottom: 18px; }
.hero .lead { font-size: 17px; color: #c4d2e0; max-width: 62ch; margin-bottom: 32px; }
.hero .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .art { border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); }
.hero .art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.quote-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); padding: 26px 26px 22px; backdrop-filter: blur(4px); }
.quote-card h3 { color: var(--gold); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.quote-card ul { list-style: none; }
.quote-card li { color: #d5e0ea; font-size: 14px; padding: 7px 0 7px 24px; position: relative; border-bottom: 1px solid rgba(255,255,255,.09); }
.quote-card li:last-of-type { border-bottom: 0; }
.quote-card li::before { content: '\25C6'; position: absolute; left: 2px; top: 9px; color: var(--gold); font-size: 9px; }

/* buttons */
.btn { display: inline-block; padding: 14px 30px; font-weight: 700; font-size: 15px; transition: .2s; border: 2px solid transparent; cursor: pointer; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #d9b262; color: var(--navy); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-3); color: #fff; }
.btn.line { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn.line:hover { background: #fff; color: var(--navy); }
.btn.ghost, .btn.outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn.ghost:hover, .btn.outline:hover { background: var(--navy); color: #fff; }

/* stats band */
.stats-band { background: var(--navy); color: #fff; border-top: 3px solid var(--gold); }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 30px 12px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat .n { font-size: 31px; font-weight: 800; color: var(--gold); }
.stat .l { font-size: 12px; color: #9db0c4; text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; }

/* sections */
section.block { padding: 72px 0; }
section.block.tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-head { margin-bottom: 42px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.s-head .kicker { color: var(--gold-2); font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.s-head h2 { font-size: clamp(24px, 3vw, 33px); margin-top: 6px; color: var(--navy); }
.s-head p { color: var(--muted); max-width: 74ch; margin-top: 8px; }

/* pillar cards */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 26px 22px; }
.pillar .glyph { font-size: 13px; font-weight: 800; color: var(--gold-2); letter-spacing: .14em; }
.pillar h3 { font-size: 17.5px; margin: 8px 0; color: var(--navy); }
.pillar p { font-size: 14px; color: var(--muted); }

/* product cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; transition: .25s; }
.card:hover { border-color: var(--gold); box-shadow: 0 16px 36px -24px rgba(13,36,64,.5); }
.card .ph { aspect-ratio: 1; background: #eef1f5; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card h3 { font-size: 14.5px; line-height: 1.45; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--navy-3); }
.price { font-size: 18px; font-weight: 800; color: var(--navy); }
.moq { font-size: 12.5px; color: var(--muted); }
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.tag { display: inline-block; background: #eef2f7; border: 1px solid var(--line); color: var(--navy-3); font-size: 10.5px; font-weight: 700; padding: 2px 8px; letter-spacing: .05em; }

/* breadcrumb / page head */
.crumb { font-size: 13px; color: var(--muted); padding: 20px 0 0; }
.crumb a { color: var(--muted); }
.page-head { padding: 20px 0 34px; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 38px); color: var(--navy); }
.page-head p { color: var(--muted); max-width: 78ch; margin-top: 8px; }

/* product detail */
.pd { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding-bottom: 56px; }
.gallery .main { border: 1px solid var(--line); background: #fff; }
.gallery .main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.gallery .thumbs img { aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); cursor: pointer; opacity: .7; }
.gallery .thumbs img:hover, .gallery .thumbs img.cur { opacity: 1; border-color: var(--gold); }
.pd-info h1 { font-size: clamp(22px, 2.4vw, 29px); line-height: 1.3; color: var(--navy); }
.pd-price { font-size: 29px; font-weight: 800; color: var(--navy); margin: 12px 0 2px; }
.pd-price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.spec { list-style: none; margin: 16px 0 22px; border-top: 1px solid var(--line); }
.spec li { display: flex; justify-content: space-between; gap: 18px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec li b { text-align: right; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 20px; }
.variants .sw { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 6px 12px 6px 6px; margin: 0 8px 8px 0; background: #fff; font-size: 13px; }
.variants .sw img { width: 26px; height: 26px; object-fit: cover; cursor: pointer; transition: transform .15s; }
.variants .sw img:hover { transform: scale(1.12); }
.variants .sw img.cur { outline: 2px solid var(--gold); outline-offset: 1px; }
.desc-section h2 { font-size: 23px; margin: 36px 0 12px; border-left: 4px solid var(--gold); padding-left: 12px; color: var(--navy); }
.desc-section .bullets { list-style: none; margin: 12px 0; }
.desc-section .bullets li { padding-left: 24px; position: relative; margin-bottom: 9px; color: #3a4653; }
.desc-section .bullets li::before { content: '\25C6'; position: absolute; left: 0; top: 3px; color: var(--gold); font-size: 9px; }
.desc-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.desc-imgs img { border: 1px solid var(--line); }

/* tables */
table.attrs { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.attrs th, table.attrs td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
table.attrs th { background: #eef2f7; width: 30%; color: var(--navy); }

/* faq */
details.faq { background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 40px; }
details.faq summary::after { content: '+'; position: absolute; right: 16px; color: var(--gold-2); font-size: 22px; font-weight: 400; }
details.faq[open] summary::after { content: '\2212'; }
details.faq .a { padding: 0 18px 15px; color: var(--muted); }

/* form */
.form-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 26px; }
.info-card h3 { margin-bottom: 12px; color: var(--navy); }
.info-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
form.inquiry { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: #d0342c; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: #fbfcfd; padding: 11px 13px; font: inherit; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold-2); outline-offset: -1px; }
.field textarea { min-height: 130px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.err-note { background: #fdecea; border-left: 4px solid #d0342c; color: #7a2e2a; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 38px 0 8px; }
.pagination a, .pagination span { border: 1px solid var(--line); background: #fff; min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--ink); }
.pagination .cur { background: var(--navy); border-color: var(--navy); color: #fff; }

/* article/blog */
article.post-meta { color: var(--muted); }

/* footer */
footer.site { background: #0b1c30; color: #94a8bc; margin-top: 76px; border-top: 3px solid var(--gold); }
footer.site .cols { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 34px; padding: 50px 0 36px; }
footer.site h4 { color: #fff; margin-bottom: 13px; font-size: 15px; }
footer.site a { color: #94a8bc; display: block; padding: 3px 0; font-size: 14px; }
footer.site a:hover { color: #fff; }
footer.site .legal { border-top: 1px solid #1d3452; padding: 16px 0; font-size: 12.5px; color: #6e8298; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pd, .form-wrap { grid-template-columns: 1fr; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  body.nav-open nav.main { display: block; }
  nav.main ul { flex-direction: column; gap: 0; padding: 10px 22px; }
  nav.main ul li a { display: block; padding: 11px 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .pillars, .cards, .grid2, .desc-imgs { grid-template-columns: 1fr; }
  .gallery .thumbs { grid-template-columns: repeat(4, 1fr); }
}
