/* ==========================================================================
   ILLUSION 星枢档案室 (illusionn.xyz) — Aurora Glass 3D Studio Showroom UI
   All outbound CTAs, buttons, and friend links point to https://illusiong.com/
   ========================================================================== */

:root {
  --bg-deep: #070913;
  --bg-surface: #0d1222;
  --bg-card: rgba(18, 24, 44, 0.78);
  --bg-card-hover: rgba(25, 34, 62, 0.92);
  --bg-elevated: #141c34;
  --border-subtle: rgba(148, 163, 218, 0.14);
  --border-glow: rgba(255, 42, 133, 0.45);
  --border-cyan: rgba(0, 240, 255, 0.38);
  --text-main: #f3f6fc;
  --text-secondary: #a8b4d0;
  --text-muted: #6e7b9b;
  --accent-pink: #ff2a85;
  --accent-pink-hover: #ff4797;
  --accent-cyan: #00f0ff;
  --accent-purple: #7c3aed;
  --accent-gold: #fbbf24;
  --grad-primary: linear-gradient(135deg, #ff2a85 0%, #9333ea 55%, #00d2ff 100%);
  --grad-cta: linear-gradient(135deg, #ff2a85 0%, #e11d48 50%, #7c3aed 100%);
  --grad-surface: radial-gradient(circle at 15% 0%, rgba(255, 42, 133, 0.15), transparent 45%),
                  radial-gradient(circle at 85% 10%, rgba(0, 240, 255, 0.12), transparent 45%);
  --shadow-card: 0 14px 36px -10px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 8px 28px -6px rgba(255, 42, 133, 0.55);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --max-w: 1280px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="light"] {
  --bg-deep: #f4f6fb;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-elevated: #eef2fa;
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-glow: rgba(225, 29, 72, 0.35);
  --border-cyan: rgba(2, 132, 199, 0.35);
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --shadow-card: 0 12px 30px -10px rgba(15, 23, 42, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  background-image: var(--grad-surface);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.65;
  font-size: 15.5px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--accent-pink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus {
  left: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top Announcement Ribbon ---------- */
.top-ribbon {
  background: linear-gradient(90deg, #12172e 0%, #241236 50%, #12172e 100%);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: #e2e8f0;
  padding: 7px 0;
}
.top-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.top-ribbon__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
}
.top-ribbon__badge {
  background: rgba(255, 42, 133, 0.22);
  border: 1px solid rgba(255, 42, 133, 0.5);
  color: #ff85b8;
  font-weight: 700;
  font-size: 11.5px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}
.top-ribbon__links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}
.top-ribbon__links a {
  color: #7dd3fc;
}
.top-ribbon__links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 9, 19, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand__logo {
  height: 38px;
  width: auto;
  border-radius: 6px;
}
.brand__text {
  display: flex;
  flex-direction: column;
}
.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand__sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text-main);
  background: rgba(255, 42, 133, 0.14);
  border: 1px solid rgba(255, 42, 133, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.theme-btn:hover {
  border-color: var(--accent-cyan);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--grad-cta);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-glow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 12px 30px -6px rgba(255, 42, 133, 0.75);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-cyan);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.btn-outline:hover {
  background: rgba(0, 240, 255, 0.12);
  transform: translateY(-1px);
}

/* ---------- Hero Showroom ---------- */
.hero {
  padding: 32px 0 24px;
}
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  min-height: 360px;
}
.hero-media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 18, 34, 0.15) 0%, rgba(13, 18, 34, 0.92) 98%);
}
html[data-theme="light"] .hero-media::after {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.55) 100%);
}
.hero-content {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  font-weight: 700;
}
.hero-content h1 {
  font-size: clamp(23px, 3vw, 33px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.hero-content h1 span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}
.hero-stat span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Search & Keyword Matrix Bar ---------- */
.keyword-bar {
  margin: 8px 0 28px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}
.keyword-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.search-box {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 260px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 16px;
}
.search-box:focus-within {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(255, 42, 133, 0.18);
}
.search-box input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  padding: 6px 0;
}
.search-box button,
.search-box a {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--grad-cta);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.keyword-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.keyword-pills__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-right: 4px;
}
.kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.kw-chip:hover,
.kw-chip--hot {
  border-color: rgba(255, 42, 133, 0.45);
  color: var(--text-main);
  background: rgba(255, 42, 133, 0.14);
}

/* ---------- Section Headers ---------- */
.section-block {
  margin: 34px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-head__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.section-head__kicker {
  font-size: 11.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-pink);
  font-weight: 700;
}
.section-head h2 {
  font-size: clamp(20px, 2.3vw, 25px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head__more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-head__more:hover {
  text-decoration: underline;
}

/* ---------- Topic Hub Grid (6 Pillars) ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.topic-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}
.topic-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
}
.topic-card h3 {
  font-size: 18px;
  font-weight: 800;
}
.topic-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.topic-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 700;
}
.topic-card__link {
  color: var(--accent-pink);
}
.topic-card__ext {
  color: var(--accent-cyan);
}

/* ---------- Filter Tabs ---------- */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-tab {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.filter-tab:hover,
.filter-tab.is-active {
  background: var(--grad-cta);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* ---------- Article Cards Grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 18px 40px -12px rgba(255, 42, 133, 0.35);
}
.post-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #05070f;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.post-card:hover .post-card__thumb img {
  transform: scale(1.05);
}
.post-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge-cat {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(7, 9, 19, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.badge-hot {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 42, 133, 0.9);
  color: #fff;
}
.post-card__body {
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 9px;
}
.post-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__title a:hover {
  color: var(--accent-pink);
}
.post-card__excerpt {
  font-size: 12.8px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.post-card__go {
  font-weight: 700;
  color: var(--accent-pink);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 42, 133, 0.12);
  border: 1px solid rgba(255, 42, 133, 0.3);
}
.post-card__go:hover {
  background: var(--accent-pink);
  color: #fff;
}

/* ---------- Search Engine Keyword Matrix (Baidu / Google / Bing) ---------- */
.serp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.serp-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.serp-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.serp-box__head h3 {
  font-size: 16px;
  font-weight: 800;
}
.serp-box__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.serp-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.serp-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}
.serp-list li a:hover {
  color: var(--text-main);
  background: rgba(255, 42, 133, 0.14);
}
.serp-list li a span:last-child {
  font-size: 12px;
  color: var(--accent-pink);
  font-weight: 700;
}

/* ---------- FAQ Section ---------- */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}
.faq-item h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}
.faq-item p {
  font-size: 13.8px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- Friend Links (All pointing to illusiong.com) ---------- */
.friend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.friend-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.friend-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}
.friend-card strong {
  font-size: 14px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.friend-card span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Article Detail Page ---------- */
.breadcrumb {
  margin: 20px 0 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}
.breadcrumb a:hover {
  color: var(--accent-pink);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}
.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
}
.article-head {
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}
.article-head__cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.article-head h1 {
  font-size: clamp(21px, 2.6vw, 29px);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
}

.conversion-banner {
  margin: 18px 0 24px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.16) 0%, rgba(124, 58, 237, 0.18) 100%);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.conversion-banner__text strong {
  display: block;
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 4px;
}
.conversion-banner__text span {
  font-size: 13.5px;
  color: var(--text-secondary);
}
.conversion-banner__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-cover {
  margin: 0 0 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #05070f;
}
.article-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
}
.article-cover figcaption {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.article-prose {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-main);
}
.article-prose h2,
.article-prose h3,
.article-prose h4 {
  margin: 24px 0 12px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
}
.article-prose h2 {
  font-size: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-pink);
}
.article-prose p {
  margin: 12px 0;
}
.article-prose ul,
.article-prose ol {
  margin: 12px 0 12px 22px;
}
.article-prose li {
  margin: 6px 0;
}
.article-prose img,
.article-prose .article-img {
  border-radius: var(--radius-sm);
  margin: 14px auto;
  border: 1px solid var(--border-subtle);
}
.article-prose a {
  color: var(--accent-cyan);
  font-weight: 700;
  text-decoration: underline;
}
.article-prose blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent-gold);
  background: rgba(251, 191, 36, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.article-prose th,
.article-prose td {
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  text-align: left;
}
.article-prose th {
  background: rgba(255, 255, 255, 0.04);
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 86px;
}
.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.side-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.side-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.side-list li a {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  display: block;
}
.side-list li a:hover {
  color: var(--accent-pink);
}

/* ---------- Pagination ---------- */
.pager {
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pager a,
.pager span {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-size: 13.5px;
  font-weight: 700;
}
.pager span.is-current {
  background: var(--grad-cta);
  color: #fff;
  border-color: transparent;
}
.pager a:hover {
  border-color: var(--accent-pink);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding: 40px 0 32px;
  background: rgba(5, 7, 15, 0.92);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.footer-col h4 {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
}
.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.footer-links a:hover {
  color: var(--accent-pink);
}
.footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12.5px;
}

/* ---------- Floating Right Dock ---------- */
.float-dock {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-dock__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-card);
}
.float-dock__btn--main {
  background: var(--grad-cta);
  color: #fff !important;
  box-shadow: var(--shadow-glow);
}
.float-dock__btn--top {
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .topic-grid,
  .serp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .friend-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 22px 20px;
  }
  .cards-grid,
  .topic-grid,
  .serp-grid,
  .faq-list,
  .friend-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
  .article-main {
    padding: 20px 16px;
  }
}
