/* ============================================================
   Qingmiao Crayons — B2B lead-gen site stylesheet
   Bilingual (EN/ZH), responsive, no external dependencies
   ============================================================ */

:root {
  --ink: #24303a;
  --ink-soft: #46535f;
  --muted: #5f6d79;
  --paper: #eef4ef;            /* 模板浅绿/薄荷底 */
  --card: #ffffff;
  --line: #dce8e0;
  --brand: #e8632b;            /* CTA 橙红 */
  --brand-dark: #c94f1d;
  --blue: #2f8f5b;             /* 主色：品牌绿 */
  --blue-dark: #1f6e46;
  --green: #2e9e5b;
  --gold: #b98a00;
  --ph-bg: #fff3cd;
  --ph-ink: #8a6d00;
  --rainbow: linear-gradient(90deg, #ef5350, #fb8c00, #f2c531, #5cb85c, #2f6fed, #7e57c2);
  --shadow: 0 1px 2px rgba(23, 35, 45, .06), 0 8px 24px -12px rgba(23, 35, 45, .18);
  --radius: 14px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

/* ---------- 全站背景（浅绿遮罩） ---------- */
body {
  background-image: url('../images/web/bg-page.jpg');
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: rgba(238, 244, 239, .93);
  pointer-events: none;
}

/* ---------- 品牌 Logo 图 ---------- */
.brand .logo-img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.footer-logo { width: 96px; height: auto; margin-bottom: 10px; }

/* ---------- 产品实拍图 ---------- */
.prod-photo {
  border-radius: 10px; margin: -26px -26px 18px;
  width: calc(100% + 52px); height: 190px;
  object-fit: cover; display: block;
  background: #eef4ef;
}
.prod-photo-tall { height: 230px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-grid img {
  width: 100%; height: 130px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform .15s ease, box-shadow .15s ease;
}
.photo-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px -6px rgba(23, 35, 45, .3);
  z-index: 2; position: relative;
}

/* 图廊悬停预览大图（右下角浮层） */
.photo-preview {
  position: fixed; right: 24px; bottom: 24px; z-index: 9999;
  display: none; max-width: min(560px, 72vw); max-height: 78vh;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 16px 48px -8px rgba(23, 35, 45, .45);
  pointer-events: none;
}
.photo-preview img {
  width: 100%; height: auto; max-height: 78vh;
  object-fit: contain; display: block; margin: 0;
}
.hero-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%; max-height: 340px; object-fit: cover;
  border: 1px solid var(--line);
}
.fact-photo {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; object-fit: cover; border: 1px solid var(--line);
}

/* 占位符（待填数据） */
.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  border-radius: 4px;
  padding: 0 5px;
  font-weight: 600;
  white-space: nowrap;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header::after {
  content: ""; display: block; height: 4px;
  background: var(--rainbow);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px; max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo-mark { width: 40px; height: 40px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name .en { font-size: 17px; }
.brand-name .zh { font-size: 12px; color: var(--muted); font-weight: 600; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink-soft); font-weight: 600; font-size: 15px;
}
.site-nav a:hover { background: #eef3f8; text-decoration: none; color: var(--ink); }
.site-nav a.active { color: var(--brand); background: #fdeee7; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  font: inherit; font-weight: 700; font-size: 13px;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line); background: var(--card); border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  border: 2px solid transparent; transition: all .15s ease; text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--ink-soft); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #fdeee7; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ---------- hero（模板：21 支彩虹蜡笔横幅背景，浅遮罩透出纹理） ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .62), rgba(255, 255, 255, .72)),
    url('../images/web/crayon-4.jpg') center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 280px at 85% 12%, rgba(47, 143, 91, .08), transparent 70%),
    radial-gradient(420px 260px at 8% 85%, rgba(232, 99, 43, .10), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--blue);
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -.01em; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.hero h1 .accent { color: var(--brand); }
.hero p.lead { font-size: 17px; color: var(--ink-soft); max-width: 560px; margin-bottom: 28px; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.hero-badge { background: rgba(255,255,255,.95); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.hero-panel h3 { font-size: 18px; margin-bottom: 4px; }
.hero-panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.hero-ticks { list-style: none; padding: 0; margin: 0 0 4px; }
.hero-ticks li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-soft);
}
.hero-ticks li:last-child { border-bottom: 0; }
.hero-ticks .tick { color: var(--green); font-weight: 800; flex: none; }

/* ---------- stats band（模板：白底数据卡） ---------- */
.stats-band { background: transparent; }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 28px; padding-bottom: 28px; }
.stat {
  text-align: center; padding: 20px 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
}
.stat .num { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; color: var(--brand); }
.stat .num .rainbow-text {
  background: linear-gradient(90deg, #ff8a65, #ffd54f, #81c784, #64b5f6, #b39ddb);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.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: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .icon { width: 46px; height: 46px; margin-bottom: 14px; }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card-hover:hover { border-color: #f3c9b4; transform: translateY(-2px); transition: all .18s ease; }
.card-accent { border-top: 4px solid; }
.card-accent.red { border-top-color: #ef5350; }
.card-accent.blue { border-top-color: #2f6fed; }
.card-accent.green { border-top-color: #5cb85c; }
.card-accent.gold { border-top-color: #f2c531; }

.prod-card { display: flex; flex-direction: column; }
.prod-visual {
  border-radius: 10px; margin: -26px -26px 18px; height: 150px;
  display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 0 18px 18px;
  background: linear-gradient(180deg, #eef3f8, #dfe7ee);
  position: relative; overflow: hidden;
}
.prod-visual .swatch { width: 26px; border-radius: 13px 13px 3px 3px; box-shadow: 0 3px 6px rgba(0,0,0,.18); }
.prod-visual::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: var(--rainbow);
}
.prod-card ul { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }
.prod-card .btn { margin-top: auto; }

/* ---------- lists & steps ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative; padding: 8px 0 8px 30px; color: var(--ink-soft); font-size: 15px;
  border-bottom: 1px dashed var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #e7f6ec; color: var(--green); font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
}
.steps li::before {
  content: counter(step);
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.steps h4 { margin: 0 0 2px; font-size: 15.5px; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { padding: 13px 16px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.spec-table th { background: #eef4ef; font-weight: 700; color: var(--ink); width: 34%; }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: 0; }
.spec-table td { color: var(--ink-soft); }

/* ---------- 产品左右图文行（模板布局） ---------- */
.product-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px; margin-bottom: 26px;
}
.product-row.flip .product-media { order: 2; }
.product-row .product-media img {
  width: 100%; max-height: 300px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line);
}
.product-row h3 { font-size: 24px; margin-bottom: 10px; }
.product-row .prod-desc { color: var(--muted); font-size: 15px; }
.product-row .spec-table { margin-top: 16px; }
.product-row .btn { margin-top: 18px; }

/* ---------- 认证下载按钮 ---------- */
.btn-download {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  background: #e8632b; color: #fff; font-weight: 700; font-size: 13.5px;
  border: 0; cursor: pointer; text-decoration: none;
}
.btn-download:hover { background: #c94f1d; text-decoration: none; }

/* ---------- pills / badges ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow);
}
.pill::before { content: "🛡"; font-size: 15px; }

/* ---------- cert cards ---------- */
.cert-card { display: flex; gap: 16px; align-items: flex-start; }
.cert-card .cert-ico {
  flex: none; width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; color: #fff; letter-spacing: .03em; text-align: center;
  box-shadow: var(--shadow);
}
.cert-card h3 { font-size: 16.5px; margin-bottom: 4px; }
.cert-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.cert-card .pass-tag {
  display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px;
  background: #fdecea; color: #c0392b; font-size: 12px; font-weight: 800;
}
.cert-card .cert-note {
  display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px;
  background: #e9f0fb; color: var(--blue-dark); font-size: 12px; font-weight: 700;
}
.cert-list { list-style: none; padding: 0; margin: 12px 0 0; }
.cert-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--ink-soft);
}
.cert-list li:last-child { border-bottom: 0; }
.cert-list .pass { color: #c0392b; font-weight: 800; white-space: nowrap; }

/* ---------- CTA banner（白底半透明） ---------- */
.cta-banner {
  background: rgba(255, 255, 255, .82); color: var(--ink); border-radius: 18px;
  padding: 42px 40px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
  border: 1px solid rgba(220, 232, 224, .9);
  box-shadow: var(--shadow);
}
.cta-banner::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--rainbow);
}
.cta-banner h2 { color: var(--ink); margin-bottom: 6px; font-size: clamp(20px, 2.6vw, 27px); }
.cta-banner p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.cta-banner .btn { margin-left: auto; }

/* ---------- forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe;
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid rgba(47, 111, 237, .35); border-color: var(--blue);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.check-row { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 4px 0; }
.check-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); cursor: pointer; }
.check-row input { width: auto; }
.form-ok {
  margin-top: 18px; padding: 13px 16px; border-radius: 10px;
  background: #e7f6ec; color: var(--green); font-weight: 700; font-size: 14.5px;
}
.form-err {
  margin-top: 18px; padding: 13px 16px; border-radius: 10px;
  background: #fdecea; color: #c0392b; font-weight: 700; font-size: 14.5px;
}
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---------- info card ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-soft); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #fdeee7; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.info-list strong { display: block; color: var(--ink); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.info-list a { color: var(--blue); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, #fdf3ec, #f6f8fa); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-top: 54px; padding-bottom: 54px; text-align: center; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0 auto; }

/* ---------- footer（白底半透明） ---------- */
.site-footer {
  background: rgba(255, 255, 255, .82); color: var(--ink-soft); margin-top: 64px;
  border-top: 1px solid rgba(220, 232, 224, .9);
}
.site-footer::before { content: ""; display: block; height: 4px; background: var(--rainbow); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 36px; padding: 44px 20px 30px; max-width: 1120px; margin: 0 auto; }
.site-footer h4 { color: var(--ink); font-size: 15px; margin-bottom: 12px; }
.site-footer p, .site-footer li { font-size: 13.5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: var(--blue); }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); text-align: center; padding: 16px 20px; font-size: 12.5px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .product-row, .product-row.flip { grid-template-columns: 1fr; }
  .product-row.flip .product-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px -18px rgba(0,0,0,.25);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 20px 14px; }
  .site-nav a { padding: 11px 8px; border-bottom: 1px dashed var(--line); border-radius: 0; }
  .header-actions .btn-header-cta { display: none; }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2, .form-grid, .photo-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .cta-banner { padding: 30px 24px; }
  .cta-banner .btn { margin-left: 0; }
}
