/* ==========================================================================
   colorful standalone — 262love.com 专题页
   ========================================================================== */

:root {
  --cfx-bg: #fffaf4;
  --cfx-surface: #ffffff;
  --cfx-ink: #2b2140;
  --cfx-ink-2: #4a3f63;
  --cfx-muted: #776d8b;
  --cfx-line: rgba(43, 33, 64, .1);
  --cfx-pink: #ff8fab;
  --cfx-purple: #845ef7;
  --cfx-orange: #ffa94d;
  --cfx-teal: #20c997;
  --cfx-yellow: #ffd43b;
  --cfx-radius: 24px;
  --cfx-shadow: 0 18px 50px rgba(90, 60, 120, .13);
  --cfx-wrap: 1120px;
  --cfx-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.cfx-body {
  margin: 0; font-family: var(--cfx-font); font-size: 16px; line-height: 1.75;
  color: var(--cfx-ink); background: var(--cfx-bg);
  background-image:
    radial-gradient(ellipse 46% 30% at 6% 0%, rgba(255,143,171,.16), transparent 65%),
    radial-gradient(ellipse 42% 28% at 96% 6%, rgba(132,94,247,.1), transparent 65%);
  overflow-x: hidden;
}
.cfx-body img { max-width: 100%; display: block; }
.cfx-body a { color: inherit; }
.cfx-body h1, .cfx-body h2, .cfx-body h3 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.cfx-body p { margin: 0; }
.cfx-body ul, .cfx-body ol { margin: 0; padding: 0; }
.cfx-body li { list-style: none; }
.cfx-wrap { width: min(100% - 40px, var(--cfx-wrap)); margin: 0 auto; }

/* header */
.cfx-header { position: sticky; top: 10px; z-index: 50; padding-top: 4px; }
.cfx-header-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  min-height: 68px; padding: 8px 18px;
  background: rgba(255,250,244,.93); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--cfx-line); border-radius: 999px; box-shadow: 0 8px 24px rgba(90,60,120,.08);
}
.cfx-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.cfx-brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 16px 16px 16px 6px;
  background: linear-gradient(135deg, var(--cfx-purple), var(--cfx-pink)); color: #fff;
  font-size: 1.25rem; font-weight: 900; box-shadow: 0 8px 18px rgba(132,94,247,.3);
}
.cfx-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.cfx-brand strong { font-size: 1rem; }
.cfx-brand small { color: var(--cfx-muted); font-size: .72rem; }
.cfx-header-phone { text-align: right; }
.cfx-header-phone span { display: block; color: var(--cfx-muted); font-size: .66rem; }
.cfx-header-phone a { color: #5f3dc4; font-size: 1.02rem; font-weight: 900; text-decoration: none; }

/* hero */
.cfx-hero { position: relative; overflow: hidden; padding: 62px 0 66px; }
.cfx-hero-blob { position: absolute; border-radius: 50%; filter: blur(46px); pointer-events: none; }
.cfx-hero-blob-a { width: 360px; height: 360px; left: -120px; top: 0; background: rgba(255,143,171,.26); }
.cfx-hero-blob-b { width: 380px; height: 380px; right: -130px; bottom: -100px; background: rgba(132,94,247,.16); }
.cfx-hero-inner { position: relative; z-index: 1; }
.cfx-hero-image::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255,250,244,.94), rgba(255,250,244,.68)), var(--cfx-hero-img); background-size: cover; background-position: center; }
.cfx-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #ffe3ec; color: #b02a53; font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.cfx-hero h1 { margin: 16px 0 14px; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.04; background: linear-gradient(100deg, #4c2f8f, var(--cfx-purple) 45%, var(--cfx-pink) 75%, var(--cfx-orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cfx-sub { max-width: 760px; color: var(--cfx-ink-2); font-size: 1.02rem; }
.cfx-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.cfx-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.cfx-btn:hover { transform: translateY(-2px); }
.cfx-btn-primary { background: linear-gradient(100deg, var(--cfx-purple), var(--cfx-pink) 55%, var(--cfx-orange)); color: #fff; box-shadow: 0 14px 30px rgba(132,94,247,.28); }
.cfx-btn-ghost { background: #fff; color: var(--cfx-ink); box-shadow: 0 8px 24px rgba(90,60,120,.08); }
.cfx-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 980px; }
.cfx-points li { padding: 14px 16px; background: #fff; border-radius: 18px; box-shadow: 0 8px 24px rgba(90,60,120,.07); color: var(--cfx-ink-2); font-size: .84rem; }
.cfx-points strong { display: block; color: var(--cfx-ink); font-size: .9rem; margin-bottom: 2px; }

/* sections */
.cfx-section { padding: 56px 0; }
.cfx-content { padding-top: 42px; }
.cfx-prose { color: var(--cfx-ink-2); font-size: .97rem; }
.cfx-prose h2 { margin: 30px 0 12px; font-size: 1.5rem; color: var(--cfx-ink); }
.cfx-prose h3 { margin: 22px 0 8px; font-size: 1.18rem; color: var(--cfx-ink); }
.cfx-prose h4 { margin: 20px 0 8px; font-size: 1.02rem; color: var(--cfx-ink); }
.cfx-prose p { margin: 0 0 14px; }
.cfx-prose ul, .cfx-prose ol { margin: 0 0 16px 22px; }
.cfx-prose ul li { list-style: disc; margin-bottom: 6px; }
.cfx-prose ol li { list-style: decimal; margin-bottom: 6px; }
.cfx-prose a { color: var(--cfx-purple); font-weight: 600; }
.cfx-prose blockquote { margin: 20px 0; padding: 16px 20px; border-radius: 16px; background: #ffe3ec; border-left: 4px solid var(--cfx-pink); }
.cfx-prose img { border-radius: 18px; margin: 16px 0; }
.cfx-prose strong { color: var(--cfx-ink); }

.cfx-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; padding: 24px; border-radius: 22px; background: linear-gradient(110deg, #f3edff, #ffe3ec); }
.cfx-cta strong { display: block; font-size: 1.08rem; }
.cfx-cta p { color: var(--cfx-ink-2); font-size: .85rem; margin-top: 4px; }
.cfx-cta a { display: inline-flex; padding: 11px 20px; border-radius: 999px; background: linear-gradient(100deg, var(--cfx-purple), var(--cfx-pink)); color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }

.cfx-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.cfx-section-head h2 { margin-top: 8px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cfx-section-head > p { color: var(--cfx-muted); font-size: .82rem; }
.cfx-articles { padding-top: 34px; }

/* article grid */
.cfx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cfx-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--cfx-radius); background: #fff; box-shadow: 0 8px 24px rgba(90,60,120,.07); transition: transform .2s ease, box-shadow .2s ease; }
.cfx-card:hover { transform: translateY(-4px); box-shadow: var(--cfx-shadow); }
.cfx-card.cfx-color-0 { background: #ffe3ec; }
.cfx-card.cfx-color-1 { background: #d0ebff; }
.cfx-card.cfx-color-2 { background: #d3f9d8; }
.cfx-card-media { display: block; margin: 8px 8px 0; overflow: hidden; border-radius: 18px; }
.cfx-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cfx-card-body { display: flex; flex-direction: column; gap: 7px; padding: 15px 18px 20px; flex: 1; }
.cfx-card-body time { color: var(--cfx-muted); font-size: .72rem; font-weight: 700; }
.cfx-card-body h3 { font-size: 1rem; }
.cfx-card-body h3 a { text-decoration: none; }
.cfx-card-body h3 a:hover { color: #5f3dc4; }
.cfx-card-body p { color: var(--cfx-ink-2); font-size: .82rem; }
.cfx-card-link { margin-top: auto; color: #5f3dc4; font-size: .8rem; font-weight: 800; text-decoration: none; }
.cfx-empty { padding: 20px; background: #fff; border-radius: 18px; color: var(--cfx-muted); }

/* pagination */
.cfx-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.cfx-page-btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--cfx-ink-2); font-size: .8rem; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(90,60,120,.08); }
.cfx-page-btn:hover { background: #e5dbff; color: #5f3dc4; }
.cfx-page-btn.current { background: linear-gradient(100deg, var(--cfx-purple), var(--cfx-pink)); color: #fff; }
.cfx-page-btn.disabled { opacity: .4; }

/* article detail */
.cfx-article { padding: 46px 0 66px; }
.cfx-article-inner { max-width: 900px; }
.cfx-crumb { margin-bottom: 12px; color: var(--cfx-muted); font-size: .78rem; }
.cfx-crumb a { color: #5f3dc4; text-decoration: none; }
.cfx-article h1 { margin: 6px 0 10px; font-size: clamp(1.9rem, 3.8vw, 3rem); }
.cfx-meta { margin-bottom: 20px; color: var(--cfx-muted); font-size: .8rem; }
.cfx-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 8px solid #fff; border-radius: 28px; box-shadow: var(--cfx-shadow); margin-bottom: 24px; }
.cfx-related { margin-top: 44px; }
.cfx-related h2 { margin-bottom: 20px; font-size: 1.5rem; }

/* footer */
.cfx-footer { padding: 30px 0 36px; background: linear-gradient(180deg, #fff6ec, #fff0f5); border-top: 1px solid var(--cfx-line); }
.cfx-friendlinks-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--cfx-line); font-size: .76rem; }
.cfx-friendlinks-inner span { color: #5f3dc4; font-weight: 800; }
.cfx-friendlinks-inner a { color: var(--cfx-muted); text-decoration: none; }
.cfx-friendlinks-inner a:hover { color: #5f3dc4; }
.cfx-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.cfx-footer strong { font-size: 1rem; }
.cfx-footer p { color: var(--cfx-muted); font-size: .78rem; }
.cfx-footer-right { text-align: right; }
.cfx-footer-right a { color: #5f3dc4; font-size: 1.2rem; font-weight: 900; text-decoration: none; }

/* responsive */
@media (max-width: 900px) {
  .cfx-grid { grid-template-columns: 1fr 1fr; }
  .cfx-points { grid-template-columns: 1fr; }
  .cfx-section-head { display: block; }
  .cfx-section-head > p { margin-top: 8px; }
}
@media (max-width: 640px) {
  .cfx-wrap { width: min(100% - 28px, var(--cfx-wrap)); }
  .cfx-header { top: 6px; }
  .cfx-header-inner { border-radius: 22px; padding: 8px 14px; }
  .cfx-header-phone span { display: none; }
  .cfx-hero { padding: 42px 0 46px; }
  .cfx-actions .cfx-btn { width: 100%; }
  .cfx-grid { grid-template-columns: 1fr; }
  .cfx-section { padding: 42px 0; }
  .cfx-cta { padding: 18px; }
  .cfx-footer-right { text-align: left; }
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .cfx-hero h1 { background: none; color: var(--cfx-ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cfx-card, .cfx-btn { transition: none; }
}
