/* =====================================================
   高羽网创 - 主样式表
   ===================================================== */

/* ── Reset & 基础 ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: #f2f4f6;
  color: #333;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #e8340a; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button {
  font-family: inherit; font-size: 14px;
  outline: none;
}
input, textarea, select {
  border: 1px solid #ddd; border-radius: 6px;
  padding: 8px 12px; width: 100%;
  transition: border-color .2s;
  background: #fff;
}
input:focus, textarea:focus, select:focus { border-color: #e8340a; }

/* ── CSS 变量 ────────────────────────────────────── */
:root {
  --primary: #e8340a;
  --primary-light: #fff5f3;
  --primary-dark: #c42c08;
  --dark: #1a1a2e;
  --text: #333;
  --text-muted: #888;
  --border: #eee;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ── 顶部公告 ────────────────────────────────────── */
.topbar {
  background: var(--dark);
  color: #aaa;
  font-size: 12px;
  padding: 7px 20px;
  text-align: center;
}
.topbar a { color: #f39c12; }
.topbar a:hover { text-decoration: underline; }

/* ── 头部 ────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), #f39c12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 14px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-text .name { font-size: 18px; font-weight: 700; color: #222; }
.logo-text .slogan { font-size: 11px; color: #999; }

.header-right { display: flex; align-items: center; gap: 12px; }

/* 搜索框 */
.search-box form {
  display: flex; align-items: center;
  border: 1px solid #ddd; border-radius: 20px;
  overflow: hidden; background: #f7f7f7;
  transition: border-color .2s;
}
.search-box form:focus-within { border-color: var(--primary); }
.search-box input {
  border: none; background: transparent; padding: 7px 14px;
  width: 180px; font-size: 13px;
}
.search-box button {
  border: none; background: var(--primary); color: #fff;
  padding: 7px 14px; cursor: pointer; font-size: 14px;
  transition: background .2s;
}
.search-box button:hover { background: var(--primary-dark); }

/* 主导航 */
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 0 12px; height: 64px;
  font-size: 14px; font-weight: 500; color: #333;
  white-space: nowrap;
  transition: color .2s;
}
.main-nav > ul > li > a:hover { color: var(--primary); }
.main-nav .nav-vip { color: var(--primary) !important; font-weight: 700; }
.main-nav .btn-login, .main-nav .btn-reg {
  padding: 6px 14px !important; height: auto !important;
  border-radius: 4px; font-size: 13px !important;
}
.main-nav .btn-login { border: 1px solid #ddd; }
.main-nav .btn-reg { background: var(--primary); color: #fff !important; }
.main-nav .btn-reg:hover { background: var(--primary-dark); }

/* 用户下拉 */
.user-menu { position: relative; }
.user-menu .dropdown {
  position: absolute; top: 100%; right: 0;
  min-width: 140px; background: #fff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border-radius: 0 0 6px 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s;
}
.user-menu:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu .dropdown li a {
  display: block; padding: 10px 16px; font-size: 13px;
  border-bottom: 1px solid #f5f5f5;
  transition: background .15s;
}
.user-menu .dropdown li:last-child a { border-bottom: none; }
.user-menu .dropdown li a:hover { background: var(--primary-light); color: var(--primary); }

/* 汉堡 */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #444; }

/* 移动端菜单 */
.mobile-nav {
  display: none; flex-direction: column;
  background: #fff; border-top: 1px solid #eee;
  padding: 8px 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 20px; font-size: 14px; color: #333;
  border-bottom: 1px solid #f5f5f5;
}
.mobile-nav a:hover { color: var(--primary); background: var(--primary-light); }

/* ── 首页布局元素 ────────────────────────────────────── */

/* 英雄区域（图片+关于本站） */
.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-bottom: 1px solid #e9ecef;
  padding: 16px 0;
  margin-top: 16px;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 20px;
  height: 350px;
}

/* 特色项目区域（一大两小） */
.featured-section {
  height: 100%;
}
.featured-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 100%;
}
.featured-large {
  display: block; border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  height: 100%;
}
.featured-large:hover {
  transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,0,0,0.18);
}
.featured-small {
  display: block; border-radius: 10px; overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.featured-small.top {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.featured-small.bottom {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.featured-small:hover {
  transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}
.featured-thumb {
  position: relative; overflow: hidden;
  width: 100%; height: 100%;
}
.featured-large .featured-thumb { height: 100%; }
.featured-small .featured-thumb { height: 100%; }
.featured-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.featured-large:hover .featured-thumb img,
.featured-small:hover .featured-thumb img {
  transform: scale(1.05);
}
.featured-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  padding: 30px 18px 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.featured-small .featured-title-overlay {
  padding: 20px 12px 12px;
  font-size: 14px;
}

/* 关于本站挂件 - 提高版 */
.about-widget {
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  overflow: hidden; border: 1px solid #e9ecef;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.about-widget-inner {
  padding: 18px 20px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 从顶部开始 */
}
.about-logo {
  margin-bottom: 10px;
}
.about-logo img {
  width: 48px; height: 48px; border-radius: 10px;
  border: 3px solid #fff; box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  object-fit: cover;
}
.about-title {
  font-size: 17px; font-weight: 700; color: #333;
  margin-bottom: 10px;
}
.about-quote {
  font-size: 13px; color: #555; line-height: 1.6; font-style: italic;
  margin-bottom: 10px; padding: 10px 12px; background: #f9f9f9;
  border-radius: 10px; border-left: 5px solid var(--primary);
}
.about-desc {
  font-size: 13px; color: #666; line-height: 1.5;
  margin-bottom: 10px; text-align: center;
}
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-top: auto; /* 推到最下面 */
  margin-bottom: 0;
}
.stat-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 1px solid #e9ecef; border-radius: 10px;
  padding: 10px 8px; text-align: center;
}
.stat-number {
  font-size: 18px; font-weight: 700; color: var(--primary);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px; color: #888; font-weight: 500;
}

/* 内容区域（导航栏 + 文章列表） */
.content-section {
  background: #fff;
  padding: 20px 0;
}
.content-inner {
  max-width: 1200px; margin: 0 auto; padding: 0;
}

/* 项目导航区域 */
.project-nav-area {
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
  padding: 16px 20px 14px; /* 上下都有间距 */
}

/* 文章列表区域 */
.posts-area {
  padding: 0 20px; /* 文章列表内边距 */
}
.project-nav {
  display: flex; gap: 12px;
  overflow-x: auto; white-space: nowrap;
  padding-bottom: 4px;
}
.project-nav a {
  display: inline-block; padding: 12px 22px;
  background: #f8f9fa; color: #555; text-decoration: none;
  border-radius: 25px; font-size: 15px; font-weight: 600;
  transition: all 0.2s ease;
}
.project-nav a:hover {
  background: #e9ecef; color: #333; transform: translateY(-1px);
}
.project-nav a.active {
  background: var(--primary); color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .featured-large {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    height: 280px;
  }
  .featured-small.top {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    height: 180px;
  }
  .featured-small.bottom {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    height: 180px;
  }
  .featured-thumb {
    height: 100%;
  }
  .project-nav-area {
    margin-bottom: 15px;
  }
  .project-nav { 
    flex-wrap: wrap; 
    justify-content: center;
    gap: 8px;
  }
  .project-nav a { 
    flex: 0 0 auto;
    font-size: 14px;
    padding: 10px 18px;
  }
  .about-widget-inner {
    padding: 20px;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .stat-item {
    padding: 12px 8px;
  }
}

/* ── 主体布局 ────────────────────────────────────── */
.site-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-main {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
  padding: 20px 0 24px;
  align-items: start;
}

/* 文章详情页全宽布局 */
.site-main .content-area.full-width {
  grid-column: 1 / -1; /* 占满所有列 */
}

/* 文章详情页特殊布局 - 移除特殊样式，使用正常布局 */

/* ── 页标题栏 ────────────────────────────────────── */
.page-title-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-radius: var(--radius); padding: 14px 20px;
  margin-bottom: 16px; border-left: 4px solid var(--primary);
}
.page-title-bar h1 { font-size: 18px; color: #222; }
.page-title-bar span { font-size: 13px; color: var(--text-muted); }

/* ── 文章卡片 ────────────────────────────────────── */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.empty-tip { text-align: center; color: #aaa; padding: 40px; background: #fff; border-radius: var(--radius); }

.post-card {
  background: #fff; border-radius: var(--radius);
  display: flex; overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
  animation: fadeUp .4s ease both;
}
.post-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

.post-thumb {
  flex-shrink: 0; width: 200px; overflow: hidden;
  position: relative;
}
.post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.post-card:hover .post-thumb img { transform: scale(1.06); }
.source-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(232,52,10,.9); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 3px;
}
/* VIP标记已移除 - 不需要显示在主页图片上 */

.post-body {
  padding: 16px 20px; display: flex; flex-direction: column;
  justify-content: space-between; flex: 1; min-width: 0;
}
.post-title { font-size: 16px; font-weight: 700; color: #222; line-height: 1.5; margin-bottom: 10px; }
.post-title a:hover { color: var(--primary); }
.post-excerpt {
  font-size: 14px; color: #777; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px;
}
.post-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: #aaa;
}
.cat-tag a {
  background: var(--primary-light); color: var(--primary);
  border: 1px solid #ffd0c6;
  padding: 2px 8px; border-radius: 3px; font-size: 11px;
}

/* ── 分页 ────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 20px 0;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; border-radius: 6px; padding: 0 10px;
  font-size: 14px; border: 1px solid #ddd; color: #555;
  transition: all .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── 侧边栏 ────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.widget-title {
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), #f56c3b);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
}
.widget-body { padding: 16px; }

.author-box { text-align: center; }
.author-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; overflow: hidden; border: 3px solid #f5ddd7; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 16px; font-weight: 700; color: #222; margin-bottom: 4px; }
.author-role {
  font-size: 12px; color: var(--primary);
  background: var(--primary-light); border: 1px solid #ffd0c6;
  display: inline-block; padding: 2px 10px; border-radius: 20px; margin-bottom: 10px;
}
.author-desc { font-size: 12px; color: #888; line-height: 1.8; text-align: left; }
.follow-btn {
  display: block; margin-top: 14px;
  background: linear-gradient(135deg, var(--primary), #f56c3b);
  color: #fff; text-align: center; padding: 9px;
  border-radius: 6px; font-size: 13px; font-weight: 600;
}
.follow-btn:hover { opacity: .85; color: #fff; }

.post-list-widget { display: flex; flex-direction: column; }
.post-list-widget li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid #f5f5f5;
}
.post-list-widget li:last-child { border-bottom: none; }
.post-list-widget .num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 4px;
  background: #f0f0f0; color: #999; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.post-list-widget li:nth-child(1) .num,
.post-list-widget li:nth-child(2) .num,
.post-list-widget li:nth-child(3) .num { background: var(--primary); color: #fff; }
.post-list-widget .post-name { font-size: 13px; color: #444; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-list-widget .post-name:hover { color: var(--primary); }

.comment-mini-list { display: flex; flex-direction: column; gap: 12px; }
.comment-mini { padding-bottom: 12px; border-bottom: 1px solid #f5f5f5; }
.comment-mini:last-child { border-bottom: none; padding-bottom: 0; }
.comment-mini .commenter { font-weight: 600; font-size: 13px; }
.comment-mini p { font-size: 12px; color: #666; margin: 4px 0; }
.comment-mini .comment-on { font-size: 11px; color: #aaa; }
.comment-mini .comment-on:hover { color: var(--primary); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  display: inline-block; padding: 4px 12px;
  border: 1px solid #e0e0e0; border-radius: 20px;
  font-size: 12px; color: #666;
  transition: all .2s;
}
.tag-cloud a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── 文章详情 ────────────────────────────────────── */
.post-detail { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.post-breadcrumb { 
  font-size: 13px; 
  color: #666; 
  margin-bottom: 16px; 
  font-weight: 500;
  background: #f8f9fa;
  padding: 8px 14px;
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}
.post-breadcrumb a { 
  color: #555; 
  text-decoration: none;
  transition: color 0.2s;
}
.post-breadcrumb a:hover { 
  color: var(--primary); 
  text-decoration: underline;
}
.post-breadcrumb span {
  color: #888;
}
.post-detail-title { font-size: 22px; font-weight: 700; color: #111; line-height: 1.5; margin-bottom: 12px; }
.post-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #aaa; margin-bottom: 12px; }
.vip-mark { background: #fff8e1; color: #f39c12; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  padding: 3px 12px; border: 1px solid #e0e0e0; border-radius: 20px;
  font-size: 12px; color: #666;
}
.tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.post-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.post-cover img { width: 100%; max-height: 400px; object-fit: cover; }

.post-content {
  font-size: 15px; line-height: 1.9; color: #444;
}
.post-content h2 { font-size: 18px; font-weight: 700; color: #222; margin: 28px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.post-content h3 { font-size: 16px; font-weight: 600; color: #333; margin: 20px 0 10px; }
.post-content p { margin-bottom: 14px; }
.post-content ul, .post-content ol { margin: 12px 0 12px 24px; }
.post-content li { margin-bottom: 6px; list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content strong { color: #222; font-weight: 700; }
.post-content blockquote {
  border-left: 4px solid var(--primary); background: var(--primary-light);
  padding: 12px 16px; border-radius: 0 6px 6px 0; margin: 16px 0;
  color: #666;
}
.post-content img { border-radius: 6px; margin: 12px 0; }
.post-content code { background: #f4f4f4; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.post-content pre { background: #1e1e1e; color: #ddd; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 16px 0; }

/* ── 静态页面样式 ──────────────────────────────────── */
.static-page {
  background: #fff; border-radius: var(--radius); padding: 28px;
  margin-bottom: 24px; box-shadow: var(--shadow);
}
.static-page h1 {
  font-size: 24px; font-weight: 700; color: #222;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
.static-page h2 {
  font-size: 20px; font-weight: 600; color: #333;
  margin: 24px 0 12px; padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.static-page h3 {
  font-size: 18px; font-weight: 600; color: #444;
  margin: 20px 0 10px;
}
.static-content p {
  margin-bottom: 14px; line-height: 1.7;
}
.static-content ul, .static-content ol {
  margin: 12px 0 12px 24px;
}
.static-content li {
  margin-bottom: 6px; list-style: disc;
}
.static-content ol li { list-style: decimal; }
.static-content blockquote {
  border-left: 4px solid var(--primary); padding-left: 16px;
  margin: 20px 0; font-style: italic; color: #555;
}

/* 联系方式样式 */
.contact-methods {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin: 20px 0;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; background: #f9f9f9; border-radius: 8px;
}
.contact-icon {
  font-size: 28px; color: var(--primary);
}
.contact-info h3 {
  margin: 0 0 6px; font-size: 16px; color: #333;
}
.contact-info p {
  margin: 4px 0; color: #555;
}
.contact-desc {
  font-size: 13px; color: #888;
}

/* FAQ样式 */
.faq details {
  margin-bottom: 12px; border: 1px solid #eee; border-radius: 6px;
  overflow: hidden;
}
.faq summary {
  padding: 14px 18px; background: #f9f9f9;
  cursor: pointer; font-weight: 600; color: #333;
  display: flex; align-items: center;
}
.faq summary:hover { background: #f0f0f0; }
.faq details[open] summary {
  background: var(--primary-light); color: var(--primary);
  border-bottom: 1px solid #ffe0e0;
}
.faq details p {
  padding: 16px 18px; margin: 0; background: #fff;
}
.small-note {
  font-size: 12px; color: #888; font-style: italic;
}

/* 响应式 */
@media (max-width: 768px) {
  .static-page { padding: 18px; }
  .static-page h1 { font-size: 20px; }
  .static-page h2 { font-size: 18px; }
  .contact-methods { grid-template-columns: 1fr; }
  .contact-item { flex-direction: column; text-align: center; }
}

/* ── 三段内容权限 ──────────────────────────────────── */
.content-section { margin-top: 24px; }

/* 段落标题 badge */
.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  margin-bottom: 14px;
}
.section-badge-login {
  background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2;
}
.section-badge-vip {
  background: #fffde7; color: #f57f17; border: 1px solid #fff9c4;
}

/* 锁定框（通用） */
.lock-box {
  text-align: center; padding: 40px 24px;
  border-radius: var(--radius);
}
.lock-box .lock-icon { font-size: 48px; margin-bottom: 14px; }
.lock-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.lock-box p { color: #888; font-size: 14px; margin-bottom: 18px; }

/* 登录锁定框 */
.lock-login {
  background: linear-gradient(135deg, #fff9f0, #fff);
  border: 2px dashed #ffe0b2;
}
.btn-lock-login {
  display: inline-block; padding: 10px 32px;
  background: #ff9800; color: #fff; border-radius: 24px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 3px 12px rgba(255,152,0,.35);
  margin-right: 10px;
}
.btn-lock-login:hover { color: #fff; opacity: .9; }
.btn-lock-reg {
  display: inline-block; padding: 10px 24px;
  border: 1px solid #ff9800; color: #ff9800; border-radius: 24px;
  font-size: 14px;
}
.btn-lock-reg:hover { background: #fff3e0; color: #ff9800; }

/* VIP 锁定框 */
.lock-vip {
  background: linear-gradient(135deg, #fff8f6, #fff);
  border: 2px dashed #ffd0c6;
}
.btn-vip-unlock {
  display: inline-block; padding: 11px 36px;
  background: linear-gradient(135deg, var(--primary), #f39c12);
  color: #fff; border-radius: 24px; font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(232,52,10,.3);
}
.btn-vip-unlock:hover { color: #fff; opacity: .9; transform: translateY(-1px); }
.btn-login-link { display: block; margin-top: 12px; font-size: 13px; color: #aaa; }

/* 登录内容区背景 */
.content-login-section { background: #fffdf7; padding: 16px; border-radius: 8px; border-left: 3px solid #ff9800; }
.content-vip-section   { background: #fffff5; padding: 16px; border-radius: 8px; border-left: 3px solid #ffc107; }

/* 登录提示条 */
.login-tip-bar {
  margin-top: 20px; padding: 12px 16px;
  background: #f8f8f8; border-radius: 6px;
  font-size: 13px; color: #888; text-align: center;
}
.login-tip-bar a { color: var(--primary); font-weight: 600; }

/* 登录内容标记已移除 - 不需要显示在主页图片上 */
.vip-mark   { background: #fff8e1; color: #f57f17; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.login-mark { background: #fff3e0; color: #e65100; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }

/* 分享 */
.post-share {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; padding: 16px; background: #f9f9f9;
  border-radius: var(--radius); font-size: 13px; color: #888;
}
.share-btn {
  padding: 7px 16px; border: 1px solid #ddd; border-radius: 20px;
  background: #fff; cursor: pointer; transition: all .2s;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* 评论区 */
.comments-section { margin-top: 32px; }
.comments-title { font-size: 16px; font-weight: 700; color: #222; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.comment-form-wrap { background: #fafafa; padding: 20px; border-radius: var(--radius); margin-bottom: 24px; }
.comment-form-wrap h4 { font-size: 14px; color: #555; margin-bottom: 12px; }
.comment-form-wrap textarea { resize: vertical; }
.btn-submit {
  margin-top: 10px; padding: 9px 24px;
  background: var(--primary); color: #fff; border: none;
  border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.btn-submit:hover { background: var(--primary-dark); }
.comment-list .comment-item { padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.comment-item:last-child { border-bottom: none; }
.comment-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.commenter { font-weight: 600; font-size: 14px; }
.comment-time { font-size: 12px; color: #aaa; }
.comment-content { font-size: 14px; color: #555; line-height: 1.6; }
.no-comments { color: #aaa; font-size: 13px; text-align: center; padding: 20px; }

/* 相关文章 */
.related-posts { margin-top: 32px; }
.related-posts h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.related-item { display: flex; flex-direction: column; gap: 8px; }
.related-item img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; }
.related-item span { font-size: 12px; color: #555; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-item:hover span { color: var(--primary); }

/* ── VIP 页面 ────────────────────────────────────── */
.vip-page { padding: 20px 0; }
.vip-hero {
  text-align: center; padding: 48px 20px;
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  border-radius: var(--radius); color: #fff; margin-bottom: 32px;
}
.vip-hero-badge { font-size: 52px; margin-bottom: 16px; }
.vip-hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.vip-hero p { font-size: 15px; color: #aaa; }

.vip-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.vip-plan {
  background: #fff; border-radius: var(--radius); padding: 28px 24px;
  text-align: center; border: 2px solid var(--border);
  position: relative; transition: all .3s;
}
.vip-plan:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.vip-plan.featured { border-color: var(--primary); box-shadow: 0 8px 32px rgba(232,52,10,.15); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px;
  padding: 4px 16px; border-radius: 20px;
}
.plan-name { font-size: 16px; font-weight: 600; color: #555; margin-bottom: 12px; }
.plan-price { font-size: 15px; color: #aaa; margin-bottom: 20px; }
.plan-price span { font-size: 42px; font-weight: 800; color: var(--primary); }
.plan-price small { font-size: 13px; }
.plan-features { text-align: left; margin-bottom: 24px; }
.plan-features li { padding: 6px 0; font-size: 13px; color: #555; border-bottom: 1px dashed #f0f0f0; }
.plan-features li:last-child { border-bottom: none; }
.plan-btn {
  display: block; padding: 12px;
  background: var(--primary); color: #fff;
  border-radius: 6px; font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.vip-plan:not(.featured) .plan-btn { background: #555; }
.plan-btn:hover { opacity: .9; color: #fff; }

.vip-faq { background: #fff; border-radius: var(--radius); padding: 24px; }
.vip-faq h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.vip-faq details { border-bottom: 1px solid var(--border); }
.vip-faq details:last-child { border-bottom: none; }
.vip-faq summary { padding: 14px 0; cursor: pointer; font-size: 14px; font-weight: 500; color: #444; }
.vip-faq details p { padding: 0 0 14px; font-size: 13px; color: #777; line-height: 1.7; }

/* ── 认证页面 ────────────────────────────────────── */
.auth-body { background: linear-gradient(135deg, #f0f2f5, #e8ecf0); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-logo {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin-bottom: 24px; color: #333; font-size: 18px; font-weight: 700;
}
.auth-card { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.auth-tabs { display: flex; border-bottom: 2px solid #f0f0f0; margin-bottom: 24px; }
.auth-tabs a { flex: 1; text-align: center; padding: 10px; font-size: 15px; color: #aaa; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.auth-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.auth-error { background: #fff5f3; border: 1px solid #ffd0c6; color: #c0392b; padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; font-weight: 500; }
.btn-auth {
  width: 100%; padding: 12px; border: none;
  background: linear-gradient(135deg, var(--primary), #f56c3b);
  color: #fff; border-radius: 6px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: opacity .2s;
}
.btn-auth:hover { opacity: .9; }
.auth-tip { text-align: center; font-size: 13px; color: #aaa; margin-top: 16px; }
.auth-tip a { color: var(--primary); }

/* 个人中心 */
.profile-info { display: flex; flex-direction: column; gap: 0; }
.profile-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}
.profile-row span { color: #999; }
.profile-row:last-child { border-bottom: none; }

/* 支付页 */
.pay-qr-box { text-align: center; margin-bottom: 20px; }
.qr-placeholder {
  width: 180px; height: 180px; border: 2px dashed #ddd;
  border-radius: 8px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 40px; background: #fafafa;
}

/* ── 页脚 ────────────────────────────────────────── */
.site-footer { background: var(--dark); color: #888; margin-top: 40px; }
.footer-top {
  max-width: 1200px; margin: 0 auto; padding: 40px 20px 30px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-brand .name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-col h5 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #888; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #2d2d4a; text-align: center;
  padding: 16px 20px; font-size: 12px; color: #666;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--primary); }

/* ── 回顶按钮 ────────────────────────────────────── */
#back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; background: var(--primary);
  color: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(232,52,10,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 900;
}
#back-top.show { opacity: 1; pointer-events: auto; }
#back-top:hover { transform: translateY(-3px); }

/* ── 响应式 ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-main { grid-template-columns: 1fr 280px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-main { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .vip-plans { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .main-nav { display: none; }
  .search-box { display: none; }
  .hamburger { display: flex; }
  .post-thumb { width: 140px; }
  .header-inner { height: 54px; }
  .logo-text .slogan { display: none; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .post-detail { padding: 20px 16px; }
  .post-detail-title { font-size: 18px; }
}

@media (max-width: 480px) {
  .site-wrapper { padding: 0 12px; }
  .post-thumb { width: 110px; }
  .post-body { padding: 12px; }
  .post-title { font-size: 15px; }
  .post-excerpt { display: none; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .vip-hero { padding: 32px 16px; }
  .vip-hero h1 { font-size: 22px; }
}
