/* ===== viivjk-Max Theme ===== */
/* Design: 微微健康网 — Nature Green Health Theme */

:root {
  --primary: #4a7c59;
  --primary-light: #6b9b7a;
  --primary-dark: #3a6347;
  --accent: #e8f5e9;
  --bg-cream: #faf8f5;
  --bg-light: #f5f3f0;
  --text-primary: #2c3e2d;
  --text-secondary: #5a6b5c;
  --text-muted: #8a9a8c;
  --border: #e0e8e1;
  --shadow: rgba(74, 124, 89, 0.08);
}

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

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

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { line-height: 1.4; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-dark); }

/* ===== Top Nav (Dark — Homepage) ===== */
.top-nav {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 12px 0;
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.top-nav.light {
  background: white;
  box-shadow: 0 1px 0 var(--border);
  padding: 0 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.top-nav.light .nav-container { height: 60px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.top-nav .logo { color: white; }
.top-nav.light .logo { color: var(--primary-dark); }

.logo-icon {
  width: 36px; height: 36px;
  background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.top-nav.light .logo-icon { background: var(--primary); }
.top-nav.light .logo-icon .icon-text { color: white; }
.top-nav .logo-icon .icon-text { color: var(--primary); }

.logo-text { font-size: 20px; font-weight: 600; letter-spacing: 1px; }

.nav-menu { display: flex; gap: 40px; list-style: none; }
.nav-menu a {
  font-size: 15px; font-weight: 500; transition: all 0.3s;
  position: relative; text-decoration: none;
  display: inline-block;
}
.top-nav .nav-menu a { color: rgba(255,255,255,0.9); }
.top-nav.light .nav-menu a { color: var(--text-secondary); line-height: 60px; }
.top-nav .nav-menu a:hover, .top-nav .nav-menu a.active { color: white; }
.top-nav.light .nav-menu a:hover, .top-nav.light .nav-menu a.active { color: var(--primary); }

.nav-menu a.active::after {
  content: ''; position: absolute;
  left: 50%; transform: translateX(-50%);
  background: white; border-radius: 1px;
}
.top-nav .nav-menu a.active::after {
  bottom: -8px; width: 20px; height: 2px;
}
.top-nav.light .nav-menu a.active::after {
  bottom: 0; width: 30px; height: 3px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-search { position: relative; }
.nav-search input {
  width: 220px; padding: 8px 35px 8px 15px;
  border: none; border-radius: 20px;
  font-size: 14px; outline: none; transition: all 0.3s;
}
.top-nav .nav-search input {
  background: rgba(255,255,255,0.15); color: white;
}
.top-nav .nav-search input::placeholder { color: rgba(255,255,255,0.6); }
.top-nav .nav-search input:focus { background: rgba(255,255,255,0.25); }

.top-nav.light .nav-search input {
  width: 240px; border: 1px solid var(--border);
  background: var(--bg-light); color: var(--text-primary);
}
.top-nav.light .nav-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.nav-search-btn {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%); background: none;
  border: none; cursor: pointer;
}
.top-nav .nav-search-btn { color: rgba(255,255,255,0.8); }
.top-nav.light .nav-search-btn { color: var(--text-muted); }

/* Mobile search button (hidden on desktop, shown on mobile) */
.mobile-search-btn {
  display: none;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-search-btn:hover { color: white; }
.top-nav.light .mobile-search-btn { color: var(--text-secondary); }
.top-nav.light .mobile-search-btn:hover { color: var(--primary); }

.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none;
}
.top-nav .nav-avatar {
  background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
}
.top-nav.light .nav-avatar {
  background: var(--bg-light);
}
.top-nav .nav-avatar:hover, .top-nav.light .nav-avatar:hover {
  opacity: 0.85;
}

.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 22px; cursor: pointer; padding: 4px;
}
.top-nav .mobile-menu-btn { color: white; }
.top-nav.light .mobile-menu-btn { color: var(--text-primary); }

/* ===== Main ===== */
.main-content { margin-top: 60px; min-height: calc(100vh - 60px); }

/* ===== Hero (Homepage) ===== */
.hero-section {
  background: linear-gradient(135deg, #f0f7f2 0%, #e8f0ea 100%);
  padding: 60px 0; position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234a7c59' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-content h1 {
  font-family: "Noto Serif SC", "PingFang SC", "STSong", serif;
  font-size: 48px; font-weight: 700;
  color: var(--primary-dark); margin-bottom: 20px; line-height: 1.3;
}
.hero-content h1 span { color: var(--primary); }
.hero-content .subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 30px; line-height: 1.8; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-number { font-size: 32px; font-weight: 700; color: var(--primary); display: block; }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 5px; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-image {
  width: 100%; max-width: 500px; height: 350px;
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.1) 0%, rgba(74, 124, 89, 0.05) 100%);
  border-radius: 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.taiji-icon {
  width: 150px; height: 150px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 60px; color: white;
  box-shadow: 0 20px 40px rgba(74, 124, 89, 0.3); margin-bottom: 20px;
}
.hero-image-text {
  font-family: "Noto Serif SC", "PingFang SC", "STSong", serif;
  font-size: 24px; color: var(--primary-dark); font-weight: 600;
}
.hero-stats a { text-decoration: none; display: block; }
.hero-stats a:hover .stat-number { color: var(--primary-dark); }

/* ===== Section Layout ===== */
.section { padding: 60px 0; }
.featured-section { background: white; padding: 60px 0; }
.section-header {
  max-width: 1200px; margin: 0 auto 40px;
  padding: 0 20px; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 15px;
}
.section-title {
  font-family: "Noto Serif SC", "PingFang SC", "STSong", serif;
  font-size: 28px; font-weight: 700;
  color: var(--text-primary); display: flex; align-items: center; gap: 15px;
}
.section-title::before {
  content: ''; width: 4px; height: 28px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 2px;
}
.view-more {
  color: var(--primary); text-decoration: none;
  font-size: 14px; font-weight: 500; display: flex;
  align-items: center; gap: 5px; transition: all 0.3s;
}
.view-more:hover { color: var(--primary-dark); gap: 10px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Category Button Tabs ===== */
.category-tags {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.category-tag {
  padding: 8px 20px; background: white;
  border: 1px solid var(--border); border-radius: 20px;
  font-size: 14px; color: var(--text-secondary);
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.category-tag:hover, .category-tag.active {
  background: var(--primary); color: white; border-color: var(--primary);
}

/* ===== Article Cards Grid ===== */
.article-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding: 0;
}
.article-grid.col3 { grid-template-columns: repeat(3, 1fr); }

.article-card {
  background: white; border-radius: 12px;
  overflow: hidden; box-shadow: 0 2px 12px var(--shadow);
  transition: all 0.3s ease; cursor: pointer; display: flex; flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(74, 124, 89, 0.15);
}
.article-image {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.article-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 500; color: white;
}
.article-badge.article { background: rgba(74, 124, 89, 0.9); }
.article-badge.video { background: rgba(219, 39, 119, 0.85); }

.article-content { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.article-title {
  font-size: 16px; font-weight: 600; color: var(--text-primary);
  line-height: 1.5; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-title a { color: inherit; text-decoration: none; }
.article-title a:hover { color: var(--primary); }
.article-excerpt {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-muted);
}
.article-meta .author { display: flex; align-items: center; gap: 6px; }
.article-meta .author-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-light);
}
.article-meta .stats { display: flex; gap: 12px; }
.article-meta .stats span { display: flex; align-items: center; gap: 4px; }

/* ===== Featured Section (Homepage) ===== */
.featured-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 30px;
}
.featured-main {
  background: linear-gradient(135deg, var(--accent) 0%, white 100%);
  border-radius: 16px; padding: 30px;
  display: flex; gap: 30px; align-items: center;
}
.featured-main-image {
  width: 280px; height: 200px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; color: white; font-size: 60px; flex-shrink: 0;
}
.featured-main-content h3 {
  font-family: "Noto Serif SC", "PingFang SC", "STSong", serif;
  font-size: 24px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 12px;
}
.featured-main-content p { color: var(--text-secondary); font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.read-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: white;
  padding: 10px 24px; border-radius: 24px;
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: all 0.3s;
}
.read-more-btn:hover { background: var(--primary-dark); transform: translateX(4px); color: white; }

.featured-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--bg-light); border-radius: 12px;
  padding: 20px; display: flex; gap: 15px; align-items: center;
  transition: all 0.3s; cursor: pointer; text-decoration: none;
}
.sidebar-card:hover { background: var(--accent); }
.sidebar-card-image {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: white; font-size: 30px; flex-shrink: 0;
}
.sidebar-card-content h4 {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 6px; line-height: 1.4;
}
.sidebar-card-content p { font-size: 12px; color: var(--text-muted); }

/* ===== Page Header (Subpages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--bg-cream) 100%);
  padding: 40px 0; text-align: center;
}
.page-title {
  font-family: "Noto Serif SC", "PingFang SC", "STSong", serif;
  font-size: 32px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px;
}
.page-subtitle { color: var(--text-secondary); font-size: 16px; }

/* ===== Filter Bar (List) ===== */
.filter-bar {
  max-width: 1200px; margin: 0 auto 24px; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 15px;
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 20px; background: white;
  border: 1px solid var(--border); border-radius: 20px;
  font-size: 14px; color: var(--text-secondary);
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active {
  background: var(--primary); color: white; border-color: var(--primary);
}
.sort-options select {
  padding: 8px 15px; border: 1px solid var(--border);
  border-radius: 8px; background: white;
  color: var(--text-secondary); font-size: 14px;
  outline: none; cursor: pointer; font-family: inherit;
}

/* ===== Article / Content Page ===== */
.article-body {
  background: white; border-radius: 16px;
  padding: 40px; box-shadow: 0 2px 20px var(--shadow);
}
.article-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 40px; padding: 40px 20px 80px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; gap: 10px; font-size: 13px;
  color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--primary); }

/* Article header */
.article-body h1 {
  font-family: "Noto Serif SC", "PingFang SC", "STSong", serif;
  font-size: 32px; font-weight: 700; line-height: 1.4; margin-bottom: 24px;
}
.article-info {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 30px;
  flex-wrap: wrap; gap: 15px;
}
.article-info .author-info { display: flex; align-items: center; gap: 12px; }
.article-info .author-avatar-large {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); display: flex;
  align-items: center; justify-content: center; font-size: 20px;
}
img.author-avatar-large {
  display: inline-block; object-fit: cover;
  background: var(--bg-light);
}
.article-info .author-detail h4 { font-size: 15px; font-weight: 600; }
.article-info .author-detail span { font-size: 13px; color: var(--text-muted); }
.article-meta-info {
  display: flex; gap: 20px; font-size: 13px; color: var(--text-muted);
}

/* Article body text */
.article-content-body { font-size: 17px; line-height: 2; color: var(--text-primary); }
.article-content-body p { margin-bottom: 20px; }
.article-content-body h2 {
  font-family: "Noto Serif SC", "PingFang SC", "STSong", serif;
  font-size: 22px; font-weight: 700; margin: 40px 0 16px;
  padding-left: 14px; border-left: 3px solid var(--primary);
}
.article-content-body h3 {
  font-size: 18px; font-weight: 600; margin: 28px 0 12px; color: var(--text-primary);
}
.article-content-body blockquote {
  margin: 24px 0; padding: 20px 24px; background: var(--accent);
  border-radius: 10px; border-left: 4px solid var(--primary);
  color: var(--text-secondary); font-style: italic;
}
.article-content-body ul, .article-content-body ol { margin: 16px 0; padding-left: 24px; }
.article-content-body li { margin-bottom: 8px; }
.article-content-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.article-content-body pre {
  background: #1e293b; color: #e2e8f0; padding: 20px;
  border-radius: 10px; overflow-x: auto; margin: 20px 0;
  font-family: "JetBrains Mono", "Consolas", monospace; font-size: 0.9em; line-height: 1.6;
}
.article-content-body code {
  background: var(--accent); padding: 2px 6px; border-radius: 4px; font-size: 0.9em;
  color: var(--primary-dark);
}
.article-content-body pre code { background: transparent; padding: 0; color: inherit; }
.highlight-box {
  margin: 24px 0; padding: 24px;
  background: linear-gradient(135deg, #f9fbfa 0%, #f0f7f2 100%);
  border: 1px solid var(--accent); border-radius: 12px;
  font-size: 15px; color: var(--text-secondary); line-height: 1.8;
}
.highlight-box strong { color: var(--primary); }

/* Article footer */
.article-footer { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); }
.article-tags { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.tag {
  padding: 6px 16px; background: var(--accent); color: var(--primary);
  border-radius: 16px; font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all 0.3s;
}
.tag:hover { background: var(--primary); color: white; }
.article-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.action-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.action-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: var(--bg-light);
  border: 1px solid var(--border); border-radius: 24px;
  font-size: 14px; color: var(--text-secondary);
  cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.action-btn:hover { background: var(--accent); border-color: var(--primary); color: var(--primary); }
.action-btn.liked { background: #fce4ec; border-color: #ef5350; color: #ef5350; }
.share-btns { display: flex; gap: 8px; }
.share-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-light); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; transition: all 0.3s;
}
.share-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }

/* ===== Comment Section Placeholder ===== */
.comment-section {
  margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border);
}
.comment-section h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.comment-placeholder {
  padding: 40px;
  background: #f7f7f7; border-radius: 12px;
  border: 2px dashed var(--border); color: var(--text-muted);
}

/* ===== Video Player ===== */
.video-section { background: #000; }
.video-container {
  max-width: 1200px; margin: 0 auto;
  aspect-ratio: 16/9; max-height: 540px;
  display: flex; align-items: center; justify-content: center;
  background: #1a1a2e; position: relative;
}
.play-btn {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 36px; transition: all 0.3s;
  backdrop-filter: blur(10px); color: white;
}
.play-btn:hover { background: rgba(255,255,255,0.35); transform: scale(1.1); }
.video-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  display: flex; align-items: flex-end; justify-content: space-between;
}

/* ===== Sidebar ===== */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-box {
  background: white; border-radius: 12px;
  padding: 24px; margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--shadow);
}
.sidebar-box h4 {
  font-size: 16px; font-weight: 600; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-box h4::before {
  content: ''; width: 3px; height: 16px;
  background: var(--primary); border-radius: 2px;
}
.related-item {
  display: flex; gap: 12px; padding: 10px 0;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.related-item:hover { background: var(--bg-light); margin: 0 -12px; padding: 10px 12px; border-radius: 8px; }
.related-image {
  width: 80px; height: 60px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--bg-light) 100%);
}
.related-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.related-info h5 {
  font-size: 14px; font-weight: 500; line-height: 1.4;
  color: var(--text-primary); margin-bottom: 6px;
}
.related-info span { font-size: 12px; color: var(--text-muted); }

/* ===== Search Page ===== */
.search-header-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--bg-cream) 100%);
  padding: 40px 0; text-align: center;
}
.search-header-section h1 {
  font-family: "Noto Serif SC", "PingFang SC", "STSong", serif;
  font-size: 24px; font-weight: 700; margin-bottom: 24px;
}
.search-bar-big {
  max-width: 600px; margin: 0 auto; position: relative;
}
.search-bar-big input {
  width: 100%; padding: 14px 50px 14px 20px;
  border: 2px solid var(--primary); border-radius: 28px;
  font-size: 16px; outline: none; background: white;
  box-shadow: 0 4px 20px rgba(74, 124, 89, 0.1);
  font-family: inherit;
}
.search-bar-big input:focus { box-shadow: 0 4px 30px rgba(74, 124, 89, 0.2); }
.search-bar-big button {
  position: absolute; right: 6px; top: 6px;
  padding: 10px 24px; background: var(--primary);
  color: white; border: none; border-radius: 22px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: all 0.3s; font-family: inherit;
}
.search-bar-big button:hover { background: var(--primary-dark); }

.search-results { max-width: 900px; margin: 0 auto; padding: 30px 20px 60px; }
.results-info { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.results-info strong { color: var(--primary); }
.search-suggestions { margin-bottom: 20px; }
.search-suggestions h3 { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-bottom: 12px; }
.suggestion-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.suggestion-tag {
  padding: 8px 16px; background: white;
  border: 1px solid var(--border); border-radius: 20px;
  font-size: 14px; color: var(--text-secondary);
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.suggestion-tag:hover { border-color: var(--primary); color: var(--primary); background: var(--accent); }

.result-item {
  background: white; border-radius: 12px;
  padding: 24px; margin-bottom: 16px;
  box-shadow: 0 2px 8px var(--shadow);
  display: flex; gap: 20px; cursor: pointer;
  transition: all 0.3s; text-decoration: none; color: inherit;
}
.result-item:hover { box-shadow: 0 4px 24px rgba(74, 124, 89, 0.12); transform: translateX(4px); }
.result-image {
  width: 160px; height: 110px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--bg-light) 100%);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 36px; flex-shrink: 0;
}
.result-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.result-body { flex: 1; min-width: 0; }
.result-title {
  font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.4;
}
.result-title em { color: var(--primary); font-style: normal; }
.result-excerpt {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.result-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.result-meta span { display: flex; align-items: center; gap: 4px; }

/* Search loading & empty states */
.search-loading {
  text-align: center; padding: 40px 20px; color: var(--text-muted);
}
.search-spinner {
  width: 36px; height: 36px; margin: 0 auto 16px;
  border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: searchSpin 0.8s linear infinite;
}
@keyframes searchSpin { to { transform: rotate(360deg); } }
.search-loading p { font-size: 14px; }
.search-loading strong { color: var(--primary); }
.search-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.search-empty-icon { font-size: 48px; margin-bottom: 16px; }
.search-empty h3 { font-size: 18px; color: var(--text-primary); margin-bottom: 8px; font-weight: 600; }
.search-empty p { font-size: 14px; }
.search-results-list { display: flex; flex-direction: column; gap: 16px; }
.result-category {
  display: inline-block; font-size: 12px; color: var(--primary);
  background: var(--accent); padding: 2px 10px; border-radius: 10px; margin-bottom: 8px;
}
/* Search pagination */
#search-pagination { margin-top: 24px; }
.pagination-inner {
  display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 6px;
  background: white; color: var(--text-secondary); font-size: 14px;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--accent); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== Profile Page ===== */
.profile-header-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 50px 0; position: relative; overflow: hidden;
}
.profile-header-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.profile-container {
  max-width: 800px; margin: 0 auto; padding: 0 20px;
  text-align: center; position: relative; z-index: 1;
}
.profile-avatar-large {
  width: 100px; height: 100px; border-radius: 50%;
  background: white; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.profile-name { font-size: 24px; font-weight: 700; color: white; margin-bottom: 6px; }
.profile-bio { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 20px; }

.profile-stats {
  background: white; max-width: 800px;
  margin: -30px auto 0; padding: 24px;
  border-radius: 16px; position: relative; z-index: 1;
  display: flex; justify-content: space-around;
  box-shadow: 0 4px 20px var(--shadow);
}
.profile-stat-item { text-align: center; transition: all 0.3s; }
.profile-stat-item:hover { transform: translateY(-2px); }
.profile-stat-item .stat-number { font-size: 28px; font-weight: 700; color: var(--primary); }
.profile-stat-item .stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.profile-tabs-sec {
  max-width: 800px; margin: 30px auto 20px;
  padding: 0 20px; display: flex; gap: 0;
  background: white; border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow); overflow: hidden;
}
.profile-tab {
  flex: 1; text-align: center; padding: 14px;
  font-size: 15px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all 0.3s;
  border-bottom: 3px solid transparent;
}
.profile-tab:hover { color: var(--primary); background: var(--accent); }
.profile-tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

.profile-content-section { max-width: 800px; margin: 0 auto; padding: 0 20px 60px; }

.content-card {
  background: white; border-radius: 12px;
  padding: 24px; margin-bottom: 16px;
  box-shadow: 0 2px 8px var(--shadow);
  display: flex; gap: 20px; cursor: pointer;
  transition: all 0.3s; text-decoration: none; color: inherit;
}
.content-card:hover { box-shadow: 0 4px 24px rgba(74, 124, 89, 0.15); transform: translateX(4px); }
.content-image {
  width: 140px; height: 100px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--bg-light) 100%);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 32px; flex-shrink: 0;
}
.content-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.content-body { flex: 1; min-width: 0; }
.content-title {
  font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.4;
}
.content-excerpt {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.content-meta-card { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; gap: 8px; }
.content-stats { display: flex; gap: 16px; }
.content-tag {
  padding: 3px 10px; background: var(--accent);
  color: var(--primary); border-radius: 10px; font-size: 12px; text-decoration: none;
}

/* Empty State */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state .icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 8px; }

/* ===== Pagination ===== */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin: 40px 0 60px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  width: 40px; height: 40px; display: flex;
  align-items: center; justify-content: center;
  background: white; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-secondary);
  text-decoration: none; font-size: 14px; transition: all 0.3s;
}
.pagination a:hover, .pagination .active, .pagination .current {
  background: var(--primary); color: white; border-color: var(--primary);
}

/* ===== Footer ===== */
.footer {
  background: var(--text-primary); color: white;
  padding: 60px 0 30px; margin-top: 0;
}
.footer.full { margin-top: 80px; }
.footer-content {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 2fr 1fr;
  gap: 60px;
}
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; }
.footer-logo-icon {
  width: 36px; height: 36px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center;
}
.footer-desc { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.8; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-column h4 { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 12px; }
.footer-column a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-column a:hover { color: white; }
.footer-contact h4 { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.footer-contact p { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 10px; }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding: 30px 20px 0; border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; color: rgba(255,255,255,0.4); font-size: 13px;
}

.footer-simple .footer-content {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-simple .footer-center { display: flex; gap: 40px; }
.footer-simple .footer-center a {
  color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.3s;
}
.footer-simple .footer-center a:hover { color: white; }
.footer-simple .footer-bottom { margin: 16px auto 0; padding: 16px 20px 0; }

/* ===== Error Page ===== */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 6rem; color: var(--primary); margin-bottom: 10px; font-family: "Noto Serif SC", serif; }
.error-page h2 { font-size: 1.5rem; margin-bottom: 20px; color: var(--text-secondary); }
.error-page .back-home {
  display: inline-block; padding: 12px 30px; background: var(--primary);
  color: white; border-radius: 24px; text-decoration: none; transition: all 0.3s;
}
.error-page .back-home:hover { background: var(--primary-dark); color: white; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 36px; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .article-container { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 15px 20px; gap: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .top-nav .nav-menu.open { background: var(--primary-dark); }
  .top-nav .nav-menu.open a { color: white; line-height: 3; }
  .top-nav.light .nav-menu.open a { color: var(--text-primary); line-height: 3; }
  .nav-menu.open a.active::after { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-search { display: none; }
  .mobile-search-btn { display: flex; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-body { padding: 24px; }
  .article-body h1 { font-size: 24px; }
  .article-info { flex-direction: column; gap: 15px; align-items: flex-start; }
  .featured-main { flex-direction: column; text-align: center; }
  .featured-main-image { width: 100%; }
  .result-item, .content-card { flex-direction: column; }
  .result-image, .content-image { width: 100%; height: 160px; }
  .profile-stats { border-radius: 0; margin-top: 0; }
  .footer-content { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .article-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 28px; }
  .section-title { font-size: 22px; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .hero-section { padding: 40px 0; }
  .hero-stats { gap: 20px; }
  .search-bar-big input { font-size: 14px; }
}
