/*
Theme Name: 硬核创投 (YingHe VC)
Theme URI: https://yinghevc.com
Author: YingHe VC Team
Author URI: https://yinghevc.com
Description: 硬科技创投资讯门户 WordPress 主题 - 聚焦人工智能、机器人、智能制造、投融资、IPO、产业深度分析。适配 BuddyPress 社交系统。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yinghevc
Tags: news, tech, magazine, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, buddypress
*/

/* ============================================
   科技创投资讯门户 - 共享样式系统
   主色调：深海蓝 #0F4C81
   风格：简约商务科技风
   ============================================ */

/* ---------- 字体声明 ---------- */
@font-face {
  font-family: 'WorkSans';
  src: url('assets/fonts/WorkSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'WorkSans';
  src: url('assets/fonts/WorkSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'WorkSans';
  src: url('assets/fonts/WorkSans-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- CSS 变量 ---------- */
:root {
  /* 背景色 */
  --bg: #FFFFFF;
  --bg2: #F5F7FA;
  --bg3: #EBF0F5;

  /* 文字色 */
  --ink: #1A1A2E;
  --ink2: #2D3748;
  --muted: #8A94A6;
  --muted2: #A0AEC0;

  /* 边框 */
  --rule: #E4E7ED;
  --rule2: #D1D9E6;

  /* 主色 */
  --accent: #0F4C81;
  --accent2: #1976D2;
  --accent-light: #E3EFFA;
  --accent-dark: #0A3A63;

  /* 赛道标签色 */
  --tag-ai: #6C5CE7;
  --tag-robot: #0F4C81;
  --tag-auto: #00A8A8;
  --tag-bio: #27AE60;
  --tag-aero: #E67E22;
  --tag-hard: #C0392B;
  --tag-fin: #8E44AD;
  --tag-ipo: #2C3E50;
  --tag-consume: #E84393;

  /* 字体 */
  --font-sans: 'WorkSans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Source Han Sans CN', sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Consolas', monospace;

  /* 间距 */
  --max-width: 1200px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 76, 129, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 76, 129, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 76, 129, 0.12);
  --transition: 0.25s ease;
}

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

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
  outline: none;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

.section-more {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
}

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

/* ---------- 顶部公告条 ---------- */
.top-bar {
  background: var(--accent-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  padding: 6px 0;
}

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

.top-bar .top-date {
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.top-bar .top-links {
  display: flex;
  gap: 16px;
}

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

/* ---------- 导航栏 ---------- */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.logo .logo-text {
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-menu a {
  padding: 8px 12px;
  font-size: 0.95rem;
  color: var(--ink2);
  white-space: nowrap;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg2);
  border-radius: 20px;
  padding: 6px 14px;
  width: 200px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.search-box:focus-within {
  border-color: var(--accent);
  background: var(--bg);
  width: 240px;
}

.search-box svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

.search-box input {
  border: none;
  background: none;
  font-size: 0.85rem;
  width: 100%;
  margin-left: 8px;
  color: var(--ink);
}

.search-box input::placeholder {
  color: var(--muted2);
}

.btn {
  padding: 7px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  font-weight: 500;
}

.btn-outline {
  border: 1px solid var(--rule2);
  color: var(--ink2);
  background: var(--bg);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

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

.btn-ghost {
  color: var(--muted);
  font-size: 0.85rem;
}

.btn-ghost:hover {
  color: var(--accent);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: var(--transition);
}

/* ---------- 头条轮播 ---------- */
.hero-section {
  margin-bottom: 32px;
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-slide {
  display: none;
  position: relative;
  height: 420px;
}

.hero-slide.active {
  display: block;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10, 30, 50, 0.92));
  padding: 60px 40px 32px;
  color: #fff;
}

.hero-tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.75rem;
  border-radius: 3px;
  margin-bottom: 12px;
  font-weight: 600;
}

.hero-overlay h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  max-width: 70%;
}

.hero-meta {
  font-size: 0.82rem;
  opacity: 0.8;
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dots .dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  backdrop-filter: blur(4px);
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }

.hero-nav svg { width: 20px; height: 20px; }

/* ---------- 主内容布局 ---------- */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-bottom: 40px;
}

/* ---------- 快讯栏 ---------- */
.flash-news {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 32px;
}

.flash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.flash-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-title .live-dot {
  width: 8px;
  height: 8px;
  background: #E74C3C;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.flash-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flash-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--radius);
  transition: background var(--transition);
  cursor: pointer;
}

.flash-item:hover {
  background: var(--bg);
}

.flash-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 1px;
  min-width: 48px;
}

.flash-content {
  flex: 1;
}

.flash-content .flash-text {
  font-size: 0.9rem;
  color: var(--ink2);
  line-height: 1.5;
  transition: color var(--transition);
}

.flash-item:hover .flash-text {
  color: var(--accent);
}

.flash-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 2px;
  margin-right: 6px;
  font-weight: 500;
}

/* ---------- 深度稿专区 ---------- */
.deep-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.deep-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.deep-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.deep-card .card-cover {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.deep-card .card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.deep-card:hover .card-cover img {
  transform: scale(1.05);
}

.deep-card .card-body {
  padding: 16px 18px;
}

.deep-card .card-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
  font-weight: 500;
}

.deep-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deep-card:hover .card-title {
  color: var(--accent);
}

.deep-card .card-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deep-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted2);
}

.deep-card .card-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.deep-card .card-author .author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.deep-card .card-views {
  display: flex;
  align-items: center;
  gap: 4px;
}

.deep-card .card-views svg {
  width: 13px;
  height: 13px;
}

/* ---------- 赛道专栏分区 ---------- */
.track-section {
  margin-bottom: 36px;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.track-block {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow var(--transition);
}

.track-block:hover {
  box-shadow: var(--shadow-md);
}

.track-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.track-block-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-block-title .track-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
}

.track-block-more {
  font-size: 0.8rem;
  color: var(--muted);
}

.track-block-more:hover {
  color: var(--accent);
}

.track-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.track-news-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
  transition: var(--transition);
}

.track-news-item:last-child {
  border-bottom: none;
}

.track-news-item:hover {
  padding-left: 4px;
}

.track-news-item .news-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted2);
  min-width: 20px;
}

.track-news-item:nth-child(1) .news-num { color: var(--tag-ipo); }
.track-news-item:nth-child(2) .news-num { color: var(--accent2); }

.track-news-item .news-info {
  flex: 1;
}

.track-news-item .news-title {
  font-size: 0.88rem;
  color: var(--ink2);
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.track-news-item:hover .news-title {
  color: var(--accent);
}

.track-news-item .news-meta {
  font-size: 0.75rem;
  color: var(--muted2);
  display: flex;
  gap: 8px;
}

.track-news-item .news-thumb {
  width: 80px;
  height: 54px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg2);
}

.track-news-item .news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card-header svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.sidebar-card-body {
  padding: 12px 18px;
}

/* 热门阅读榜 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg2);
  cursor: pointer;
  transition: var(--transition);
}

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

.rank-item:hover .rank-title {
  color: var(--accent);
}

.rank-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num { color: #E74C3C; }
.rank-item:nth-child(2) .rank-num { color: #E67E22; }
.rank-item:nth-child(3) .rank-num { color: #F1C40F; }
.rank-item:nth-child(n+4) .rank-num { color: var(--muted2); }

.rank-info {
  flex: 1;
}

.rank-title {
  font-size: 0.85rem;
  color: var(--ink2);
  line-height: 1.5;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.rank-views {
  font-size: 0.72rem;
  color: var(--muted2);
}

/* 融资事件 */
.finance-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.finance-item {
  padding: 12px;
  background: var(--bg2);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.finance-item:hover {
  background: var(--accent-light);
}

.finance-item .finance-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.finance-item .finance-company {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.finance-item .finance-amount {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.finance-item .finance-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.finance-item .finance-meta {
  font-size: 0.72rem;
  color: var(--muted2);
  margin-top: 4px;
  display: flex;
  gap: 8px;
}

/* 专栏作者 */
.author-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.author-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  transition: var(--transition);
}

.author-item:hover .author-name {
  color: var(--accent);
}

.author-avatar-lg {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--transition);
}

.author-title {
  font-size: 0.75rem;
  color: var(--muted);
}

.author-follow {
  font-size: 0.75rem;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 12px;
  transition: var(--transition);
}

.author-follow:hover {
  background: var(--accent);
  color: #fff;
}

/* 公众号二维码 */
.qr-card {
  text-align: center;
}

.qr-card .qr-code {
  width: 160px;
  height: 160px;
  margin: 12px auto;
  border-radius: var(--radius);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.qr-card .qr-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.qr-card .qr-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 底部 ---------- */
.footer {
  background: #0A2A47;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

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

.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .footer-icp {
  display: flex;
  gap: 16px;
}

/* ---------- 标签色系 ---------- */
.tag-ai { background: rgba(108, 92, 231, 0.12); color: var(--tag-ai); }
.tag-robot { background: rgba(15, 76, 129, 0.12); color: var(--tag-robot); }
.tag-auto { background: rgba(0, 168, 168, 0.12); color: var(--tag-auto); }
.tag-bio { background: rgba(39, 174, 96, 0.12); color: var(--tag-bio); }
.tag-aero { background: rgba(230, 126, 34, 0.12); color: var(--tag-aero); }
.tag-hard { background: rgba(192, 57, 43, 0.12); color: var(--tag-hard); }
.tag-fin { background: rgba(142, 68, 173, 0.12); color: var(--tag-fin); }
.tag-ipo { background: rgba(44, 62, 80, 0.12); color: var(--tag-ipo); }
.tag-consume { background: rgba(232, 67, 147, 0.12); color: var(--tag-consume); }

/* 赛道图标背景色 */
.bg-ai { background: var(--tag-ai); }
.bg-robot { background: var(--tag-robot); }
.bg-auto { background: var(--tag-auto); }
.bg-bio { background: var(--tag-bio); }
.bg-aero { background: var(--tag-aero); }
.bg-hard { background: var(--tag-hard); }
.bg-fin { background: var(--tag-fin); }
.bg-ipo { background: var(--tag-ipo); }

/* ---------- 文章详情页 ---------- */
.article-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 0;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--muted2); }

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

.article-header .article-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
  font-weight: 500;
}

.article-header h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-header .article-subtitle {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.article-meta .meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink2);
  font-weight: 500;
}

.article-meta .meta-author .author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.article-cover {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}

.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink2);
}

.article-body p {
  margin-bottom: 18px;
}

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 12px;
}

.article-body blockquote {
  background: var(--bg2);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--ink2);
}

.article-body blockquote p {
  margin-bottom: 0;
}

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

.article-body .data-callout {
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 20px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.article-body .data-callout .callout-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.article-body .data-callout .callout-content {
  flex: 1;
}

.article-body .data-callout .callout-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.article-body .data-callout .callout-text {
  font-size: 0.88rem;
  color: var(--ink2);
  line-height: 1.6;
}

.article-body .case-box {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 20px 0;
  background: var(--bg);
}

.article-body .case-box .case-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-body .case-box .case-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.article-body .case-box .case-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.article-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.article-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-tags .article-tag-item {
  font-size: 0.78rem;
  padding: 4px 12px;
  background: var(--bg2);
  border-radius: 12px;
  color: var(--muted);
  transition: var(--transition);
  cursor: pointer;
}

.article-tags .article-tag-item:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.article-share .share-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.article-share .share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
}

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

.article-share .share-btn svg { width: 16px; height: 16px; }

/* 相关推荐 */
.related-section {
  margin-top: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.related-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.related-card .related-cover {
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.related-card .related-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card .related-body {
  padding: 12px 14px;
}

.related-card .related-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.related-card:hover .related-title {
  color: var(--accent);
}

.related-card .related-meta {
  font-size: 0.72rem;
  color: var(--muted2);
}

/* ---------- 专题页 ---------- */
.topic-hero {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-hero .topic-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.topic-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 30, 50, 0.7);
  z-index: 1;
}

.topic-hero .topic-overlay h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.topic-hero .topic-overlay p {
  font-size: 0.92rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.topic-article-card {
  display: flex;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: var(--transition);
  cursor: pointer;
}

.topic-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.topic-article-card .card-thumb {
  width: 160px;
  height: 110px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.topic-article-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-article-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topic-article-card .card-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 6px;
  font-weight: 500;
  align-self: flex-start;
}

.topic-article-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topic-article-card:hover .card-title {
  color: var(--accent);
}

.topic-article-card .card-excerpt {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.topic-article-card .card-meta {
  font-size: 0.72rem;
  color: var(--muted2);
}

/* ---------- 融资数据库 ---------- */
.database-page {
  padding: 32px 0;
}

.db-page-head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}

.db-page-head h1 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  margin: 10px 0 8px;
}

.db-page-head .db-subtitle {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.db-page-head .db-stats {
  font-size: 0.8rem;
  color: var(--muted2);
  margin-top: 6px;
}

.filter-bar {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink2);
  min-width: 70px;
  padding-top: 6px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 16px;
  background: var(--bg2);
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.filter-chip:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.filter-chip.active {
  background: var(--accent);
  color: #fff;
}

.database-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.summary-card {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.summary-card .summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.summary-card .summary-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-mono);
}

.summary-card .summary-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.finance-table {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.finance-table table {
  width: 100%;
  border-collapse: collapse;
}

.finance-table thead {
  background: var(--bg2);
}

.finance-table th {
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.finance-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--ink2);
  border-bottom: 1px solid var(--bg2);
}

.finance-table tbody tr {
  transition: var(--transition);
}

.finance-table tbody tr:hover {
  background: var(--accent-light);
}

.finance-table .col-company {
  font-weight: 600;
  color: var(--ink);
}

.finance-table .col-amount {
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.finance-table .col-round .round-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 500;
}

.table-wrap {
  overflow-x: auto;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--ink2);
  transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- CMS 说明页 ---------- */
.cms-page {
  padding: 32px 0;
}

.cms-hero {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  margin-bottom: 32px;
}

.cms-hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cms-hero p {
  font-size: 0.95rem;
  opacity: 0.85;
  max-width: 600px;
}

.cms-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}

.cms-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}

.cms-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cms-sidebar nav a {
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--ink2);
  border-radius: var(--radius);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.cms-sidebar nav a:hover,
.cms-sidebar nav a.active {
  background: var(--accent-light);
  color: var(--accent);
  border-left-color: var(--accent);
}

.cms-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.cms-content h2:first-child {
  margin-top: 0;
}

.cms-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink2);
  margin: 20px 0 12px;
}

.cms-content p {
  font-size: 0.92rem;
  color: var(--ink2);
  line-height: 1.8;
  margin-bottom: 12px;
}

.cms-content ul {
  margin-bottom: 16px;
  padding-left: 0;
}

.cms-content ul li {
  font-size: 0.9rem;
  color: var(--ink2);
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
}

.cms-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.cms-content code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--bg2);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent);
}

.cms-content pre {
  background: #1A1A2E;
  color: #E0E0E0;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 12px 0 20px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.cms-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.cms-info-card {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 16px 0;
  border-left: 4px solid var(--accent);
}

.cms-info-card .info-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.cms-info-card .info-text {
  font-size: 0.85rem;
  color: var(--ink2);
  line-height: 1.7;
}

.cms-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.cms-flow .flow-step {
  background: var(--accent-light);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
}

.cms-flow .flow-arrow {
  color: var(--muted2);
  font-size: 1.2rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .qr-card {
    grid-column: span 2;
  }

  .deep-features {
    grid-template-columns: 1fr;
  }

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

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

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

  .topic-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    max-height: 70vh;
    overflow-y: auto;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 16px;
    width: 100%;
  }

  .nav-menu a.active::after {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .search-box {
    display: none;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .hero-slide {
    height: 260px;
  }

  .hero-overlay {
    padding: 40px 20px 20px;
  }

  .hero-overlay h2 {
    font-size: 1.15rem;
    max-width: 100%;
  }

  .hero-nav {
    display: none;
  }

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

  .qr-card {
    grid-column: span 1;
  }

  .database-summary {
    flex-direction: column;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .article-cover {
    height: 220px;
  }

  .article-header h1 {
    font-size: 1.4rem;
  }

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

  .topic-article-card {
    flex-direction: column;
  }

  .topic-article-card .card-thumb {
    width: 100%;
    height: 160px;
  }

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

  .cms-sidebar {
    position: static;
  }

  .cms-sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .cms-sidebar nav a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .cms-sidebar nav a.active {
    border-bottom-color: var(--accent);
    border-left: none;
  }

  .top-bar .top-links {
    display: none;
  }
}

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

  .hero-slide {
    height: 220px;
  }

  .hero-overlay h2 {
    font-size: 1rem;
  }

  .hero-dots {
    bottom: 10px;
    right: 12px;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .flash-news {
    padding: 14px;
  }
}

/* ============================================
   WordPress 兼容样式
   ============================================ */

/* WP 对齐 */
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin: 0 auto; }
.alignwide { max-width: 100%; }

/* WP 图片说明 */
.wp-caption {
  max-width: 100%;
  margin-bottom: 18px;
}
.wp-caption img { width: 100%; }
.wp-caption-text {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}

/* WP 引用 */
.sticky { display: block; }
.bypostauthor { display: block; }

/* 文章正文 WordPress 编辑器内容 */
.article-body .wp-block-image { margin: 20px 0; }
.article-body .wp-block-quote {
  background: var(--bg2);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* 分页导航 */
.navigation.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.navigation.pagination .page-numbers {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--ink2);
  transition: var(--transition);
  text-decoration: none;
  padding: 0 8px;
}
.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================
   BuddyPress 兼容样式覆盖
   让 BuddyPress 页面匹配主题设计风格
   ============================================ */

#buddypress {
  font-family: var(--font-sans);
  color: var(--ink2);
  font-size: 0.92rem;
}

#buddypress a {
  color: var(--accent);
  text-decoration: none;
}

#buddypress a:hover {
  color: var(--accent-dark);
}

#buddypress #item-header {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

#buddypress #item-header-avatar img {
  border-radius: var(--radius-lg);
}

#buddypress #item-header-content .user-nicename {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

#buddypress #item-nav {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 0 12px;
  margin-bottom: 20px;
}

#buddypress #item-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  overflow-x: auto;
}

#buddypress #item-nav li a {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--ink2);
  border-bottom: 2px solid transparent;
  display: block;
  white-space: nowrap;
  transition: var(--transition);
}

#buddypress #item-nav li.selected a,
#buddypress #item-nav li.current a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

#buddypress #item-body {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
}

#buddypress .activity-list .activity-item {
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}

#buddypress .activity-list .activity-avatar img {
  border-radius: 50%;
}

#buddypress .activity-list .activity-header a {
  font-weight: 600;
}

#buddypress .activity-content {
  margin-top: 8px;
  color: var(--ink2);
  line-height: 1.7;
}

#buddypress .activity-meta a {
  font-size: 0.8rem;
  padding: 4px 12px;
  border: 1px solid var(--rule2);
  border-radius: var(--radius);
  color: var(--ink2);
  transition: var(--transition);
}

#buddypress .activity-meta a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#buddypress form#whats-new-form {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

#buddypress #whats-new-textarea textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 60px;
}

#buddypress #whats-new-submit input {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

#buddypress #whats-new-submit input:hover {
  background: var(--accent-dark);
}

#buddypress .member-list-item,
#buddypress .groups-list-item {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
}

#buddypress .member-list-item:hover,
#buddypress .groups-list-item:hover {
  box-shadow: var(--shadow-md);
}

#buddypress .button {
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition);
}

#buddypress .button:hover {
  background: var(--accent);
  color: #fff;
}

#buddypress .generic-button a {
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

#buddypress .generic-button a:hover {
  background: var(--accent);
  color: #fff;
}

#buddypress table {
  width: 100%;
  border-collapse: collapse;
}

#buddypress table th {
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--rule);
  background: var(--bg2);
}

#buddypress table td {
  padding: 12px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--bg2);
}

#buddypress .pagination-links a,
#buddypress .pagination-links span {
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.82rem;
  margin: 0 2px;
}

#buddypress .pagination-links a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

#buddypress #send-private-message,
#buddypress .add_friend {
  border-radius: 12px;
}

#buddypress div#message {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}

#buddypress div#message p {
  font-size: 0.88rem;
  color: var(--accent-dark);
}

/* BuddyPress 响应式 */
@media (max-width: 768px) {
  #buddypress #item-header {
    padding: 16px;
  }
  #buddypress #item-header #item-header-avatar {
    text-align: center;
    float: none;
    margin-bottom: 12px;
  }
  #buddypress #item-header #item-header-content {
    margin-left: 0;
  }
  #buddypress #item-nav ul {
    flex-direction: column;
  }
  #buddypress #item-body {
    padding: 16px;
  }
}
