/* Preview of 《2025 中国快闪店行业白皮书》 — not the live site */
:root {
  --ink: #0b1b24;
  --ink-2: #1c2c35;
  --muted: #5c6b73;
  --line: #d7dcde;
  --paper: #fbfbf9;
  --paper-2: #f3f5f4;
  --cyan: #00a0e0;
  --cyan-deep: #0078a8;
  --accent: #00a3e0;
  --site-blue: #536dfe;
  --white: #fff;
  --caution: #8a5a12;
  --max: 1080px;
  --navw: 252px;
  --font: "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --serif: "Noto Serif CJK SC", "Noto Serif SC", "Songti SC", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan); }

/* Preview ribbon — must not be mistaken for a live page */
.preview-banner {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #f3e3b0;
  color: #3d2e08;
  border-bottom: 1px solid #e0c56a;
  font-size: 13px;
  line-height: 1.45;
  padding: 8px 20px;
  text-align: center;
}
.preview-banner strong { letter-spacing: 0.06em; }
.preview-banner code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: var(--ink);
  color: #e8eef0;
}
.site-bar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.site-bar .brand img { width: 92px; height: auto; filter: brightness(0) invert(1); }
.site-bar .brand .name {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa7ad;
}
.site-bar .brand .name em { font-style: normal; color: #fff; letter-spacing: 0.02em; text-transform: none; display: block; font-size: 14px; }
.site-bar .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: var(--cyan);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { color: var(--ink); background: #32b4e8; }
.btn-ghost {
  background: transparent;
  color: #e8eef0;
  border-color: #3a4a52;
}
.btn-ghost:hover { color: #fff; border-color: #9aa7ad; background: transparent; }

.layout { display: grid; grid-template-columns: var(--navw) minmax(0, 1fr); min-width: 0; }
.report, .hero, .part { min-width: 0; }

.toc-rail {
  position: sticky;
  top: 42px;
  align-self: start;
  height: calc(100vh - 42px);
  overflow: auto;
  padding: 24px 16px 48px 20px;
  border-right: 1px solid var(--line);
  background: #f6f7f6;
  font-size: 12.5px;
  line-height: 1.45;
}
.toc-rail h2 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.toc-rail ol { list-style: none; margin: 0; padding: 0; }
.toc-rail a { color: var(--ink-2); text-decoration: none; display: block; padding: 4px 0; }
.toc-rail a:hover, .toc-rail a.active { color: var(--cyan-deep); }
.toc-rail .toc-part {
  margin: 14px 0 4px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.toc-rail .l2 { padding-left: 10px; color: #3f5159; }

.report { max-width: min(var(--max), 100%); width: 100%; margin: 0 auto; padding: 0 36px 80px; box-sizing: border-box; overflow-x: hidden; }

/* Hero */
.hero {
  background: var(--ink);
  color: #f4f7f8;
  margin: 0 -36px;
  padding: 72px 36px 56px;
  position: relative;
  overflow: hidden;
}
.hero .kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 48px;
}
.hero .kicker span:last-child { color: #8b9aa1; letter-spacing: 0.12em; }
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}
.hero .year {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: #c5d0d5;
  margin: 0 0 20px;
}
.hero .rule { width: 72px; height: 3px; background: var(--cyan); margin: 0 0 28px; border: 0; }
.hero .dek {
  font-size: 18px;
  line-height: 1.7;
  max-width: min(28em, 100%);
  color: #d5dee2;
  margin: 0 0 48px;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #2a3b44;
}
.kpi { padding: 22px 18px 8px 0; border-right: 1px solid #2a3b44; min-width: 0; }
.kpi:last-child { border-right: 0; padding-right: 0; }
.kpi .num { font-size: 28px; font-weight: 600; color: var(--cyan); letter-spacing: 0.01em; }
.kpi .num small { font-size: 14px; font-weight: 500; margin-left: 2px; color: var(--cyan); }
.kpi .lab { font-size: 13px; color: #c5d0d5; margin-top: 6px; line-height: 1.5; overflow-wrap: anywhere; }
.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  font-size: 13px;
  color: #9aa7ad;
  letter-spacing: 0.04em;
}
.hero-cover-link { margin-top: 28px; }
.hero-cover-link a { color: #c5d0d5; font-size: 13px; }

/* Sections */
section { padding: 56px 0 8px; }
section > h1, section > h2.chapter-title {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.chapter-kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: none;
  color: var(--cyan-deep);
  font-weight: 600;
  margin: 0 0 8px;
}
.rule-cyan { width: 56px; height: 3px; background: var(--cyan); border: 0; margin: 0 0 24px; }
.lead, p.lead { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
p { margin: 0 0 1.05em; }
h3 {
  font-size: 22px;
  line-height: 1.35;
  margin: 36px 0 14px;
  font-weight: 700;
  color: var(--cyan-deep);
}
h4 { font-size: 18px; margin: 28px 0 10px; font-weight: 700; }

.know-list { counter-reset: know; list-style: none; padding: 0; margin: 16px 0 28px; }
.know-list li { display: grid; grid-template-columns: 42px 1fr; gap: 10px; margin: 0 0 14px; }
.know-list li::before {
  counter-increment: know;
  content: counter(know, decimal-leading-zero);
  color: var(--cyan-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.grades { display: grid; gap: 6px; margin: 12px 0 28px; }
.grade { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.grade b { color: var(--cyan-deep); }

.meta-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Citation box */
.cite-box {
  background: #eef7fb;
  border: 1px solid #c5e3f0;
  border-left: 4px solid var(--cyan);
  padding: 22px 24px;
  margin: 32px 0;
}
.cite-box h2, .cite-box h3 { margin: 0 0 8px; color: var(--ink); font-size: 16px; letter-spacing: 0.08em; }
.cite-box .cite {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 8px;
  color: var(--ink);
}
.cite-box p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* Judgments */
.judgments { display: grid; gap: 18px; }
.judgment {
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px 22px 16px;
  scroll-margin-top: 72px;
}
.judgment .no {
  color: var(--cyan-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 4px;
}
.judgment h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.judgment p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Part divider */
.part {
  margin: 64px -36px 24px;
  background: var(--ink) center/cover no-repeat;
  color: #f4f7f8;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 36px 40px;
  position: relative;
}
.part .part-id {
  font-size: clamp(80px, 18vw, 160px);
  font-weight: 700;
  line-height: 0.8;
  color: rgba(255,255,255,0.06);
  position: absolute;
  right: 24px;
  top: 16px;
}
.part .eyebrow { color: var(--cyan); letter-spacing: 0.16em; font-size: 12px; margin-bottom: 10px; }
.part h2 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 12px; line-height: 1.25; }
.part p { margin: 0; max-width: 28em; color: #c5d0d5; }

/* Figures & tables */
figure.report-fig {
  margin: 28px 0 32px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px 16px 14px;
}
figure.report-fig img { width: 100%; background: #fff; }
figure.report-fig figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.55;
}
figure.report-fig figcaption strong { color: var(--cyan-deep); font-weight: 650; margin-right: 6px; }

.table-wrap { display: block; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 28px; border: 1px solid var(--line); background: #fff; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  min-width: 560px;
}
table.data th, table.data td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
table.data th {
  background: #f3f7f9;
  color: var(--cyan-deep);
  font-weight: 650;
  font-size: 13px;
}
table.data tr:last-child td { border-bottom: 0; }
table.data .num { font-variant-numeric: tabular-nums; }
.table-cap {
  font-size: 13px;
  color: var(--cyan-deep);
  font-weight: 650;
  margin: 24px 0 6px;
}
.table-note, .fig-note, .source {
  font-size: 12.5px;
  color: var(--muted);
  margin: -16px 0 28px;
  line-height: 1.55;
}

.callout {
  background: #f3f9fc;
  border-left: 3px solid var(--cyan);
  padding: 16px 18px;
  margin: 20px 0 24px;
}
.callout .cap { font-weight: 700; color: var(--cyan-deep); margin: 0 0 6px; font-size: 14px; }
.callout p:last-child { margin-bottom: 0; }
.judgment-inline {
  background: #f7f8f8;
  border-left: 3px solid var(--cyan);
  padding: 18px 20px;
  margin: 22px 0 28px;
}
.judgment-inline .cap { font-weight: 700; letter-spacing: 0.08em; color: var(--cyan-deep); margin: 0 0 8px; font-size: 13px; }

.formula {
  background: #f3f9fc;
  border-left: 3px solid var(--cyan);
  padding: 16px 18px;
  margin: 16px 0 24px;
  overflow-x: auto;
}
.formula .cap { font-weight: 700; color: var(--cyan-deep); margin: 0 0 8px; }
.formula .eq { font-size: 15.5px; font-weight: 600; letter-spacing: 0.01em; }

.toc-page { columns: 2; gap: 36px; margin: 12px 0 8px; }
.toc-page a { color: inherit; text-decoration: none; display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dotted transparent; }
.toc-page a:hover { color: var(--cyan-deep); border-bottom-color: #c5e3f0; }
.toc-page .toc-h { font-weight: 700; margin-top: 10px; }
.toc-page .toc-s { padding-left: 1em; color: #3f5159; font-size: 14px; }

footer.report-foot {
  margin: 48px -36px 0;
  padding: 28px 36px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
footer.report-foot strong { color: var(--ink-2); }

#about, #toc, #preface, #judgments, #guide, #cite,
[id^="chapter-"], [id^="part-"], [id^="appendix-"], [id^="judgment-"] {
  scroll-margin-top: 72px;
}

@media (max-width: 980px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .layout { grid-template-columns: minmax(0, 1fr); min-width: 0; width: 100%; }
  .toc-rail { display: none; }
  .site-bar { flex-wrap: wrap; padding: 10px 16px; }
  .site-bar .brand .name { display: none; }
  .site-bar .actions { margin-left: auto; }
  .btn { padding: 7px 10px; font-size: 12px; }
  .report {
    padding: 0 20px 64px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .hero, .part, footer.report-foot {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
    box-sizing: border-box;
  }
  .hero { overflow-x: hidden; overflow-y: visible; }
  .hero .dek {
    font-size: 16px;
    line-height: 1.75;
    width: 100%;
    max-width: 100%;
    margin: 0 0 32px;
    -webkit-line-clamp: unset;
    max-height: none;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .kpi { border-bottom: 1px solid #2a3b44; padding: 16px 12px 10px 0; min-width: 0; }
  .kpi .num { font-size: 20px; overflow-wrap: anywhere; }
  .toc-page { columns: 1; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 36px; line-height: 1.2; }
  section > h1, section > h2.chapter-title { font-size: 28px; }
}
@media print {
  .preview-banner, .toc-rail, .site-bar .actions { display: none !important; }
  .layout { display: block; }
  .hero, .part { break-inside: avoid; }
  body { background: #fff; }
}
