/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080f1e;
  --bg-card:     #0d1829;
  --bg-card2:    #122035;
  --border:      #1a3060;
  --text:        #e8f0fe;
  --text-muted:  #6888b0;
  /* VoxWorking 品牌渐变色：深蓝 → 青色 */
  --brand-from:  #1a5fc8;
  --brand-to:    #00d4e8;
  --accent:      #00c8e0;
  --accent-dark: #0099b8;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --font:        'Inter', 'PingFang SC', 'Helvetica Neue', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Layout helpers ───────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo .brand-name {
  background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); text-decoration: none; }

.nav-toggle { display: none; cursor: pointer; }

/* ── Nav dropdown ─────────────────────────────────────────── */
.nav-has-dropdown {
  position: relative;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 0 6px;
  min-width: 168px;
  list-style: none;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  white-space: nowrap;
}
.nav-has-dropdown:hover .nav-dropdown { display: block; }
.nav-has-dropdown.has-active > a,
.nav-has-dropdown:hover > a { color: var(--text); }
.nav-dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown li a:hover,
.nav-dropdown li a.active { color: var(--text); background: var(--bg-card2); }
.nav-arrow { font-size: 10px; margin-left: 2px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary  { background: linear-gradient(90deg, var(--brand-from), var(--brand-to)); color: #fff; }
.btn-outline  { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-ghost    { background: var(--bg-card2);   color: var(--text); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Hero outer (全宽背景层) ────────────────────────────────── */
.hero-section {
  position: relative;
  background:
    radial-gradient(ellipse 58% 62% at 50% 56%, rgba(26,95,200,0.44) 0%, transparent 60%),
    radial-gradient(ellipse 30% 36% at 50% 26%, rgba(0,212,232,0.15) 0%, transparent 52%),
    linear-gradient(180deg, #010407 0%, #030c18 55%, #04101e 100%);
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,224,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,224,0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 85%, transparent 20%, #000 100%);
  mask-image: radial-gradient(ellipse 80% 100% at 50% 85%, transparent 20%, #000 100%);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 56px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ── Hero wave SVG decoration ────────────────────────────── */
.hero-wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  animation: waveFloat 10s ease-in-out infinite;
}
@keyframes waveFloat {
  0%,  100% { transform: translateY(0px); }
  50%        { transform: translateY(-7px); }
}

/* ── Glow-line separator (Hero → Featured) ───────────────── */
.hero-sep {
  height: 1px;
  position: relative;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(26,95,200,0.5) 15%,
    rgba(0,212,232,0.9) 50%,
    rgba(26,95,200,0.5) 85%,
    transparent 100%
  );
}
.hero-sep::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 15%;
  right: 15%;
  height: 9px;
  background: linear-gradient(90deg, transparent, rgba(0,212,232,0.3), transparent);
  filter: blur(6px);
  pointer-events: none;
}
.hero-sep::after { display: none; }

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ── Section headings ─────────────────────────────────────── */
.section-heading {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 36px;
}

/* ── Tags ─────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card2);
  color: var(--accent);
  border: 1px solid var(--border);
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--text); }

/* ── Brand gradient helpers ───────────────────────────────── */
.gradient-text {
  background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-brand {
  background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
  color: #fff;
  border: none;
}

.btn-brand:hover { opacity: 0.88; }

/* ── Search bar ───────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 560px;
  margin: 0 auto 48px;
}

.search-bar input {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input:focus { border-color: var(--accent); }

.search-bar button {
  padding: 12px 20px;
  background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.search-bar button:hover { opacity: 0.88; }

/* ── Search results page ──────────────────────────────────── */
.search-result-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item h3 { font-size: 1rem; margin-bottom: 6px; }
.search-result-item h3 a { color: var(--text); }
.search-result-item h3 a:hover { color: var(--accent); text-decoration: none; }
.search-result-item p { font-size: 13px; color: var(--text-muted); }
.search-result-item .result-meta { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--text); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 16px; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
  }
  .nav-toggle { display: block; }
  /* Dropdown on mobile: always expanded inside hamburger menu */
  .nav-has-dropdown { position: static; }
  .nav-has-dropdown:hover .nav-dropdown { display: none; }
  .nav-has-dropdown.open .nav-dropdown {
    display: block;
    position: static;
    transform: none;
    background: none;
    border: none;
    border-left: 2px solid var(--border);
    padding: 4px 0 4px 14px;
    margin-top: 4px;
    box-shadow: none;
    min-width: 0;
    white-space: normal;
  }
  .hero h1 { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  /* 首页最新知识两列 → 单列 */
  .section [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 32px !important; }
  /* 订阅表单 */
  .subscribe-form { flex-direction: column; }
  .subscribe-form input { border-right: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
  .subscribe-form button { border-radius: 0 0 var(--radius) var(--radius); }
  /* 文章列表数字隐藏 */
  .article-item-num { display: none; }
}

/* ── Article page ─────────────────────────────────────────── */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.article-back:hover { color: var(--accent); text-decoration: none; }

.article-header { margin-bottom: 32px; }
.article-header .tag { margin-bottom: 14px; }
.article-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0 36px;
}

/* ── Article rich-text body ───────────────────────────────── */
.article-body { font-size: 16px; line-height: 1.85; }

.article-body h1,
.article-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--accent);
}

.article-body h4 { font-size: 1rem; margin: 20px 0 8px; }

.article-body p { margin-bottom: 18px; }

.article-body ul,
.article-body ol { margin: 0 0 18px 24px; }

.article-body li { margin-bottom: 6px; }

.article-body strong { color: #fff; font-weight: 700; }

.article-body em { color: var(--text-muted); font-style: italic; }

.article-body a { color: var(--accent); }
.article-body a:hover { text-decoration: underline; }

.article-body blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-body code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.87em;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.article-body pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--text);
}

.article-body img {
  border-radius: var(--radius);
  margin: 24px 0;
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.article-body th,
.article-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.article-body th {
  background: var(--bg-card2);
  font-weight: 600;
  color: var(--text);
}

.article-body td { color: var(--text-muted); }

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ── Author card (article page) ──────────────────────────── */
.author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 48px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.author-info-name { font-weight: 700; margin-bottom: 4px; font-size: 15px; }
.author-info-role { font-size: 12px; color: var(--accent); margin-bottom: 6px; font-weight: 600; letter-spacing: 0.5px; }
.author-info-bio  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── Recommended reading ──────────────────────────────────── */
.recommended-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.recommended-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.recommended-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.recommended-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.2s;
}
.recommended-card:hover { border-color: var(--accent); text-decoration: none; }
.recommended-card .tag { margin-bottom: 8px; }
.recommended-card h3 { font-size: 0.9rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.recommended-card .rec-meta { font-size: 11px; color: var(--text-muted); }

/* ── Subscribe section ────────────────────────────────────── */
.subscribe-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
  text-align: center;
}
.subscribe-section h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.subscribe-section p { color: var(--text-muted); margin-bottom: 28px; font-size: 15px; }
.subscribe-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
}
.subscribe-form input {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.subscribe-form input:focus { border-color: var(--accent); }
.subscribe-form input::placeholder { color: var(--text-muted); }
.subscribe-form button {
  padding: 12px 22px;
  background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.subscribe-form button:hover { opacity: 0.88; }
.subscribe-note { margin-top: 12px; font-size: 12px; color: var(--text-muted); }

/* ── Section label (eyebrow) ──────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

/* ── Article list (editorial numbered style) ──────────────── */
.article-list { display: flex; flex-direction: column; }
.article-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}
.article-item:hover { color: var(--accent); text-decoration: none; }
.article-item:last-child { border-bottom: none; }
.article-item-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--border);
  min-width: 42px;
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}
.article-item-body { flex: 1; min-width: 0; }
.article-item-body .tag { margin-bottom: 8px; }
.article-item-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.article-item-summary { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.55; }
.article-item-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; align-items: center; }
.article-item-read { font-size: 12px; color: var(--accent); font-weight: 600; }

/* ── Featured card ────────────────────────────────────────── */
.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  display: block;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.featured-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; color: var(--text); }
.featured-card .tag { margin-bottom: 12px; }
.featured-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; line-height: 1.35; }
.featured-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.featured-card .featured-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; }
.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(26,95,200,0.2);
  color: #7ab4ff;
}
.channel-badge.automotive { background: rgba(0,196,167,0.15); color: #00c4a7; }

/* ── Tool entry cards ─────────────────────────────────────── */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.2s;
}
.tool-card:hover { border-color: var(--accent); text-decoration: none; color: var(--text); }
.tool-card-icon { font-size: 32px; margin-bottom: 14px; }
.tool-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.tool-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.55; }
.tool-card-cta { font-size: 13px; color: var(--accent); font-weight: 600; }
.tool-card.coming-soon { opacity: 0.6; cursor: default; }
.tool-card.coming-soon:hover { border-color: var(--border); transform: none; }

/* ── Cover image (图床 URL 优先，无则回退 CSS 渐变) ──────── */
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.featured-card:hover .cover-img,
.article-item:hover .cover-img {
  transform: scale(1.04);
}

/* ── Section featured spotlight (task 2) ─────────────────── */
.section-featured {
  padding: 72px 0;
  position: relative;
  background:
    radial-gradient(ellipse 80% 320px at 50% -40px, rgba(26,95,200,0.28) 0%, transparent 100%),
    linear-gradient(180deg, #050d1f 0%, var(--bg) 100%);
  border-bottom: 1px solid rgba(0,212,232,0.14);
  overflow: hidden;
}
.section-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,200,224,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 100% 65% at 50% 0%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 65% at 50% 0%, #000 0%, transparent 100%);
}

/* ── Featured card cover (article image replacement) ─────── */
.fc-cover {
  height: 160px;
  margin: -28px -28px 20px -28px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.fc-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 10px,
    rgba(255,255,255,0.04) 10px, rgba(255,255,255,0.04) 20px
  );
}
.fc-cover-icon {
  font-size: 56px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
  line-height: 1;
}
/* ── Featured carousel ─────────────────────────────────── */
.fc-carousel-wrap {
  position: relative;
}
.fc-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}
.fc-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
.fc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13,24,41,0.88);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  opacity: 0.72;
  padding: 0;
}
.fc-arrow:hover { background: var(--bg-card2); border-color: var(--accent); opacity: 1; }
.fc-prev { left: 8px; }
.fc-next { right: 8px; }
.fc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.fc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s, border-radius 0.25s;
}
.fc-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent);
}
/* ── Article item cover (list pages) ─────────────────────── */
.ai-cover {
  width: 80px;
  min-height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  align-self: stretch;
}
.ai-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 7px,
    rgba(255,255,255,0.05) 7px, rgba(255,255,255,0.05) 14px
  );
}
.ai-cover-icon {
  font-size: 28px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
}

/* ── Tool card cover (gradient header) ───────────────────── */
.tool-card-cover {
  height: 110px;
  margin: -28px -28px 22px -28px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.tool-card { overflow: hidden; }
.tool-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 10px,
    rgba(255,255,255,0.04) 10px, rgba(255,255,255,0.04) 20px
  );
}
.tool-card-cover-icon {
  font-size: 44px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

/* ── Resource section (task 3) ────────────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  padding: 20px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.resource-card:hover { border-color: var(--accent); }
.resource-icon-wrap {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.resource-body { flex: 1; min-width: 0; }
.resource-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.resource-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.resource-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin-bottom: 12px; }
.resource-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.resource-channel {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0,200,224,0.1);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.resource-dl {
  font-size: 11px;
  font-weight: 700;
}
.resource-dl.available { color: var(--accent); }
.resource-dl.coming { color: var(--text-muted); }

@media (max-width: 768px) {
  .ai-cover { width: 60px; }
  .fc-cover { height: 120px; }
  .fc-cover-icon { font-size: 40px; }
  .resource-grid { grid-template-columns: 1fr; }
}

/* ── Article page light mode ─────────────────────────────── */
.article-wrap {
  transition: background 0.3s, color 0.3s;
}

.article-wrap[data-theme="light"] {
  --text:       #1e293b;
  --text-muted: #64748b;
  --border:     #dde3ec;
  --bg-card:    #ffffff;
  --bg-card2:   #f1f5f9;
  background: #f4f6fb;
  color: #1e293b;
}

/* hardcoded white in strong must be overridden */
.article-wrap[data-theme="light"] .article-body strong { color: #0f172a; }

/* keep code blocks dark for readability */
.article-wrap[data-theme="light"] .article-body pre {
  background: #1e2d40;
  border-color: #2d4060;
}
.article-wrap[data-theme="light"] .article-body pre code { color: #e2e8f0; }

/* ── Article theme toggle button ─────────────────────────── */
.article-theme-btn {
  position: fixed;
  top: 72px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
  transition: border-color 0.2s, transform 0.15s;
  padding: 0;
  line-height: 1;
}
.article-theme-btn:hover { border-color: var(--accent); transform: scale(1.08); }
