/* ===== LIKEAI WordPress 主题样式 ===== */
/* 前沿的AI智能体资讯会员网站 - www.likeai.vip */

/* ===== CSS 变量 ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --danger: #ef4444;

  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);

  --nav-height: 68px;
  --max-width: 1200px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { cursor: pointer; color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { display: flex; }
.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-accent {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.nav-link:hover { color: var(--primary); background: rgba(99,102,241,0.06); }
.nav-link.active { color: var(--primary); background: rgba(99,102,241,0.1); font-weight: 600; }

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

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 40px;
  width: 240px;
  transition: all 0.2s;
  position: relative;
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
  width: 280px;
}
.search-icon { color: var(--text-muted); flex-shrink: 0; }
.search-box input {
  border: none; background: none; outline: none;
  font-size: 14px; width: 100%; color: var(--text);
}
.search-box input::placeholder { color: var(--text-muted); }

/* 搜索结果下拉 */
.search-results-dropdown {
  position: fixed;
  top: calc(var(--nav-height) + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: calc(100vw - 32px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 999;
  max-height: 500px;
  overflow-y: auto;
}
.search-results-inner { padding: 8px; }
.search-results-placeholder { padding: 24px; text-align: center; color: var(--text-muted); font-size: 14px; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.search-result-item:hover { background: var(--bg-alt); }
.search-result-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 2px; }
.search-result-meta { font-size: 12px; color: var(--text-muted); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.4); color: white; }
.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: transparent;
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }
.btn-block { width: 100%; }
.btn-lg { height: 48px; font-size: 16px; padding: 0 28px; }

/* ===== 用户菜单 ===== */
.user-menu { position: relative; }
.user-avatar-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.user-avatar-btn:hover { background: var(--bg-alt); }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.user-name { font-size: 14px; font-weight: 500; }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  animation: dropIn 0.2s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-header { display: flex; align-items: center; gap: 12px; padding: 12px; }
.dropdown-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.dropdown-name { font-size: 15px; font-weight: 600; }
.dropdown-plan { font-size: 12px; color: var(--text-muted); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-secondary);
  transition: all 0.15s;
}
.dropdown-item:hover { background: var(--bg-alt); color: var(--text); }
.dropdown-item-danger:hover { color: var(--danger); background: rgba(239,68,68,0.06); }

/* ===== 主内容 ===== */
.main-content { padding-top: var(--nav-height); min-height: calc(100vh - var(--nav-height)); }

/* ===== Hero 区 ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  padding: 80px 24px 100px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(139,92,246,0.15) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -20px); } }
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: #a5b4fc;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 24px;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #818cf8; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: 52px; font-weight: 900; line-height: 1.15;
  letter-spacing: -1.5px; color: white; margin-bottom: 20px;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #818cf8, #c084fc, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 18px; color: #cbd5e1; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 60px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 36px; font-weight: 800; color: white; }
.hero-stat-label { font-size: 14px; color: #94a3b8; margin-top: 4px; }

/* ===== 分类筛选栏 ===== */
.category-bar {
  max-width: var(--max-width);
  margin: -40px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}
.category-bar-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
}
.category-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.category-chip:hover { background: var(--bg-alt); }
.category-chip.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.category-chip .count {
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
}
.category-chip.active .count { background: rgba(255,255,255,0.2); }

/* ===== 新闻列表区 ===== */
.news-section { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px; }
.news-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.news-section-title { font-size: 24px; font-weight: 800; }
.news-section-title .accent {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ===== 新闻卡片 ===== */
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99,102,241,0.2);
}
.news-card-image {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.news-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 60%);
}
.news-card-icon {
  width: 56px; height: 56px;
  color: rgba(255,255,255,0.9);
  z-index: 1;
}
.news-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.news-tag {
  font-size: 12px; font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-secondary);
}
.news-tag.premium {
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(239,68,68,0.12));
  color: var(--gold-dark);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.news-tag.category-tag {
  background: rgba(99,102,241,0.1);
  color: var(--primary);
}
.news-card-title {
  font-size: 17px; font-weight: 700; line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-summary {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.news-card-footer {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.news-author { display: flex; align-items: center; gap: 8px; }
.news-author-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.news-author-name { font-size: 13px; font-weight: 500; }
.news-meta { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 12px; color: var(--text-muted); }
.news-meta-item { display: flex; align-items: center; gap: 4px; }

/* ===== 文章详情页 ===== */
.article-page { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  margin-bottom: 32px; transition: color 0.2s;
}
.article-back:hover { color: var(--primary); }
.article-header { margin-bottom: 32px; }
.article-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.article-title { font-size: 34px; font-weight: 800; line-height: 1.25; letter-spacing: -0.5px; margin-bottom: 16px; }
.article-summary { font-size: 18px; color: var(--text-secondary); line-height: 1.7; }
.article-meta {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0; margin-bottom: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-author { display: flex; align-items: center; gap: 12px; }
.article-author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.article-author-info { font-size: 14px; }
.article-author-name { font-weight: 600; }
.article-author-time { color: var(--text-muted); font-size: 13px; }
.article-stats { margin-left: auto; display: flex; gap: 20px; color: var(--text-muted); font-size: 13px; }
.article-stat { display: flex; align-items: center; gap: 6px; }

.article-content { font-size: 17px; line-height: 1.85; color: #1e293b; }
.article-content p { margin-bottom: 20px; }
.article-content h2 { font-size: 24px; font-weight: 700; margin: 32px 0 16px; }
.article-content h3 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.article-content code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.article-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 20px;
}
.article-content pre code { background: none; padding: 0; }
.article-content a { color: var(--primary); text-decoration: underline; }
/* 修复：文章正文内的按钮（含付费墙"立即升级会员"）不能跟随正文 a 链接的紫色，
   强制保持 .btn 的原始文字色（白色/深色）以保证对比度。 */
.article-content a.btn,
.article-content a.btn:link,
.article-content a.btn:visited,
.article-content a.btn:hover,
.article-content a.btn:active,
.article-content a.btn:focus {
  color: white;
  text-decoration: none;
}
.article-content a.btn-ghost,
.article-content a.btn-ghost:link,
.article-content a.btn-ghost:visited,
.article-content a.btn-ghost:hover {
  color: var(--text-secondary);
}

/* 付费内容遮罩 */
.premium-divider {
  margin: 40px 0;
  text-align: center;
  position: relative;
}
.premium-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.premium-divider-badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px; font-weight: 600;
  color: var(--gold-dark);
}
.premium-blur {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}
.premium-lock-overlay {
  margin: 24px 0;
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(245,158,11,0.05), rgba(139,92,246,0.05));
  border: 2px dashed rgba(245,158,11,0.3);
  border-radius: var(--radius-lg);
}
.premium-lock-icon { margin-bottom: 16px; color: var(--gold); }
.premium-lock-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.premium-lock-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

.article-actions {
  display: flex; gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-action-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.article-action-btn:hover { background: var(--bg-alt); color: var(--text); }
.article-action-btn.liked { color: var(--danger); border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); }
.article-action-btn.bookmarked { color: var(--primary); border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.05); }

/* 相关文章 */
.related-section { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 80px; }
.related-title { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ===== 会员页面 ===== */
.membership-page { padding: 60px 24px; }
.membership-hero { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.membership-hero h1 {
  font-size: 42px; font-weight: 900; letter-spacing: -1px;
  margin-bottom: 16px;
}
.membership-hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--danger));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.membership-hero p { font-size: 18px; color: var(--text-secondary); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.pricing-card.popular {
  border-color: transparent;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  color: white;
  transform: scale(1.03);
}
.pricing-card.popular:hover { transform: scale(1.03) translateY(-4px); }
.popular-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--danger));
  color: white;
  font-size: 12px; font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.pricing-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.pricing-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pricing-desc { font-size: 14px; opacity: 0.7; margin-bottom: 24px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 32px; }
.pricing-price .currency { font-size: 20px; font-weight: 600; }
.pricing-price .amount { font-size: 48px; font-weight: 900; letter-spacing: -2px; }
.pricing-price .period { font-size: 16px; opacity: 0.6; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-feature {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 14px;
}
.pricing-feature .check { color: #10b981; flex-shrink: 0; }
.pricing-feature .x { color: var(--text-muted); flex-shrink: 0; }
.pricing-feature.excluded { opacity: 0.5; }
.pricing-card.popular .pricing-feature .check { color: #34d399; }

.pricing-cta { width: 100%; }
.pricing-card.popular .pricing-cta {
  background: linear-gradient(135deg, var(--gold), var(--danger));
}

/* ===== 用户中心 ===== */
.dashboard-page { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px; }
.dashboard-header { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; }
.dashboard-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
}
.dashboard-info h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.dashboard-email { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.dashboard-plan-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.dashboard-plan-badge.free { background: var(--bg-alt); color: var(--text-secondary); }
.dashboard-plan-badge.pro { background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(239,68,68,0.12)); color: var(--gold-dark); }
.dashboard-plan-badge.enterprise { background: rgba(99,102,241,0.1); color: var(--primary); }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.stat-value { font-size: 28px; font-weight: 800; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.dashboard-section { margin-bottom: 40px; }
.dashboard-section-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.dashboard-bookmarks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bookmark-card {
  display: flex; gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.bookmark-card:hover { box-shadow: var(--shadow); border-color: rgba(99,102,241,0.2); }
.bookmark-thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.9);
}
.bookmark-info { flex: 1; min-width: 0; }
.bookmark-title {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.bookmark-meta { font-size: 12px; color: var(--text-muted); }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}
.modal-close:hover { background: var(--bg-alt); color: var(--text); }

.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.auth-header h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.auth-header p { font-size: 14px; color: var(--text-muted); }

.auth-form { margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

.auth-footer { text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--text-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.social-auth { display: flex; gap: 12px; }
.social-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.social-btn:hover { background: var(--bg-alt); border-color: var(--text-muted); }

/* 升级弹窗 */
.upgrade-modal { max-width: 420px; text-align: center; }
.upgrade-content { padding: 8px; }
.upgrade-icon { display: flex; justify-content: center; margin-bottom: 20px; }
.upgrade-content h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.upgrade-content > p { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }
.upgrade-benefits { text-align: left; margin-bottom: 28px; display: grid; gap: 10px; }
.benefit-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-xl);
  font-size: 14px; font-weight: 500;
  min-width: 280px;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }
@keyframes toastIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state-icon { margin-bottom: 16px; color: var(--text-muted); }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); }

/* ===== 页脚 ===== */
.footer { background: #0f172a; color: #cbd5e1; padding: 60px 24px 24px; }
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: white; }
.footer-desc { font-size: 14px; line-height: 1.7; color: #94a3b8; max-width: 320px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; font-size: 14px; color: #94a3b8; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: var(--max-width); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-bottom p { font-size: 13px; color: #64748b; }
.footer-bottom .footer-icp { margin-top: 8px; }
.footer-bottom .footer-icp a { color: #64748b; text-decoration: none; transition: color 0.2s; }
.footer-bottom .footer-icp a:hover { color: #94a3b8; }
.footer-bottom .footer-icp .footer-divider { margin: 0 8px; color: #475569; }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: transparent;
}

/* ===== 动画 ===== */
.fade-in { animation: fadeInUp 0.5s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.stagger-1 { animation-delay: 0.05s; animation-fill-mode: both; }
.stagger-2 { animation-delay: 0.1s; animation-fill-mode: both; }
.stagger-3 { animation-delay: 0.15s; animation-fill-mode: both; }
.stagger-4 { animation-delay: 0.2s; animation-fill-mode: both; }
.stagger-5 { animation-delay: 0.25s; animation-fill-mode: both; }
.stagger-6 { animation-delay: 0.3s; animation-fill-mode: both; }

/* ===== WordPress 原生样式适配 ===== */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 8px; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .news-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-4px); }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .search-box { width: 180px; }
  .search-box:focus-within { width: 200px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .hero-stats { gap: 32px; }
  .hero-stat-num { font-size: 28px; }
  .news-grid, .related-grid { grid-template-columns: 1fr; }
  .dashboard-bookmarks { grid-template-columns: 1fr; }
  .article-title { font-size: 26px; }
  .article-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .article-stats { margin-left: 0; }
  .footer-container { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .membership-hero h1 { font-size: 30px; }
  .dashboard-header { flex-direction: column; text-align: center; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .btn-ghost, .btn-primary { font-size: 13px; padding: 0 14px; }
  .search-results-dropdown { width: calc(100vw - 32px); }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 16px; gap: 12px; }
  .search-box { display: none; }
  .user-name { display: none; }
  .hero { padding: 48px 20px 80px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 24px; }
  .modal { padding: 28px 20px; }
  .social-auth { flex-direction: column; }
  .dashboard-stats { grid-template-columns: 1fr; }
}

/* ===== 支付弹窗 Spinner ===== */
.likeai-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: likeai-spin 0.8s linear infinite;
}

.likeai-spinner:not(:root) {
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
}

@keyframes likeai-spin {
  to { transform: rotate(360deg); }
}

/* 支付成功横幅 */
.payment-success-banner {
  animation: likeai-fade-in 0.5s ease;
}

@keyframes likeai-fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
