/*
Theme Name: usfans Spreadsheet Bloom
Theme URI: https://sheetcn.com/
Author: usfans Spreadsheet
Author URI: https://sheetcn.com/
Description: Photo-led SEO theme for the usfans Spreadsheet: real shopping and delivery photography, round product-photo category icons, a category dropdown, a Guide dropdown, 1688 / Taobao / Weidian / Pinduoduo guides, SEO meta and JSON-LD schema.
Version: 5.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: usfans-spreadsheet-v5
Tags: one-column, custom-menu, custom-logo, featured-images, blog, e-commerce
*/

/* ---------------------------------------------------------
   1. Design tokens
--------------------------------------------------------- */
:root {
  --ink: #1e2330;
  --ink-soft: #3b4356;
  --muted: #6b7488;
  --line: #e6eaf2;
  --bg: #fbfcff;
  --bg-alt: #f4f7fd;
  --card: #ffffff;

  --coral: #e8578a;
  --coral-deep: #c93d70;
  --mint: #46c4a5;
  --sky: #6aa9ff;
  --lilac: #a58bfa;
  --butter: #ffc95c;
  --peach: #f8c6d7;
  --rose: #ffa8c5;
  --teal: #5cc9d8;

  --grad-warm: linear-gradient(135deg, #f59ab8 0%, #e8578a 55%, #c93d70 100%);
  --grad-cool: linear-gradient(135deg, #7cc2ff 0%, #6aa9ff 55%, #8f8bff 100%);
  --grad-soft: linear-gradient(135deg, #f3f7ff 0%, #f4fbff 45%, #f2fbf7 100%);

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;

  --shadow-sm: 0 2px 6px rgba(30, 35, 48, .05);
  --shadow: 0 12px 30px rgba(30, 35, 48, .07);
  --shadow-lg: 0 24px 60px rgba(30, 35, 48, .11);

  --wrap: 1180px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------
   2. Reset & base
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--coral-deep); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  line-height: 1.24;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .5em; }

strong { color: var(--ink); font-weight: 700; }

blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: #f7faff;
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}

code {
  background: #f1f5fc;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: .92em;
  color: #33415c;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0 1.8em;
  font-size: .96em;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f4f7fd; color: var(--ink); font-weight: 700; font-size: .92em; letter-spacing: .01em; }
tr:last-child td { border-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ---------------------------------------------------------
   3. Layout helpers
--------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--coral-deep);
  background: #fdeef3;
  border-radius: var(--pill);
  padding: 6px 14px;
  margin-bottom: 16px;
}
.section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }

/* ---------------------------------------------------------
   4. Buttons
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--pill);
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--grad-warm);
  color: #fff;
  box-shadow: 0 12px 26px rgba(201, 61, 112, .28);
}
.btn--primary:hover { color: #fff; box-shadow: 0 18px 34px rgba(201, 61, 112, .34); }

.btn--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px rgba(30, 35, 48, .22);
}
.btn--dark:hover { color: #fff; background: #10141d; }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { color: var(--ink); border-color: #d5dced; box-shadow: var(--shadow); }

.btn--sm { padding: 10px 18px; font-size: .87rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------------------------------------------------------
   5. Header & navigation
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: 0 8px 24px rgba(30, 35, 48, .06); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  font-size: 1.06rem;
  color: var(--ink);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--grad-warm);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(201, 61, 112, .26);
  flex: 0 0 auto;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { margin: 0; position: relative; }
.nav > ul > li > a,
.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--pill);
  font-size: .94rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.nav > ul > li > a:hover,
.nav > ul > li.is-open > a,
.nav > ul > li.is-open > .nav-toggle-label,
.nav > ul > li.current-menu-item > a { color: var(--ink); background: #f3f6fd; }

.nav .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }

/* Caret for submenu parents, whether the menu comes from the fallback or
   from a user-assigned menu (menu-item-has-children gets .has-sub via PHP). */
.nav > ul > li.has-sub > a::after,
.nav > ul > li.has-sub > .nav-toggle-label::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
  transition: transform .18s ease;
}
.nav > ul > li.has-sub.is-open > a::after,
.nav > ul > li.has-sub.is-open > .nav-toggle-label::after { transform: rotate(-135deg) translateY(-2px); }

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 100;
}
/* Any descendant list inside the nav behaves like a dropdown too. */
.nav > ul > li > ul.sub-menu { list-style: none; margin: 0; padding: 10px; }
.submenu--wide { min-width: 460px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.submenu li { margin: 0; }
.submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: normal;
}
.submenu a:hover { background: #f5f8fe; color: var(--ink); }
.submenu a span { display: block; font-size: .76rem; font-weight: 600; color: var(--muted); margin-top: 2px; }

@media (hover: hover) {
  .nav li:hover > .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
}
.nav li.is-open > .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.header-cta { margin-left: 8px; }
.nav-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 940px) {
  .nav-burger { display: flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    inset: 74px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 18px 20px;
    display: none;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav > ul > li > a, .nav-toggle-label { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 1rem; }
  .submenu, .submenu--wide {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    padding: 2px 0 6px 10px;
    margin: 2px 0 8px 10px;
    min-width: 0;
    display: none;
    grid-template-columns: 1fr;
  }
  .nav li.is-open > .submenu { display: grid; }
  .nav li:hover > .submenu { transform: none; }
}

/* ---------------------------------------------------------
   6. Hero
--------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-soft);
  padding: 78px 0 84px;
  border-bottom: 1px solid #eef2fa;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: .5;
  pointer-events: none;
}
.hero::before {
  width: 460px; height: 460px;
  background: radial-gradient(circle at 30% 30%, #fcdde8, rgba(255, 217, 207, 0));
  top: -160px; right: -80px;
}
.hero::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle at 50% 50%, #d6ecff, rgba(214, 236, 255, 0));
  bottom: -190px; left: -110px;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #e8578a, #c93d70 60%, #a58bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.09rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); display: inline-block; }

.hero-art { position: relative; }
.hero-card {
  background: #fff;
  border-radius: 28px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #fff;
  transform: rotate(-1.4deg);
}
.hero-card-inner { border-radius: 20px; overflow: hidden; background: var(--grad-soft); }
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  font-size: .82rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-badge .pill-mini { background: #e9fbf4; color: #128a68; border-radius: var(--pill); padding: 3px 10px; font-size: .72rem; letter-spacing: .04em; }

@media (max-width: 900px) {
  .hero { padding: 54px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; }
  .hero-badge { left: 0; bottom: -14px; }
}

/* ---------------------------------------------------------
   7. Category grid
--------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  color: inherit;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #dfe6f4; color: inherit; }
.cat-thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(30, 35, 48, .04);
}
.cat-thumb svg { width: 100%; height: 100%; padding: 14px; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cat-body h3 { font-size: 1.06rem; margin: 0; letter-spacing: -.01em; }
.cat-body p { margin: 0; font-size: .84rem; color: var(--muted); }
.cat-link { margin-top: 10px; font-size: .82rem; font-weight: 800; color: var(--coral-deep); display: inline-flex; align-items: center; gap: 6px; }
.cat-card:hover .cat-link { color: var(--ink); }

.c-1 { background: linear-gradient(150deg, #fff1ec, #ffe4dc); }
.c-2 { background: linear-gradient(150deg, #eef5ff, #dfeaff); }
.c-3 { background: linear-gradient(150deg, #f2fbf7, #ddf6ec); }
.c-4 { background: linear-gradient(150deg, #f7f2ff, #ece2ff); }
.c-5 { background: linear-gradient(150deg, #fff8e8, #ffecc6); }
.c-6 { background: linear-gradient(150deg, #fff0f5, #ffdfe9); }
.c-7 { background: linear-gradient(150deg, #eefafc, #d8f2f7); }
.c-8 { background: linear-gradient(150deg, #f5f7fb, #e7ecf6); }

@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .cat-grid { gap: 16px; }
  .cat-body { padding: 14px; }
  .cat-body h3 { font-size: .98rem; }
}

/* ---------------------------------------------------------
   8. Article / prose
--------------------------------------------------------- */
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 46px;
  align-items: start;
}
.prose { max-width: 780px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 2em; padding-top: .2em; }
.prose h3 { margin-top: 1.6em; color: var(--ink); }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.6em 0; }
.prose ul li::marker { color: var(--coral); }
.prose ol li::marker { color: var(--coral); font-weight: 700; }
.prose .lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--peach);
  padding-left: 18px;
  margin-bottom: 1.8em;
}
.prose .callout {
  background: #fffaf0;
  border: 1px solid #ffe6b5;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 2em 0;
}
.prose .callout strong { display: block; margin-bottom: 6px; }
.article-head { margin-bottom: 34px; }
.article-head h1 { margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.article-meta .tag { background: #fdeef3; color: var(--coral-deep); border-radius: var(--pill); padding: 3px 12px; }

.sidebar { position: sticky; top: 98px; display: grid; gap: 20px; }
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.side-card h4 { margin: 0 0 12px; font-size: .84rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li { margin: 0; border-bottom: 1px solid #f1f4fa; }
.side-card li:last-child { border-bottom: 0; }
.side-card li a { display: block; padding: 9px 0; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.side-card li a:hover { color: var(--coral-deep); }
.side-card--cta { background: linear-gradient(160deg, #fff6f9, #fdeef4); border-color: #fcdde8; text-align: center; }
.side-card--cta p { font-size: .88rem; color: var(--ink-soft); }
.side-card--cta .btn { margin-top: 6px; }

@media (max-width: 980px) {
  .article-shell { grid-template-columns: 1fr; gap: 34px; }
  .sidebar { position: static; }
}

/* ---------------------------------------------------------
   9. Guide cards
--------------------------------------------------------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  color: inherit;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.guide-num {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 900; font-size: .9rem; color: #fff;
  margin-bottom: 16px;
}
.guide-card:nth-child(6n+1) .guide-num { background: var(--coral); }
.guide-card:nth-child(6n+2) .guide-num { background: var(--sky); }
.guide-card:nth-child(6n+3) .guide-num { background: var(--mint); }
.guide-card:nth-child(6n+4) .guide-num { background: var(--lilac); }
.guide-card:nth-child(6n+5) .guide-num { background: var(--butter); color: #6b4a00; }
.guide-card:nth-child(6n+6) .guide-num { background: var(--teal); }
.guide-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.guide-card p { font-size: .87rem; color: var(--muted); margin: 0 0 14px; flex: 1; }
.guide-more { font-size: .82rem; font-weight: 800; color: var(--coral-deep); }

@media (max-width: 980px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   10. CTA band
--------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: #1e2330;
  color: #c9d1e0;
  border-radius: 28px;
  padding: 54px 46px;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 34px;
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #aab4c7; margin: 0 0 22px; max-width: 560px; }
.cta-band::after {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  right: -100px; top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 87, 138, .35), rgba(232, 87, 138, 0) 70%);
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
}

/* ---------------------------------------------------------
   11. Steps / trust strip
--------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.step .n {
  width: 30px; height: 30px; border-radius: 9px;
  background: #eef5ff; color: #2b64c9;
  display: grid; place-items: center;
  font-weight: 900; font-size: .82rem; margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .87rem; color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   12. FAQ
--------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--coral); font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; font-size: .94rem; color: var(--ink-soft); }

/* ---------------------------------------------------------
   13. Footer
--------------------------------------------------------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0 0 8px; }
.footer-grid a { font-size: .89rem; color: var(--ink-soft); font-weight: 600; }
.footer-grid a:hover { color: var(--coral-deep); }
.footer-about p { font-size: .89rem; color: var(--muted); max-width: 320px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--muted);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   14. Breadcrumb, pagination, misc
--------------------------------------------------------- */
.crumbs { font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--coral-deep); }
.crumbs span { margin: 0 7px; opacity: .5; }

.page-hero { background: var(--grad-soft); padding: 46px 0 40px; border-bottom: 1px solid #eef2fa; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--muted); max-width: 700px; margin: 0; }

.post-nav { display: flex; gap: 16px; margin-top: 46px; }
.post-nav a {
  flex: 1;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  font-size: .88rem; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.post-nav a small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.post-nav a:hover { border-color: #dfe6f4; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-numbers {
  padding: 9px 15px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--ink-soft);
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }

.notice {
  background: #eef8ff;
  border: 1px solid #cde8ff;
  color: #245b96;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .88rem;
  margin: 0 0 22px;
}

/* ---------------------------------------------------------
   15. Per-category dropdown select (hero)
--------------------------------------------------------- */
.cat-select-wrap { max-width: 420px; margin-top: 8px; }
.cat-select-label { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.cat-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7488' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 14px 46px 14px 20px;
  font-family: inherit;
  font-size: .94rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.cat-select:focus-visible { outline: 3px solid #cfe2ff; outline-offset: 2px; }

/* ---------------------------------------------------------
   16. Responsive type & spacing
--------------------------------------------------------- */
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 2rem; }
  .cta-band { border-radius: 22px; }
  .article-shell { gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   PRO 2.0 — photo hero, product icons, platforms, photo band
========================================================= */

/* Photo hero: real shopping photo with a soft light wash on the left so
   the text panel stays readable while the photo stays bright. */
.hero--photo {
  padding: 0;
  background: #f4f6fb var(--hero-bg) center right / cover no-repeat;
  border-bottom: 0;
}
.hero--photo::before, .hero--photo::after { display: none; }
.hero-photo-inner {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero--photo .hero-photo-inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -50vw;
  width: calc(50vw + 62%);
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 55%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.hero-panel { position: relative; max-width: 600px; }
.hero-panel h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.hero-panel .cat-select-wrap { margin-bottom: 22px; }

@media (max-width: 860px) {
  .hero--photo { background-position: 70% center; }
  .hero-photo-inner { min-height: 0; padding-top: 48px; padding-bottom: 48px; }
  .hero--photo .hero-photo-inner::before { inset: 0 -16px; width: auto; background: rgba(255,255,255,.88); }
}

/* Round product-photo category icons */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
}
.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 10px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.icon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #fbd5e2; color: var(--ink); }
.icon-ring {
  width: 96px; height: 96px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #f8c6d7, #e8578a 50%, #a58bfa);
  margin-bottom: 14px;
}
.icon-ring .cat-icon {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}
.icon-name { font-weight: 800; font-size: .95rem; line-height: 1.25; }
.icon-label { font-size: .76rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }

@media (max-width: 1100px) { .icon-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) {
  .icon-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .icon-ring { width: 80px; height: 80px; }
}

/* Sidebar category list with mini icons */
.side-icons a { display: flex !important; align-items: center; gap: 10px; }
.side-icons .cat-icon { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }

/* Platforms */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.platform-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--coral);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.platform-card h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.platform-card p { font-size: .88rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.platform-tag {
  align-self: flex-start;
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--pill);
  background: #fdeef3; color: var(--coral-deep);
}
.platform--1688 { border-top-color: #ff9f43; }
.platform--1688 .platform-tag { background: #fff4e6; color: #b85c00; }
.platform--taobao { border-top-color: #ff6a3d; }
.platform--weidian { border-top-color: #6aa9ff; }
.platform--weidian .platform-tag { background: #eef5ff; color: #2b64c9; }
.platform--pinduoduo { border-top-color: #46c4a5; }
.platform--pinduoduo .platform-tag { background: #e9fbf4; color: #128a68; }
@media (max-width: 980px) { .platform-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .platform-grid { grid-template-columns: 1fr; } }

/* Split section with packing photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; }
.steps--stack { grid-template-columns: 1fr 1fr; margin-top: 20px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 560px) { .steps--stack { grid-template-columns: 1fr; } }

/* Delivery photo band */
.photo-band {
  background: #e9eef6 var(--band-bg) center / cover no-repeat;
  padding: 110px 0;
}
.photo-band-card {
  max-width: 560px;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.photo-band-card h2 { margin-bottom: 12px; }
.photo-band-card p { color: var(--ink-soft); margin-bottom: 22px; }
@media (max-width: 720px) { .photo-band { padding: 64px 0; } .photo-band-card { padding: 26px; } }

.article-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* =========================================================
   BLOOM 5.0 — shopper on the left, text panel on the right.
========================================================= */
.hero--photo { background-position: left center; }
.hero-photo-inner { justify-content: flex-end; }
.hero--photo .hero-photo-inner::before {
  inset: 0 -50vw 0 auto;
  width: calc(50vw + 62%);
  background: linear-gradient(270deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 55%, rgba(255,255,255,0) 100%);
}
.photo-band { background-position: center bottom; }
@media (max-width: 860px) {
  .hero--photo { background-position: 25% center; }
  .hero-photo-inner { justify-content: flex-start; }
  .hero--photo .hero-photo-inner::before { inset: 0 -16px; width: auto; background: rgba(255,255,255,.88); }
}

.photo-band { background-position: center center; }
