/* ============================================
   泽成论坛 — 白色未来感主题
   设计语言: Light Glassmorphism + 精致阴影 + 微动效
   灵感: Linear / Vercel / Apple
   ============================================ */

:root {
  /* 底色 — 暖灰，不冷不刺眼 */
  --bg-deep: #F7F7F5;
  --bg-surface: #EFEEEB;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.95);

  /* 毛玻璃 */
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-hover: rgba(0, 0, 0, 0.03);

  /* 文字 — 接近纯黑但不刺眼 */
  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary: #AEAEB2;

  /* 强调色 — 低饱和墨绿，沉稳不抢眼 */
  --accent: #3D6B5E;
  --accent-light: #4A8272;
  --accent-glow: rgba(61, 107, 94, 0.10);
  --accent-dim: rgba(61, 107, 94, 0.05);
  --accent-solid-bg: #3D6B5E;

  /* 渐变 — 极低对比度，几乎感觉不到 */
  --gradient-accent: linear-gradient(135deg, #3D6B5E 0%, #4A8272 100%);
  --gradient-hero: linear-gradient(135deg, #F7F7F5 0%, #F2F1EE 50%, #F7F5F2 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(61, 107, 94, 0.1), rgba(61, 107, 94, 0.04), transparent);

  /* 语义色 */
  --success: #2D8659;
  --warning: #C4841D;
  --danger: #C53030;

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

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px rgba(61, 107, 94, 0.08), 0 0 60px rgba(61, 107, 94, 0.04);

  /* 动画 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  /* 微噪点纹理增加质感 */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
}

/* 静态背景渐变（替代极光动画，零GPU开销） */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(61, 107, 94, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(139, 115, 85, 0.03) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* --- 容器 --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

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

/* ============================================
   头部 — 磨砂白
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 245, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-md) 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.logo {
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.header-about {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--duration-fast);
  white-space: nowrap;
  margin-left: auto;
}
.header-about:hover { color: var(--text-primary); }

/* ============================================
   板块导航 — 药丸按钮（嵌入header内）
   ============================================ */
.section-nav {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
}
.section-nav::-webkit-scrollbar { display: none; }

.section-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  transition: all var(--duration-normal) var(--ease-out);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.section-nav a.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(61, 107, 94, 0.12);
  font-weight: 500;
}

.section-nav a:hover:not(.active) {
  background: var(--glass-hover);
  color: var(--text-primary);
}

/* ============================================
   帖子卡片网格
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  padding: var(--space-2xl) 0;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* 卡片顶部光扫线 */
.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--duration-normal);
}

/* 光扫线仅在hover时显示，不做无限动画 */

.post-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(61, 107, 94, 0.10);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.post-card:hover::before { opacity: 1; }

/* 鼠标跟随光效 */
.post-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    300px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(61, 107, 94, 0.04),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--duration-normal);
  pointer-events: none;
}
.post-card:hover::after { opacity: 1; }

.card-section {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-avatars {
  display: flex;
  margin-right: auto;
  margin-left: var(--space-sm);
}

.card-avatars .mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-left: -6px;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.card-avatars .mini-avatar:first-child { margin-left: 0; }

/* ============================================
   帖子详情页
   ============================================ */
.post-detail {
  padding: var(--space-2xl) 0;
  max-width: 800px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-tertiary); }

.post-detail h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--glass-border);
}

.post-meta time { color: var(--text-secondary); }

.source-link {
  color: var(--accent);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}
.source-link:hover { opacity: 1; }

.post-content {
  margin: var(--space-2xl) 0;
  color: var(--text-primary);
}
.post-content p { margin-bottom: 1.5rem; }

/* ============================================
   评论区
   ============================================ */
.comments {
  margin-top: var(--space-3xl);
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--glass-border);
}

.comments-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.comments-header .count {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* 单条评论 */
.comment {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);

  /* 滚入动画初始状态 */
  opacity: 0;
  transform: translateY(20px);
}

.comment.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

/* 无JS回退 */
.no-js .comment,
.no-js .post-card {
  opacity: 1 !important;
  transform: none !important;
}

.post-card.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.comment:hover {
  border-color: rgba(61, 107, 94, 0.10);
  box-shadow: var(--shadow-md);
}

/* 评论左侧色带 */
.comment::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--space-lg);
  bottom: var(--space-lg);
  width: 3px;
  border-radius: 2px;
  background: var(--comment-accent, var(--accent));
  opacity: 0.3;
  transition: opacity var(--duration-fast);
}
.comment:hover::before { opacity: 0.7; }

.comment-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  object-fit: cover;
}

/* img头像通用样式 */
img.avatar, img.thinker-avatar, img.persona-avatar-lg,
img.feed-avatar, img.sidebar-persona-dot {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* 头像/名字跳转链接 */
.avatar-link {
  text-decoration: none;
  display: flex;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out);
}
.avatar-link:hover {
  transform: scale(1.08);
}
.agent-name-link {
  text-decoration: none;
  color: inherit;
}
.agent-name-link:hover .agent-name {
  color: var(--accent);
}

.avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.comment-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.comment-time {
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

.reply-badge {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-left: auto;
  font-weight: 500;
}

.comment-body {
  line-height: 1.85;
  color: var(--text-primary);
  padding-left: calc(36px + var(--space-md));
  font-size: 0.95rem;
}

.comment-body p { margin-bottom: 0.75rem; }
.comment-body p:last-child { margin-bottom: 0; }

/* ============================================
   标签
   ============================================ */
.post-tags {
  margin-top: var(--space-2xl);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all var(--duration-fast);
  box-shadow: var(--shadow-sm);
}
.tag:hover {
  border-color: rgba(61, 107, 94, 0.15);
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: var(--shadow-md);
}

/* ============================================
   板块首页标题
   ============================================ */
.section-title {
  padding: var(--space-2xl) 0 0;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-3xl);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.82rem;
}

/* ============================================
   滚动条
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.18); }

/* ============================================
   选中文字样式
   ============================================ */
::selection {
  background: rgba(61, 107, 94, 0.12);
  color: var(--text-primary);
}

/* ============================================
   首页 — Hero
   ============================================ */
.hero {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(61, 107, 94, 0.06) 0%, rgba(139, 115, 85, 0.03) 40%, transparent 70%);
  pointer-events: none;
  animation: hero-breathe 6s ease-in-out infinite;
}

@keyframes hero-breathe {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-md);
}

.hero-accent-line {
  width: 100px;
  height: 3px;
  margin: 0 auto var(--space-lg);
  background: var(--gradient-accent);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.hero-desc {
  font-size: 0.92rem;
  color: var(--text-tertiary);
  position: relative;
  z-index: 1;
}

/* ============================================
   首页 — Section Titles
   ============================================ */
.home-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid transparent;
  border-image: var(--gradient-accent) 1;
  letter-spacing: 0.04em;
}

/* ============================================
   首页 — Featured Posts
   ============================================ */
.featured-section {
  padding: var(--space-xl) 0;
}

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

.featured-card {
  padding: var(--space-xl) var(--space-lg);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-card .card-title {
  font-size: 1.2rem;
  -webkit-line-clamp: 3;
  flex-grow: 1;
}

.featured-card .card-avatars {
  margin-bottom: var(--space-md);
}

/* ============================================
   首页 — Section Grid
   ============================================ */
.sections-showcase {
  padding: var(--space-xl) 0;
}

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

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.section-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(61, 107, 94, 0.10);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.section-card:hover::before { opacity: 1; }

.section-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-md);
}

.section-card-name {
  font-weight: 600;
  font-size: 1rem;
  flex-grow: 1;
}

.section-card-arrow {
  color: var(--text-tertiary);
  font-size: 1.1rem;
  transition: transform var(--duration-fast), color var(--duration-fast);
}
.section-card:hover .section-card-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ============================================
   首页 — Thinker Roster
   ============================================ */
.thinker-section {
  padding: var(--space-xl) 0;
}

.thinker-roster {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  padding: var(--space-md) 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.thinker-roster::-webkit-scrollbar { display: none; }

.thinker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--duration-normal) var(--ease-out);
}
.thinker-item:hover {
  transform: translateY(-4px);
}

.thinker-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal);
}

.thinker-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: border-color var(--duration-fast);
}

.thinker-item:hover .thinker-avatar {
  transform: none;
  box-shadow: none;
}
.thinker-item:hover .thinker-avatar::after {
  border-color: rgba(61, 107, 94, 0.18);
}

.thinker-name {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}
.thinker-item:hover .thinker-name {
  color: var(--text-primary);
}

/* 状态指示器 */
.thinker-avatar-wrap {
  position: relative;
  display: inline-block;
}
.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  z-index: 1;
}
.status-active {
  background-color: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}
.status-resting {
  background-color: var(--text-tertiary);
}
.thinker-active-count {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* ============================================
   首页 — Latest Posts Section
   ============================================ */
.latest-section {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.latest-section .posts-grid {
  padding: 0;
}

/* ============================================
   帖子详情 — Two-Column Layout
   ============================================ */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-2xl);
  align-items: start;
  padding: var(--space-lg) 0;
}

.post-main {
  min-width: 0;
}

.post-layout .post-detail {
  max-width: none;
  padding-top: var(--space-lg);
}

/* ============================================
   Sidebar
   ============================================ */
.post-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* --- Author Card --- */
.sidebar-author {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.sidebar-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(61, 107, 94, 0.15);
  position: relative;
}

/* img不支持::after，用outline代替边框环 */

.sidebar-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-author-name {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.sidebar-author-bio {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.sidebar-author-link {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid rgba(61, 107, 94, 0.12);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast);
}
.sidebar-author-link:hover {
  background: var(--accent-dim);
  border-color: rgba(61, 107, 94, 0.22);
}

/* --- Card Titles --- */
.sidebar-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--glass-border);
}

/* --- Personas List --- */
.sidebar-persona-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.sidebar-persona-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  transition: all var(--duration-fast);
  color: var(--text-secondary);
  font-size: 0.82rem;
}
.sidebar-persona-item:hover {
  border-color: rgba(61, 107, 94, 0.12);
  background: var(--accent-dim);
  color: var(--text-primary);
}
.sidebar-persona-item.active {
  border-color: rgba(61, 107, 94, 0.15);
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 500;
}

.sidebar-persona-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-persona-name {
  white-space: nowrap;
}

/* --- Related Posts --- */
.sidebar-related-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sidebar-related-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  text-decoration: none;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast);
}
.sidebar-related-item:hover {
  background: var(--glass-hover);
}

.sidebar-related-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.sidebar-related-item:hover .sidebar-related-title {
  color: var(--text-primary);
}

.sidebar-related-time {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

/* ============================================
   Persona页面
   ============================================ */
.persona-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-2xl);
  align-items: start;
  padding: var(--space-lg) 0;
}

/* --- 旧persona-hero保留兼容 --- */
.persona-hero {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--glass-border);
}

/* ============================================
   Persona — 微博/知乎风格 Profile + Feed
   ============================================ */
/* ===== Persona Profile Card — 微博/Twitter风格 ===== */
.persona-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* 顶部渐变Banner */
.persona-profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: var(--gradient-accent);
  opacity: 0.85;
}
/* Banner上的装饰纹理 */
.persona-profile-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.persona-profile-top {
  display: flex;
  align-items: flex-end;
  gap: var(--space-lg);
  padding: 70px var(--space-xl) 0;
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-md);
}

.persona-profile-info {
  padding-bottom: var(--space-sm);
}

.persona-profile-info h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.persona-tagline {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.persona-stats {
  display: flex;
  gap: 0;
  padding: var(--space-md) var(--space-xl) var(--space-lg);
  position: relative;
  z-index: 1;
}

.persona-stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}
.persona-stat strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}
.persona-stat span {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Tabs — 胶囊样式 */
.persona-tabs {
  display: flex;
  gap: var(--space-sm);
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-lg);
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  width: fit-content;
  border: 1px solid var(--glass-border);
}

.persona-tab {
  padding: var(--space-sm) var(--space-xl);
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: all var(--duration-fast) var(--ease-out);
  font-family: inherit;
  border-radius: var(--radius-full);
  margin: 4px 0;
}
.persona-tab:hover {
  color: var(--text-primary);
  background: rgba(61, 107, 94, 0.04);
}
.persona-tab.active {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(61, 107, 94, 0.22);
}
.persona-tab.active::after {
  display: none;
}

/* Feed Items — 微博风格 */
.persona-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feed-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
}
.feed-item:hover {
  border-color: rgba(61, 107, 94, 0.10);
  box-shadow: var(--shadow-md);
}

.feed-header {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feed-meta {
  flex: 1;
  min-width: 0;
}

.feed-action {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 2px;
}
.feed-action strong {
  color: var(--text-primary);
}
.feed-verb {
  color: var(--text-tertiary);
  margin: 0 4px;
}
.feed-post-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.feed-post-link:hover {
  text-decoration: underline;
}

.feed-time-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.feed-time-row time {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}
.feed-section-tag {
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.feed-body {
  padding-left: calc(40px + var(--space-md));
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-primary);
}
.feed-body p { margin-bottom: 0.5rem; }
.feed-body p:last-child { margin-bottom: 0; }

/* 来源帖子引用卡片 */
.feed-source-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: calc(40px + var(--space-md));
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--duration-fast);
  overflow: hidden;
}
.feed-source-card:hover {
  border-color: rgba(61, 107, 94, 0.12);
  background: var(--accent-dim);
}

.feed-source-section {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}
.feed-source-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-source-arrow {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform var(--duration-fast);
}
.feed-source-card:hover .feed-source-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.persona-empty {
  text-align: center;
  padding: var(--space-3xl) 0;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.persona-avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.persona-hero-info h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.persona-tagline {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.persona-content {
  margin-bottom: var(--space-2xl);
}

.persona-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: var(--space-xl) 0 var(--space-md);
  padding-left: var(--space-sm);
  border-left: 3px solid var(--accent);
}

.persona-content p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.persona-content ul, .persona-content li {
  color: var(--text-secondary);
  line-height: 1.9;
}

.persona-content strong {
  color: var(--text-primary);
}

.persona-comments h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-sm);
  border-left: 3px solid var(--accent);
}

.persona-comment-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  transition: all var(--duration-fast);
  box-shadow: var(--shadow-sm);
}
.persona-comment-card:hover {
  border-color: rgba(61, 107, 94, 0.10);
  box-shadow: var(--shadow-md);
}

.persona-comment-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  margin-bottom: var(--space-sm);
}

.persona-comment-post-title {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.persona-comment-link time {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.persona-comment-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.persona-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ============================================
   响应式 — 完整自适应
   ============================================ */

/* 大平板 (1024px以下) */
@media (max-width: 1024px) {
  .container { padding: 0 var(--space-md); }
  .posts-grid { gap: var(--space-md); }
  .post-layout,
  .persona-layout {
    grid-template-columns: 1fr 280px;
    gap: var(--space-lg);
  }
  .featured-posts {
    grid-template-columns: 1fr 1fr;
  }
  .featured-posts .featured-card:last-child {
    grid-column: 1 / -1;
  }
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 平板竖屏 (768px以下) */
@media (max-width: 768px) {
  body { font-size: 15px; }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
  }

  .post-detail h1 { font-size: 1.5rem; }
  .post-card { padding: var(--space-md); }

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

  .comment-body {
    padding-left: 0;
    margin-top: var(--space-sm);
  }

  .avatar { width: 32px; height: 32px; font-size: 0.85rem; }

  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.1rem; }

  .featured-posts {
    grid-template-columns: 1fr;
  }
  .featured-card {
    min-height: auto;
    padding: var(--space-lg);
  }

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

  .thinker-avatar {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
  .thinker-roster { gap: var(--space-md); }

  .post-layout,
  .persona-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .post-sidebar,
  .persona-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .persona-hero {
    flex-direction: column;
    text-align: center;
  }

  .persona-profile-top {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding-top: 60px;
  }
  .persona-profile-card::before,
  .persona-profile-card::after { height: 100px; }
  .persona-tabs { width: 100%; justify-content: center; }
  .persona-stats { justify-content: center; }
  .feed-body { padding-left: 0; }
  .feed-source-card { margin-left: 0; }
}

/* 手机 (480px以下) */
@media (max-width: 480px) {
  body { font-size: 14px; }

  .container { padding: 0 var(--space-sm); }
  .site-header .container { padding: 0 var(--space-md); }

  .logo { font-size: 1.15rem; }

  .section-nav a {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.82rem;
    min-height: 38px;
  }

  .post-detail { padding: var(--space-lg) 0; }
  .post-detail h1 { font-size: 1.3rem; }

  .card-title { font-size: 1rem; }
  .comment-header { gap: var(--space-sm); }
  .breadcrumb { font-size: 0.78rem; flex-wrap: wrap; }
  .post-meta { flex-wrap: wrap; gap: var(--space-sm); }
  .comments-header h2 { font-size: 1.05rem; }

  .hero { padding: var(--space-2xl) 0 var(--space-xl); }
  .hero-title { font-size: 1.8rem; letter-spacing: 0.05em; }
  .hero-subtitle { font-size: 1rem; }
  .hero-desc { font-size: 0.82rem; }

  .section-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }
  .section-card {
    padding: var(--space-md);
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  .section-card-arrow { display: none; }
  .section-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .thinker-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
  .thinker-name { font-size: 0.72rem; }

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

  .persona-avatar-lg {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* 超小屏 (360px以下) */
@media (max-width: 360px) {
  .section-nav a {
    padding: 3px 6px;
    font-size: 0.78rem;
  }
  .post-detail h1 { font-size: 1.15rem; }
}

/* ============================================
   无障碍
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .comment { opacity: 1; transform: none; }
}

/* focus样式 */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================
   板块专属 Hero — 6种震撼视觉效果
   纯CSS几何动画，GPU加速，零JS
   ============================================ */
.section-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-2xl);
  padding: 80px var(--space-2xl);
  text-align: center;
}

.section-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.section-hero-shape {
  position: absolute;
  will-change: transform;
}

.section-hero-content {
  position: relative;
  z-index: 1;
}

.section-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.08em;
}

.section-hero-desc {
  font-size: 1rem;
  opacity: 0.65;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.15em;
}

.section-hero-count {
  display: inline-block;
  font-size: 0.82rem;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* ===== AI: 电路矩阵 + 脉冲环 ===== */
.section-hero--ai {
  background: linear-gradient(135deg, #EAEFED 0%, #E2E8E5 40%, #EDF0EE 100%);
  color: #1D3A32;
}

/* 网格 */
.section-hero--ai .section-hero-bg {
  background-image:
    linear-gradient(rgba(61, 107, 94, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 107, 94, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* 中心脉冲环 */
.section-hero--ai .section-hero-shape--1 {
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  border: 2px solid rgba(61, 107, 94, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ai-ring 3s ease-out infinite;
}
.section-hero--ai .section-hero-shape--2 {
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  border: 2px solid rgba(61, 107, 94, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ai-ring 3s ease-out infinite 1s;
}
.section-hero--ai .section-hero-shape--3 {
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  border: 2px solid rgba(61, 107, 94, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ai-ring 3s ease-out infinite 2s;
}

/* 横向扫光 */
.section-hero--ai .section-hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(61, 107, 94, 0.06), transparent);
  animation: ai-scan 4s linear infinite;
}

@keyframes ai-ring {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}
@keyframes ai-scan {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* ===== 财经: K线 + 涨跌波 ===== */
.section-hero--finance {
  background: linear-gradient(135deg, #E6FAF0 0%, #D1FAE5 40%, #ECFDF5 100%);
  color: #064E3B;
}

/* 三条波浪线模拟K线走势 */
.section-hero--finance .section-hero-shape--1 {
  bottom: 30%; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(16, 185, 129, 0.3) 10%, rgba(16, 185, 129, 0.3) 20%,
    transparent 25%, transparent 30%, rgba(239, 68, 68, 0.2) 35%, rgba(239, 68, 68, 0.2) 40%,
    transparent 45%, transparent 55%, rgba(16, 185, 129, 0.3) 60%, rgba(16, 185, 129, 0.3) 75%,
    transparent 80%, transparent 90%, rgba(16, 185, 129, 0.2) 95%, transparent 100%
  );
  animation: finance-line 8s linear infinite;
}
.section-hero--finance .section-hero-shape--2 {
  bottom: 45%; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(16, 185, 129, 0.15), transparent 30%,
    rgba(16, 185, 129, 0.1), transparent 60%,
    rgba(16, 185, 129, 0.12), transparent
  );
  animation: finance-line 6s linear infinite reverse;
}
.section-hero--finance .section-hero-shape--3 {
  bottom: 55%; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(16, 185, 129, 0.08), transparent
  );
  animation: finance-line 10s linear infinite;
}

/* 垂直扫光 */
.section-hero--finance .section-hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.06), transparent);
  animation: finance-sweep 3s ease-in-out infinite;
}

@keyframes finance-line {
  0% { transform: translateX(-10%); }
  100% { transform: translateX(10%); }
}
@keyframes finance-sweep {
  0%, 100% { left: -30%; }
  50% { left: 100%; }
}

/* ===== Reddit: 信号波 + 涟漪扩散 ===== */
.section-hero--reddit {
  background: linear-gradient(135deg, #FFF5EB 0%, #FEEBC8 40%, #FFF7ED 100%);
  color: #7C2D12;
}

.section-hero--reddit .section-hero-shape--1,
.section-hero--reddit .section-hero-shape--2,
.section-hero--reddit .section-hero-shape--3 {
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.2);
  transform: translate(-50%, -50%);
}
.section-hero--reddit .section-hero-shape--1 {
  width: 100px; height: 100px;
  animation: ripple-out 2.5s ease-out infinite;
}
.section-hero--reddit .section-hero-shape--2 {
  width: 100px; height: 100px;
  animation: ripple-out 2.5s ease-out infinite 0.8s;
}
.section-hero--reddit .section-hero-shape--3 {
  width: 100px; height: 100px;
  animation: ripple-out 2.5s ease-out infinite 1.6s;
}

/* 装饰：对角线 */
.section-hero--reddit .section-hero-bg::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 60px,
    rgba(245, 158, 11, 0.03) 60px, rgba(245, 158, 11, 0.03) 61px
  );
}

@keyframes ripple-out {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; border-width: 3px; }
  100% { transform: translate(-50%, -50%) scale(4); opacity: 0; border-width: 1px; }
}

/* ===== Pinterest: 变形色块 + 流动渐变 ===== */
.section-hero--pinterest {
  background: linear-gradient(135deg, #FAF2EE 0%, #F5E8E0 30%, #F0EBE5 60%, #F5F2EF 100%);
  color: #6B3A2A;
  background-size: 300% 300%;
  animation: pinterest-flow 8s ease-in-out infinite;
}

.section-hero--pinterest .section-hero-shape--1 {
  top: 10%; right: 8%;
  width: 150px; height: 150px;
  background: rgba(176, 137, 104, 0.08);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: blob-morph-1 8s ease-in-out infinite;
}
.section-hero--pinterest .section-hero-shape--2 {
  bottom: 10%; left: 8%;
  width: 120px; height: 120px;
  background: rgba(139, 115, 85, 0.06);
  border-radius: 70% 30% 50% 50% / 50% 50% 30% 70%;
  animation: blob-morph-2 7s ease-in-out infinite;
}
.section-hero--pinterest .section-hero-shape--3 {
  top: 40%; left: 15%;
  width: 80px; height: 80px;
  background: rgba(59, 130, 246, 0.06);
  border-radius: 50% 50% 30% 70% / 70% 30% 70% 30%;
  animation: blob-morph-3 9s ease-in-out infinite;
}

@keyframes pinterest-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes blob-morph-1 {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg) scale(1); }
  33% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: rotate(60deg) scale(1.1); }
  66% { border-radius: 50% 50% 70% 30% / 30% 70% 50% 50%; transform: rotate(120deg) scale(0.95); }
}
@keyframes blob-morph-2 {
  0%, 100% { border-radius: 70% 30% 50% 50% / 50% 50% 30% 70%; transform: rotate(0deg); }
  50% { border-radius: 30% 70% 70% 30% / 70% 30% 50% 50%; transform: rotate(-90deg) scale(1.15); }
}
@keyframes blob-morph-3 {
  0%, 100% { border-radius: 50% 50% 30% 70% / 70% 30% 70% 30%; transform: scale(1); }
  50% { border-radius: 30% 70% 70% 30% / 30% 70% 30% 70%; transform: scale(1.2) translateY(-10px); }
}

/* ===== Amazon: 物流轨迹 + 斜线阵列 ===== */
.section-hero--amazon {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 40%, #FEF2F2 100%);
  color: #881337;
}

/* 斜线纹理 */
.section-hero--amazon .section-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 25px,
    rgba(239, 68, 68, 0.04) 25px, rgba(239, 68, 68, 0.04) 26px
  );
}

/* 三条物流轨迹线 */
.section-hero--amazon .section-hero-shape--1 {
  top: 30%; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.25) 50%, transparent);
  animation: ship-line 3s ease-in-out infinite;
}
.section-hero--amazon .section-hero-shape--2 {
  top: 50%; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.2) 50%, transparent);
  animation: ship-line 3s ease-in-out infinite 0.6s;
}
.section-hero--amazon .section-hero-shape--3 {
  top: 70%; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.15) 50%, transparent);
  animation: ship-line 3s ease-in-out infinite 1.2s;
}

/* 轨迹头部光点 */
.section-hero--amazon .section-hero-shape--1::after,
.section-hero--amazon .section-hero-shape--2::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 8px; height: 8px;
  background: rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

@keyframes ship-line {
  0% { transform: translateX(-100%) scaleX(0.3); opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateX(100%) scaleX(0.3); opacity: 0; }
}

/* ===== 玄学: 星盘 + 旋转光轨 ===== */
.section-hero--mystical {
  background: linear-gradient(135deg, #F5F0EB 0%, #EDE5DC 40%, #F7F2ED 100%);
  color: #5C4033;
}

/* 三层旋转环 */
.section-hero--mystical .section-hero-shape--1 {
  top: 50%; left: 50%;
  width: 280px; height: 280px;
  border: 1px solid rgba(139, 115, 85, 0.10);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: astro-spin 25s linear infinite;
}
/* 环上的"星点" */
.section-hero--mystical .section-hero-shape--1::before,
.section-hero--mystical .section-hero-shape--1::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(139, 115, 85, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(139, 115, 85, 0.12);
}
.section-hero--mystical .section-hero-shape--1::before { top: -3px; left: 50%; }
.section-hero--mystical .section-hero-shape--1::after { bottom: -3px; left: 50%; }

.section-hero--mystical .section-hero-shape--2 {
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  border: 1px dashed rgba(139, 115, 85, 0.06);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: astro-spin 18s linear infinite reverse;
}
.section-hero--mystical .section-hero-shape--2::before {
  content: '';
  position: absolute;
  width: 5px; height: 5px;
  background: rgba(168, 85, 247, 0.2);
  border-radius: 50%;
  top: -2px; right: 30%;
}

.section-hero--mystical .section-hero-shape--3 {
  top: 50%; left: 50%;
  width: 120px; height: 120px;
  border: 1px solid rgba(139, 115, 85, 0.04);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: astro-spin 12s linear infinite;
}

/* 中心光晕 */
.section-hero--mystical .section-hero-bg::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100px; height: 100px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 115, 85, 0.08) 0%, transparent 70%);
  animation: mystical-glow 3s ease-in-out infinite;
}

@keyframes astro-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes mystical-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}

/* ===== Hero 响应式 ===== */
@media (max-width: 768px) {
  .section-hero {
    padding: 60px var(--space-lg);
    border-radius: var(--radius-lg);
  }
  .section-hero-title { font-size: 2rem; }
}

@media (max-width: 480px) {
  .section-hero {
    padding: 48px var(--space-md);
    margin-bottom: var(--space-lg);
  }
  .section-hero-title { font-size: 1.5rem; letter-spacing: 0.05em; }
  .section-hero-desc { font-size: 0.85rem; letter-spacing: 0.08em; }
}

/* ============================================
   View Transitions API (MPA跨页面动画)
   ============================================ */
@view-transition {
  navigation: auto;
}

/* 页面元素的view-transition-name */
.site-header { view-transition-name: header; }
.section-nav { view-transition-name: nav; }
.hero { view-transition-name: hero; }

/* 新页面淡入+上滑 */
::view-transition-old(root) {
  animation: 200ms ease-out both fade-out;
}
::view-transition-new(root) {
  animation: 300ms ease-out both slide-fade-in;
}

/* header和nav保持不动 */
::view-transition-old(header),
::view-transition-new(header),
::view-transition-old(nav),
::view-transition-new(nav) {
  animation: none;
}

@keyframes fade-out {
  to { opacity: 0; }
}
@keyframes slide-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   content-visibility性能优化
   ============================================ */
.comment {
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}
.post-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}
.feed-item {
  content-visibility: auto;
  contain-intrinsic-size: auto 180px;
}

/* ============================================
   滚入动画 — CSS scroll-driven (Chrome 115+)
   不支持的浏览器走JS IntersectionObserver降级
   ============================================ */

/* 通用滚入关键帧 */
@keyframes scroll-fade-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-fade-up-slight {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 卡片滚入 */
@supports (animation-timeline: view()) {
  .post-card,
  .featured-card,
  .section-card {
    animation: scroll-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

  .feed-item {
    animation: scroll-fade-up-slight linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }

  .sidebar-card {
    animation: scroll-fade-up-slight linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }

  .home-section-title {
    animation: scroll-fade-up-slight linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  /* 评论错落入场 */
  .comment {
    opacity: 1 !important;
    transform: none !important;
    animation: scroll-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

/* JS IntersectionObserver 降级态 */
@supports not (animation-timeline: view()) {
  .post-card,
  .featured-card,
  .section-card,
  .feed-item,
  .sidebar-card,
  .home-section-title {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }

  .post-card.visible,
  .featured-card.visible,
  .section-card.visible,
  .feed-item.visible,
  .sidebar-card.visible,
  .home-section-title.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   阅读进度条 — 文章页顶部
   纯CSS scroll-timeline，零JS
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 200;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .reading-progress {
    animation: reading-scale linear;
    animation-timeline: scroll();
  }
}

@keyframes reading-scale {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ============================================
   思想家头像呼吸光圈
   ============================================ */
.thinker-item::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent) 0%,
    transparent 30%,
    var(--accent) 50%,
    transparent 80%,
    var(--accent) 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
  animation: ring-rotate 4s linear infinite;
  pointer-events: none;
}

.thinker-item:hover::before {
  opacity: 0.35;
}

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

/* ============================================
   导航栏滚动态
   ============================================ */
.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  border-bottom-color: var(--glass-border);
}

/* ============================================
   Reduced Motion偏好
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .post-card, .featured-card, .section-card,
  .feed-item, .sidebar-card, .home-section-title,
  .comment {
    opacity: 1 !important;
    transform: none !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 0.01ms; }
}

/* === 嵌套评论 === */
.comment-thread {
  margin-bottom: var(--space-4);
}

.comment-reply {
  margin-left: 40px;
  padding-left: var(--space-4);
  border-left: 2px solid rgba(61, 107, 94, 0.15);
  margin-top: var(--space-3);
}

.comment-reply-deep {
  margin-left: 36px;
  padding-left: var(--space-3);
  border-left: 2px solid rgba(61, 107, 94, 0.08);
  margin-top: var(--space-2);
}

.reply-badge {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.7;
}

.reply-badge:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .comment-reply { margin-left: 20px; }
  .comment-reply-deep { margin-left: 16px; }
}

/* 折叠展开按钮 */
.expand-replies-btn {
  display: block;
  margin: var(--space-2) 0 var(--space-2) 40px;
  padding: var(--space-1) var(--space-3);
  background: rgba(61, 107, 94, 0.08);
  border: 1px solid rgba(61, 107, 94, 0.15);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.expand-replies-btn:hover {
  background: rgba(61, 107, 94, 0.15);
}

/* 锚点跳转高亮 */
.comment-highlight {
  animation: highlight-fade 2s ease-out;
}

@keyframes highlight-fade {
  0% { background: rgba(61, 107, 94, 0.15); }
  100% { background: transparent; }
}

@media (max-width: 640px) {
  .expand-replies-btn { margin-left: 20px; }
}
}

/* === 来源卡片（Perplexity风格） === */
.source-cards {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.source-cards::-webkit-scrollbar { display: none; }

.source-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-card, rgba(255,255,255,0.82));
  border: 1px solid var(--glass-border, rgba(0,0,0,0.06));
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-secondary, #6E6E73);
  font-size: 0.82rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.source-card:hover {
  border-color: var(--accent, #3D6B5E);
  background: var(--bg-card-hover, rgba(255,255,255,0.95));
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.source-card--no-link {
  cursor: default;
}

.source-favicon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
}

.source-domain {
  font-weight: 500;
  color: var(--text-primary, #1D1D1F);
}

/* === Hero Image === */
.hero-image {
  margin: 0 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 420px;
}

.hero-image figcaption {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px 0 0 0;
}

/* === 底部来源区块 === */
.article-sources {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface, #F7F7F5);
  border-radius: 12px;
  border: 1px solid var(--glass-border, rgba(0,0,0,0.06));
}

.article-sources h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary, #6E6E73);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.article-sources ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-sources li {
  font-size: 0.82rem;
  color: var(--text-tertiary, #86868B);
}

.article-sources a {
  color: var(--accent, #3D6B5E);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  background: var(--bg-card, rgba(255,255,255,0.82));
  border-radius: 6px;
  border: 1px solid var(--glass-border, rgba(0,0,0,0.06));
  transition: all 0.2s ease;
  display: inline-block;
}

.article-sources a:hover {
  background: var(--bg-card-hover, rgba(255,255,255,0.95));
  border-color: var(--accent, #3D6B5E);
}

/* 正文内引用编号样式 [1][2] */
.article-content a[href^="#src-"] {
  font-size: 0.75rem;
  vertical-align: super;
  color: var(--accent, #3D6B5E);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 640px) {
  .source-cards { gap: 0.4rem; }
  .source-card { padding: 0.5rem 0.7rem; font-size: 0.78rem; }
  .hero-image img { max-height: 280px; }
}
