/* otslink.com - Optical Transport Solutions */
:root {
  --primary: #0369A1;
  --primary-dark: #075985;
  --primary-light: #E0F2FE;
  --bg: #F8FAFB;
  --card-bg: #FFFFFF;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --accent: #0369A1;
  --gradient-start: #0369A1;
  --gradient-end: #0891B2;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 2px 6px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 6px 14px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.05);
  --orange: #EA580C;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--card-bg);
  border-bottom: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 200px;
  max-height: 44px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  transition: opacity 0.2s;
}
.logo img {
  display: block;
  width: auto;
  max-width: 200px;
  max-height: 44px;
  object-fit: contain;
}
.logo:hover { opacity: 0.85; }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 500;
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s; cursor: pointer; border: 2px solid transparent;
}
.btn--primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn--outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn--white {
  background: #fff; color: var(--primary); border-color: #fff;
  padding: 14px 36px; font-size: 0.95rem;
}
.btn--white:hover { background: var(--primary-light); transform: translateY(-1px); }

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #cffafe 100%);
  padding: 60px 0 50px;
  overflow: hidden;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero__text h1 {
  font-size: 2.4rem; font-weight: 800; line-height: 1.2;
  color: var(--primary-dark); margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero__desc {
  font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 28px; max-width: 520px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual { display: flex; justify-content: center; align-items: center; }
.hero__visual img { max-width: 100%; border-radius: 16px; }
.hero__placeholder { width: 100%; max-width: 400px; }
.hero__placeholder svg { width: 100%; height: auto; border-radius: 16px; }

/* Sections */
.section { padding: 56px 0; }
.section--categories { background: #fff; }
.section--solutions { background: var(--bg); }
.section--stats {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 40px 0;
}
.section--articles { background: #fff; }
.section--resources { background: var(--bg); }
.section--cta { background: #fff; padding: 48px 0 56px; }

.section__header { text-align: center; margin-bottom: 36px; }
.section__header h2 {
  font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.section__header p { font-size: 0.95rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
.section__more {
  font-size: 0.88rem; color: var(--primary); font-weight: 500;
  transition: opacity 0.2s;
}
.section__more:hover { opacity: 0.7; }
.section__header { display: flex; flex-direction: column; align-items: center; }
.section__header .section__more { margin-top: 8px; }

/* Product Category Grid */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--bg); border-radius: var(--radius); padding: 28px 24px;
  text-align: center; transition: all 0.25s; border: 1px solid var(--border);
}
.cat-card:hover {
  background: #fff; box-shadow: var(--shadow-lg); transform: translateY(-4px);
  border-color: var(--primary);
}
.cat-card__icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); border-radius: 14px; color: var(--primary);
  transition: all 0.25s;
}
.cat-card__icon img { width: 28px; height: 28px; object-fit: contain; }
.cat-card:hover .cat-card__icon { background: var(--primary); color: #fff; }
.cat-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.cat-card p {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Solution Cards */
.solution-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.solution-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.25s; border: 1px solid var(--border);
}
.solution-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary); }
.solution-card__img { height: 180px; overflow: hidden; background: #e8eaf0; }
.solution-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.solution-card:hover .solution-card__img img { transform: scale(1.05); }
.solution-card__body { padding: 20px; }
.solution-card__body h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.solution-card__body p {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.solution-card__link { font-size: 0.85rem; color: var(--primary); font-weight: 500; }

/* Stats Bar */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center; color: #fff;
}
.stat-item__num {
  display: block; font-size: 2rem; font-weight: 800; line-height: 1.2;
  margin-bottom: 4px;
}
.stat-item__label { font-size: 0.85rem; opacity: 0.85; }

/* Article Cards */
.article-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  transition: all 0.25s; border: 1px solid var(--border);
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary); }
.article-card__img { height: 160px; overflow: hidden; background: #e8eaf0; }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.article-card:hover .article-card__img img { transform: scale(1.05); }
.article-card__body { padding: 16px 18px; }
.article-card__body h3 {
  font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card__body p {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card__meta { font-size: 0.78rem; color: var(--text-light); }

/* Resource Cards */
.resource-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.resource-card {
  background: #fff; border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); transition: all 0.25s; position: relative;
}
.resource-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary); }
.resource-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.resource-card p {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px;
}
.resource-card__link { font-size: 0.85rem; color: var(--primary); font-weight: 500; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 16px; padding: 48px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-banner__text h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.cta-banner__text p { font-size: 0.95rem; opacity: 0.9; max-width: 520px; line-height: 1.6; }

/* Main Layout (for article pages) */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
  border-bottom: none;
}
.card-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
  padding-left: 12px;
}
.card-header h2::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 4px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}
.card-header .more {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  transition: opacity 0.2s;
}
.card-header .more:hover { opacity: 0.8; }
.card-body { padding: 8px 20px 16px; }

/* Article Item */
.article-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: none;
  transition: background 0.15s;
}
.article-item:hover { background: #f3f6fb; margin: 0 -20px; padding-left: 20px; padding-right: 20px; border-radius: 8px; }
.article-thumb {
  width: 180px; min-width: 180px; height: 110px;
  border-radius: 8px;
  overflow: hidden;
  background: #E8EAF0;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.article-item:hover .article-thumb img { transform: scale(1.08); }
.article-info { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.article-info h3 {
  font-size: 1rem; font-weight: 600; line-height: 1.4; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-info h3:hover { color: var(--primary); }
.article-info .summary {
  font-size: 0.85rem; color: var(--text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.5;
}
.article-info .meta {
  font-size: 0.78rem; color: var(--text-light); margin-top: 6px;
}

/* Simple list items */
.list-item { padding: 10px 0; border-bottom: none; transition: background 0.15s; border-radius: 8px; }
.list-item:hover { background: #f3f6fb; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.list-item a { display: block; }
.list-item h4 {
  font-size: 0.92rem; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.15s;
}
.list-item h4:hover { color: var(--primary); }
.list-item .meta { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-light);
  font-size: 0.9rem;
}
.empty-state a { color: var(--primary); }
.empty-state a:hover { text-decoration: underline; }

/* Hot article sidebar items */
.hot-item .hot-views {
  color: var(--orange);
  font-weight: 600;
}

/* CTA card */
.cta-card {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff; border-radius: var(--radius); padding: 28px 22px; margin-top: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta-card h3 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
  position: relative;
}
.cta-card h3::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.cta-card p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 16px; line-height: 1.6; position: relative; }
.cta-btn {
  display: inline-block; width: 100%; text-align: center; padding: 11px;
  background: #fff; color: var(--primary); border-radius: 8px;
  font-weight: 600; font-size: 0.9rem; transition: all 0.2s;
  position: relative;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* Page title */
.page-title {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.page-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  position: relative;
  padding-left: 16px;
}
.page-title h1::before {
  content: '';
  position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}
.page-title p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 16px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
}
.page-btn {
  padding: 8px 20px;
  background: var(--card-bg);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--primary);
  box-shadow: var(--shadow);
  transition: all 0.15s;
}
.page-btn:hover {
  background: var(--primary);
  color: #fff;
}
.page-info {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Error page */
.error-page {
  text-align: center;
  padding: 80px 20px;
}
.error-page h1 {
  font-size: 4rem;
  color: var(--primary);
  font-weight: 700;
}
.error-page p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}
.error-page .cta-btn {
  display: inline-block;
  width: auto;
  margin-top: 20px;
  padding: 10px 32px;
  background: var(--primary);
  color: #fff;
}
.error-page .cta-btn:hover {
  background: var(--primary-dark);
}

/* Topics */
.topic-grid--enhanced {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.topic-card--enhanced {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  padding: 28px 24px 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.topic-card--enhanced::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  opacity: 0;
  transition: opacity 0.25s;
}
.topic-card--enhanced:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.topic-card--enhanced:hover::before { opacity: 1; }
.topic-card--enhanced__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}
.topic-card--enhanced h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  margin-bottom: 8px; transition: color 0.15s;
}
.topic-card--enhanced h3:hover { color: var(--primary); }
.topic-card--enhanced__desc {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px;
}
.topic-card--enhanced__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8rem; color: var(--text-light);
  padding-top: 14px; border-top: 1px solid var(--border);
}
.topic-card--enhanced__meta span { display: flex; align-items: center; gap: 4px; }
.topic-card--enhanced__arrow {
  position: absolute; right: 20px; top: 32px;
  width: 24px; height: 24px; color: var(--text-light);
  opacity: 0; transform: translateX(-4px); transition: all 0.25s;
}
.topic-card--enhanced:hover .topic-card--enhanced__arrow {
  opacity: 1; transform: translateX(0); color: var(--primary);
}

/* Topic detail page */
.topic-detail-header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  padding: 40px 0 32px;
  margin-bottom: 24px;
}
.topic-detail-header h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.topic-detail-header p { font-size: 0.9rem; opacity: 0.85; }
.topic-detail-header .container { max-width: 800px; }
.topic-breadcrumb { font-size: 0.85rem; margin-bottom: 12px; opacity: 0.8; }
.topic-breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.topic-breadcrumb a:hover { opacity: 0.9; }
.topic-breadcrumb span { margin: 0 6px; }
.topic-detail-stat { margin-top: 10px; font-size: 0.85rem; opacity: 0.75; }

/* Article Detail */
.reading-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  z-index: 200; transition: width 0.1s linear;
}
.wb-article-page {
  max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; width: 100%;
}
.wb-breadcrumb { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 18px; line-height: 1.5; }
.wb-breadcrumb a { color: var(--text-secondary); transition: color 0.15s; }
.wb-breadcrumb a:hover { color: var(--primary); }
.wb-breadcrumb__sep { margin: 0 8px; opacity: 0.55; }
.wb-breadcrumb__current {
  color: var(--text-light); display: inline-block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}
.wb-article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start;
}
@media (max-width: 960px) {
  .wb-article-layout { grid-template-columns: 1fr; }
}
.wb-sidebar--hot .card { position: sticky; top: 72px; }
.wb-article { background: #fff; border-radius: var(--radius); padding: 40px 36px 28px; }
.wb-article.wb-article--detail { box-shadow: var(--shadow); }
.wb-article__title {
  font-size: 24px; font-weight: 700; line-height: 1.5; color: #1a1a1a;
  margin: 0 0 20px; letter-spacing: -0.02em;
}
.wb-article__meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0;
}
.wb-article__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.wb-article__author-info { display: flex; flex-direction: column; gap: 2px; }
.wb-article__author-row { display: flex; align-items: center; gap: 8px; }
.wb-article__author-name { font-size: 14px; font-weight: 600; color: #333; line-height: 1.3; }
.wb-article__pub-info { font-size: 13px; color: #999; display: flex; align-items: center; gap: 4px; }
.wb-article__dot { color: #ccc; }

/* Article Body Typography */
.wb-article__body {
  font-size: 16px; line-height: 1.9; color: #333;
  word-break: break-word; overflow-wrap: break-word; letter-spacing: 0.02em; overflow: hidden;
}
.wb-article__body p { margin-bottom: 1.6em; }
.wb-article__body strong, .wb-article__body b { color: #111; font-weight: 700; }
.wb-article__body em { font-style: italic; color: #555; }
.wb-article__body img { display: block; max-width: 100%; margin: 20px auto; border-radius: 6px; }
.wb-article__body h2 {
  font-size: 20px; font-weight: 700; color: #1a1a1a;
  margin: 36px 0 14px; line-height: 1.4; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0;
}
.wb-article__body h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin: 28px 0 12px; line-height: 1.4; }
.wb-article__body h4 { font-size: 16px; font-weight: 600; color: #333; margin: 20px 0 8px; }
.wb-article__body blockquote {
  border-left: 3px solid var(--primary); padding: 14px 18px; background: #f0f9ff;
  margin: 20px 0; color: #555; font-size: 15px; line-height: 1.8; border-radius: 0 6px 6px 0;
}
.wb-article__body blockquote p:last-child { margin-bottom: 0; }
.wb-article__body ul, .wb-article__body ol { margin: 12px 0 20px 1.8em; }
.wb-article__body li { margin-bottom: 8px; line-height: 1.8; }
.wb-article__body pre {
  background: #1e1e2e; color: #cdd6f4; padding: 16px 20px; border-radius: 8px;
  overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 20px 0;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}
.wb-article__body code {
  background: #f3f3f5; color: #e45649; padding: 2px 6px; border-radius: 4px;
  font-size: 0.9em; font-family: 'SF Mono', 'Fira Code', monospace;
}
.wb-article__body pre code { background: none; color: inherit; padding: 0; border-radius: 0; }
.wb-article__body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.wb-article__body th, .wb-article__body td { border: 1px solid #e8e8e8; padding: 10px 14px; text-align: left; }
.wb-article__body th { background: #fafafa; font-weight: 600; color: #333; }
.wb-article__body tr:hover td { background: #fafafa; }
.wb-article__body a { color: var(--primary); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.wb-article__body a:hover { border-bottom-color: var(--primary); }
.wb-article__body hr { border: none; border-top: 1px solid #e8e8e8; margin: 28px 0; }

/* Tags */
.wb-article__tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
  padding-top: 16px; border-top: 1px solid #f0f0f0;
}
.wb-tag {
  display: inline-flex; align-items: center; padding: 4px 14px;
  background: #f5f5f5; border-radius: 16px; font-size: 13px; color: #666; transition: all 0.15s;
}
.wb-tag:hover { color: var(--primary); background: var(--primary-light); }

.wb-article__footer { margin-top: 16px; padding-top: 12px; }
.wb-article__pub-date { font-size: 13px; color: #bbb; }

/* Footer */
.footer {
  margin-top: auto; padding: 34px 0 18px;
  font-size: 0.85rem; color: #64748b;
  background: #f3f5f7; border-top: 1px solid #e2e8f0;
}
.footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer__grid {
  display: grid; grid-template-columns: minmax(260px, 1.1fr) auto minmax(280px, 0.9fr);
  gap: 44px; align-items: flex-start; padding-bottom: 22px;
}
.footer__grid--no-qr { grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr); }
.footer__brand { min-width: 0; }
.footer__brand-link {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 42px; margin-bottom: 12px; color: #1f2937;
}
.footer__brand-logo { display: block; width: auto; max-width: 220px; max-height: 56px; object-fit: contain; }
.footer__brand-mark {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border: 2px solid #475569; border-radius: 2px;
  color: #1f2937; font-size: 0.95rem; font-weight: 800; line-height: 1.1;
}
.footer__brand-text { display: grid; gap: 2px; }
.footer__brand-text strong { font-size: 1.75rem; font-weight: 700; color: #1f2937; letter-spacing: 0; }
.footer__brand-text em {
  color: #64748b; font-size: 0.86rem; font-style: normal;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.footer__slogan { max-width: 360px; margin-bottom: 14px; color: #64748b; line-height: 1.7; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 6px 0; margin-bottom: 10px; color: #475569; }
.footer__legal-links a,
.footer__contact a,
.footer__section-links a,
.footer__bottom a { color: inherit; transition: color 0.15s; }
.footer__legal-links a + a::before { content: "|"; margin: 0 8px; color: #cbd5e1; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #64748b; }
.footer__meta { display: grid; gap: 18px; }
.footer__section h4 { margin-bottom: 10px; color: #1f2937; font-size: 0.9rem; font-weight: 700; }
.footer__section-links { display: flex; flex-wrap: wrap; gap: 9px 16px; line-height: 1.7; color: #64748b; }
.footer__friend-link { display: inline-flex; align-items: center; gap: 6px; }
.footer__friend-icon { width: 16px; height: 16px; border-radius: 3px; object-fit: contain; background: #fff; }
.footer__bottom {
  padding-top: 15px; border-top: 1px solid #e2e8f0;
  font-size: 0.78rem; color: #64748b;
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
}
.footer__extra-links { display: inline-flex; flex-wrap: wrap; gap: 8px 14px; }
.footer__brand a:hover,
.footer__legal-links a:hover,
.footer__contact a:hover,
.footer__section-links a:hover,
.footer__bottom a:hover { color: #1f2937; }

/* Channel tabs */
.channel-tabs {
  display: flex; gap: 8px; margin-bottom: 20px;
  flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
}
.channel-tab {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 6px 16px; border-radius: 20px; font-size: 0.85rem;
  color: var(--text-secondary); background: var(--card-bg);
  border: 1px solid var(--border); transition: all 0.15s; white-space: nowrap;
}
.channel-tab .category-nav-icon { width: 16px; height: 16px; object-fit: contain; flex: 0 0 auto; }
.channel-tab:hover, .channel-tab.active {
  color: #fff; background: var(--primary); border-color: var(--primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--text); border-radius: 1px;
  transition: transform 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
  .main-grid { grid-template-columns: 1fr; }
  .article-thumb { width: 120px; min-width: 120px; height: 80px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card-bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav--open { display: flex; }
  .nav a { padding: 8px 0; }
  .footer__grid, .footer__grid--no-qr { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { justify-content: center; }
  .wb-article-page { padding: 8px 0 32px; }
  .wb-article { padding: 24px 18px 20px; border-radius: 0; }
  .wb-article__title { font-size: 20px; margin-bottom: 16px; }
  .wb-article__body { font-size: 15.5px; line-height: 1.85; }
  .wb-article__body h2 { font-size: 18px; margin: 24px 0 10px; }
  .wb-article__body h3 { font-size: 16px; }
  .wb-article__body blockquote { padding: 12px 14px; font-size: 14px; }
  .wb-article__body pre { padding: 12px 14px; font-size: 13px; }
  .topic-grid--enhanced { grid-template-columns: 1fr; }
  .topic-card--enhanced { padding: 20px; }
  .article-item:hover { background: transparent; margin: 0; padding-left: 0; padding-right: 0; }
}

@media (max-width: 480px) {
  .wb-article__avatar { width: 36px; height: 36px; font-size: 13px; }
}
