:root {
  --primary: #ff8200;
  --primary-light: #fff3e6;
  --primary-hover: #e67600;
  --primary-gradient: linear-gradient(135deg, #ff8200 0%, #ff6a00 100%);
  --primary-gradient-full: linear-gradient(135deg, #ff8200, #ff6a00, #ff4500);
  --primary-shadow: rgba(255,130,0,0.3);
  --primary-ring: rgba(255,130,0,0.12);

  --weibo-red: #ff4d4f;
  --weibo-blue: #1e80ff;
  --weibo-bg: #f2f2f5;
  --weibo-card: #ffffff;
  --weibo-border: #e8e8e8;
  --weibo-text: #333333;
  --weibo-text-secondary: #939393;
  --weibo-text-muted: #b2b2b2;
  --weibo-tag-bg: #f7f7f7;
  --weibo-hover-bg: #f8f8f8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --header-height: 56px;

  --weibo-orange-light: #fff3e6;
  --weibo-orange: #ff8200;
    --weibo-orange-hover: #e67600;




}

/* ===== THEME: BLUE ===== */
[data-theme="blue"] {
  --primary: #1e80ff;
  --primary-light: #e6f0ff;
  --primary-hover: #0960d4;
  --primary-gradient: linear-gradient(135deg, #1e80ff 0%, #0960d4 100%);
  --primary-gradient-full: linear-gradient(135deg, #1e80ff, #0960d4, #0047b3);
  --primary-shadow: rgba(30,128,255,0.3);
  --primary-ring: rgba(30,128,255,0.12);
}

/* ===== THEME: PURPLE ===== */
[data-theme="purple"] {
  --primary: #7c3aed;
  --primary-light: #f3eeff;
  --primary-hover: #6428d6;
  --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #6428d6 100%);
  --primary-gradient-full: linear-gradient(135deg, #7c3aed, #6428d6, #4c1d95);
  --primary-shadow: rgba(124,58,237,0.3);
  --primary-ring: rgba(124,58,237,0.12);
}

/* ===== THEME: GREEN ===== */
[data-theme="green"] {
  --primary: #16a34a;
  --primary-light: #ecfdf5;
  --primary-hover: #15803d;
  --primary-gradient: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  --primary-gradient-full: linear-gradient(135deg, #16a34a, #15803d, #166534);
  --primary-shadow: rgba(22,163,74,0.3);
  --primary-ring: rgba(22,163,74,0.12);
}

/* ===== THEME: PINK ===== */
[data-theme="pink"] {
  --primary: #ec4899;
  --primary-light: #fdf2f8;
  --primary-hover: #db2777;
  --primary-gradient: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  --primary-gradient-full: linear-gradient(135deg, #ec4899, #db2777, #be185d);
  --primary-shadow: rgba(236,72,153,0.3);
  --primary-ring: rgba(236,72,153,0.12);
}

/* ===== THEME: DARK ===== */
[data-theme="dark"] {
  --primary: #f97316;
  --primary-light: #2a1a0a;
  --primary-hover: #ea6a0a;
  --primary-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --primary-gradient-full: linear-gradient(135deg, #f97316, #ea580c, #c2410c);
  --primary-shadow: rgba(249,115,22,0.3);
  --primary-ring: rgba(249,115,22,0.15);
  --weibo-bg: #111111;
  --weibo-card: #1c1c1e;
  --weibo-border: #2c2c2e;
  --weibo-text: #f5f5f5;
  --weibo-text-secondary: #8e8e93;
  --weibo-text-muted: #636366;
  --weibo-tag-bg: #2c2c2e;
  --weibo-hover-bg: #2c2c2e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
}

[data-theme="dark"] .post-card,
[data-theme="dark"] .side-card,
[data-theme="dark"] .nav-card,
[data-theme="dark"] .page-header-card,
[data-theme="dark"] .cat-card,
[data-theme="dark"] .tags-cloud,
[data-theme="dark"] .tag-articles,
[data-theme="dark"] .guestbook-card,
[data-theme="dark"] .flink-intro,
[data-theme="dark"] .flink-card,
[data-theme="dark"] .flink-apply,
[data-theme="dark"] .about-section,
[data-theme="dark"] .about-cover,
[data-theme="dark"] .cat-article-list,
[data-theme="dark"] .list-item,
[data-theme="dark"] .article-list-card {
  background: var(--weibo-card);
  border-color: var(--weibo-border);
}

[data-theme="dark"] .post-action:hover,
[data-theme="dark"] .cat-article-item:hover,
[data-theme="dark"] .trending-item:hover,
[data-theme="dark"] .recommend-user:hover,
[data-theme="dark"] .flink-card:hover,
[data-theme="dark"] .friend-link-mini:hover,
[data-theme="dark"] .article-list-item:hover { background: var(--weibo-hover-bg); }

[data-theme="dark"] .gb-reply { background: var(--weibo-tag-bg); }

[data-theme="dark"] .about-banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

[data-theme="dark"] .header {
  background: linear-gradient(135deg, #1c1c1e, #2c2c2e);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

[data-theme="dark"] .mobile-bottom-nav { background: #1c1c1e; border-color: #2c2c2e; }
[data-theme="dark"] .mobile-sidebar { background: #111; }
[data-theme="dark"] .mobile-sidebar-overlay { background: rgba(0,0,0,0.6); }

[data-theme="dark"] .post-images.grid-3 .post-img,
[data-theme="dark"] .post-images.grid-2 .post-img,
[data-theme="dark"] .post-images.grid-4 .post-img { filter: brightness(0.85); }

[data-theme="dark"] .link-card-thumb,
[data-theme="dark"] .article-thumb { filter: brightness(0.8); }
[data-theme="dark"] .cat-article-item { border-color: #2c2c2e; }
[data-theme="dark"] .gb-item { border-color: #2c2c2e; }
[data-theme="dark"] .post-card { border: 1px solid var(--weibo-border); }
[data-theme="dark"] .post-actions { border-color: var(--weibo-border); }

[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #444; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #555; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--weibo-bg);
  color: var(--weibo-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s, color 0.4s;
}

/* ===== THEME SWITCHER ===== */
.theme-fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: none;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 4px 16px var(--primary-shadow), 0 0 0 0 var(--primary-ring);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fabPulse 3s ease-in-out infinite;
}

.theme-fab:hover {
  transform: scale(1.1) rotate(30deg);
  box-shadow: 0 6px 24px var(--primary-shadow);
  animation: none;
}

.theme-fab.open {
  transform: scale(1.1) rotate(45deg);
  animation: none;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 16px var(--primary-shadow), 0 0 0 0 var(--primary-ring); }
  50% { box-shadow: 0 4px 16px var(--primary-shadow), 0 0 0 12px transparent; }
}

.theme-panel {
  position: fixed;
  bottom: 140px;
  right: 20px;
  background: var(--weibo-card);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  padding: 20px;
  z-index: 998;
  width: 260px;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-panel.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.theme-panel-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--weibo-text);
}

.theme-panel-sub {
  font-size: 12px;
  color: var(--weibo-text-muted);
  margin-bottom: 16px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px 4px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.2s;
  background: none;
  font-family: inherit;
}

.theme-option:hover {
  background: var(--weibo-hover-bg);
}

.theme-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.theme-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.theme-option:hover .theme-dot { transform: scale(1.15); }

.theme-option.active .theme-dot::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.theme-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--weibo-text-secondary);
}

.theme-option.active .theme-label { color: var(--primary); font-weight: 700; }

.dot-orange { background: linear-gradient(135deg, #ff8200, #ff6a00); }
.dot-blue { background: linear-gradient(135deg, #1e80ff, #0960d4); }
.dot-purple { background: linear-gradient(135deg, #7c3aed, #6428d6); }
.dot-green { background: linear-gradient(135deg, #16a34a, #15803d); }
.dot-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.dot-dark { background: linear-gradient(135deg, #333, #111); }

.theme-divider {
  height: 1px;
  background: var(--weibo-border);
  margin: 14px 0;
}

.theme-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-toggle-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--weibo-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--weibo-border);
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
  padding: 0;
}

.theme-switch.on { background: var(--primary); }

.theme-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.theme-switch.on::after { transform: translateX(20px); }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--primary-gradient);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 12px var(--primary-shadow);
  transition: background 0.4s, box-shadow 0.4s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-icon {
  width: 32px; height: 32px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--primary);
  font-size: 18px;
  transition: color 0.4s;
}

.logo-text {
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.header-nav a:hover, .header-nav a.active {
  background: rgba(255,255,255,0.2);
  color: white;
}

.header-search {
  position: relative;
  width: 220px;
}

.header-search input {
  width: 100%;
  height: 34px;
  border: none;
  border-radius: 17px;
  padding: 0 16px 0 36px;
  font-size: 13px;
  background: rgba(255,255,255,0.2);
  color: white;
  outline: none;
  transition: all 0.3s;
}

.header-search input::placeholder { color: rgba(255,255,255,0.7); }
.header-search input:focus { background: rgba(255,255,255,0.3); width: 260px; }

.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

/* ===== MAIN LAYOUT ===== */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 16px) 16px 20px;
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 16px;
  min-height: 100vh;
}

/* ===== LEFT SIDEBAR ===== */
.sidebar-left {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  height: fit-content;
}

.profile-card {
  background: var(--weibo-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: background 0.4s;
}

.profile-banner {
  height: 80px;
  background: var(--primary-gradient-full);
  position: relative;
  transition: background 0.4s;
}

.profile-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.1));
}

.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid var(--weibo-card);
  margin: -32px auto 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  font-weight: 700;
  transition: border-color 0.4s;
}

.profile-info {
  text-align: center;
  padding: 10px 16px 16px;
}

.profile-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.profile-desc { font-size: 12px; color: var(--weibo-text-secondary); margin-bottom: 12px; }

.profile-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--weibo-border);
  padding-top: 12px;
  transition: border-color 0.4s;
}

.stat-item { text-align: center; cursor: pointer; }
.stat-item:hover .stat-num { color: var(--primary); }
.stat-num { font-size: 16px; font-weight: 700; transition: color 0.3s; }
.stat-label { font-size: 11px; color: var(--weibo-text-secondary); }

.nav-card {
  background: var(--weibo-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-top: 12px;
  padding: 8px;
  transition: background 0.4s;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
  color: var(--weibo-text);
}

.nav-item:hover { background: var(--weibo-hover-bg); }
.nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 500; }
.nav-item .nav-icon { width: 20px; text-align: center; font-size: 16px; }

/* ===== PAGE WRAPPER ===== */
.page-wrapper { display: none; }
.page-wrapper.active { display: grid; }

/* ===== HOME - FEED ===== */
.feed-tabs {
  background: var(--weibo-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  padding: 0 8px;
  margin-bottom: 12px;
  transition: background 0.4s;
}

.feed-tab {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--weibo-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.feed-tab:hover { color: var(--weibo-text); }
.feed-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Post Card */
.post-card {
  background: var(--weibo-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  transition: box-shadow 0.2s, background 0.4s;
  overflow: hidden;
}

.post-card:hover { box-shadow: var(--shadow-md); }

.post-header { display: flex; align-items: center; padding: 16px 16px 0; gap: 10px; }

.post-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  font-weight: 700;
}

.post-meta { flex: 1; min-width: 0; }

.post-author {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vip-badge {
  background: var(--primary-gradient);
  color: white;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  transition: background 0.4s;
}

.post-time { font-size: 12px; color: var(--weibo-text-muted); }

.post-more {
  background: none;
  border: none;
  color: var(--weibo-text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 4px;
}

.post-more:hover { background: var(--weibo-hover-bg); }

.post-body { padding: 12px 16px; }

.post-text { font-size: 14px; line-height: 1.75; margin-bottom: 10px; }

.post-text .topic-tag { color: var(--primary); cursor: pointer; transition: color 0.3s; }
.post-text .topic-tag:hover { text-decoration: underline; }

.post-images { display: grid; gap: 4px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 8px; }
.post-images.grid-2 { grid-template-columns: 1fr 1fr; max-width: 400px; }
.post-images.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.post-images.grid-4 { grid-template-columns: 1fr 1fr; max-width: 400px; }

.post-img { aspect-ratio: 1; background-size: cover; background-position: center; cursor: pointer; transition: opacity 0.2s; }
.post-img:hover { opacity: 0.92; }

.post-link-card {
  display: flex;
  gap: 12px;
  background: var(--weibo-tag-bg);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.post-link-card:hover { background: var(--weibo-hover-bg); }
.link-card-thumb { width: 80px; height: 60px; border-radius: 4px; background: linear-gradient(135deg, #e0e0e0, #ccc); flex-shrink: 0; }
.link-card-info { flex: 1; min-width: 0; }
.link-card-title { font-size: 13px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-card-desc { font-size: 11px; color: var(--weibo-text-muted); margin-top: 4px; }

.post-actions { display: flex; border-top: 1px solid var(--weibo-border); transition: border-color 0.4s; }

.post-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  font-size: 13px;
  color: var(--weibo-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: none;
  font-family: inherit;
}

.post-action:hover { background: var(--weibo-hover-bg); color: var(--primary); }
.post-action.liked { color: var(--weibo-red); }

/* ===== RIGHT SIDEBAR ===== */
.sidebar-right { position: sticky; top: calc(var(--header-height) + 16px); height: fit-content; }

.side-card {
  background: var(--weibo-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 12px;
  transition: background 0.4s;
}

.side-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--weibo-border); transition: border-color 0.4s; }
.side-card-title { font-size: 15px; font-weight: 700; }
.side-card-more { font-size: 12px; color: var(--weibo-text-muted); cursor: pointer; }
.side-card-more:hover { color: var(--primary); }

.trending-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; cursor: pointer; transition: background 0.15s; }
.trending-item:hover { background: var(--weibo-hover-bg); }
.trending-rank { width: 20px; font-size: 15px; font-weight: 900; color: var(--weibo-text-muted); flex-shrink: 0; text-align: center; }
.trending-rank.top1 { color: var(--weibo-red); }
.trending-rank.top2 { color: var(--primary); }
.trending-rank.top3 { color: #ffc107; }
.trending-info { flex: 1; min-width: 0; }
.trending-text { font-size: 13px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.trending-hot { font-size: 11px; color: var(--weibo-text-muted); margin-top: 2px; }
.trending-tag { font-size: 10px; padding: 1px 4px; border-radius: 3px; font-weight: 700; margin-left: 4px; }
.tag-hot { background: var(--weibo-red); color: white; }
.tag-new { background: var(--primary); color: white; transition: background 0.3s; }
.tag-rec { background: var(--weibo-blue); color: white; }

.recommend-user { display: flex; align-items: center; gap: 10px; padding: 10px 16px; transition: background 0.15s; cursor: pointer; }
.recommend-user:hover { background: var(--weibo-hover-bg); }
.recommend-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: white; font-weight: 700; flex-shrink: 0; }
.recommend-info { flex: 1; min-width: 0; }
.recommend-name { font-size: 13px; font-weight: 600; }
.recommend-bio { font-size: 11px; color: var(--weibo-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.follow-btn {
  padding: 4px 14px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 14px;
  font-size: 12px;
  background: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

.follow-btn:hover { background: var(--primary); color: white; }

/* ===== FRIEND LINK MINI (NEW) ===== */
.friend-link-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.friend-link-mini:hover { background: var(--weibo-hover-bg); }
.friend-link-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}
.friend-link-info { flex: 1; min-width: 0; }
.friend-link-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-link-desc { font-size: 11px; color: var(--weibo-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== PAGE HEADER ===== */
.page-header-card {
  background: var(--weibo-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 12px;
  transition: background 0.4s;
}

.page-title { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.page-subtitle { font-size: 13px; color: var(--weibo-text-secondary); }

/* ===== CATEGORY PAGE ===== */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }

.cat-card {
  background: var(--weibo-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.cat-card-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cat-card-count { font-size: 12px; color: var(--weibo-text-secondary); }
.cat-card-arrow { position: absolute; top: 16px; right: 16px; font-size: 16px; color: var(--weibo-text-muted); transition: all 0.2s; }
.cat-card:hover .cat-card-arrow { color: var(--primary); transform: translateX(3px); }

.cat-bg-1 { background: linear-gradient(135deg, var(--primary-ring), transparent); }
.cat-bg-2 { background: linear-gradient(135deg, rgba(255,77,79,0.08), rgba(255,77,79,0.02)); }
.cat-bg-3 { background: linear-gradient(135deg, rgba(82,196,26,0.08), rgba(82,196,26,0.02)); }
.cat-bg-4 { background: linear-gradient(135deg, rgba(255,130,0,0.08), rgba(255,130,0,0.02)); }
.cat-bg-5 { background: linear-gradient(135deg, rgba(114,46,209,0.08), rgba(114,46,209,0.02)); }
.cat-bg-6 { background: linear-gradient(135deg, rgba(19,194,194,0.08), rgba(19,194,194,0.02)); }

.cat-icon-blue { background: var(--primary-ring); color: var(--primary); transition: all 0.3s; }
.cat-icon-red { background: rgba(255,77,79,0.12); color: var(--weibo-red); }
.cat-icon-green { background: rgba(82,196,26,0.12); color: #52c41a; }
.cat-icon-orange { background: rgba(255,130,0,0.12); color: var(--weibo-orange, #ff8200); }
.cat-icon-purple { background: rgba(114,46,209,0.12); color: #722ed1; }
.cat-icon-teal { background: rgba(19,194,194,0.12); color: #13c2c2; }

.cat-recent-title { font-size: 15px; font-weight: 700; margin: 16px 0 12px; padding-left: 4px; }

.cat-article-list { background: var(--weibo-card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: background 0.4s; }

.cat-article-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f5f5f5;
}

.cat-article-item:last-child { border-bottom: none; }
.cat-article-item:hover { background: var(--weibo-hover-bg); }
.cat-article-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cat-article-title { flex: 1; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-article-title:hover { color: var(--primary); }
.cat-article-date { font-size: 12px; color: var(--weibo-text-muted); flex-shrink: 0; }

/* ===== ARTICLE LIST PAGE (NEW) ===== */
.article-list-card {
  background: var(--weibo-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  transition: background 0.4s, box-shadow 0.2s;
  overflow: hidden;
}
.article-list-card:hover { box-shadow: var(--shadow-md); }

.article-list-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--weibo-border);
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item:hover { background: var(--weibo-hover-bg); }

.article-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: 160px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.article-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.article-thumb-more {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.article-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.article-title:hover { color: var(--primary); }
.article-excerpt {
  font-size: 13px;
  color: var(--weibo-text-secondary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  flex: 1;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--weibo-text-muted);
}
.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

/* ===== TAGS PAGE ===== */
.tags-cloud { background: var(--weibo-card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 12px; transition: background 0.4s; }
.tags-cloud-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.tags-list { display: flex; flex-wrap: wrap; gap: 10px; }

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--weibo-border);
  background: var(--weibo-card);
  color: var(--weibo-text);
}

.tag-item:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.tag-item.active { border-color: var(--primary); background: var(--primary); color: white; }
.tag-count { font-size: 11px; color: var(--weibo-text-muted); background: var(--weibo-tag-bg); padding: 0 6px; border-radius: 8px; min-width: 20px; text-align: center; }
.tag-item.active .tag-count { background: rgba(255,255,255,0.3); color: white; }
.tag-size-1 { font-size: 12px; padding: 4px 10px; }
.tag-size-2 { font-size: 13px; }
.tag-size-3 { font-size: 15px; padding: 8px 16px; font-weight: 500; }
.tag-size-4 { font-size: 17px; padding: 8px 18px; font-weight: 600; }
.tag-size-5 { font-size: 20px; padding: 10px 20px; font-weight: 700; }

.tag-articles { background: var(--weibo-card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: background 0.4s; }
.tag-articles-header { padding: 16px; border-bottom: 1px solid var(--weibo-border); display: flex; align-items: center; gap: 8px; transition: border-color 0.4s; }
.tag-articles-header .current-tag { background: var(--primary); color: white; padding: 3px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; transition: background 0.3s; }
.tag-articles-header span { font-size: 13px; color: var(--weibo-text-secondary); }

/* ===== GUESTBOOK PAGE ===== */
.guestbook-card { background: var(--weibo-card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 12px; transition: background 0.4s; }

.guestbook-intro { font-size: 14px; color: var(--weibo-text-secondary); line-height: 1.8; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--weibo-border); transition: border-color 0.4s; }
.guestbook-form { margin-bottom: 24px; }
.gb-form-row { display: flex; gap: 12px; margin-bottom: 12px; }

.gb-form-input {
  flex: 1;
  height: 40px;
  border: 1px solid var(--weibo-border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: var(--weibo-card);
  color: var(--weibo-text);
}

.gb-form-input:focus { border-color: var(--primary); }

.gb-form-textarea {
  width: 100%;
  border: 1px solid var(--weibo-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  height: 100px;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.6;
  background: var(--weibo-card);
  color: var(--weibo-text);
}

.gb-form-textarea:focus { border-color: var(--primary); }

.gb-form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.gb-form-hint { font-size: 12px; color: var(--weibo-text-muted); }

.gb-submit-btn {
  padding: 8px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s;
}

.gb-submit-btn:hover { background: var(--primary-hover); }

.gb-list-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }

.gb-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid #f5f5f5; transition: border-color 0.4s; }
.gb-item:last-child { border-bottom: none; }

.gb-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; color: white; font-weight: 700; }
.gb-content { flex: 1; }
.gb-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; display: flex; align-items: center; gap: 8px; }
.gb-name .gb-time { font-size: 12px; font-weight: 400; color: var(--weibo-text-muted); }
.gb-text { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }

.gb-reply {
  background: var(--weibo-tag-bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--weibo-text-secondary);
  position: relative;
  transition: background 0.4s;
}

.gb-reply::before { content: '博主回复：'; font-weight: 700; color: var(--primary); transition: color 0.3s; }

.gb-actions { display: flex; gap: 16px; margin-top: 6px; }
.gb-action { font-size: 12px; color: var(--weibo-text-muted); cursor: pointer; transition: color 0.15s; }
.gb-action:hover { color: var(--primary); }

/* ===== FRIEND LINKS PAGE ===== */
.flink-intro { background: var(--weibo-card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 12px; transition: background 0.4s; }
.flink-intro-text { font-size: 14px; color: var(--weibo-text-secondary); line-height: 1.8; margin-bottom: 16px; }

.flink-rules { background: var(--weibo-tag-bg); border-radius: var(--radius-sm); padding: 16px; font-size: 13px; color: var(--weibo-text-secondary); line-height: 1.8; transition: background 0.4s; }
.flink-rules strong { color: var(--weibo-text); }
.flink-rules li { margin-left: 16px; margin-bottom: 4px; }

.flink-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }

.flink-card {
  background: var(--weibo-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s;
}

.flink-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.flink-avatar { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; color: white; font-weight: 700; }
.flink-info { flex: 1; min-width: 0; }
.flink-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.flink-name .flink-new-badge { font-size: 9px; background: var(--weibo-red); color: white; padding: 1px 4px; border-radius: 3px; font-weight: 700; }
.flink-desc { font-size: 12px; color: var(--weibo-text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.flink-url { font-size: 11px; color: var(--weibo-text-muted); margin-top: 4px; }
.flink-apply { background: var(--weibo-card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; transition: background 0.4s; }
.flink-apply-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }

/* ===== ABOUT PAGE ===== */
.about-cover { background: var(--weibo-card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 12px; transition: background 0.4s; }

.about-banner {
  height: 200px;
  background: var(--primary-gradient-full);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s;
}

.about-banner-text { color: white; text-align: center; position: relative; z-index: 1; }
.about-banner-name { font-size: 32px; font-weight: 900; margin-bottom: 4px; }
.about-banner-slogan { font-size: 14px; opacity: 0.85; }

.about-avatar-big {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 4px solid var(--weibo-card);
  margin: -45px auto 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: white;
  font-weight: 700;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: border-color 0.4s;
}

.about-brief { text-align: center; padding: 12px 24px 24px; }
.about-brief-name { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.about-brief-motto { font-size: 13px; color: var(--weibo-text-secondary); margin-bottom: 16px; }

.about-stats-row { display: flex; justify-content: center; gap: 32px; }
.about-stat { text-align: center; }
.about-stat-num { font-size: 22px; font-weight: 900; color: var(--primary); transition: color 0.3s; }
.about-stat-label { font-size: 12px; color: var(--weibo-text-secondary); }

.about-section { background: var(--weibo-card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 12px; transition: background 0.4s; }
.about-section-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--weibo-border); transition: border-color 0.4s; }
.about-text { font-size: 14px; line-height: 1.85; }
.about-text p { margin-bottom: 12px; }

.about-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.about-skill {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--weibo-border);
  background: var(--weibo-tag-bg);
  transition: all 0.2s;
}

.about-skill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.about-timeline { position: relative; padding-left: 24px; }
.about-timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--weibo-border); transition: background 0.4s; }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid var(--weibo-card); box-shadow: 0 0 0 2px var(--primary); transition: all 0.3s; }
.timeline-year { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 2px; transition: color 0.3s; }
.timeline-text { font-size: 14px; line-height: 1.6; }

.about-links { display: flex; flex-wrap: wrap; gap: 10px; }

.about-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--weibo-text);
  background: var(--weibo-tag-bg);
  transition: all 0.2s;
  cursor: pointer;
}

.about-link:hover { background: var(--primary-light); color: var(--primary); }

/* ===== LIST ITEM ===== */
.list-item {
  background: var(--weibo-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  gap: 16px;
}

.list-item:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.list-item-thumb { width: 120px; height: 80px; border-radius: var(--radius-sm); flex-shrink: 0; background-size: cover; background-position: center; }
.list-item-content { flex: 1; min-width: 0; }
.list-item-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.list-item-title:hover { color: var(--primary); }
.list-item-excerpt { font-size: 13px; color: var(--weibo-text-secondary); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.list-item-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--weibo-text-muted); }
.list-item-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== FOOTER ===== */
.footer { text-align: center; padding: 30px 16px; font-size: 12px; color: var(--weibo-text-muted); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim-item { opacity: 0; animation: fadeUp 0.4s ease forwards; }
.anim-item:nth-child(2) { animation-delay: 0.05s; }
.anim-item:nth-child(3) { animation-delay: 0.1s; }
.anim-item:nth-child(4) { animation-delay: 0.15s; }
.anim-item:nth-child(5) { animation-delay: 0.2s; }
.anim-item:nth-child(6) { animation-delay: 0.25s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #bbb; }

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--weibo-card);
  border-top: 1px solid var(--weibo-border);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
  transition: background 0.4s, border-color 0.4s;
}

.mobile-bottom-nav-inner { display: flex; }

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 6px;
  font-size: 10px;
  color: var(--weibo-text-secondary);
  cursor: pointer;
  transition: color 0.15s;
  border: none;
  background: none;
  font-family: inherit;
}

.mobile-nav-item .mnav-icon { font-size: 20px; }
.mobile-nav-item.active { color: var(--primary); }

/* ===== MOBILE SIDEBAR ===== */
.mobile-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1001; }
.mobile-sidebar-overlay.show { display: block; }

.mobile-sidebar {
  position: fixed;
  top: 0; left: -280px;
  width: 280px;
  height: 100%;
  background: var(--weibo-bg);
  z-index: 1002;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 16px;
}

.mobile-sidebar.open { left: 0; }
.mobile-sidebar-close { display: flex; justify-content: flex-end; margin-bottom: 12px; }

.mobile-sidebar-close button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--weibo-text-secondary);
}

/* ===== AVATARS ===== */
.av-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.av-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.av-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.av-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.av-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.av-6 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.av-7 { background: linear-gradient(135deg, #fccb90, #d57eeb); }
.av-8 { background: linear-gradient(135deg, #e0c3fc, #8ec5fc); }

/* ===== IMAGE PLACEHOLDERS ===== */
.img-tech { background: linear-gradient(135deg, #0c3483, #66a6ff); }
.img-sunset { background: linear-gradient(135deg, #fa709a, #fee140); }
.img-coffee { background: linear-gradient(135deg, #c79081, #dfa579); }
.img-book { background: linear-gradient(135deg, #e0c3fc, #8ec5fc); }
.img-nature { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.img-city { background: linear-gradient(135deg, #667eea, #764ba2); }
.img-landscape { background: linear-gradient(135deg, #89f7fe, #66a6ff); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-container { grid-template-columns: 1fr; }
  .sidebar-left, .sidebar-right { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .flink-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 50px; }
  .main-container { padding-bottom: 70px; }
  .header-nav { display: none; }
  .header-search { width: 160px; }
  .header-search input:focus { width: 180px; }
  .mobile-menu-btn { display: block; }
  .mobile-bottom-nav { display: block; }
  .list-item { flex-direction: column; gap: 10px; }
  .list-item-thumb { width: 100%; height: 160px; }
  .post-images.grid-3 { grid-template-columns: 1fr 1fr; }
  .about-banner { height: 160px; }
  .about-banner-name { font-size: 24px; }
  .theme-fab { bottom: 72px; right: 14px; width: 42px; height: 42px; font-size: 18px; }
  .theme-panel { bottom: 124px; right: 14px; width: 240px; }
  .article-list-item { flex-direction: column; }
  .article-thumbs { width: 100%; height: 180px; }
}

@media (max-width: 480px) {
  .header-search { width: 120px; }
  .logo-text { display: none; }
}




/* ===== DETAIL PAGE ===== */
.detail-card {
  background: var(--weibo-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.detail-header {
  padding: 28px 28px 0;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--weibo-text-secondary);
  cursor: pointer;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.15s;
}

.detail-back:hover { background: var(--weibo-hover-bg); color: var(--weibo-orange); }

.detail-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--weibo-border);
  font-size: 13px;
  color: var(--weibo-text-secondary);
  flex-wrap: wrap;
}

.detail-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: 700;
}

.detail-body {
  padding: 24px 28px 28px;
  font-size: 15px;
  line-height: 1.85;
}

.detail-body p { margin-bottom: 18px; }

.detail-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--weibo-orange);
}

.detail-body blockquote {
  border-left: 3px solid var(--weibo-orange);
  padding: 12px 16px;
  margin: 18px 0;
  background: var(--weibo-orange-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #666;
  font-style: italic;
}

.detail-body .code-block {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  overflow-x: auto;
  margin: 18px 0;
  line-height: 1.6;
}

.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 28px 20px;
}

.detail-tag {
  padding: 4px 12px;
  background: var(--weibo-tag-bg);
  border-radius: 12px;
  font-size: 12px;
  color: var(--weibo-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.detail-tag:hover { background: var(--weibo-orange-light); color: var(--weibo-orange); }

.detail-actions {
  display: flex;
  border-top: 1px solid var(--weibo-border);
  padding: 0 28px;
}

.detail-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  font-size: 14px;
  color: var(--weibo-text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.15s;
}

.detail-action-btn:hover { background: var(--weibo-hover-bg); color: var(--weibo-orange); }



/* Comment section */
.comment-section {
  background: var(--weibo-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-top: 12px;
  padding: 20px 28px;
}

.comment-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.comment-input-area {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.comment-input-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.comment-input-box {
  flex: 1;
}

.comment-input-box textarea {
  width: 100%;
  border: 1px solid var(--weibo-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  height: 60px;
  outline: none;
  transition: border-color 0.2s;
}

.comment-input-box textarea:focus { border-color: var(--weibo-orange); }

.comment-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.comment-submit-btn {
  padding: 6px 20px;
  background: var(--weibo-orange);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.comment-submit-btn:hover { background: var(--weibo-orange-hover); }

.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #f0f0f0;
}

.comment-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.comment-content { flex: 1; }

.comment-author {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.comment-text {
  font-size: 13px;
  color: var(--weibo-text);
  line-height: 1.6;
  margin-bottom: 4px;
}

.comment-time {
  font-size: 11px;
  color: var(--weibo-text-muted);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 30px 16px;
  font-size: 12px;
  color: var(--weibo-text-muted);
}



/* ===== Lightbox 样式 ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.25s ease;
}

/* 关闭按钮 */
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 4px 10px;
}
.lightbox-close:hover { opacity: 1; }

/* 左右切换按钮 */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 10;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* 计数器 */
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 2px;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 28px;
    padding: 6px 12px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close {
    top: 10px;
    right: 12px;
    font-size: 30px;
  }
  .lightbox-img {
    max-width: 96vw;
    max-height: 78vh;
  }
  .lightbox-counter { bottom: 14px; }
}

/* 小屏手机隐藏侧边按钮，纯手势操作 */
@media (max-width: 420px) {
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}


.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* 去除 inline 元素的默认空隙 */
}