/* ========================================
   逗哥资讯 - 统一样式表 (Douge Purple Theme)
   Brand: douge.com | Primary: #8043ff | Version: v=20260622i
   ======================================== */

/* --- CSS Variables --- */
:root {
  --bg-primary: #fbf5ff;
  --bg-secondary: #f5f0ff;
  --bg-tertiary: #ede4ff;
  --bg-card: rgba(255,255,255,0.85);
  --bg-card-hover: rgba(255,255,255,0.95);
  --bg-input: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.25);

  --text-primary: #1a1a1a;
  --text-secondary: #4d4d4d;
  --text-muted: #999999;
  --text-inverse: #ffffff;

  --accent: #8043ff;
  --accent-hover: #6636cc;
  --accent-light: rgba(128, 67, 255, 0.12);
  --accent-glow: rgba(128, 67, 255, 0.25);

  --cyan: #46fff5;
  --cyan-glow: rgba(70, 255, 245, 0.2);

  --border-color: rgba(128,67,255,0.15);
  --border-light: rgba(128,67,255,0.08);

  --success: #22b34b;
  --warning: #e6a23c;
  --danger: #ff6363;
  --info: #4097f7;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.1);

  --transition: 0.25s ease;

  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(180deg, #ffffff 0%, #fbf5ff 40%, #d1bbff 75%, #8043ff 100%);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

::selection {
  background: var(--accent-glow);
  color: var(--text-primary);
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #6636cc;
}

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

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo:hover {
  color: #6636cc;
}

.nav-logo-img {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-links a:hover {
  background: rgba(128, 67, 255, 0.12);
  color: #8043ff;
}

/* Header "查看更多" button */
.btn-header-more {
  display: inline-block;
  padding: 5px 14px;
  background: #8043ff;
  color: #fff !important;
  border: none;
  border-radius: 16px;
  font-size: 0.8rem !important;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-family);
}

.btn-header-more:hover {
  background: #6636cc !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(128, 67, 255, 0.5);
}

/* --- Header "返回主页" Button --- */
.btn-header-home {
  display: inline-block;
  padding: 5px 14px;
  background: transparent;
  color: var(--text-secondary) !important;
  border: 1px solid rgba(128,67,255,0.25);
  border-radius: 16px;
  font-size: 0.8rem !important;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-family);
}

.btn-header-home:hover {
  background: rgba(128, 67, 255, 0.12) !important;
  color: #8043ff !important;
  border-color: #8043ff;
}


/* ========================================
   Hero Banner (Light → Purple Transition)
   ======================================== */
.hero {
  background: transparent;
  padding: 64px 24px 56px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 48px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* --- Hero Badge (Left) --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #9766fe, #6636cc);
  padding: 12px 24px;
  border-radius: 14px;
  transform: rotate(-3deg);
  box-shadow:
    0 6px 0 rgba(128,67,255,0.3),
    0 8px 20px rgba(151, 102, 254, 0.25),
    0 12px 40px rgba(102, 54, 204, 0.15);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* --- CSS Speaker Icon --- */
.badge-icon {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.badge-speaker {
  display: block;
  width: 18px;
  height: 16px;
  background: #ffffff;
  border-radius: 3px 2px 2px 3px;
  position: relative;
}

.badge-speaker::before {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 5px solid #ffffff;
}

.badge-wave {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: #ffffff;
  opacity: 0.8;
}

.badge-wave1 { width: 8px; }
.badge-wave2 { width: 5px; opacity: 0.5; }

/* --- Badge Text --- */
.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: #46fff5;
  letter-spacing: -0.5px;
}

.badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* --- Hero Content (Right) --- */
.hero-content {
  flex: 1;
  min-width: 240px;
}

.hero-content h1 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1.05rem;
  color: #4d4d4d;
  line-height: 1.6;
}

/* --- Main Container --- */
.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  width: 100%;
}

#main-index {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* --- Sidebar Navigation --- */
.sidebar-nav {
  width: 180px;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(151,102,254,0.12);
  border-radius: 12px;
  padding: 20px 0 12px;
  box-shadow: 0 2px 16px rgba(151,102,254,0.06);
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 16px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(151,102,254,0.08);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4d4d4d;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  margin: 0 4px;
  border-radius: 0 8px 8px 0;
}

.sidebar-nav-item:hover {
  background: rgba(151,102,254,0.08);
  color: #8043ff;
  border-left-color: rgba(151,102,254,0.3);
}

.sidebar-nav-item.active,
.sidebar-nav-item[aria-current="page"] {
  background: rgba(128,67,255,0.1);
  color: #6636cc;
  border-left-color: #9766fe;
}

/* --- Content Wrapper --- */
.content-wrapper {
  flex: 1;
  min-width: 0;
}


/* ========================================
   Section Intro Card (涓撳尯浠嬬粛)
   ======================================== */
.section-intro {
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(151,102,254,0.05) 0%, rgba(255,255,255,0.97) 50%, rgba(102,54,204,0.03) 100%);
  border: 1px solid rgba(151,102,254,0.10);
  border-left: 4px solid #9766fe;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(151,102,254,0.06);
  transition: box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.section-intro:hover {
  box-shadow: 0 4px 24px rgba(151,102,254,0.12);
  border-left-color: #8043ff;
}

.section-intro-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #9766fe, #6636cc);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px 5px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.section-intro-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.section-intro-text {
  font-size: 0.95rem;
  color: #3a3a3a;
  line-height: 1.78;
  margin: 0 0 16px 0;
}

.section-intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-intro-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6636cc;
  background: rgba(151,102,254,0.07);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(151,102,254,0.16);
  transition: all 0.2s ease;
  cursor: default;
}

.section-intro-tag-link {
 cursor: pointer;
 text-decoration: none;
}

.section-intro-tag:hover {
  background: rgba(151,102,254,0.14);
  border-color: #9766fe;
  color: #4a1da8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(151,102,254,0.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section-intro {
    padding: 20px 18px;
    border-radius: 10px;
  }
  .section-intro-text {
    font-size: 0.88rem;
    line-height: 1.7;
  }
  .section-intro-tags {
    gap: 8px;
  }
  .section-intro-tag {
    font-size: 0.76rem;
    padding: 4px 10px;
  }
}
/* --- Article Cards Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* --- Article Card --- */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(128, 67, 255, 0.2);
  border-color: rgba(128,67,255,0.35);
}

/* --- Card Cover Image --- */
.card-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #ede4ff;
}

.card-cover-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(128,67,255,0.12), rgba(151,102,254,0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
}

/* --- Card Body --- */
.card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card:hover .card-title {
  color: #8043ff;
}

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

.card-views {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  background: rgba(151, 102, 254, 0.08);
  padding: 2px 10px;
  border-radius: 12px;
  align-self: flex-end;
  margin-top: auto;
}

.article-card .card-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
 color: var(--accent);\
 font-weight: 500;\
 background: rgba(151, 102, 254, 0.08);\
 align-self: flex-end;\
 margin-top: auto;\
}
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(128, 67, 255, 0.12);
  color: #8043ff;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
}

/* --- "查看更多" Button --- */
.view-more-wrap {
  text-align: center;
  padding: 16px 0;
}

.btn-view-more {
  display: inline-block;
  padding: 12px 36px;
  background: #8043ff;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-family);
}

.btn-view-more:hover {
  background: #6636cc;
  box-shadow: 0 0 24px rgba(128, 67, 255, 0.5);
  color: #fff;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 24px 0;
}

.pagination button {
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-family);
}

.pagination button:hover:not(:disabled) {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.pagination button.active {
  background: #8043ff;
  color: #fff;
  border-color: #8043ff;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 20px 0 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: #6636cc;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: var(--text-muted);
}

/* --- Article Detail --- */
.article-detail {
  max-width: 780px;
  margin: 0 auto;
}

.article-cover {
  width: 100%;
  max-width: 780px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: block;
}

.article-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.article-header .article-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.article-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.article-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.article-views {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  background: rgba(151, 102, 254, 0.08);
  padding: 2px 10px;
  border-radius: 12px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- Markdown Content --- */
.article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-primary);
  background: rgba(255,255,255,0.75);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  border: 1px solid rgba(128,67,255,0.12);
}

.article-content h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 28px 0 16px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(128,67,255,0.25);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 22px 0 10px;
}

.article-content h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 20px 0 8px;
}

.article-content h5 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 18px 0 6px;
}

.article-content h6 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-secondary);
  margin: 16px 0 6px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.article-content strong,
.article-content b {
  font-weight: 700;
  color: var(--text-primary);
}

.article-content blockquote {
  border-left: 4px solid #8043ff;
  padding: 12px 18px;
  margin: 18px 0;
  background: rgba(128,67,255,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #666;
  font-size: 15px;
  line-height: 1.7;
}

.article-content ul,
.article-content ol {
  margin: 10px 0 18px 0;
  padding-left: 24px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-content li {
  margin-bottom: 6px;
  font-size: 16px;
}

.article-content code {
  background: rgba(128,67,255,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #6636cc;
}

.article-content pre {
  background: #f5f0ff;
  border: 1px solid rgba(128,67,255,0.15);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 14px 0;
}

.article-content pre code {
  background: none;
  color: #1a1a1a;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 28px 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

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

.article-content table th {
  background: rgba(128,67,255,0.08);
  font-weight: 600;
}

/* --- Article Navigation (prev/next) --- */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 780px;
  margin: 36px auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.article-nav a {
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  max-width: 48%;
}

.article-nav a:hover {
  border-color: #8043ff;
  box-shadow: 0 0 12px rgba(128,67,255,0.2);
}

.article-nav .nav-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.article-nav .nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.article-nav a.empty {
  visibility: hidden;
}

/* --- Related Articles --- */
.related-articles {
  max-width: 780px;
  margin: 0 auto 40px;
}

.related-articles h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #1a1a1a;
}

/* --- Minimal Footer --- */
.footer-minimal {
  text-align: center;
  padding: 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-minimal p {
  color: #999999;
  font-size: 0.82rem;
}

/* --- Loading / Empty States --- */
.loading,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999999;
  font-size: 1rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 0 16px 36px;
  }

  #main-index {
    flex-direction: column;
    gap: 16px;
  }

  .sidebar-nav {
    width: 100%;
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 10px 8px;
    border-radius: 10px;
  }

  .sidebar-title {
    display: none;
  }

  .sidebar-nav-item {
    padding: 8px 12px;
    font-size: 0.78rem;
    border-left: none;
    border-radius: 20px;
    margin: 2px;
  }

  .sidebar-nav-item:hover {
    border-left-color: transparent;
  }

  .sidebar-nav-item.active {
    border-left-color: transparent;
  }

  .hero {
    padding: 40px 20px 36px;
    border-radius: 12px;
    margin-bottom: 36px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .hero-badge {
    transform: rotate(-2deg);
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-header .article-title {
    font-size: 1.5rem;
  }

  .article-nav {
    flex-direction: column;
  }

  .article-nav a {
    max-width: 100%;
  }

  .article-content {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 14px;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-links a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 32px 16px 28px;
    border-radius: 10px;
    margin-bottom: 28px;
  }

  .hero-content h1 {
    font-size: 1.55rem;
  }

  .hero-badge {
    padding: 10px 18px;
    border-radius: 12px;
    gap: 8px;
  }

  .badge-num {
    font-size: 1rem;
  }

  .badge-label {
    font-size: 0.7rem;
  }
}


/* ========================================
   List Page Styles (list.html)
   ======================================== */

/* --- Nav Left Group (Back + Logo) --- */
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Back Button --- */
.btn-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 4px 0;
  transition: color var(--transition);
  white-space: nowrap;
}

.btn-back:hover {
  color: #6636cc;
}

/* --- Article List Container --- */
/* ===== Category Navigation ===== */
.category-nav {
 max-width: 860px;
 margin: 20px auto 10px;
 padding: 0 20px;
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
}

.cat-btn {
 padding: 6px 16px;
 border: 1px solid #d0d5dd;
 border-radius: 20px;
 background: #fff;
 color: #344054;
 font-size: 0.88rem;
 cursor: pointer;
 transition: all 0.2s;
}

.cat-btn:hover {
 background: #f0f4ff;
 border-color: #6366f1;
 color: #6366f1;
}

.cat-btn.active {
 background: #6366f1;
 border-color: #6366f1;
 color: #fff;
}

/* ===== List Item Category Tag ===== */
.list-meta-line {
 display: flex;
 align-items: center;
 gap: 8px;
 margin: 4px 0 6px;
}

.list-category-tag {
 display: inline-block;
 padding: 1px 8px;
 border-radius: 10px;
 background: #eef2ff;
 color: #4f46e5;
 font-size: 0.72rem;
 font-weight: 500;
 white-space: nowrap;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}

/* --- List Item --- */
.article-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  transition: all var(--transition);
}

.article-list-item:hover {
  background: rgba(128,67,255,0.06);
  border-radius: var(--radius-sm);
  margin: 0 -12px;
  padding: 16px 12px;
}

/* --- List Thumbnail --- */
.list-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: #ede4ff;
}

.list-thumb-placeholder {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(128,67,255,0.1), rgba(151,102,254,0.18));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8043ff;
  font-size: 1.4rem;
  font-weight: 700;
}

/* --- List Info (right side) --- */
.list-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.list-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.list-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-list-item:hover .list-title {
  color: #8043ff;
}

.list-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.list-summary {
 color: var(--accent);\
 font-weight: 500;\
 background: rgba(151, 102, 254, 0.08);\
 align-self: flex-end;\
 margin-top: auto;\
}
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.list-views {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  background: rgba(151, 102, 254, 0.08);
  padding: 2px 10px;
  border-radius: 12px;
  align-self: flex-end;
  margin-top: auto;
}

/* --- List Item Divider --- */
.list-item-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0;
}

/* Hide divider on last wrapper */
.article-list > div:last-child .list-item-divider {
  display: none;
}

/* --- Responsive: List Page --- */
@media (max-width: 768px) {
  .article-list-item {
    gap: 12px;
    padding: 12px 0;
  }

  .article-list-item:hover {
    margin: 0 -8px;
    padding: 12px 8px;
  }

  .list-thumb,
  .list-thumb-placeholder {
    width: 90px;
    height: 68px;
  }

  .list-title {
    font-size: 0.95rem;
  }

  .list-date {
    font-size: 0.72rem;
  }

  .list-summary {
    -webkit-line-clamp: 1;
  }

  .nav-left {
    gap: 8px;
  }

  .btn-back {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .list-header {
    flex-direction: column;
    gap: 4px;
  }

  .list-thumb,
  .list-thumb-placeholder {
    width: 70px;
    height: 53px;
  }

  .btn-back {
    font-size: 0.75rem;
  }
}
[?9001l[?1004l