/* ============ Jinyu Denim - public site styles ============ */
:root {
  --indigo-900: #16233f;
  --indigo-800: #1d3057;
  --indigo-700: #27417a;
  --indigo-600: #33549c;
  --denim: #3b5bdb;
  --denim-dark: #2b4bb8;
  --blue-100: #dbe4ff;
  --blue-50: #edf2ff;
  --gold: #c9a227;
  --ink: #1c2438;
  --muted: #5c6579;
  --line: #e3e7f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(22, 35, 63, .08);
  --shadow-lg: 0 16px 48px rgba(22, 35, 63, .14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
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(--denim); text-decoration: none; }
a:hover { color: var(--denim-dark); }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--indigo-900); }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 8px; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer; font-size: .95rem; text-align: center;
  transition: all .18s ease; text-decoration: none; line-height: 1.4;
}
.btn-primary { background: var(--denim); color: #fff; }
.btn-primary:hover { background: var(--denim-dark); color: #fff; }
.btn-outline { border-color: var(--denim); color: var(--denim); background: transparent; }
.btn-outline:hover { background: var(--blue-50); }
.btn-light { background: #fff; color: var(--indigo-900); }
.btn-light:hover { background: var(--blue-100); }
.btn-ghost { border-color: var(--line); color: var(--muted); background: #fff; }
.btn-ghost:hover { border-color: var(--denim); color: var(--denim); }
.btn-lg { padding: 13px 30px; font-size: 1.02rem; }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-block { display: block; width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--indigo-900); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, var(--denim), var(--indigo-700));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
}
.brand-text { font-size: 1.05rem; letter-spacing: .12em; display: flex; flex-direction: column; line-height: 1; }
.brand-sub { font-size: .68rem; letter-spacing: .3em; color: var(--gold); font-weight: 700; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.nav-link { color: var(--ink); font-weight: 600; font-size: .95rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--denim); }
.nav-link.active { color: var(--denim); border-bottom-color: var(--denim); }
.btn-quote { margin-left: 6px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--indigo-900); margin: 4px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--indigo-900); color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(22,35,63,.96) 25%, rgba(29,48,87,.82) 60%, rgba(59,91,219,.55)),
    url('/assets/images/premium-denim-jeans-collection.jpg') center/cover no-repeat;
}
.hero-inner { position: relative; padding: 110px 20px 130px; }
.hero-content { max-width: 720px; }
.hero-eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .18em; font-size: .8rem; margin-bottom: 18px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero-sub { color: #cdd7ee; font-size: 1.1rem; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero { background: linear-gradient(120deg, var(--indigo-900), var(--indigo-700)); color: #fff; padding: 70px 20px 60px; }
.page-hero-sm { padding: 46px 20px 40px; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero-sm h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.page-hero p { color: #cdd7ee; max-width: 760px; font-size: 1.06rem; margin: 0; }

/* ---------- stats ---------- */
.stats-bar { background: var(--indigo-900); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 20px;
}
.stat { text-align: center; }
.stat-num { font-size: 2.1rem; font-weight: 800; color: var(--gold); }
.stat-label { color: #b9c5e2; font-size: .9rem; }

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { margin-top: 10px; }
.eyebrow { color: var(--denim); font-weight: 700; letter-spacing: .2em; font-size: .78rem; }
.section-cta { text-align: center; margin-top: 40px; }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-media { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--blue-50); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(22,35,63,.82); color: #fff;
  padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 600;
}
.product-info { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-info h3 { font-size: 1.05rem; }
.product-desc { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.product-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; font-size: .8rem; border-top: 1px dashed var(--line); padding-top: 12px; }
.product-meta dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.product-meta dd { font-weight: 600; color: var(--ink); margin: 0; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-chip {
  padding: 7px 18px; border-radius: 24px; border: 1.5px solid var(--line); color: var(--muted);
  font-weight: 600; font-size: .9rem; background: #fff;
}
.filter-chip:hover { border-color: var(--denim); color: var(--denim); }
.filter-chip.active { background: var(--denim); border-color: var(--denim); color: #fff; }
.empty-note { text-align: center; color: var(--muted); }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow);
}
.feature-ico {
  width: 52px; height: 52px; border-radius: 12px; background: var(--blue-50); color: var(--denim);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- showcase / certs ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.showcase-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); margin: 0;
}
.showcase-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.showcase-card figcaption { padding: 16px 18px; }
.showcase-cat { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.showcase-card h3 { margin: 6px 0 8px; font-size: 1rem; }
.showcase-card p { color: var(--muted); font-size: .88rem; margin: 0; }

.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.cert-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; box-shadow: var(--shadow); }
.cert-card img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.cert-card figcaption { padding: 14px 16px; }
.cert-card h3 { font-size: .95rem; margin-bottom: 6px; }
.cert-card p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- numbers ---------- */
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.number-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 20px;
  text-align: center; box-shadow: var(--shadow);
}
.number-card .stat-num { font-size: 2.6rem; }

/* ---------- cases ---------- */
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 34px; display: grid; grid-template-columns: 340px 1fr;
}
.case-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.case-body { padding: 30px 34px; }
.case-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.case-tag { background: var(--blue-50); color: var(--denim); font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 16px; }
.case-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.case-body > p { color: var(--muted); }
.case-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0; }
.case-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 6px; }
.case-col p { font-size: .88rem; color: var(--muted); margin: 0; }
.case-quote {
  border-left: 4px solid var(--denim); background: var(--blue-50); padding: 16px 20px;
  font-style: italic; color: var(--indigo-900); border-radius: 0 10px 10px 0; margin: 0;
}

/* ---------- faq ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary {
  padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none; position: relative; color: var(--indigo-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 1.3rem; color: var(--denim); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 22px 18px; color: var(--muted); }

/* ---------- two-col / forms ---------- */
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: start; }
.col-text h2 { margin: 10px 0 16px; }
.check-list { list-style: none; margin-top: 18px; }
.check-list li { padding: 8px 0 8px 32px; position: relative; color: var(--ink); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; background: var(--blue-100); color: var(--denim-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }

.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.card-form h3 { margin-bottom: 20px; font-size: 1.2rem; }
.card-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 14px; color: var(--indigo-900); }
.card-form input, .card-form select, .card-form textarea, .parser-panel textarea, .parser-panel input, .parser-panel select {
  width: 100%; margin-top: 6px; padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff;
}
.card-form input:focus, .card-form select:focus, .card-form textarea:focus,
.parser-panel input:focus, .parser-panel select:focus, .parser-panel textarea:focus {
  outline: none; border-color: var(--denim); box-shadow: 0 0 0 3px rgba(59, 91, 219, .15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.form-error { color: #c0392b; font-weight: 600; font-size: .9rem; margin-top: 12px; min-height: 1.2em; }
.form-success { color: #1e7e34; font-weight: 600; font-size: .9rem; margin-top: 12px; min-height: 1.2em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- contact ---------- */
.contact-list { list-style: none; margin: 26px 0; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .ico { font-size: 1.2rem; width: 40px; height: 40px; background: var(--blue-50); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-list h4 { font-size: .95rem; margin-bottom: 2px; }
.contact-list p { margin: 0; color: var(--muted); }
.info-box { background: var(--blue-50); border-radius: 10px; padding: 18px 22px; border-left: 4px solid var(--denim); }
.info-box h4 { margin-bottom: 6px; }
.info-box p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- process ---------- */
.process-list { max-width: 860px; margin: 0 auto; position: relative; }
.process-list::before { content: ""; position: absolute; left: 42px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.process-step { display: flex; gap: 28px; margin-bottom: 40px; position: relative; }
.process-marker {
  width: 56px; height: 56px; border-radius: 50%; background: var(--indigo-900); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem;
  flex-shrink: 0; z-index: 1; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line);
}
.process-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; flex: 1; box-shadow: var(--shadow); }
.process-body h3 { margin-bottom: 8px; }
.process-body p { color: var(--muted); font-size: .95rem; }
.tag-list { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag-list li { background: var(--blue-50); color: var(--denim); font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 16px; }

/* ---------- customization "how it works" steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--indigo-900); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.02rem; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- parser ---------- */
.parser-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.parser-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.parser-panel h2 { font-size: 1.15rem; margin-bottom: 16px; }
.parser-actions { display: flex; gap: 12px; margin-top: 14px; }
.parser-hint { color: var(--muted); font-size: .85rem; margin-top: 12px; min-height: 1.2em; }
.parser-notes { list-style: none; margin-top: 16px; }
.parser-notes li { font-size: .85rem; color: #8a6d1a; background: #fff8e1; border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; }
.parser-quote { max-width: 640px; margin: 0 auto; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--indigo-900), var(--indigo-700)); padding: 74px 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: 12px; }
.cta-inner p { color: #c6d1ea; max-width: 640px; margin: 0 auto 28px; }

/* ---------- footer ---------- */
.site-footer { background: #10182b; color: #b9c3dc; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 44px; padding-bottom: 44px; }
.footer-brand { color: #fff; margin-bottom: 16px; }
.footer-about { font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b9c3dc; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; }
.footer-contact li { margin-bottom: 12px; font-size: .92rem; display: flex; gap: 10px; }
.footer-contact a { color: #b9c3dc; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; font-size: .85rem; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #b9c3dc; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .case-card { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .parser-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 16px 20px 22px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .btn-quote { display: none; }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .case-columns { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ product detail page ============ */
.breadcrumb { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); margin-bottom: 30px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--denim); }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.detail-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 4/3; }
.detail-gallery img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--line); }
.detail-info h1 { margin: 6px 0 14px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.detail-desc { color: var(--muted); font-size: 1.05rem; }
.detail-long { background: var(--bg-alt); border-left: 4px solid var(--denim); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 18px 0; white-space: pre-wrap; }
.detail-h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .12em; margin: 26px 0 12px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 26px; }
.spec-table th { text-align: left; color: var(--muted); font-weight: 600; width: 140px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.detail-video { margin-top: 18px; }
.detail-video a { font-weight: 600; }

/* ============ form extras ============ */
.check-label { display: flex !important; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.check-label input { width: auto !important; margin: 0 !important; }
.attach-box { border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.attach-label { display: block; cursor: pointer; color: var(--denim); font-weight: 700; font-size: .9rem; }
.attach-label input { display: block; margin-top: 8px; width: 100%; }
.attach-list { list-style: none; margin: 10px 0 0; }
.attach-item { display: flex; justify-content: space-between; align-items: center; background: var(--blue-50); border-radius: 8px; padding: 6px 12px; margin-bottom: 6px; font-size: .85rem; font-weight: 600; }
.attach-remove { border: 0; background: none; color: var(--danger, #c0392b); font-size: 1.1rem; cursor: pointer; padding: 0 4px; }
.attach-error { color: #c0392b; font-size: .85rem; margin-bottom: 6px; }
.attach-hint { font-size: .78rem; color: var(--muted); margin: 8px 0 0; }

/* ============ footer social ============ */
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: #b9c3dc;
  display: inline-flex; align-items: center; justify-content: center; transition: all .18s ease;
}
.social-link:hover { background: var(--denim); color: #fff; }
.social-link svg path { fill: currentColor; }

/* ============ customer service widget ============ */
.cw-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 300; width: 58px; height: 58px; border-radius: 50%;
  border: 0; background: linear-gradient(135deg, var(--denim), var(--indigo-700)); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(29,48,87,.4);
  transition: transform .18s ease;
}
.cw-launcher:hover { transform: scale(1.06); }
.cw-badge {
  position: absolute; top: -2px; right: -2px; background: #e74c3c; color: #fff; font-size: .72rem; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.cw-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 300; width: 360px; max-width: calc(100vw - 40px);
  background: #fff; border-radius: 16px; box-shadow: 0 24px 64px rgba(16,24,43,.35); overflow: hidden;
  display: flex; flex-direction: column; max-height: 560px; height: min(560px, calc(100vh - 130px));
}
.cw-panel[hidden] { display: none; }
.cw-head { background: linear-gradient(120deg, var(--indigo-900), var(--indigo-700)); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.cw-head-title { display: flex; align-items: center; gap: 12px; }
.cw-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--indigo-900); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.cw-head-title strong { display: block; font-size: .98rem; }
.cw-status { display: block; font-size: .74rem; color: #9fe6a0; }
.cw-head-actions { display: flex; gap: 6px; align-items: center; }
.cw-icon-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.cw-icon-btn:hover { background: rgba(255,255,255,.28); color: #fff; }
.cw-icon-btn svg path { fill: currentColor; }
.cw-close { background: none; border: 0; color: #cdd7ee; font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 2px 6px; }
.cw-close:hover { color: #fff; }
.cw-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f6f8fc; }
.cw-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
.cw-msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.cw-msg.user { background: var(--denim); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.cw-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 4px; background: #f6f8fc; }
.cw-chip { border: 1.5px solid var(--denim); color: var(--denim); background: #fff; border-radius: 16px; padding: 5px 12px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.cw-chip:hover { background: var(--blue-50); }
.cw-input-row { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.cw-input-row input { flex: 1; border: 1.5px solid var(--line); border-radius: 20px; padding: 9px 16px; font: inherit; font-size: .92rem; }
.cw-input-row input:focus { outline: none; border-color: var(--denim); }
.cw-send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--denim); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cw-send svg path { fill: currentColor; }
.cw-foot { text-align: center; font-size: .72rem; color: var(--muted); padding: 6px; background: #fff; }

/* ---------- legal / policy pages ---------- */
.legal { max-width: 820px; margin: 0 auto; color: var(--ink); }
.legal-meta { color: var(--muted); font-size: .88rem; margin-bottom: 22px; }
.legal h2 { margin: 34px 0 10px; font-size: 1.24rem; }
.legal h2:first-of-type { margin-top: 26px; }
.legal h3 { margin: 20px 0 8px; font-size: 1.02rem; }
.legal p { margin: 0 0 14px; line-height: 1.72; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; line-height: 1.68; }
.legal a { color: var(--denim); text-decoration: underline; }
.legal-contact { list-style: none; padding-left: 0; }
.legal-note { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; gap: 30px; }
}
