/* ============================================
   职教资讯网 - 门户级样式表
   主题色系：专业蓝 + 科技青
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  /* 主色调 */
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;

  /* 辅助色 */
  --secondary: #0f766e;
  --secondary-light: #14b8a6;

  /* 功能色 */
  --accent: #dc2626;
  --accent-orange: #ea580c;
  --success: #16a34a;
  --warning: #d97706;

  /* 中性色 */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --bg-page: #f1f5f9;
  --bg-white: #ffffff;
  --bg-card: #ffffff;

  /* 排版 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* 半径 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  /* 布局 */
  --header-height: 64px;
  --max-width: 1200px;
  --sidebar-width: 300px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

/* ---- Accessibility: Skip Link ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--text-primary);
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 6px 0;
  line-height: 1.4;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: #94a3b8;
}

.top-bar a:hover {
  color: #fff;
}

.top-bar .top-left span {
  margin-right: 16px;
}

/* ---- Header ---- */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.logo span {
  background: linear-gradient(135deg, var(--primary), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Main Navigation ---- */
.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary-bg);
  color: var(--primary);
}

/* ---- Search Box ---- */
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--border-light);
  border-radius: 24px;
  padding: 6px 6px 6px 16px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.header-search:focus-within {
  background: var(--bg-white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  width: 180px;
  color: var(--text-primary);
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}

.header-search button:hover {
  background: var(--primary-dark);
}

/* ---- Mobile Menu Toggle ---- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---- Page Wrapper ---- */
.page-wrapper {
  padding: var(--space-lg) 0 var(--space-3xl);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

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

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  user-select: none;
  margin: 0 2px;
}

.breadcrumb .current {
  color: var(--primary);
  font-weight: 500;
}

/* ---- Hero Section ---- */
.hero {
  margin-bottom: var(--space-2xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
}

.hero-main {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: box-shadow 0.3s;
}

.hero-main:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.hero-main .hero-img {
  height: 340px;
  background: linear-gradient(135deg, #1a56db 0%, #2563eb 25%, #0f766e 60%, #14b8a6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-main .hero-img::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 40px;
  width: 160px;
  height: 160px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}

.hero-main .hero-img::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -30px;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}

.hero-main .hero-img .hero-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(220,38,38,0.4);
}

.hero-main .hero-img .hero-img-text {
  color: rgba(255,255,255,0.85);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 4px;
  z-index: 1;
}

.hero-main .hero-content {
  padding: var(--space-xl) var(--space-xl);
}

.hero-main .hero-content .hero-cat {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.hero-main .hero-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}

.hero-main .hero-content h2 a {
  color: var(--text-primary);
  transition: color 0.2s;
}

.hero-main .hero-content h2 a:hover {
  color: var(--primary);
}

.hero-main .hero-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-main .hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-main .hero-meta .meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-side-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 18px var(--space-lg);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid transparent;
  transition: all 0.25s;
  position: relative;
}

.hero-side-item:nth-child(1) { border-left-color: var(--primary); }
.hero-side-item:nth-child(2) { border-left-color: var(--secondary); }
.hero-side-item:nth-child(3) { border-left-color: var(--accent-orange); }

.hero-side-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.hero-side-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 6px;
}

.hero-side-item h3 a {
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side-item h3 a:hover {
  color: var(--primary);
}

.hero-side-item .hero-side-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Hero Cert Box (热门证书快捷入口) ---- */
.hero-cert-box {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
}

.hero-cert-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hero-cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: all 0.25s;
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
}

.hero-cert-item:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.15);
}

.hero-cert-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.hero-cert-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}

.hero-cert-tag {
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ---- Hot Tags Banner ---- */
.hot-tags-bar {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 12px var(--space-lg);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.hot-tags-bar .hot-label {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.875rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hot-tags-bar a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 5px 14px;
  background: var(--border-light);
  border-radius: 20px;
  transition: all 0.25s;
  white-space: nowrap;
  border: 1px solid transparent;
}

.hot-tags-bar a:hover {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

/* ---- 搜索高亮 ---- */
mark {
  background: #fef08a;
  color: #1e293b;
  padding: 1px 4px;
  border-radius: 3px;
}

/* ---- 热门搜索栏 ---- */
.hot-search-bar {
  background: linear-gradient(135deg, #eff6ff, #faf5ff);
  border-radius: var(--radius-lg);
  padding: 14px var(--space-lg);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px dashed var(--primary);
}

.hot-search-bar .hot-search-label {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.875rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hot-search-bar a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 5px 14px;
  background: var(--bg-white);
  border-radius: 20px;
  transition: all 0.25s;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid #e2e8f0;
}

.hot-search-bar a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26,86,219,.25);
}

/* ---- 空搜索结果 ---- */
.empty-search {
  text-align: center;
  padding: 64px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.empty-search-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.empty-search-title {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-search-title mark {
  font-weight: 700;
}

.empty-search-hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.empty-search-hint a {
  color: var(--primary);
  font-weight: 600;
}

.empty-search-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 460px;
  margin: 0 auto;
}

.empty-search-tags a {
  font-size: 0.8125rem;
  color: var(--primary);
  padding: 6px 18px;
  background: var(--primary-bg);
  border-radius: 20px;
  transition: all 0.25s;
  text-decoration: none;
  border: 1px solid #bfdbfe;
}

.empty-search-tags a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- Portal Layout: 3-Column Grid ---- */
.portal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 300px;
  gap: var(--space-lg);
}

/* ---- Section Block ---- */
.section-block {
  margin-bottom: var(--space-xl);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  border-radius: 2px;
}

/* 每个板块不同的强调色 */
.section-block:nth-child(1) .section-header::after,
.section-block:nth-child(1) .section-header { border-bottom-color: #bfdbfe; }
.section-block:nth-child(1) .section-header::after { background: var(--primary); }

.section-block:nth-child(2) .section-header::after,
.section-block:nth-child(2) .section-header { border-bottom-color: #ccfbf1; }
.section-block:nth-child(2) .section-header::after { background: var(--secondary); }

.section-block:nth-child(3) .section-header::after,
.section-block:nth-child(3) .section-header { border-bottom-color: #fed7aa; }
.section-block:nth-child(3) .section-header::after { background: var(--accent-orange); }

.section-block:nth-child(4) .section-header::after,
.section-block:nth-child(4) .section-header { border-bottom-color: #bbf7d0; }
.section-block:nth-child(4) .section-header::after { background: var(--success); }

.section-block:nth-child(5) .section-header::after,
.section-block:nth-child(5) .section-header { border-bottom-color: #fecaca; }
.section-block:nth-child(5) .section-header::after { background: var(--accent); }

.section-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2 .section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.section-header h2 .section-icon.blue { background: var(--primary); }
.section-header h2 .section-icon.teal { background: var(--secondary); }
.section-header h2 .section-icon.orange { background: var(--accent-orange); }
.section-header h2 .section-icon.green { background: var(--success); }
.section-header h2 .section-icon.red { background: var(--accent); }

.section-header .more-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.section-header .more-link:hover {
  color: var(--primary);
}

/* ---- Article Card ---- */
.article-card {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}

.article-card:hover {
  background: #fafbff;
}

.article-card:last-child {
  border-bottom: none;
}

.article-card .card-thumb {
  width: 130px;
  height: 90px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--border-light), #e8edf5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  position: relative;
}

.article-card .card-thumb .thumb-icon {
  opacity: 0.4;
  font-size: 2rem;
}

.article-card .card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.article-card .card-info h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 6px;
}

.article-card .card-info h3 a {
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.article-card .card-info .card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  flex: 1;
}

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

.article-card .card-info .card-meta .meta-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
}

/* ---- Sidebar ---- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.sidebar-widget h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.sidebar-widget h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---- Sidebar Bottom (底部三栏信息块) ---- */
.sidebar-bottom {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.sidebar-widgets-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ---- Hot Article List ---- */
.hot-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-list .rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.hot-list li:nth-child(1) .rank,
.hot-list li:nth-child(2) .rank,
.hot-list li:nth-child(3) .rank {
  background: var(--accent);
}

.hot-list a {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

.hot-list a:hover {
  color: var(--primary);
}

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

.tag-cloud a {
  font-size: 0.8125rem;
  padding: 6px 14px;
  background: var(--border-light);
  border-radius: 20px;
  color: var(--text-secondary);
  transition: all 0.25s;
  border: 1px solid transparent;
}

.tag-cloud a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26,86,219,0.3);
}

/* ---- List Page ---- */
.page-title-bar {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.page-title-bar h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.page-title-bar p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.list-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
}

.list-main {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md) var(--space-xl);
  border: 1px solid var(--border-light);
}

/* ---- List Filters ---- */
.list-filters {
  display: flex;
  gap: 8px;
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border-light);
  flex-wrap: wrap;
}

.list-filters a {
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--border-light);
  transition: all 0.25s;
  font-weight: 500;
  border: 1px solid transparent;
}

.list-filters a.active,
.list-filters a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(26,86,219,0.3);
}

/* ---- Article List Item ---- */
.article-list-item {
  display: flex;
  gap: 20px;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}

.article-list-item:hover {
  background: #fafbff;
}

.article-list-item:last-child {
  border-bottom: none;
}

.article-list-item .list-thumb {
  width: 220px;
  height: 145px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--border-light), #e8edf5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
  position: relative;
}

.article-list-item .list-thumb .thumb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.4));
  padding: 20px 12px 8px;
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-list-item .list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-list-item .list-info h2 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 10px;
}

.article-list-item .list-info h2 a {
  color: var(--text-primary);
  transition: color 0.2s;
}

.article-list-item .list-info h2 a:hover {
  color: var(--primary);
}

.article-list-item .list-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: auto;
}

.article-list-item .list-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.article-list-item .list-meta .category-tag {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-top: var(--space-xl);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-white);
  transition: all 0.25s;
  font-weight: 500;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
  box-shadow: 0 2px 6px rgba(26,86,219,0.1);
}

.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(26,86,219,0.3);
}

.pagination .dots {
  border: none;
  background: transparent;
}

/* ---- Article Detail Page ---- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
}

.article-detail {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2xl);
  border: 1px solid var(--border-light);
}

.article-detail .article-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 18px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.article-detail .article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-detail .article-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

.article-detail .article-meta .category-tag {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ---- Article Content ---- */
.article-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-primary);
}

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: var(--space-2xl) 0 var(--space-md);
  padding: 0 0 0 14px;
  border-left: 4px solid var(--primary);
  color: var(--text-primary);
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: var(--space-md);
  text-indent: 2em;
  color: #374151;
}

.article-body ul,
.article-body ol {
  margin: var(--space-md) 0;
  padding-left: 2em;
}

.article-body ul li,
.article-body ol li {
  margin-bottom: 8px;
  color: #374151;
  line-height: 1.7;
}

.article-body ul li {
  list-style: disc;
}

.article-body ol li {
  list-style: decimal;
}

.article-body strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.article-body blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, #f0f9ff, #f0fdf4);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-body .highlight-box {
  background: linear-gradient(135deg, var(--primary-bg), #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
}

/* ---- Article Tags ---- */
.article-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.article-tags .tags-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.article-tags a {
  font-size: 0.8125rem;
  padding: 5px 14px;
  background: var(--border-light);
  border-radius: 20px;
  color: var(--text-secondary);
  transition: all 0.25s;
  border: 1px solid transparent;
}

.article-tags a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(26,86,219,0.25);
}

/* ---- Related Articles ---- */
.related-articles {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--border-light);
}

.related-articles h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-articles h3::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.related-item {
  padding: 14px;
  background: var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.25s;
  border: 1px solid transparent;
}

.related-item:hover {
  background: var(--primary-bg);
  border-color: #bfdbfe;
  transform: translateY(-2px);
}

.related-item h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 6px;
}

.related-item h4 a {
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item h4 a:hover {
  color: var(--primary);
}

.related-item .related-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Friend Links ---- */
.friend-links {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.friend-links-inner {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.friend-links-inner .fl-title {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
}

.friend-links-inner a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.friend-links-inner a:hover {
  color: var(--primary);
}

/* ---- Footer ---- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: var(--space-3xl);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid #1e293b;
}

.footer-col h3 {
  color: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: 12px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #94a3b8;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748b;
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-main .hero-img {
    height: 240px;
  }

  .portal-layout {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-widget {
    flex: 1;
    min-width: 250px;
  }

  .list-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

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

  .sidebar-widgets-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-bottom {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
  }

  .friend-links {
    margin-bottom: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    z-index: 999;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .header-search {
    display: none;
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: column;
  }

  .sidebar-widgets-row {
    grid-template-columns: 1fr;
  }

  .sidebar-bottom {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .friend-links {
    margin-bottom: var(--space-lg);
  }

  .friend-links-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hot-search-bar {
    padding: 12px var(--space-md);
    gap: 8px;
  }

  .empty-search {
    padding: 40px 16px;
  }

  .empty-search-tags {
    gap: 8px;
  }

  .article-list-item {
    flex-direction: column;
  }

  .article-list-item .list-thumb {
    width: 100%;
    height: 180px;
  }

  .article-detail {
    padding: var(--space-md);
  }

  .article-detail .article-title {
    font-size: 1.25rem;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  :root {
    --space-3xl: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero-main .hero-img {
    height: 180px;
  }

  .hero-main .hero-content h2 {
    font-size: 1.125rem;
  }

  .article-detail .article-title {
    font-size: 1.125rem;
  }

  .article-body {
    font-size: 0.9375rem;
  }

  .sidebar-bottom {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .friend-links {
    margin-bottom: var(--space-md);
  }
}

/* ---- Utility Classes ---- */
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
