/* ============================================================
   Breeze Network Blog — main.css
   Dark tech-editorial / knowledge-base design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-primary:       #0a0e17;
  --bg-secondary:     #0f1623;
  --bg-card:          #141b2d;
  --bg-card-hover:    #1a2235;
  --border:           #1e2d42;
  --border-light:     #243347;
  --text-primary:     #e8edf5;
  --text-secondary:   #8fa3bc;
  --text-muted:       #5a7494;
  --accent-blue:      #00b4d8;
  --accent-cyan:      #48cae4;
  --accent-dark-blue: #0077b6;
  --accent-green:     #06d6a0;
  --accent-orange:    #f77f00;
  --accent-red:       #ef476f;
  --font-sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:        'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --radius:           6px;
  --radius-lg:        10px;
  --shadow:           0 2px 16px rgba(0,0,0,.45);
  --shadow-card:      0 4px 24px rgba(0,0,0,.5);
  --transition:       .18s ease;
  --nav-height:       64px;
  --content-width:    1120px;
  --prose-width:      740px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-cyan); }
ul, ol { padding-left: 1.25rem; }
main { flex: 1; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.text-accent   { color: var(--accent-blue); }
.text-muted    { color: var(--text-muted); }
.text-mono     { font-family: var(--font-mono); }
.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .6rem; border-radius: 4px;
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  line-height: 1.4;
}
.badge-blue   { background: rgba(0,180,216,.15); color: var(--accent-blue); border: 1px solid rgba(0,180,216,.25); }
.badge-cyan   { background: rgba(72,202,228,.15); color: var(--accent-cyan); border: 1px solid rgba(72,202,228,.25); }
.badge-green  { background: rgba(6,214,160,.15);  color: var(--accent-green);  border: 1px solid rgba(6,214,160,.25); }
.badge-orange { background: rgba(247,127,0,.15);  color: var(--accent-orange); border: 1px solid rgba(247,127,0,.25); }
.badge-red    { background: rgba(239,71,111,.15); color: var(--accent-red);    border: 1px solid rgba(239,71,111,.25); }

/* Category-specific badge colors */
.cat-breeze       { background: rgba(0,180,216,.15);  color: var(--accent-blue);   border: 1px solid rgba(0,180,216,.25); }
.cat-clash        { background: rgba(72,202,228,.15); color: var(--accent-cyan);   border: 1px solid rgba(72,202,228,.25); }
.cat-network      { background: rgba(6,214,160,.15);  color: var(--accent-green);  border: 1px solid rgba(6,214,160,.25); }
.cat-streaming    { background: rgba(247,127,0,.15);  color: var(--accent-orange); border: 1px solid rgba(247,127,0,.25); }
.cat-troubleshooting { background: rgba(239,71,111,.15); color: var(--accent-red); border: 1px solid rgba(239,71,111,.25); }

/* ── Status Dot ─────────────────────────────────────────────── */
.status-dot {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--accent-green); letter-spacing: .05em;
}
.status-dot::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent-green); }
  50%       { opacity: .6; box-shadow: 0 0 14px var(--accent-green); }
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(10,14,23,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  height: 100%; gap: 1.5rem;
}
/* Logo */
.nav-logo { display: flex; flex-direction: column; gap: .05rem; flex-shrink: 0; }
.nav-logo-zh {
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
  letter-spacing: .02em; line-height: 1.2;
}
.nav-logo-en {
  font-family: var(--font-mono); font-size: .55rem;
  color: var(--accent-blue); letter-spacing: .12em;
  text-transform: uppercase;
}
/* Nav links */
.nav-links {
  display: none; list-style: none; padding: 0; margin: 0;
  gap: .15rem; align-items: center; flex: 1;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}
.nav-links a {
  display: block; padding: .4rem .65rem;
  font-size: .82rem; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); background: var(--bg-card); }
.nav-links .nav-external a {
  color: var(--accent-blue); border: 1px solid rgba(0,180,216,.3);
  padding: .35rem .75rem; margin-left: .5rem;
}
.nav-links .nav-external a:hover { background: rgba(0,180,216,.1); color: var(--accent-cyan); }
/* Right area */
.nav-right {
  display: flex; align-items: center; gap: .75rem; flex-shrink: 0; margin-left: auto;
}
.nav-status { display: none; }
@media (min-width: 768px) { .nav-status { display: flex; } }
/* Hamburger */
.nav-hamburger {
  display: flex; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
@media (min-width: 1024px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.nav-hamburger:hover span { background: var(--text-primary); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* Mobile menu */
.nav-mobile {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: rgba(10,14,23,.98); backdrop-filter: blur(20px);
  z-index: 999; overflow-y: auto; padding: 1.5rem;
  flex-direction: column; gap: .5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block; padding: .85rem 1rem;
  color: var(--text-secondary); font-size: 1rem; font-weight: 500;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: all var(--transition);
}
.nav-mobile a:hover { color: var(--text-primary); background: var(--bg-card); border-color: var(--border); }
.nav-mobile .nav-ext-mobile {
  margin-top: 1rem; padding: .85rem 1rem;
  color: var(--accent-blue); border: 1px solid rgba(0,180,216,.3);
  border-radius: var(--radius); text-align: center; font-weight: 600;
}

/* ── Grid Background ────────────────────────────────────────── */
.grid-bg {
  position: relative;
  background-image:
    linear-gradient(rgba(0,180,216,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.grid-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,119,182,.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero-inner {
  display: grid; gap: 3rem; align-items: center;
  position: relative; z-index: 1;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 420px; }
}
.hero-eyebrow {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.hero-label {
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--text-muted); letter-spacing: .15em; text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.2rem; font-weight: 400; color: var(--text-secondary);
  margin-bottom: .75rem;
}
.hero-desc {
  font-size: .95rem; color: var(--text-muted); max-width: 520px;
  line-height: 1.75; margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-blue); color: #fff; border-color: var(--accent-blue);
}
.btn-primary:hover {
  background: var(--accent-cyan); border-color: var(--accent-cyan); color: #fff;
  box-shadow: 0 0 20px rgba(0,180,216,.3);
}
.btn-outline {
  background: transparent; color: var(--accent-blue);
  border-color: rgba(0,180,216,.4);
}
.btn-outline:hover {
  background: rgba(0,180,216,.08); color: var(--accent-cyan);
  border-color: rgba(72,202,228,.5);
}
/* Connection ticker */
.hero-ticker {
  display: flex; flex-wrap: wrap; gap: .65rem;
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted);
}
.ticker-item {
  display: flex; align-items: center; gap: .35rem;
  padding: .3rem .65rem; border: 1px solid var(--border);
  border-radius: 4px; background: rgba(20,27,45,.6);
}
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); }
.ticker-dot.yellow { background: #ffd166; }
.ticker-dot.blue   { background: var(--accent-blue); }

/* Terminal Widget */
.terminal {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(0,180,216,.05);
  font-family: var(--font-mono);
  font-size: .78rem;
}
.terminal-titlebar {
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem 1rem; background: #161b22;
  border-bottom: 1px solid var(--border);
}
.terminal-btn {
  width: 11px; height: 11px; border-radius: 50%;
}
.terminal-btn.red   { background: #ff5f57; }
.terminal-btn.yellow{ background: #febc2e; }
.terminal-btn.green { background: #28c840; }
.terminal-title {
  flex: 1; text-align: center; color: var(--text-muted);
  font-size: .7rem; letter-spacing: .05em;
}
.terminal-body { padding: 1.25rem; line-height: 1.85; color: var(--text-secondary); }
.t-prompt { color: var(--accent-green); }
.t-cmd    { color: var(--text-primary); }
.t-out    { color: var(--text-muted); padding-left: 1rem; }
.t-key    { color: var(--accent-blue); }
.t-val    { color: var(--accent-cyan); }
.t-ok     { color: var(--accent-green); }
.t-warn   { color: var(--accent-orange); }
.t-cursor {
  display: inline-block; width: 8px; height: 1.1em;
  background: var(--accent-blue); vertical-align: text-bottom;
  animation: blink .9s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Section Common ─────────────────────────────────────────── */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { margin-bottom: 2.5rem; }
.section-label {
  display: block; font-family: var(--font-mono);
  font-size: .7rem; color: var(--accent-blue);
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700; color: var(--text-primary);
  line-height: 1.25; margin-bottom: .5rem;
}
.section-title span { color: var(--accent-blue); }
.section-desc { color: var(--text-secondary); font-size: .95rem; max-width: 580px; }
.section-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.section-link {
  font-size: .85rem; font-weight: 500; color: var(--accent-blue);
  white-space: nowrap; display: flex; align-items: center; gap: .3rem;
}
.section-link:hover { color: var(--accent-cyan); }

/* ── Article Cards ──────────────────────────────────────────── */
.cards-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; gap: .75rem;
  cursor: pointer;
  position: relative; overflow: hidden;
}
.article-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.article-card:hover { border-color: var(--border-light); background: var(--bg-card-hover); box-shadow: var(--shadow-card); }
.article-card:hover::before { transform: scaleX(1); }

.card-meta {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.card-date {
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--text-muted); margin-left: auto;
}
.card-title {
  font-size: 1rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.4;
}
.article-card:hover .card-title { color: var(--accent-blue); }
.card-excerpt {
  font-size: .85rem; color: var(--text-secondary); line-height: 1.65;
  flex: 1;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .75rem; color: var(--text-muted); padding-top: .5rem;
  border-top: 1px solid var(--border);
}
.card-readtime { display: flex; align-items: center; gap: .3rem; }
.card-arrow { color: var(--accent-blue); font-size: .9rem; }

/* ── Topic Cards ────────────────────────────────────────────── */
.topics-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .topics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .topics-grid { grid-template-columns: repeat(3, 1fr); } }

.topic-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: all var(--transition); text-decoration: none;
}
.topic-card:hover {
  border-color: rgba(0,180,216,.4); background: var(--bg-card-hover);
  box-shadow: 0 8px 32px rgba(0,180,216,.08);
  transform: translateY(-2px);
}
.topic-icon {
  font-size: 1.75rem; line-height: 1;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-secondary); border-radius: var(--radius);
}
.topic-title {
  font-size: 1rem; font-weight: 600; color: var(--text-primary); margin: 0;
}
.topic-card:hover .topic-title { color: var(--accent-blue); }
.topic-desc { font-size: .84rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.topic-link {
  font-size: .8rem; color: var(--accent-blue); font-weight: 500;
  display: flex; align-items: center; gap: .25rem;
}

/* ── Breeze Section ─────────────────────────────────────────── */
.breeze-section {
  background: linear-gradient(135deg, rgba(0,119,182,.08) 0%, rgba(0,180,216,.04) 100%);
  border: 1px solid rgba(0,180,216,.12);
  border-radius: var(--radius-lg); padding: 2.5rem;
  position: relative; overflow: hidden;
}
.breeze-section::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,180,216,.12) 0%, transparent 70%);
  pointer-events: none;
}
.breeze-guides-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.breeze-guides-list li a {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem; border-radius: var(--radius);
  border: 1px solid transparent; color: var(--text-secondary);
  font-size: .9rem; transition: all var(--transition);
}
.breeze-guides-list li a:hover {
  background: rgba(0,180,216,.06); border-color: rgba(0,180,216,.2);
  color: var(--text-primary);
}
.breeze-guides-list li a::before {
  content: '→'; color: var(--accent-blue); font-weight: 700; flex-shrink: 0;
}
.breeze-guides-list li .guide-desc {
  font-size: .78rem; color: var(--text-muted); margin-left: auto;
  white-space: nowrap;
}

/* ── Terminal-style List ────────────────────────────────────── */
.terminal-list {
  background: #0d1117; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  font-family: var(--font-mono); font-size: .8rem; display: flex; flex-direction: column; gap: .4rem;
}
.tl-row {
  display: flex; align-items: flex-start; gap: 1rem; padding: .4rem .5rem;
  border-radius: 4px; transition: background var(--transition);
}
.tl-row:hover { background: rgba(255,255,255,.03); }
.tl-index { color: var(--text-muted); min-width: 2rem; text-align: right; flex-shrink: 0; }
.tl-name  { color: var(--accent-cyan); font-weight: 500; min-width: 220px; }
.tl-sep   { color: var(--border-light); }
.tl-desc  { color: var(--text-muted); }
@media (max-width: 639px) {
  .tl-row { flex-direction: column; gap: .15rem; }
  .tl-name { min-width: unset; }
}

/* ── Troubleshooting Cards ──────────────────────────────────── */
.trouble-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .trouble-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trouble-grid { grid-template-columns: repeat(3, 1fr); } }

.trouble-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: all var(--transition); cursor: pointer;
}
.trouble-card:hover {
  border-color: rgba(239,71,111,.25); background: var(--bg-card-hover);
  box-shadow: 0 4px 20px rgba(239,71,111,.06);
}
.trouble-icon {
  font-size: 1.4rem; line-height: 1; flex-shrink: 0;
  margin-top: .1rem;
}
.trouble-content { display: flex; flex-direction: column; gap: .3rem; }
.trouble-title {
  font-size: .9rem; font-weight: 600; color: var(--text-primary);
}
.trouble-card:hover .trouble-title { color: var(--accent-red); }
.trouble-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }

/* ── Latest Articles (list) ─────────────────────────────────── */
.latest-list { display: flex; flex-direction: column; gap: .5rem; }
.latest-item {
  display: flex; align-items: baseline; gap: 1rem; padding: .9rem 1rem;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: all var(--transition);
}
.latest-item:hover {
  background: var(--bg-card); border-color: var(--border);
}
.latest-date {
  font-family: var(--font-mono); font-size: .7rem; color: var(--text-muted);
  white-space: nowrap; flex-shrink: 0; min-width: 90px;
}
.latest-cat { flex-shrink: 0; }
.latest-title {
  font-size: .92rem; font-weight: 500; color: var(--text-secondary);
  flex: 1;
}
.latest-item:hover .latest-title { color: var(--text-primary); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 0;
}
.footer-inner {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 240px 1fr; }
}
@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: 240px 1fr 1fr 1fr; }
}
.footer-brand { display: flex; flex-direction: column; gap: .75rem; }
.footer-logo-zh { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.footer-logo-en {
  font-family: var(--font-mono); font-size: .6rem;
  color: var(--accent-blue); letter-spacing: .12em; text-transform: uppercase;
}
.footer-tagline { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.footer-official {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem; border-radius: var(--radius);
  background: rgba(0,180,216,.1); border: 1px solid rgba(0,180,216,.25);
  color: var(--accent-blue); font-size: .82rem; font-weight: 600;
  transition: all var(--transition); width: fit-content;
}
.footer-official:hover {
  background: rgba(0,180,216,.18); color: var(--accent-cyan);
}
.footer-col h4 {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); margin-bottom: .9rem;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.footer-col ul a { font-size: .85rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--text-primary); }
.footer-bottom {
  margin-top: 3rem; padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
}
.footer-copy { font-size: .78rem; color: var(--text-muted); }
.footer-note { font-size: .75rem; color: var(--text-muted); font-style: italic; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem;
  font-size: .78rem; color: var(--text-muted); padding: 1rem 0;
  font-family: var(--font-mono);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent-blue); }
.breadcrumb-sep { color: var(--border-light); margin: 0 .1rem; }
.breadcrumb-current { color: var(--text-secondary); }

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.page-header-label {
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--accent-blue); letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: .6rem;
}
.page-header-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800; color: var(--text-primary);
  letter-spacing: -.02em; margin-bottom: .75rem;
}
.page-header-desc {
  font-size: .95rem; color: var(--text-secondary); max-width: 620px; line-height: 1.7;
}

/* ── List Page ──────────────────────────────────────────────── */
.list-page-wrap { padding: 0 0 5rem; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: .4rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .5rem;
  border-radius: var(--radius); font-size: .85rem;
  border: 1px solid var(--border); color: var(--text-secondary);
  transition: all var(--transition); font-family: var(--font-mono);
}
.pagination a:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: rgba(0,180,216,.06); }
.pagination .active { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }

/* ── Article / Single Page ──────────────────────────────────── */
.article-wrap {
  display: grid; gap: 3rem;
  padding: 2rem 0 5rem;
}
@media (min-width: 1024px) {
  .article-wrap { grid-template-columns: 1fr 220px; align-items: start; }
}
.article-main { min-width: 0; }
.article-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.article-header-meta {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.article-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800; color: var(--text-primary);
  line-height: 1.2; letter-spacing: -.02em; margin-bottom: .75rem;
}
.article-info {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-muted); font-family: var(--font-mono);
}
.article-info-sep { color: var(--border-light); }

/* ── Prose Typography ───────────────────────────────────────── */
.prose { max-width: var(--prose-width); color: var(--text-secondary); }
.prose h2 {
  font-size: 1.35rem; font-weight: 700; color: var(--text-primary);
  margin: 2.5rem 0 1rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 1.1rem; font-weight: 600; color: var(--text-primary);
  margin: 2rem 0 .75rem;
}
.prose h4 {
  font-size: .95rem; font-weight: 600; color: var(--text-primary);
  margin: 1.5rem 0 .5rem;
}
.prose p  { margin-bottom: 1.2rem; line-height: 1.8; }
.prose ul, .prose ol { margin-bottom: 1.25rem; line-height: 1.75; }
.prose li { margin-bottom: .35rem; }
.prose a  { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-cyan); }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose em { color: var(--text-secondary); font-style: italic; }
.prose blockquote {
  border-left: 3px solid var(--accent-blue);
  padding: .75rem 1.25rem; margin: 1.5rem 0;
  background: rgba(0,180,216,.05); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary); font-style: italic;
}
.prose hr {
  border: none; border-top: 1px solid var(--border); margin: 2.5rem 0;
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: .9rem;
}
.prose table th {
  background: var(--bg-card); color: var(--text-primary);
  font-weight: 600; padding: .65rem 1rem; text-align: left;
  border: 1px solid var(--border); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.prose table td {
  padding: .65rem 1rem; border: 1px solid var(--border);
  color: var(--text-secondary); font-size: .88rem;
}
.prose table tr:hover td { background: rgba(255,255,255,.02); }
.prose code {
  font-family: var(--font-mono); font-size: .82em;
  background: rgba(0,180,216,.08); color: var(--accent-cyan);
  padding: .15em .4em; border-radius: 3px;
  border: 1px solid rgba(0,180,216,.15);
}
.prose pre { margin: 1.5rem 0; border-radius: var(--radius-lg); overflow: hidden; }
.prose pre code {
  background: none; color: inherit; padding: 0; border: none;
  border-radius: 0; font-size: .84rem;
}

/* ── Code Blocks (Chroma) ───────────────────────────────────── */
.highlight {
  position: relative; margin: 1.5rem 0;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.highlight pre {
  margin: 0; padding: 1.25rem 1.5rem;
  overflow-x: auto; background: #0d1117 !important;
  font-family: var(--font-mono); font-size: .84rem; line-height: 1.7;
}
.highlight::before {
  content: attr(data-lang);
  position: absolute; top: .55rem; right: .75rem;
  font-family: var(--font-mono); font-size: .65rem;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em;
}

/* ── Table of Contents ──────────────────────────────────────── */
.toc-sidebar {
  position: sticky; top: calc(var(--nav-height) + 1.5rem);
}
.toc-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
}
.toc-title {
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--accent-blue); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 1rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--border);
}
#TableOfContents ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
#TableOfContents li a {
  display: block; padding: .3rem .6rem;
  font-size: .78rem; color: var(--text-muted);
  border-radius: 4px; transition: all var(--transition);
  border-left: 2px solid transparent;
}
#TableOfContents li a:hover { color: var(--text-secondary); background: var(--bg-secondary); }
#TableOfContents li a.active {
  color: var(--accent-blue); border-left-color: var(--accent-blue);
  background: rgba(0,180,216,.06);
}
#TableOfContents ul ul { padding-left: .85rem; }
#TableOfContents ul ul a { font-size: .74rem; }

/* ── Related Articles ───────────────────────────────────────── */
.related-section { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.related-title {
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 1.25rem; display: flex; align-items: center; gap: .5rem;
}
.related-title::before {
  content: ''; width: 3px; height: 1em; background: var(--accent-blue); border-radius: 2px;
}
.related-grid {
  display: grid; gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Article CTA ────────────────────────────────────────────── */
.article-cta {
  margin-top: 3rem; padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(0,119,182,.1), rgba(0,180,216,.06));
  border: 1px solid rgba(0,180,216,.2); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.article-cta-text h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: .3rem; }
.article-cta-text p  { font-size: .85rem; color: var(--text-secondary); }

/* ── 404 Page ───────────────────────────────────────────────── */
.error-page {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.25rem;
}
.error-code {
  font-family: var(--font-mono); font-size: 6rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; display: block; margin-bottom: 1.5rem;
}
.error-title  { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: .75rem; }
.error-desc   { color: var(--text-secondary); margin-bottom: 2rem; max-width: 420px; margin-left: auto; margin-right: auto; }
.error-links  { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Misc ───────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* Selection */
::selection { background: rgba(0,180,216,.25); color: var(--text-primary); }

/* ── Custom CTA & Coupon Styles ──────────────────────────────── */
.coupon-box {
  display: inline-flex; align-items: center; background: rgba(0, 180, 216, 0.05);
  border: 1px solid rgba(0, 180, 216, 0.2); border-radius: var(--radius);
  padding: 0.25rem; font-family: var(--font-mono); margin: 0.5rem 0; width: fit-content;
  max-width: 100%; flex-wrap: wrap; gap: 0.25rem;
}
.coupon-label {
  font-size: 0.75rem; color: var(--text-muted); padding: 0 0.5rem; text-transform: uppercase;
}
.coupon-code {
  color: var(--accent-blue); font-weight: 600; font-size: 0.9rem; padding: 0 0.25rem;
}
.btn-copy {
  background: rgba(0, 180, 216, 0.15); border: none; color: var(--accent-cyan);
  padding: 0.35rem 0.75rem; border-radius: 4px; font-size: 0.75rem; cursor: pointer;
  transition: all 0.2s ease; margin-left: 0.25rem; font-family: inherit; font-weight: 500;
}
.btn-copy:hover { background: rgba(0, 180, 216, 0.3); }
.btn-copy.copied { background: var(--accent-green); color: #0a0e17; }

.article-cta-box {
  margin: 3rem 0; padding: 2rem; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(20, 27, 45, 0.5) 100%);
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.article-cta-header h3 { font-size: 1.5rem; margin: 0; color: var(--text-primary); }
.article-cta-features {
  display: flex; gap: 0.75rem; justify-content: center; align-items: center; flex-wrap: wrap;
  font-size: 0.95rem; color: var(--text-secondary); font-weight: 500;
}
.dot-separator { color: var(--border-light); }
.article-cta-actions { margin-top: 0.5rem; width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 0.75rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.article-cta-note { font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; margin: 0; }

.nav-cta {
  background: rgba(0,180,216,0.1); color: var(--accent-cyan) !important;
  border: 1px solid rgba(0,180,216,0.3); border-radius: var(--radius);
  padding: 0.35rem 0.75rem !important; font-size: 0.8rem; font-weight: 600;
  transition: all 0.2s ease; display: inline-block;
}
.nav-cta:hover {
  background: rgba(0,180,216,0.2); border-color: rgba(0,180,216,0.5); box-shadow: 0 0 10px rgba(0,180,216,0.1);
}

.plan-card-large {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem; text-align: center; max-width: 600px; margin: 0 auto 4rem auto;
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.plan-card-large::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
}
.plan-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.plan-price { font-size: 3rem; font-weight: 800; color: var(--text-primary); margin-bottom: 1.5rem; letter-spacing: -1px; }
.plan-features { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.plan-feature-badge {
  background: rgba(255,255,255,0.05); padding: 0.35rem 0.85rem; border-radius: 20px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); border: 1px solid var(--border-light);
}
.plan-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

/* 3 Steps Section */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem;
  position: relative; transition: var(--transition);
}
.step-card:hover { transform: translateY(-3px); border-color: var(--border-light); }
.step-number {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--accent-blue);
  margin-bottom: 1rem; display: block; letter-spacing: 1px;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--text-primary); }
.step-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; }
.step-card .coupon-box { margin-bottom: 1rem; }

@media (max-width: 768px) {
  .plan-card-large { padding: 1.5rem; }
  .plan-price { font-size: 2.5rem; }
  .article-cta-box { padding: 1.5rem; }
}

/* ── Header Adjustments (Logo & Nav) ────────────────────────── */
.nav-logo-img {
  height: 48px; /* Larger logo */
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-links a {
  font-size: 0.95rem; /* Larger text for better readability */
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
}
.nav-inner {
  align-items: center; /* Ensure vertical centering */
}
.nav-cta {
  font-size: 0.9rem !important;
  padding: 0.4rem 0.8rem !important;
}

/* Fix buttons inside prose */
.prose a.btn { text-decoration: none; }
.prose a.btn-primary { color: #fff !important; }
.prose a.btn-outline { color: var(--accent-blue) !important; }
.prose a.btn-outline:hover { color: var(--accent-cyan) !important; }

/* Article Prev/Next Nav */
.article-nav-item:hover {
  border-color: var(--accent-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.1);
}
