/*
Theme Name: WebStack WP
Theme URI: https://github.com/WebStackPage/WebStackPage.github.io
Description: 一个基于 WebStack 设计的 WordPress 导航主题，三段式布局：固定顶部 + 导航分类 + 三栏内容 + 底部。
Author: WebStack
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: MIT
Text Domain: webstack-wp
Tags: one-column, custom-colors, custom-menu, theme-options, navigation, responsive
*/

/* ============================================
   CSS 变量 / 设计令牌
   ============================================ */
:root {
  /* 侧边栏 */
  --ws-sidebar-width: 240px;
  --ws-sidebar-collapsed: 70px;
  --ws-sidebar-bg: #2c2e2f;
  --ws-sidebar-border: #313437;
  --ws-sidebar-text: #979898;
  --ws-sidebar-text-active: #ffffff;
  --ws-sidebar-hover: rgba(255,255,255,0.05);

  /* 主内容 */
  --ws-bg: #f9f9f9;
  --ws-card-bg: #ffffff;
  --ws-card-border: #e4ecf3;
  --ws-card-shadow: 0 26px 40px -24px rgba(0, 36, 100, 0.3);
  --ws-text: #333333;
  --ws-text-secondary: #666666;
  --ws-text-muted: #999999;
  --ws-accent: #68b828;
  --ws-accent-hover: #5aa320;

  /* 右侧栏 */
  --ws-right-sidebar-width: 280px;

  /* 圆角 */
  --ws-radius-sm: 4px;
  --ws-radius-md: 6px;

  /* 通用颜色 */
  --ws-border: #e8e8e8;
  --ws-bg-light: #f5f5f5;

  /* 布局高度 */
  --ws-header-height: 64px;
  --ws-nav-height: 48px;
  --ws-top-height: calc(var(--ws-header-height) + var(--ws-nav-height));

  /* 过渡 */
  --ws-transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   基础重置
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  color: var(--ws-text);
  background: var(--ws-bg);
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

/* ============================================
   全局布局
   ============================================ */
.page-container { width: 100%; min-height: 100vh; }

/* ============================================
   顶部栏 site-header — 固定顶部
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* header 顶部栏 — 一行三部分 */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px; flex-shrink: 0;
}

.header-logo img { width: 40px; height: 40px; }

.header-site-name {
  font-size: 1.125rem; font-weight: 600;
  color: var(--ws-text); white-space: nowrap;
}

/* 占位元素，高度等于 fixed header + nav-catalog，防止内容被遮挡 */
.header-placeholder {
  height: var(--ws-top-height);
}

.header-center {
  flex: 1;
  max-width: 600px; margin: 0 20px;
  display: flex;
  flex-direction: column;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px; flex-shrink: 0;
}

/* ============================================
   导航目录条 nav-catalog — 横向滚动
   ============================================ */
.nav-catalog {
  position: relative; z-index: 999;
  background: #fff; border-bottom: 1px solid #eee;
  overflow: visible;
}

.nav-catalog-list {
  display: flex;
  align-items: center;
  margin: 0; padding: 0 15px; gap: 0;
}

.nav-catalog-list > li { position: relative; }

.nav-catalog-list > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px; font-size: 0.875rem;
  color: var(--ws-text-secondary);
  border-bottom: 2px solid transparent;
  transition: var(--ws-transition);
}

.nav-catalog-list > li > a:hover,
.nav-catalog-list > li.active > a {
  color: var(--ws-accent); border-bottom-color: var(--ws-accent);
}

/* 子菜单下拉 */
.nav-catalog-list .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 160px; background: #fff; border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); padding: 8px 0; z-index: 1001;
}

/* 悬停时显示子菜单 */
.nav-catalog-list > li:hover > .sub-menu,
.nav-catalog-list > li.has-sub:hover > .sub-menu {
  display: block;
}

.nav-catalog-list .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px; font-size: 0.8125rem;
  color: var(--ws-text);
}

.nav-catalog-list .sub-menu li a:hover { background: var(--ws-bg-light); color: var(--ws-accent); }

/* ============================================
   主体区域 main-body — 三栏布局
   ============================================ */
.main-body {
  display: flex;
  padding-top: 20px;
  min-height: 100vh;
}

.body-left {
  width: 220px; flex-shrink: 0;
  background: var(--ws-sidebar-bg); color: var(--ws-sidebar-text);
  padding: 15px 0; overflow-y: auto;
  position: sticky;
  top: var(--ws-top-height); height: calc(100vh - var(--ws-top-height));
}

.body-left::-webkit-scrollbar { width: 4px; }
.body-left::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.content-wrapper {
  flex: 1;
  min-width: 0; padding: 20px;
}

.hot-news-sidebar {
  width: 300px; flex-shrink: 0;
  border-left: 1px solid var(--ws-border); background: var(--ws-bg-light);
  padding: 15px; overflow-y: auto;
  position: sticky;
  top: var(--ws-top-height); height: calc(100vh - var(--ws-top-height));
}

.hot-news-sidebar::-webkit-scrollbar { width: 4px; }
.hot-news-sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* ============================================
   左侧导航目录 body-left — 复用 main-menu 样式
   ============================================ */
.body-left .main-menu { padding: 10px 0; margin: 0; }

.body-left .main-menu > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px; color: var(--ws-sidebar-text);
  font-size: 0.875rem;
  transition: var(--ws-transition);
}

.body-left .main-menu > li > a:hover,
.body-left .main-menu > li.active > a { color: #fff; background: rgba(255,255,255,0.08); }
.body-left .main-menu > li.active > a { border-left: 3px solid var(--ws-accent); }

/* 子菜单 */
.body-left .main-menu .sub-menu {
  display: none; padding: 0; margin: 0;
  background: rgba(0,0,0,0.15);
}

.body-left .main-menu li.has-sub.open > .sub-menu { display: block; }

.body-left .main-menu .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 50px;
  color: var(--ws-sidebar-text); font-size: 0.8125rem;
}

.body-left .main-menu .sub-menu li a:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* ============================================
   底部 site-footer — 三栏
   ============================================ */
.site-footer {
  background: var(--ws-sidebar-bg); color: #ccc; padding: 30px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 20px; max-width: 1200px; margin: 0 auto;
}

.footer-left { text-align: left; display: flex; flex-direction: column; gap: 4px; }

.footer-left .footer-link { color: #ccc; font-size: 0.875rem; }
.footer-left .footer-link:hover { color: var(--ws-accent); }

.footer-center { text-align: center; }

.footer-copyright, .footer-icp { margin: 0; font-size: 0.8125rem; color: #999; }
.footer-copyright a, .footer-icp a { color: #999; }
.footer-copyright a:hover, .footer-icp a:hover { color: var(--ws-accent); }

.footer-right { text-align: right; }

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #ccc;
  font-size: 1rem;
  transition: var(--ws-transition);
}

.social-links a:hover { background: var(--ws-accent); color: #fff; }

/* 微信二维码悬停显示（公众号/视频号通用） */
.social-link-qrcode {
  position: relative;
}

.social-link-qrcode .qrcode-popup {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  padding: 10px;
  background: #fff;
  border-radius: var(--ws-radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 100;
  text-align: center;
}

.social-link-qrcode .qrcode-popup img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.social-link-qrcode .qrcode-popup p {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
}

.social-link-qrcode:hover .qrcode-popup {
  display: block;
}

/* ============================================
   移动端汉堡菜单控制 body-left
   ============================================ */
.mobile-menu-toggle { display: none; }

.sidebar-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 998;
}

.sidebar-overlay.show { display: block; }

/* ============================================
   搜索框样式
   ============================================ */
.search-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 搜索分类标签（站内/搜索/工具/社区/生活）- 在搜索框下方 */
.search-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px; font-size: 0.8125rem;
  margin-top: 8px;
}

.search-tab {
  padding: 3px 10px; cursor: pointer; border-radius: 10px;
  transition: all 0.2s ease; white-space: nowrap;
  color: var(--ws-text-muted); user-select: none;
}

.search-tab:hover { color: var(--ws-accent); }

.search-tab.active {
  color: var(--ws-accent);
  background: rgba(104, 184, 40, 0.12);
  font-weight: 500;
}

.search-input-row {
  display: flex;
  align-items: center;
  background: #fff; border: 2px solid #e0e0e0;
  border-radius: 30px;
  height: 44px;
  transition: all 0.3s ease;
  overflow: visible;
}

.search-input-row:focus-within {
  border-color: var(--ws-accent);
  box-shadow: 0 0 0 3px rgba(104, 184, 40, 0.1);
}

.search-input-row input {
  flex: 1;
  border: none; outline: none;
  padding: 0 12px;
  font-size: 0.9375rem;
  background: transparent;
  min-width: 0;
}

.search-input-row input::placeholder { color: #aaa; }

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--ws-accent); color: #fff;
  border: none; border-radius: 50%; font-size: 0.9375rem;
  cursor: pointer; transition: var(--ws-transition);
  flex-shrink: 0;
}

.search-btn:hover { background: var(--ws-accent-hover); }

/* 搜索引擎下拉选择器 */
.search-engine-dropdown {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  height: 100%;
  background: var(--ws-bg-light);
  border-right: 1px solid #e0e0e0;
  border-radius: 30px 0 0 30px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ws-text);
  user-select: none;
  white-space: nowrap;
  min-width: 60px;
}

.search-engine-dropdown .fa-angle-down {
  font-size: 0.75rem;
  transition: var(--ws-transition);
}

.search-engine-dropdown.open .fa-angle-down {
  transform: rotate(180deg);
}

.engine-dropdown-list {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--ws-radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  z-index: 1002;
  padding: 8px 0;
}

.search-engine-dropdown.open .engine-dropdown-list {
  display: block;
}

.engine-dropdown-list .engine-group {
  display: none;
  padding: 0;
}

.engine-dropdown-list .engine-group.active {
  display: block;
}

.engine-dropdown-list .engine-item {
  display: block;
  padding: 8px 16px;
  font-size: 0.8125rem;
  color: var(--ws-text);
  cursor: pointer;
  transition: var(--ws-transition);
}

.engine-dropdown-list .engine-item:hover {
  background: #f0f0f0;
  color: var(--ws-accent);
}

.engine-dropdown-list .engine-item.active {
  color: var(--ws-accent);
  font-weight: 500;
}

/* ============================================
   用户登录/注册导航
   ============================================ */
.user-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-login-btn,
.user-register-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px; font-size: 0.875rem;
  color: var(--ws-text-secondary);
  border-radius: 20px; transition: var(--ws-transition);
}

.user-login-btn:hover { color: var(--ws-accent); background: rgba(104, 184, 40, 0.08); }

.user-register-btn { background: var(--ws-accent); color: #fff; }
.user-register-btn:hover { background: var(--ws-accent-hover); }

/* 用户菜单下拉 */
.user-menu { position: relative; }

.user-name {
  display: flex;
  align-items: center;
  gap: 6px; padding: 6px 12px; font-size: 0.875rem;
  color: var(--ws-text); cursor: pointer; border-radius: 20px;
  transition: var(--ws-transition);
}

.user-name:hover { background: rgba(0,0,0,0.05); }

.user-dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  min-width: 140px; background: #fff;
  border-radius: var(--ws-radius-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 8px 0; margin-top: 5px; z-index: 100;
}

.user-menu:hover .user-dropdown { display: block; }

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px; padding: 10px 16px; font-size: 0.875rem;
  color: var(--ws-text);
  transition: var(--ws-transition);
}

.user-dropdown a:hover { background: var(--ws-bg-light); color: var(--ws-accent); }

/* ============================================
   内容区域
   ============================================ */

/* 分类标题 */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px; margin: 30px 0 20px;
  padding-bottom: 10px; border-bottom: 1px solid var(--ws-border);
  color: var(--ws-text-muted); font-size: 1rem; font-weight: 500;
}

.section-title:first-child { margin-top: 0; }
.section-title i { color: var(--ws-accent); }

/* ============================================
   热点头条 - 右侧多栏布局
   ============================================ */

/* 多栏容器 */
.hot-news-columns {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 单个栏目 */
.hot-news-column {
  flex-shrink: 0;
}

.hot-news-section {
  background: var(--ws-card-bg);
  border: 1px solid var(--ws-card-border);
  border-radius: var(--ws-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hot-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--ws-accent) 0%, var(--ws-accent-hover) 100%);
  color: #fff; flex-shrink: 0;
  position: sticky;
  top: 0; z-index: 10;
}

.hot-news-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px; font-size: 0.9375rem; font-weight: 600;
}

.hot-news-title i { font-size: 1rem; }

.hot-news-source {
  display: inline-block; padding: 1px 7px;
  background: rgba(255,255,255,0.2); border-radius: 10px;
  font-size: 0.6875rem; font-weight: 500; margin-left: 6px;
}

.hot-news-refresh,
.hot-news-more {
  display: inline-flex;
  align-items: center;
  gap: 4px; color: #fff; font-size: 0.75rem;
  opacity: 0.8; transition: opacity 0.2s;
  cursor: pointer;
}

.hot-news-refresh:hover,
.hot-news-more:hover { opacity: 1; }

.hot-news-list {
  padding: 6px 0; overflow-y: auto; flex: 1;
}

.hot-news-list::-webkit-scrollbar { width: 3px; }
.hot-news-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.hot-news-empty {
  padding: 20px; text-align: center;
  color: #999; font-size: 0.8125rem;
}

/* 最新文章样式 — 覆盖 .hot-news-item 的 flex 布局 */
.hot-news-list .recent-post-item {
  flex-direction: column; align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
}

.hot-news-list .recent-post-item .hot-news-text {
  text-align: left;
  justify-content: flex-start;
  width: 100%; display: block;
}

.recent-post-date {
  text-align: left; display: block;
  font-size: 0.6875rem; color: var(--ws-text-muted);
}

/* 最新加入网站样式（左侧内容区） */
.recent-sites-row { margin-bottom: 30px; }

.recent-site-icon {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover;
}

.recent-site-item { gap: 10px; }

.hot-news-item {
  display: flex;
  align-items: center;
  gap: 10px; padding: 9px 18px;
  color: var(--ws-text);
  transition: background 0.2s; border-bottom: 1px solid var(--ws-bg-light);
}

.hot-news-item:last-child { border-bottom: none; }
.hot-news-item:hover { background: #f9f9f9; }

.hot-news-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px; background: #f0f0f0;
  color: var(--ws-text-secondary); font-size: 0.6875rem;
  font-weight: 600; border-radius: 4px; flex-shrink: 0;
}

.hot-news-rank.top { background: var(--ws-accent); color: #fff; }

.hot-news-text {
  flex: 1;
  font-size: 0.8125rem; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; text-align: left;
}

.hot-news-icon {
  color: var(--ws-text-muted); font-size: 0.6875rem;
  opacity: 0; transition: opacity 0.2s;
}

.hot-news-item:hover .hot-news-icon { opacity: 1; }

/* 未启用热点时，content-wrapper 占满 */
body:not(.has-hot-news) .content-wrapper { max-width: 100%; }

/* ============================================
   面包屑导航
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px; padding: 12px 15px; margin-bottom: 20px;
  background: var(--ws-card-bg);
  border: 1px solid var(--ws-card-border);
  border-radius: var(--ws-radius-md);
  font-size: 0.875rem;
}

.breadcrumb a { color: var(--ws-text-secondary); transition: var(--ws-transition); }
.breadcrumb a:hover { color: var(--ws-accent); }
.breadcrumb .sep { color: var(--ws-text-muted); font-size: 0.75rem; }
.breadcrumb .current { color: var(--ws-text); font-weight: 500; }

/* ============================================
   子分类标签导航
   ============================================ */
.sub-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; margin-bottom: 20px; padding: 15px 18px;
  background: var(--ws-card-bg);
  border: 1px solid var(--ws-card-border);
  border-radius: var(--ws-radius-md);
}

.sub-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px; padding: 6px 14px; font-size: 0.8125rem;
  color: var(--ws-text-secondary); background: var(--ws-bg-light);
  border: 1px solid var(--ws-border); border-radius: 20px;
  transition: var(--ws-transition);
}

.sub-cat-tag:hover { color: var(--ws-accent); border-color: var(--ws-accent); background: rgba(104, 184, 40, 0.05); }

.sub-cat-tag.active { color: #fff; background: var(--ws-accent); border-color: var(--ws-accent); }
.sub-cat-tag i { font-size: 0.75rem; }

/* ============================================
   网址卡片网格
   ============================================ */
.sites-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

/* ============================================
   网址卡片 - 简洁版
   ============================================ */
.site-col {
  padding: 0 10px;
  margin-bottom: 20px;
  position: relative;
}

.site-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ws-card-bg);
  border: 1px solid var(--ws-card-border);
  border-radius: var(--ws-radius-sm);
  padding: 15px;
  transition: var(--ws-transition);
  color: inherit;
}

.site-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ws-card-shadow);
  border-color: transparent;
}

.site-card:hover .site-card-icon { transform: scale(1.05); }
.site-card:hover .site-card-title { color: var(--ws-accent); }

.site-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ws-bg-light);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.site-card-info {
  flex: 1;
  min-width: 0;
}

.site-card-title,
.site-card-desc {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ws-text);
  margin-bottom: 4px;
}

.site-card-desc {
  font-size: 0.8125rem;
  color: var(--ws-text-muted);
  line-height: 1.4;
}

/* 提示框 */
.site-card-tooltip {
  position: absolute;
  top: 100%;
  left: 10px;
  right: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s;
  pointer-events: none;
}

.site-col:hover .site-card-tooltip {
  opacity: 1;
  visibility: visible;
}

.tooltip-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ws-text);
  margin-bottom: 6px;
}

.tooltip-desc {
  font-size: 0.8125rem;
  color: var(--ws-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* 直接访问按钮 */
.site-card-visit {
  position: absolute; top: 50%; right: 0;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ws-accent); color: #fff;
  border-radius: 50%; font-size: 0.75rem;
  opacity: 0; transition: opacity 0.2s, transform 0.2s;
  cursor: pointer; z-index: 2;
}

.site-card:hover .site-card-visit { opacity: 1; }

.site-card-visit:hover {
  transform: translateY(-50%) scale(1.1);
  background: var(--ws-accent-hover);
}

/* ============================================
   网址详情
   ============================================ */
.site-detail {
  background: var(--ws-card-bg);
  border-radius: var(--ws-radius-md);
  padding: 30px; margin-bottom: 30px;
}

.site-detail-header {
  display: flex;
  gap: 30px; margin-bottom: 25px;
}

.site-detail-icon {
  width: 100px; height: 100px;
  border-radius: var(--ws-radius-md);
  object-fit: cover; flex-shrink: 0;
  background: var(--ws-bg-light);
}

.site-detail-info { flex: 1; }

.site-detail-info .category-tag {
  display: inline-block; padding: 4px 12px;
  background: rgba(104, 184, 40, 0.1); color: var(--ws-accent);
  border-radius: 20px; font-size: 0.8125rem; margin-bottom: 10px;
}

.site-detail-info h1 {
  font-size: 1.75rem; font-weight: 700;
  margin-bottom: 12px; color: var(--ws-text);
}

.site-detail-info .description {
  color: var(--ws-text-secondary); font-size: 1rem;
  line-height: 1.7; margin-bottom: 20px;
}

.site-detail-actions {
  display: flex;
  gap: 12px; flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px; padding: 10px 24px;
  border-radius: var(--ws-radius-sm); font-size: 0.9375rem;
  font-weight: 500; cursor: pointer; border: none;
  transition: var(--ws-transition);
}

.btn-primary { background: var(--ws-accent); color: #fff; }
.btn-primary:hover { background: var(--ws-accent-hover); }

.btn-outline { background: transparent; color: var(--ws-text-secondary); border: 1px solid #ddd; }
.btn-outline:hover { border-color: var(--ws-accent); color: var(--ws-accent); }

.btn-outline.active { background: var(--ws-accent); color: #fff; border-color: var(--ws-accent); }

/* 统计 */
.site-detail-stats {
  display: flex;
  gap: 25px; padding: 20px 0;
  border-top: 1px solid #eee; border-bottom: 1px solid #eee;
  color: var(--ws-text-muted); font-size: 0.875rem;
}

.site-detail-stats span { display: flex; align-items: center; gap: 6px; }

/* 内容 */
.site-detail-content { padding-top: 25px; line-height: 1.8; }
.site-detail-content h2 { font-size: 1.25rem; margin-bottom: 15px; color: var(--ws-text); }
.site-detail-content p { margin-bottom: 15px; color: var(--ws-text-secondary); }

/* ============================================
   文章列表（分类页面）
   ============================================ */
.articles-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.article-col {
  width: 33.333%; padding: 0 10px; margin-bottom: 20px;
}

.article-card {
  background: var(--ws-card-bg);
  border: 1px solid var(--ws-card-border);
  border-radius: var(--ws-radius-md);
  overflow: hidden; transition: var(--ws-transition);
  height: 100%;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.article-card .article-thumbnail {
  display: block; height: 160px; overflow: hidden;
}

.article-card .article-thumbnail img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .article-thumbnail img { transform: scale(1.05); }

.article-card .article-info { padding: 15px; }

.article-card h3 {
  font-size: 1rem; font-weight: 600;
  margin-bottom: 8px; line-height: 1.4;
}

.article-card h3 a { color: var(--ws-text); }
.article-card h3 a:hover { color: var(--ws-accent); }

.article-card .article-excerpt {
  font-size: 0.8125rem; color: var(--ws-text-secondary);
  line-height: 1.6; margin-bottom: 10px;
}

.article-card .article-meta {
  font-size: 0.75rem; color: var(--ws-text-muted);
}

/* ============================================
   文章详情
   ============================================ */
.article-detail {
  background: var(--ws-card-bg);
  border-radius: var(--ws-radius-md);
  padding: 30px; margin-bottom: 30px;
}

.article-header { margin-bottom: 25px; }

.article-title {
  font-size: 1.75rem; font-weight: 700;
  color: var(--ws-text); line-height: 1.4;
  margin-bottom: 15px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px; font-size: 0.875rem;
  color: var(--ws-text-muted);
}

.article-source a {
  color: #3b82f6;
  text-decoration: none;
}

.article-source a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.article-content {
  line-height: 1.8; color: var(--ws-text);
  font-size: 0.9375rem;
}

.article-content h2 { font-size: 1.5rem; margin: 30px 0 15px; }
.article-content h3 { font-size: 1.25rem; margin: 25px 0 12px; }
.article-content p { margin-bottom: 1em; }
.article-content img { max-width: 100%; border-radius: var(--ws-radius-sm); }
.article-content a { color: var(--ws-accent); text-decoration: underline; }

.article-tags {
  margin-top: 25px; padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags .tag {
  display: inline-block; padding: 4px 12px;
  background: var(--ws-bg-light); border-radius: 20px;
  font-size: 0.8125rem; color: var(--ws-text-secondary);
  transition: var(--ws-transition);
}

.article-tags .tag:hover { background: var(--ws-accent); color: #fff; }

.article-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid #eee; gap: 20px;
}

.article-navigation a {
  flex: 1;
  padding: 15px; background: #f9f9f9;
  border-radius: var(--ws-radius-sm);
  color: var(--ws-text);
  font-size: 0.875rem; transition: var(--ws-transition);
}

.article-navigation a:hover { background: #f0f0f0; color: var(--ws-accent); }

.article-navigation .nav-next { text-align: right; }

/* ============================================
   分页
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px;
  margin: 0 4px; background: var(--ws-card-bg);
  border: 1px solid var(--ws-card-border);
  border-radius: var(--ws-radius-sm);
  color: var(--ws-text);
  font-size: 0.875rem; transition: var(--ws-transition);
}

.pagination .page-numbers:hover { border-color: var(--ws-accent); color: var(--ws-accent); }

.pagination .page-numbers.current {
  background: var(--ws-accent); border-color: var(--ws-accent); color: #fff;
}

/* ============================================
   分类标签按钮
   ============================================ */
.article-category-tabs,
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; margin-bottom: 20px;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px; background: var(--ws-card-bg);
  border: 1px solid var(--ws-card-border);
  border-radius: 20px; color: var(--ws-text-secondary);
  font-size: 0.8125rem;
  transition: var(--ws-transition);
}

.category-tab:hover { border-color: var(--ws-accent); color: var(--ws-accent); }

.category-tab.active { background: var(--ws-accent); border-color: var(--ws-accent); color: #fff; }

.category-tab .cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 4px; background: rgba(0,0,0,0.06);
  border-radius: 9px; font-size: 0.6875rem;
  color: var(--ws-text-muted);
}

.category-tab.active .cat-count { background: rgba(255,255,255,0.25); color: #fff; }

/* ============================================
   普通页面样式
   ============================================ */
.page-content {
  background: var(--ws-card-bg);
  border: 1px solid var(--ws-card-border);
  border-radius: var(--ws-radius-md);
  padding: 30px;
}

.page-title {
  font-size: 1.5rem; font-weight: 600;
  margin-bottom: 20px; padding-bottom: 15px;
  border-bottom: 1px solid var(--ws-card-border);
}

.page-body {
  font-size: 0.9375rem; line-height: 1.8; color: var(--ws-text);
}

.page-body p { margin-bottom: 1em; }
.page-body h2, .page-body h3, .page-body h4 { margin-top: 1.5em; margin-bottom: 0.75em; }
.page-body ul, .page-body ol { margin-left: 1.5em; margin-bottom: 1em; }
.page-body img { max-width: 100%; height: auto; border-radius: var(--ws-radius-sm); }

/* ============================================
   404 页面
   ============================================ */
.error-page { text-align: center; padding: 100px 20px; }

.error-page h1 {
  font-size: 8rem; color: var(--ws-accent);
  line-height: 1; margin-bottom: 20px;
}

.error-page p {
  font-size: 1.125rem; color: var(--ws-text-secondary);
  margin-bottom: 30px;
}

/* ============================================
   登录/注册页面
   ============================================ */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-container { width: 100%; max-width: 420px; }

.auth-box {
  background: #fff; border-radius: var(--ws-radius-md);
  padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.auth-title {
  text-align: center; margin: 0 0 30px;
  font-size: 1.5rem; color: var(--ws-text);
}

/* wp_login_form 样式 */
#loginform { margin: 0; padding: 0; }
#loginform p { margin-bottom: 20px; }

#loginform label {
  display: block; margin-bottom: 8px; font-size: 0.875rem;
  color: var(--ws-text); font-weight: 500;
}

#loginform input[type="text"],
#loginform input[type="password"] {
  width: 100%; padding: 12px 15px;
  border: 1px solid #e0e0e0; border-radius: var(--ws-radius-sm);
  font-size: 0.9375rem; transition: var(--ws-transition);
}

#loginform input:focus {
  outline: none; border-color: var(--ws-accent);
  box-shadow: 0 0 0 3px rgba(104, 184, 40, 0.1);
}

#loginform .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

#loginform .login-remember label {
  display: flex;
  align-items: center;
  gap: 8px; margin-bottom: 0; font-weight: normal;
}

#loginform .login-remember input[type="checkbox"] { width: auto; }
#loginform .login-submit { margin-bottom: 0; }

#loginform input[type="submit"] {
  width: 100%; padding: 14px;
  background: var(--ws-accent); color: #fff;
  border: none; border-radius: var(--ws-radius-sm);
  font-size: 1rem; font-weight: 500; cursor: pointer;
  transition: var(--ws-transition);
}

#loginform input[type="submit"]:hover { background: var(--ws-accent-hover); }

.auth-form .form-group { margin-bottom: 20px; }

.auth-form label {
  display: block; margin-bottom: 8px; font-size: 0.875rem;
  color: var(--ws-text); font-weight: 500;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="url"] {
  width: 100%; padding: 12px 15px;
  border: 1px solid #e0e0e0; border-radius: var(--ws-radius-sm);
  font-size: 0.9375rem; transition: var(--ws-transition);
}

.auth-form input:focus {
  outline: none; border-color: var(--ws-accent);
  box-shadow: 0 0 0 3px rgba(104, 184, 40, 0.1);
}

#loginform .form-checkbox label,
.auth-form .form-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px; font-weight: normal;
}

.form-checkbox input[type="checkbox"] { width: auto; }

.auth-submit-btn {
  width: 100%; padding: 14px;
  background: var(--ws-accent); color: #fff;
  border: none; border-radius: var(--ws-radius-sm);
  font-size: 1rem; font-weight: 500; cursor: pointer;
  transition: var(--ws-transition);
}

.auth-submit-btn:hover { background: var(--ws-accent-hover); }

.auth-error {
  background: #fef2f2; color: #dc2626;
  padding: 12px 16px; border-radius: var(--ws-radius-sm);
  margin-bottom: 20px; font-size: 0.875rem;
}

.auth-notice {
  background: #fefce8; border: 1px solid #facc15;
  color: #854d0e; padding: 16px;
  border-radius: var(--ws-radius-sm);
  margin-bottom: 20px; font-size: 0.875rem;
}

.auth-notice p { margin: 0 0 8px; }
.auth-notice p:last-child { margin-bottom: 0; }
.auth-notice .hint { font-size: 0.75rem; color: #a16207; }

.auth-links { margin-top: 24px; text-align: center; font-size: 0.875rem; }

.auth-links a {
  display: block; color: var(--ws-text-secondary);
  margin: 8px 0; transition: var(--ws-transition);
}

.auth-links a:hover { color: var(--ws-accent); }

/* ============================================
   用户中心页面
   ============================================ */
.user-profile-page {
  max-width: 800px; margin: 0 auto; padding: 30px 20px;
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 20px; padding: 30px; background: #fff;
  border-radius: var(--ws-radius-md); margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.user-avatar img { border-radius: 50%; }

.user-info h2 { margin: 0 0 8px; font-size: 1.25rem; color: var(--ws-text); }
.user-info p { margin: 0; color: var(--ws-text-muted); font-size: 0.875rem; }

.user-profile-content {
  background: #fff; border-radius: var(--ws-radius-md);
  padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.update-message {
  padding: 12px 16px; border-radius: var(--ws-radius-sm);
  margin-bottom: 20px; font-size: 0.875rem;
}

.update-message.success { background: #f0fdf4; color: #16a34a; }
.update-message.error { background: #fef2f2; color: #dc2626; }

.profile-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr; gap: 20px;
}

.profile-form .form-group { margin-bottom: 20px; }

.profile-form label {
  display: block; margin-bottom: 8px; font-size: 0.875rem;
  color: var(--ws-text); font-weight: 500;
}

.profile-form input,
.profile-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid #e0e0e0; border-radius: var(--ws-radius-sm);
  font-size: 0.9375rem; transition: var(--ws-transition);
}

.profile-form input:focus,
.profile-form textarea:focus {
  outline: none; border-color: var(--ws-accent);
}

.profile-form input:disabled { background: var(--ws-bg-light); color: var(--ws-text-muted); }

.form-hint {
  display: block; margin-top: 4px;
  font-size: 0.75rem; color: var(--ws-text-muted);
}

.form-actions {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid #eee;
}

/* ============================================
   评论系统
   ============================================ */
.comments-section {
  margin-top: 40px; padding-top: 30px;
  border-top: 1px solid var(--ws-border);
}

.ws-comments {
  background: #fff; border-radius: var(--ws-radius-md);
  padding: 25px;
}

.comments-title {
  font-size: 1.125rem; margin: 0 0 25px;
  padding-bottom: 15px; border-bottom: 1px solid #eee;
  color: var(--ws-text);
}

.comments-title i { color: var(--ws-accent); margin-right: 8px; }

/* 评论列表 */
.comment-list { margin: 0 0 30px; padding: 0; }

.comment-item {
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.comment-body {
  display: flex;
  gap: 15px;
}

.comment-meta {
  flex-shrink: 0;
  text-align: center; width: 60px;
}

.comment-author .avatar { border-radius: 50%; margin-bottom: 8px; }

.comment-author .fn {
  display: block; font-size: 0.75rem;
  color: var(--ws-text); font-weight: 500;
  word-break: break-all;
}

.comment-metadata {
  font-size: 0.6875rem; color: var(--ws-text-muted);
  margin-top: 5px;
}

.comment-metadata .edit-link { display: block; margin-top: 3px; }
.comment-metadata .edit-link a { color: var(--ws-accent); }

.comment-content {
  flex: 1;
  background: #f9f9f9; border-radius: var(--ws-radius-sm);
  padding: 15px; position: relative;
}

.comment-content::before {
  content: ''; position: absolute;
  left: -8px; top: 15px;
  border-style: solid;
  border-width: 8px 8px 8px 0;
  border-color: transparent #f9f9f9 transparent transparent;
}

.comment-content p { margin: 0 0 10px; line-height: 1.7; }
.comment-content p:last-child { margin-bottom: 0; }

.comment-awaiting-moderation {
  color: #f0ad4e; font-size: 0.875rem; font-style: italic;
}

.comment-actions { margin-top: 10px; text-align: right; }

.comment-actions .comment-reply-link {
  font-size: 0.8125rem; color: var(--ws-text-secondary);
}

.comment-actions .comment-reply-link:hover { color: var(--ws-accent); }

/* 嵌套评论 */
.comment-list .children { margin: 15px 0 0 75px; padding: 0; }
.comment-list .children .comment-item { border-bottom: none; padding-bottom: 0; }

/* 评论分页 */
.comment-navigation { margin: 20px 0; text-align: center; }

.comment-navigation .page-numbers {
  display: inline-block; padding: 6px 12px; margin: 0 3px;
  border-radius: var(--ws-radius-sm); background: var(--ws-bg-light);
  color: var(--ws-text); font-size: 0.875rem;
}

.comment-navigation .page-numbers.current { background: var(--ws-accent); color: #fff; }
.comment-navigation .page-numbers:hover:not(.current) { background: var(--ws-border); }

.no-comments {
  color: var(--ws-text-muted); font-style: italic;
  text-align: center; padding: 20px;
}

/* 评论表单 */
.comment-respond {
  margin-top: 30px; padding-top: 25px;
  border-top: 2px solid #f0f0f0;
}

.comment-reply-title {
  font-size: 1rem; margin: 0 0 20px; color: var(--ws-text);
}

.comment-reply-title i { color: var(--ws-accent); margin-right: 6px; }

.comment-reply-title small {
  font-size: 0.8125rem; font-weight: normal; margin-left: 10px;
}

.comment-reply-title small a { color: var(--ws-text-muted); }
.comment-reply-title small a:hover { color: #dc3545; }

.comment-notes {
  font-size: 0.8125rem; color: var(--ws-text-muted);
  margin-bottom: 15px;
}

.comment-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url { width: 100%; }

.comment-form-author,
.comment-form-email,
.comment-form-url { width: calc(33.333% - 10px); }

.comment-form label {
  display: block; margin-bottom: 6px; font-size: 0.875rem;
  color: var(--ws-text); font-weight: 500;
}

.comment-form .required { color: #dc3545; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid #ddd; border-radius: var(--ws-radius-sm);
  font-size: 0.9375rem;
  transition: var(--ws-transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none; border-color: var(--ws-accent);
  box-shadow: 0 0 0 3px rgba(104, 184, 40, 0.1);
}

.comment-form textarea { resize: vertical; min-height: 100px; }

.form-submit { width: 100%; margin: 0; }

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px; padding: 12px 30px;
  background: var(--ws-accent); color: #fff;
  border: none; border-radius: var(--ws-radius-sm);
  font-size: 0.9375rem; cursor: pointer;
  transition: var(--ws-transition);
}

.submit-btn:hover { background: var(--ws-accent-hover); }

/* ============================================
   回到顶部
   ============================================ */
.go-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: rgba(0,0,0,0.3); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  font-size: 1.25rem; display: none;
  align-items: center;
  justify-content: center;
  z-index: 99; transition: var(--ws-transition);
}

@media (max-width: 1023px) {
  .go-top {
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
}

.go-top:hover { background: var(--ws-accent); }
.go-top.show { display: flex; }

/* ============================================
   工具类
   ============================================ */
.text-gray { color: var(--ws-text-muted); }
.text-center { text-align: center; }
/* 工具类 — !important 用于确保在任何上下文中都能隐藏元素 */
.hidden { display: none !important; }

/* ============================================
   空状态
   ============================================ */
.empty-state-wide {
  padding: 60px 0;
  width: 100%;
  text-align: center;
}

.empty-state-large {
  padding: 100px 0;
  text-align: center;
}

.empty-state-icon-lg {
  display: block;
  font-size: 4rem;
  color: var(--ws-text-muted);
  margin-bottom: 20px;
}

.empty-state-text-lg {
  font-size: 1.125rem;
}

/* ============================================
   排序链接
   ============================================ */
.sort-links {
  margin-left: auto;
  font-size: 0.875rem;
}

.sort-link {
  margin-left: 10px;
  color: var(--ws-text-muted);
}

.sort-link-active {
  margin-left: 10px;
  color: var(--ws-accent);
}

/* ============================================
   内联分页（用于 sites-row 内部）
   ============================================ */
.pagination-inline,
nav.pagination {
  text-align: center;
  margin-top: 30px;
  width: 100%;
}
nav.pagination .page-numbers {
  display: inline-block;
  min-width: 36px; height: 36px; line-height: 36px;
  padding: 0 10px; margin: 0 3px;
  border: 1px solid var(--ws-border); border-radius: 6px;
  font-size: 0.875rem; color: var(--ws-text);
  text-decoration: none; transition: var(--ws-transition);
}
nav.pagination .page-numbers.current {
  background: var(--ws-accent); color: #fff; border-color: var(--ws-accent);
}
nav.pagination .page-numbers:hover:not(.current) {
  border-color: var(--ws-accent); color: var(--ws-accent);
}

/* ============================================
   标签
   ============================================ */
.label {
  display: inline-block; padding: 2px 8px;
  font-size: 0.6875rem; font-weight: 600; border-radius: 20px;
}

.label-pink { background: #ff6b6b; color: #fff; }
.label-primary { background: var(--ws-accent); color: #fff; }

/* ============================================
   响应式设计
   ============================================ */

/* 平板横屏 (1024px - 1199px) */
@media (max-width: 1199px) {
}

/* 平板 (<=1023px) */
@media (max-width: 1023px) {
  .body-left {
    display: none; position: fixed; top: 104px; left: 0; bottom: 0;
    z-index: 999; height: auto;
  }
  .body-left.mobile-open { display: block; }
  .hot-news-sidebar { width: 260px; }
  .main-body { padding-top: 104px; }
  .article-col { width: 50%; }
  .mobile-menu-toggle { display: block; }
}

/* 手机 (<=767px) */
@media (max-width: 767px) {
  .header-top {
    padding: 10px 15px;
    flex-wrap: wrap;
  }
  .header-site-name { 
    display: block; 
    font-size: 0.875rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-placeholder { height: 104px; }
  .header-center {
    order: 3; max-width: 100%; margin: 8px 0 0;
    flex-basis: 100%;
  }
  .main-body {
    flex-direction: column;
    padding-top: 15px;
  }
  .body-left {
    display: none; position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 1001; height: auto; padding-top: 60px;
  }
  .content-wrapper { padding: 15px; }
  .nav-catalog {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 15px;
  }
  .nav-catalog-list {
    flex-wrap: nowrap;
    min-width: max-content;
  }
  .nav-catalog-list > li > a {
    padding: 10px 12px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .nav-catalog-list .sub-menu {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    max-height: 60vh;
    overflow-y: auto;
  }
  .hot-news-sidebar {
    width: 100%; position: relative; top: 0;
    border-left: none; border-top: 1px solid var(--ws-border);
    height: auto;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center; gap: 15px;
  }
  .footer-left, .footer-right { text-align: center; }
  .social-links { justify-content: center; }
  .article-col { width: 100%; }
  .site-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .site-detail-actions { justify-content: center; }
  .error-page h1 { font-size: 5rem; }
  .section-title { font-size: 1rem; padding: 12px 15px; }
  .site-card { padding: 12px; }
  .site-card-icon { width: 36px; height: 36px; }
  .search-box { gap: 4px; }
  .search-tabs { font-size: 0.75rem; }
  .search-tab { padding: 2px 8px; }
  .search-input-row { height: 40px; }
  .search-input-row input { min-width: 150px; font-size: 0.875rem; }
  .search-btn { width: 32px; height: 32px; }
  .search-engine-dropdown { font-size: 0.75rem; min-width: 50px; padding: 0 8px; }
  .engine-dropdown-list .engine-item { padding: 6px 12px; font-size: 0.75rem; }
  .hot-news-columns {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hot-news-column { width: 50%; padding: 0 7px; }
  .comment-form-author,
  .comment-form-email,
  .comment-form-url { width: 100%; }
  .content-article-card {
    flex-direction: column;
    gap: 15px;
  }
  .content-article-thumbnail {
    width: 100%;
    height: 180px;
  }
  .content-article-info h3 {
    font-size: 1rem;
  }
  .content-article-excerpt {
    font-size: 0.8125rem;
  }
}

/* 小手机 (<=575px) */
@media (max-width: 575px) {
  .site-col { width: 100%; }
  .search-tabs { font-size: 0.75rem; gap: 2px; }
  .search-tab { padding: 2px 7px; }
  .search-input-row { height: 36px; }
  .search-input-row input { min-width: 0; font-size: 0.8125rem; }
  .search-engine-dropdown { font-size: 0.6875rem; min-width: 45px; padding: 0 6px; }
  .engine-dropdown-list .engine-item { padding: 5px 10px; font-size: 0.6875rem; }
  .content-wrapper { padding: 10px; }
  .section-title { margin-bottom: 15px; }
  .sites-row { margin: 0 -5px; }
  .site-col { padding: 0 5px; margin-bottom: 10px; }
  .site-card { padding: 10px; }
  .site-card-title { font-size: 0.8125rem; }
  .hot-news-sidebar { padding: 10px; }
  .hot-news-header { padding: 12px 15px; }
  .hot-news-item { padding: 8px 15px; }
  .pagination .page-numbers { min-width: 32px; height: 32px; padding: 0 8px; font-size: 0.8125rem; }
  .auth-box { padding: 30px 20px; }
  .profile-form .form-row { grid-template-columns: 1fr; }
  .user-profile-header { flex-direction: column; text-align: center; }
  .hot-news-column { width: 100%; }
}

/* 超小屏手机 (< 375px) */
@media (max-width: 374px) {
  .site-card-icon { width: 32px; height: 32px; }
  .site-card-title { font-size: 0.75rem; }
  .hot-news-title { font-size: 0.875rem; }
}

/* ============================================
   中间栏最新文章
   ============================================ */
.content-articles-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title .view-more {
  font-size: 0.8125rem;
  font-weight: normal;
  color: var(--ws-text-secondary);
  margin-left: auto;
}

.section-title .view-more:hover {
  color: var(--ws-accent);
}

.content-article-col {
  width: 100%;
  padding: 0 10px;
  margin-bottom: 20px;
}

.content-article-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: var(--ws-radius-md);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: var(--ws-transition);
}

.content-article-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-article-thumbnail {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: var(--ws-radius-sm);
  overflow: hidden;
}

.content-article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--ws-transition);
}

.content-article-card:hover .content-article-thumbnail img {
  transform: scale(1.05);
}

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

.content-article-info h3 {
  font-size: 1.125rem;
  margin: 0 0 10px;
  line-height: 1.4;
}

.content-article-info h3 a {
  color: var(--ws-text);
}

.content-article-info h3 a:hover {
  color: var(--ws-accent);
}

.content-article-excerpt {
  color: var(--ws-text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 15px;
  flex: 1;
}

.content-article-meta {
  font-size: 0.8125rem;
  color: var(--ws-text-muted);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.content-article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
