/* ============================================================
 * ExWithdraw (exchangewithdraw.com) — Light fintech theme
 * A clean, light, data-focused look: navy + teal on soft grey.
 * Deliberately distinct from the dark red/gold BullFee theme.
 * ============================================================ */
:root {
  --primary: #0f3d5c;
  --primary-light: #1677b3;
  --primary-dark: #0a2c44;
  --accent: #0ea5a5;
  --accent-light: #14b8b8;
  --grad: linear-gradient(135deg, #0f3d5c 0%, #1677b3 55%, #0ea5a5 100%);
  --grad-soft: linear-gradient(135deg, #e8f2fb 0%, #e6f7f7 100%);
  --bg: #f3f6fb;
  --bg-card: #ffffff;
  --bg-card2: #f8fafd;
  --text-primary: #16283a;
  --text-secondary: #43566a;
  --text-muted: #64748b;
  --border: #dde6f0;
  --success: #0e9f6e;
  --success-bg: rgba(14, 159, 110, 0.09);
  --danger: #d64545;
  --danger-bg: rgba(214, 69, 69, 0.09);
  --warn: #b7791f;
  --warn-bg: rgba(183, 121, 31, 0.09);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 61, 92, 0.05), 0 4px 14px rgba(15, 61, 92, 0.06);
  --shadow-lg: 0 2px 4px rgba(15, 61, 92, 0.06), 0 12px 32px rgba(15, 61, 92, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(22, 119, 179, 0.35);
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-name span { color: var(--primary-light); }

.brand-tag {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: 1px;
}

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.main-nav a {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.main-nav a:hover { color: var(--primary); background: var(--grad-soft); }

.main-nav a.nav-cta {
  /* match the other nav items by default; light emphasis on hover */
  background: transparent;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid transparent;
  font-weight: 600;
}

.main-nav a.nav-cta:hover {
  color: var(--accent);
  background: var(--grad-soft);
  border-color: rgba(14, 165, 165, 0.25);
  transform: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 18px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-secondary);
}

@media (max-width: 1280px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .brand-tag { display: none; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-wrap { max-width: 1200px; margin: 18px auto 0; padding: 0 24px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text-secondary); font-weight: 600; }

/* ---------- Layout ---------- */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.page-wrapper.no-sidebar { grid-template-columns: minmax(0, 1fr); }

/* ---------- Article hero ---------- */
.article-hero {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 34px 40px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
}

.article-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 165, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

.wiki-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--primary-light);
  background: var(--grad-soft);
  border: 1px solid rgba(22, 119, 179, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.article-title { font-size: 34px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }

.article-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.article-subtitle { color: var(--text-secondary); font-size: 15.5px; max-width: 720px; margin-bottom: 18px; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--text-muted);
  font-size: 13px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.meta-item { display: inline-flex; align-items: center; gap: 6px; }

.meta-item svg { width: 14px; height: 14px; opacity: 0.75; }

/* ---------- Quick facts ---------- */
.quick-facts {
  margin: 22px 0 6px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.quick-facts-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }

.fact-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

.fact-value { font-size: 14.5px; font-weight: 700; color: var(--text-primary); }

.fact-value.highlight { color: var(--accent); }

/* ---------- Live data strip ---------- */
.energy-live-strip {
  position: relative;
  margin: 22px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.energy-live-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad);
}

.energy-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.energy-live-title { font-size: 15px; font-weight: 800; color: var(--primary); }

.energy-live-badge {
  font-size: 11.5px;
  color: var(--accent);
  background: rgba(14, 165, 165, 0.09);
  border: 1px solid rgba(14, 165, 165, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.energy-live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }

/* ---------- Article content ---------- */
.article-content { display: flex; flex-direction: column; gap: 26px; padding-top: 24px; }

.section-title {
  font-size: 23px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title:first-child { margin-top: 0; }

.section-title .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid rgba(22, 119, 179, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.article-content p { margin-bottom: 14px; color: var(--text-secondary); }
.article-content p small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  line-height: 1.5;
}
.article-content ul, .article-content ol { margin: 0 0 14px 22px; color: var(--text-secondary); }
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--text-primary); }

.subsection-title { font-size: 17px; font-weight: 700; margin: 8px 0 10px; }

/* ---------- Cards ---------- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 8px; }

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.18s ease;
}

.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(22, 119, 179, 0.35); }

.info-card-icon { font-size: 26px; margin-bottom: 10px; }

.info-card-title { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }

.info-card-desc { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }

th {
  background: var(--grad-soft);
  color: var(--primary);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  white-space: nowrap;
}

td {
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

tbody tr:nth-child(even) { background: var(--bg-card2); }

.td-highlight { color: var(--primary-light); font-weight: 700; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

.badge-green { background: var(--success-bg); color: var(--success); border: 1px solid rgba(14, 159, 110, 0.3); }
.badge-red { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(214, 69, 69, 0.3); }
.badge-yellow { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(183, 121, 31, 0.3); }

/* ---------- Highlight / tip ---------- */
.highlight-box {
  position: relative;
  background: var(--grad-soft);
  border: 1px solid rgba(22, 119, 179, 0.22);
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 16px 18px 16px 20px;
  margin-bottom: 16px;
}

.highlight-box-title { font-size: 14.5px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }

.highlight-box p { margin: 0; font-size: 14px; color: var(--text-secondary); }

.tip-box {
  background: var(--success-bg);
  border: 1px solid rgba(14, 159, 110, 0.25);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.tip-box-title { font-size: 14.5px; font-weight: 800; color: var(--success); margin-bottom: 6px; }

.tip-box p { margin: 0; font-size: 14px; color: var(--text-secondary); }

/* ---------- Steps ---------- */
.step-list { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 14px; }

.step-item { display: flex; gap: 16px; align-items: flex-start; }

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(22, 119, 179, 0.3);
}

.step-content { padding-top: 4px; }
.step-content strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--text-primary); }
.step-content p { font-size: 14px; margin: 0; color: var(--text-muted); }

/* ---------- Formula ---------- */
.formula-box {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
}

.formula { font-size: 18px; color: var(--primary); font-weight: 700; margin-bottom: 10px; font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace; }

.formula-note { font-size: 13px; color: var(--text-muted); font-family: inherit; }

/* ---------- Stats row ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
}

.stat-num { font-size: 22px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; margin-bottom: 3px; }

.stat-label { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Flow ---------- */
.process-flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.flow-step:hover { border-color: rgba(14, 165, 165, 0.5); color: var(--primary); box-shadow: var(--shadow); }

.flow-step .step-icon { font-size: 18px; }

.flow-arrow { color: var(--accent); font-size: 18px; font-weight: bold; display: flex; align-items: center; }

/* ---------- FAQ ---------- */
.faq-section { margin-top: 10px; }

.faq-title { font-size: 23px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item:hover { border-color: rgba(14, 165, 165, 0.45); }

.faq-question {
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--bg-card2);
  transition: background 0.15s ease;
}

.faq-question:hover { background: var(--grad-soft); }

.faq-question::after { content: '+'; font-size: 20px; color: var(--accent); font-weight: 500; flex-shrink: 0; transition: transform 0.2s ease; }

details[open] .faq-question::after { transform: rotate(45deg); }

.faq-answer { padding: 14px 18px 16px; border-top: 1px dashed var(--border); }
.faq-answer p { margin: 0 0 8px; font-size: 14px; color: var(--text-secondary); }
.faq-answer p:last-child { margin: 0; }

/* ---------- CTA box ---------- */
.cta-box {
  position: relative;
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 36px;
  margin-top: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta-box-title { font-size: 26px; font-weight: 800; margin-bottom: 12px; position: relative; }

.cta-box-desc { color: rgba(255, 255, 255, 0.9); margin: 0 auto 24px; position: relative; max-width: 640px; }

.cta-btn-group { display: flex; gap: 14px; flex-wrap: wrap; position: relative; justify-content: center; }

.btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 10px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover { opacity: 0.93; transform: translateY(-1px); color: var(--primary); }

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 26px;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.sidebar-card-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 14px;
}

.toc-list { list-style: none; display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow-y: auto; }

.toc-list li a {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 7px;
  border-left: 2px solid transparent;
  transition: all 0.12s ease;
}

.toc-list li a:hover { color: var(--primary-light); background: var(--grad-soft); border-left-color: var(--accent); }

.toc-sub a { padding-left: 22px !important; font-size: 12px !important; }

.related-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.related-list li a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 7px;
  transition: all 0.12s ease;
}

.related-list li a:hover { color: var(--primary-light); background: var(--grad-soft); }

.related-list li a::before { content: '\2192'; color: var(--accent); font-size: 12px; flex-shrink: 0; }

/* ---------- Price widget (data engine) ---------- */
.price-widget { text-align: center; }
.price-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.price-num { font-size: 28px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.price-change { font-size: 13px; color: var(--success); margin-bottom: 16px; }
.price-details { display: flex; flex-direction: column; gap: 8px; }
.price-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.price-row-label { color: var(--text-muted); }
.price-row-val { color: var(--text-secondary); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Data engine widget (tw-*) ---------- */
.tw-sec-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 8px;
}

.tw-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; padding: 4px 0; }
.tw-row-label { color: var(--text-muted); }
.tw-row-val { color: var(--text-secondary); font-weight: 700; font-variant-numeric: tabular-nums; }

.tw-meter {
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0 4px;
}

.tw-meter-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }

.tw-meter-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); }

.tw-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- Sidebar CTA ---------- */
.sidebar-cta {
  position: relative;
  background: var(--grad);
  color: #fff;
  border: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 22px 24px;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-cta-icon {
  font-size: 28px;
  margin: 0 0 14px 0;
  position: relative;
  line-height: 1;
  text-align: center;
}

.sidebar-cta-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px 0;
  position: relative;
  line-height: 1.3;
  text-align: center;
}

.sidebar-cta-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 18px auto;
  position: relative;
  line-height: 1.55;
  text-align: center;
  max-width: 230px;
}

.sidebar-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 9px;
  transition: all 0.15s ease;
  position: relative;
}

.sidebar-btn:hover { background: rgba(255, 255, 255, 0.9); color: var(--primary); }

/* ---------- Tags ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-block;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.12s ease;
}

.tag:hover { border-color: var(--accent); color: var(--primary); background: var(--grad-soft); }

/* ---------- Home hero ---------- */
.home-hero {
  position: relative;
  text-align: center;
  padding: 72px 24px 56px;
  background:
    radial-gradient(circle at 18% 20%, rgba(22, 119, 179, 0.10) 0%, transparent 46%),
    radial-gradient(circle at 82% 28%, rgba(14, 165, 165, 0.10) 0%, transparent 46%),
    linear-gradient(180deg, #eef4fb 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.home-hero-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-light);
  background: #fff;
  border: 1px solid rgba(22, 119, 179, 0.25);
  padding: 6px 16px;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.home-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 820px;
  margin: 0 auto 16px;
}

.home-hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero p.lead {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 680px;
  margin: 0 auto 28px;
}

.home-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

.home-hero-btns .btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 119, 179, 0.35);
}

.home-hero-btns .btn-primary:hover { color: #fff; opacity: 0.93; }

.home-hero-btns .btn-outline {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.home-hero-btns .btn-outline:hover { background: var(--grad-soft); color: var(--primary); }

.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.home-hero-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.home-hero-stat .num { font-size: 30px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }

.home-hero-stat .lbl { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Home sections ---------- */
.home-section { max-width: 1200px; margin: 0 auto; padding: 48px 24px 0; }

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.home-section-head h2 { font-size: 26px; font-weight: 800; }

.home-section-head h2 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-section-head p { color: var(--text-muted); margin: 6px 0 0; font-size: 14px; }

.view-all { color: var(--primary-light); font-size: 14px; font-weight: 700; white-space: nowrap; }
.view-all:hover { text-decoration: underline; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.cat-card {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text-primary);
  transition: all 0.18s ease;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(22, 119, 179, 0.35); }
.cat-card:hover::before { opacity: 1; }

.cat-card-icon { font-size: 30px; margin-bottom: 12px; }

.cat-card-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }

.cat-card-desc { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; }

.cat-card-count { font-size: 12.5px; font-weight: 700; color: var(--accent); }

/* ---------- Article grid ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text-primary);
  transition: all 0.18s ease;
}

.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(22, 119, 179, 0.35); }

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.article-card-cat {
  color: var(--primary-light);
  font-weight: 700;
  background: var(--grad-soft);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11.5px;
}

.article-card h3 { font-size: 17px; font-weight: 800; line-height: 1.35; margin-bottom: 8px; }

.article-card:hover h3 { color: var(--primary-light); }

.article-card-excerpt { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; flex-grow: 1; }

.article-card-read { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- Tag cloud ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

.tag-cloud .tag { font-size: 13.5px; padding: 7px 16px; }

/* ---------- About strip ---------- */
.about-strip { margin-top: 56px; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
}

.about-strip-inner h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }

.about-strip-inner p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }

.about-strip-points { display: flex; flex-direction: column; gap: 14px; }

.about-point {
  display: flex;
  gap: 14px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.about-point .pt-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid rgba(22, 119, 179, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.about-point strong { display: block; font-size: 14px; margin-bottom: 2px; }

.about-point span { font-size: 13px; color: var(--text-muted); }

/* ---------- List hero (category/tag/about) ---------- */
.list-layout { max-width: 1200px; margin: 0 auto; padding: 28px 24px 56px; }

.list-hero {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.list-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
}

.list-hero h1 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }

.list-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.list-hero p { color: var(--text-secondary); font-size: 15px; max-width: 720px; margin: 0; }

.list-hero .list-count {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--primary-light);
  font-weight: 700;
  background: var(--grad-soft);
  border: 1px solid rgba(22, 119, 179, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a2c44;
  color: #c8d8e8;
  margin-top: 56px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8fb8d8;
  margin-bottom: 14px;
}

.footer-col p { font-size: 13px; color: #8fa8c0; line-height: 1.6; }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a { color: #c8d8e8; font-size: 13.5px; transition: color 0.12s ease; }
.footer-col ul li a:hover { color: #4fd2d2; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 26px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #7f9ab5;
}

.footer-bottom a { color: #a9c3db; text-decoration: none; }
.footer-bottom a:hover { color: #4fd2d2; }

/* ---------- Misc ---------- */
.inline-code {
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 13px;
  background: var(--grad-soft);
  border: 1px solid rgba(22, 119, 179, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--primary);
}

.source-note {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.related-box {
  background: var(--grad-soft);
  border: 1px solid rgba(22, 119, 179, 0.2);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.related-box-title { font-size: 14px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }

.related-box ul { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.related-box ul li a { font-size: 13.5px; font-weight: 600; }

/* ---------- Author box ---------- */
.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-box strong { display: block; font-size: 14px; margin-bottom: 4px; }

.author-box span { font-size: 13px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .page-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-strip-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-hero h1 { font-size: 32px; }
  .article-title { font-size: 26px; }
  .footer-inner { grid-template-columns: 1fr; }
  .article-hero { padding: 24px 20px; }
}
