/* ========================================================
   DETAIL PAGES (Q&A Detail & Article Detail)
   ======================================================== */

/* GEO: Q/A visible labels */
.qa-q-label { display: inline-block; background: #C9962F; color: #fff; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-right: 8px; vertical-align: middle; line-height: 1.4; }
.qa-a-label { display: inline-block; background: #00A870; color: #fff; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-bottom: 10px; }
.geo-summary { background: #FDF8EE; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.geo-summary p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 4px 0 0; }
.geo-summary-label { display: inline-block; background: #fff; color: #C9962F; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 4px; border: 1px solid rgba(201,150,47,0.2); }

/* Detail page layout */
.qa-detail-page,
.article-detail-page {
  background: var(--bg-secondary);
  min-height: calc(100vh - 64px);
}

.qa-detail-body,
.article-detail-body {
  display: flex;
  gap: 24px;
  padding: 24px 120px 56px;
}

.qa-detail-main,
.article-detail-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qa-detail-sidebar,
.article-detail-sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Breadcrumb */
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 120px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.detail-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.detail-breadcrumb a:hover { color: var(--gold); }
.detail-breadcrumb-current { color: var(--text-muted); }

/* Detail main card */
.detail-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

/* 问题卡片内作者联系方式 */
.qa-detail-contact {
  margin-top: 14px; padding: 10px 16px;
  background: var(--gold-light); border-radius: 8px;
  display: flex; align-items: center; gap: 16px;
}
.qa-detail-contact .a-phone-btn { margin-left: auto; }

/* Question detail header */
.qa-detail-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.qa-detail-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 12px;
}
.qa-detail-category .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.qa-detail-title {
  font-size: 24px; font-weight: 700; color: var(--text-primary);
  line-height: 1.4; margin-bottom: 16px; letter-spacing: -0.01em;
}
.qa-detail-meta {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; font-size: 13px; color: var(--text-secondary);
}
.qa-detail-author {
  display: flex; align-items: center; gap: 8px;
}
.qa-detail-author-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-light); border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--gold);
}

/* 问题卡片内"专业解答"按钮 */
.qa-detail-reply-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px;
  background: var(--gold); color: #FFFFFF; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.qa-detail-reply-btn:hover {
  background: var(--gold-hover);
  box-shadow: 0 2px 8px rgba(201,150,47,0.3);
}

/* Question body */
.qa-detail-body-text {
  font-size: 15px; color: var(--text-primary); line-height: 1.8;
  margin-bottom: 20px;
}
.qa-detail-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}
.qa-detail-tag {
  padding: 5px 12px; border-radius: 6px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-secondary);
}

/* Answer section header */
.qa-detail-answers-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.qa-detail-answers-count {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
}
.qa-detail-answers-count span { color: var(--gold); }
.qa-detail-sort {
  display: flex; gap: 16px; font-size: 13px; color: var(--text-secondary);
}
.qa-detail-sort span { cursor: pointer; transition: color 0.2s; }
.qa-detail-sort span.active { color: var(--gold); font-weight: 600; }
.qa-detail-sort span:hover { color: var(--gold); }

/* ====== V2 回答卡片（每回答者自带联系方式） ====== */
.a-card {
  background: var(--bg-card); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.a-card.best {
  box-shadow: 0 0 0 1px var(--gold-border), var(--shadow-sm);
}

/* 回答头部 — 仅头像+姓名+标签 */
.a-header {
  display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0;
}
.a-author { display: flex; align-items: center; gap: 12px; }
.a-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-light); border: 2px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--gold); flex-shrink: 0;
}
.a-avatar.self-asker {
  background: var(--gold); border-color: var(--gold-hover); color: #FFFFFF;
}
.a-name {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  display: flex; align-items: center; gap: 6px;
}
.a-badge {
  display: inline-flex; align-items: center;
  padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600;
}
.a-badge.gold { background: var(--gold-light); color: var(--gold); }
.a-badge.green { background: var(--green-light); color: var(--green); }

/* 回答时间戳 */
.a-time {
  font-size: 12px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}

/* 联系方式引导条 — 作者信息下方高亮可见 */
.a-contact-strip {
  margin: 14px 24px 0; padding: 10px 16px;
  background: var(--gold-light); border-radius: 8px;
  display: flex; align-items: center; gap: 16px;
}
.a-contact-strip .a-phone-btn { margin-left: auto; }

/* 在线状态 */
.a-online {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--green); font-weight: 600;
}
.a-online-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: online-blink 1.5s infinite;
}
@keyframes online-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 加微信按钮 — 微信绿底+微信Logo */
.a-wechat-btn {
  padding: 6px 14px; border-radius: 6px;
  background: #07C160; border: none;
  font-size: 13px; font-weight: 600; color: #FFFFFF;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.a-wechat-btn:hover { background: #06AD56; }
.a-wechat-btn svg { color: #FFFFFF; }

/* 电话小圆钮 */
.a-phone-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-light); border: 1px solid #C8E6D9;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.a-phone-btn:hover { background: var(--green); border-color: var(--green); }
.a-phone-btn:hover svg { color: #FFF; }

/* ====== 新版联系方式 V2：电话+微信并排大按钮 ====== */
.a-contact-strip-v2 {
  margin: 14px 24px 0; padding: 10px 16px;
  background: var(--gold-light); border-radius: 8px;
  display: flex; align-items: center; gap: 12px;
}
.a-call-btn-v2 {
  flex: 1; padding: 10px 16px; border-radius: 8px;
  background: #fff; border: 2px solid var(--green, #00A870);
  font-size: 14px; font-weight: 600; color: var(--green, #00A870);
  cursor: pointer; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.a-call-btn-v2:hover { background: var(--green, #00A870); color: #fff; }
.a-call-btn-v2:hover svg { stroke: #fff; }

.a-wechat-btn-v2 {
  flex: 1; padding: 10px 16px; border-radius: 8px;
  background: #07C160; border: none;
  font-size: 14px; font-weight: 600; color: #FFFFFF;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.a-wechat-btn-v2:hover { background: #06AD56; }
.a-wechat-btn-v2 svg { color: #fff; }

/* ====== 文章互动操作栏 ====== */
.article-interact-bar {
  display: flex; gap: 12px; margin-top: 24px;
  padding: 16px; background: var(--bg-card); border-radius: 12px;
}
.article-interact-btn {
  flex: 1; padding: 10px 0; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s;
}
.article-interact-btn:hover { color: var(--gold); border-color: var(--gold); }

/* 回答内容 */
.a-body {
  padding: 16px 24px 0;
  font-size: 14px; color: var(--text-primary); line-height: 1.8;
}
.a-body p { margin-bottom: 10px; }
.a-body ol, .a-body ul { padding-left: 20px; margin-bottom: 10px; }
.a-body li { margin-bottom: 6px; }

/* 数据统计行 */
.a-stats {
  padding: 12px 24px 0; font-size: 12px; color: var(--text-secondary);
}

/* 底部仅互动操作 */
.a-footer {
  margin: 14px 24px 20px; padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: flex-end;
}
.a-actions {
  display: flex; gap: 16px; font-size: 13px; color: var(--text-secondary);
}
.a-actions span { cursor: pointer; }
.a-actions span:hover { color: var(--gold); }

/* 回答分隔线 */
.section-hint {
  font-size: 12px; color: var(--text-muted); padding: 4px 0;
  display: flex; align-items: center; gap: 8px;
}
.section-hint::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ====== 侧边栏 V2 模块 ====== */

/* 优质顾问 */
.rec-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border-light); cursor: pointer;
}
.rec-item:last-child { border-bottom: none; padding-bottom: 0; }
.rec-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-light); border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--gold); flex-shrink: 0;
}
.rec-info { flex: 1; }
.rec-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.rec-stat { font-size: 11px; color: var(--text-muted); }

/* 最新提问 */
.new-q-item {
  padding: 10px 0; border-bottom: 1px solid var(--border-light); cursor: pointer;
}
.new-q-item:last-child { border-bottom: none; padding-bottom: 0; }
.new-q-title { font-size: 13px; color: var(--text-primary); line-height: 1.5; margin-bottom: 4px; }
.new-q-item:hover .new-q-title { color: var(--gold); }
.new-q-meta { font-size: 11px; color: var(--text-muted); }

/* 保留旧回答卡片向后兼容（article-detail 等不使用时可删） */
.answer-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; margin-bottom: 16px;
}
.answer-card.best {
  border-color: var(--gold-border);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-light) 100%);
}
.answer-card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.answer-author { display: flex; align-items: center; gap: 12px; }
.answer-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-light); border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: var(--gold);
}
.answer-author-info { display: flex; flex-direction: column; gap: 2px; }
.answer-author-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.answer-author-title { font-size: 12px; color: var(--text-muted); }
.answer-best-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: var(--gold); border-radius: 6px;
  font-size: 12px; font-weight: 600; color: #FFFFFF;
}
.answer-body { font-size: 15px; color: var(--text-primary); line-height: 1.8; margin-bottom: 16px; }
.answer-body p { margin-bottom: 12px; }
.answer-body p:last-child { margin-bottom: 0; }
.answer-body ol, .answer-body ul { padding-left: 20px; margin-bottom: 12px; }
.answer-body li { margin-bottom: 6px; }
.answer-actions {
  display: flex; align-items: center; gap: 20px;
  padding-top: 16px; border-top: 1px solid var(--border-light);
  font-size: 13px; color: var(--text-secondary);
}
.answer-actions span { cursor: pointer; transition: color 0.2s; }
.answer-actions span:hover { color: var(--gold); }
.answer-actions .active { color: var(--gold); font-weight: 600; }

/* Article detail header */
.article-detail-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.article-detail-category {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; background: var(--gold-light); border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--gold);
  margin-bottom: 14px;
}
.article-detail-title {
  font-size: 26px; font-weight: 700; color: var(--text-primary);
  line-height: 1.4; margin-bottom: 18px; letter-spacing: -0.01em;
}
.article-detail-meta {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; font-size: 13px; color: var(--text-secondary);
}
.article-detail-author {
  display: flex; align-items: center; gap: 8px;
}
.article-detail-author-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-light); border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--gold);
}

/* Article content */
.article-detail-content {
  font-size: 15px; color: var(--text-primary); line-height: 1.8;
}
.article-detail-content h2 {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
  margin: 28px 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.article-detail-content h3 {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  margin: 22px 0 12px;
}
.article-detail-content p { margin-bottom: 14px; }
.article-detail-content ul,
.article-detail-content ol { padding-left: 22px; margin-bottom: 16px; }
.article-detail-content li { margin-bottom: 8px; }
.article-detail-content strong { color: var(--text-primary); font-weight: 600; }
.article-detail-content blockquote {
  margin: 16px 0; padding: 14px 18px;
  background: var(--gold-light); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; font-size: 14px; color: var(--text-secondary);
}
.article-detail-content img {
  max-width: 100%; border-radius: 8px; margin: 16px 0;
}
.article-detail-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px;
  padding-top: 20px; border-top: 1px solid var(--border-light);
}
.article-detail-tag {
  padding: 5px 12px; border-radius: 6px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-secondary);
}

/* Author contact card */
.author-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px; position: relative; overflow: hidden;
}
.author-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
.author-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.author-card-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold-light); border: 2px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--gold);
  flex-shrink: 0;
}
.author-card-info { flex: 1; min-width: 0; }
.author-card-name {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.author-card-name .verified-badge {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px 6px; background: var(--green); border-radius: 4px;
  font-size: 10px; font-weight: 600; color: #FFFFFF;
}
.author-card-title {
  font-size: 13px; color: var(--text-secondary); line-height: 1.4;
}
.author-card-stats {
  display: flex; gap: 12px; margin-bottom: 18px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border-light);
}
.author-card-stat { flex: 1; text-align: center; }
.author-card-stat-num { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.author-card-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* WeChat QR code area */
.author-qr-section { margin-bottom: 18px; }
.author-qr-label {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.author-qr-label svg { color: var(--green); }
.author-qr-wrap {
  width: 160px; height: 160px; margin: 0 auto 12px;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.author-qr-wrap img {
  width: 100%; height: 100%; object-fit: contain; padding: 8px;
}
.author-qr-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--text-muted); gap: 8px;
  font-size: 12px; text-align: center; padding: 12px;
}
.author-qr-placeholder svg { color: var(--text-muted); }
.author-qr-tip {
  font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.5;
}

/* Phone number */
.author-phone-section {
  margin-bottom: 18px;
  padding: 14px; background: var(--bg-secondary); border-radius: 10px;
}
.author-phone-label {
  font-size: 12px; color: var(--text-muted); margin-bottom: 6px;
}
.author-phone-number {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
  font-family: 'Geist', sans-serif; letter-spacing: 0.02em;
}
.author-phone-number a { color: inherit; text-decoration: none; }
.author-phone-number a:hover { color: var(--gold); }

/* Author action buttons */
.author-card-actions { display: flex; flex-direction: column; gap: 10px; }
.author-card-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 42px; border-radius: 8px; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.author-card-btn.primary {
  background: var(--gold); color: #FFFFFF;
}
.author-card-btn.primary:hover { background: var(--gold-hover); }
.author-card-btn.secondary {
  background: var(--bg-secondary); color: var(--text-primary);
  border: 1px solid var(--border);
}
.author-card-btn.secondary:hover { border-color: var(--gold); color: var(--gold); }
.author-card-btn svg { width: 16px; height: 16px; }

.author-card-disclaimer {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light);
  font-size: 11px; color: var(--text-muted); line-height: 1.5;
}

/* Related sidebar cards */
.related-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px;
}
.related-card-title {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
}
.related-item {
  padding: 10px 0; border-bottom: 1px solid var(--border-light); cursor: pointer;
}
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-item-title {
  font-size: 13px; color: var(--text-primary); line-height: 1.5;
  margin-bottom: 6px; transition: color 0.2s;
}
.related-item:hover .related-item-title { color: var(--gold); }
.related-item-meta {
  font-size: 11px; color: var(--text-muted); display: flex; gap: 10px;
}

/* ====== 回答表单 — 专业版（默认收起，由问题卡片按钮触发） ====== */

/* 展开态 — 完整表单 */
.detail-reply-form {
  background: var(--bg-card); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 8px;
}
/* 表单顶部信息条 */
.detail-reply-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--gold-light);
  border-bottom: 1px solid var(--gold-border);
}
.detail-reply-header-left {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--gold);
}
.detail-reply-header-left svg { flex-shrink: 0; }
.detail-reply-hint {
  font-size: 12px; color: var(--text-secondary);
}
.detail-reply-hint a {
  color: var(--gold); font-weight: 600; text-decoration: none;
}
.detail-reply-hint a:hover { text-decoration: underline; }

/* 富文本工具栏 */
.detail-reply-toolbar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 24px; border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
}
.detail-reply-tool {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 13px; color: var(--text-secondary); cursor: pointer;
  transition: all 0.2s;
}
.detail-reply-tool:hover {
  background: var(--gold-light); color: var(--gold);
}
.detail-reply-tool-sep {
  width: 1px; height: 16px; background: var(--border); margin: 0 4px;
}
.detail-reply-tool-right {
  margin-left: auto; font-size: 11px; color: var(--text-muted);
}

/* 输入区 */
.detail-reply-textarea {
  width: 100%; min-height: 160px; padding: 20px 24px;
  border: none; border-radius: 0;
  font-size: 14px; color: var(--text-primary); line-height: 1.8;
  resize: vertical; font-family: inherit;
  background: var(--bg-card);
}
.detail-reply-textarea::placeholder {
  color: var(--text-muted); font-size: 14px;
}
.detail-reply-textarea:focus {
  outline: none; background: #FCFCFD;
}

/* 底部操作条 */
.detail-reply-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
}
.detail-reply-tips {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 12px;
}
.detail-reply-tips-item {
  display: flex; align-items: center; gap: 4px;
}
.detail-reply-submit {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 28px; background: var(--gold); color: #FFFFFF;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.detail-reply-submit:hover { background: var(--gold-hover); }
.detail-reply-submit:disabled {
  background: var(--border); cursor: not-allowed;
}
.detail-reply-cancel {
  padding: 10px 20px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s;
}
.detail-reply-cancel:hover {
  border-color: var(--text-muted); color: var(--text-primary);
}

/* Link styles in list pages */
.q-title a,
.article-card-title a,
.q-author a,
.article-card-author a,
.article-featured-title a,
.article-featured-author a {
  color: inherit; text-decoration: none; transition: color 0.2s;
}
.q-title a:hover,
.article-card-title a:hover,
.article-featured-title a:hover { color: var(--gold); }
.q-author a:hover,
.article-card-author a:hover,
.article-featured-author a:hover { color: var(--gold); }

/* ========================================================
   VIDEO DETAIL PAGE
   ======================================================== */

.vd-page,
.nd-page {
  background: var(--bg-secondary);
  min-height: calc(100vh - 64px);
}

.vd-body,
.nd-body {
  display: flex;
  gap: 24px;
  padding: 24px 120px 56px;
}

.vd-main,
.nd-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vd-sidebar,
.nd-sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- Video Player ---- */
.vd-player {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.vd-player-bg {
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vd-player-gradient-1 { background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%); }
.vd-player-gradient-2 { background: linear-gradient(135deg, #0F3460 0%, #164863 100%); }
.vd-player-gradient-3 { background: linear-gradient(135deg, #583828 0%, #8B5E34 100%); }
.vd-player-gradient-4 { background: linear-gradient(135deg, #1B3A2E 0%, #2D5F4E 100%); }
.vd-player-gradient-5 { background: linear-gradient(135deg, #3D2645 0%, #5C3D5E 100%); }
.vd-player-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
}
.vd-player-btn {
  position: relative;
  z-index: 1;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}
.vd-player-btn:hover {
  opacity: 1;
  transform: scale(1.08);
}
.vd-player-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 2px 8px;
  background: rgba(0,0,0,0.6);
  color: #FFFFFF;
  font-size: 12px;
  border-radius: 4px;
  z-index: 1;
}
.vd-player-bar {
  background: #1A1A2E;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vd-player-progress {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  position: relative;
}
.vd-player-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}
.vd-player-progress-dot {
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}
.vd-player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}
.vd-player-controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Video Info Card ---- */
.vd-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
}
.vd-info-header {
  margin-bottom: 20px;
}
.vd-category {
  display: inline-block;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}
.vd-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ---- Video Author & Stats ---- */
.vd-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.vd-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vd-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
}
.vd-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vd-author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vd-verified {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--green-light);
  color: var(--green);
  font-weight: 500;
}
.vd-author-title {
  font-size: 12px;
  color: var(--text-muted);
}
.vd-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  font-size: 13px;
  color: var(--text-secondary);
}
.vd-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- Video Contact Strip ---- */
.vd-contact-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--gold-light);
  border-radius: 8px;
  margin-bottom: 24px;
}
.vd-online {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
}
.vd-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0,168,112,0.15);
}
.vd-contact-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}
.vd-wechat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #07C160;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.vd-wechat-btn:hover {
  background: #06A552;
  box-shadow: 0 2px 8px rgba(7,193,96,0.3);
}
.vd-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-card);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.vd-phone-btn:hover {
  background: var(--gold-light);
  border-color: var(--gold);
}

/* ---- Video Description ---- */
.vd-desc {
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.vd-desc-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.vd-desc p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}
.vd-desc ul {
  padding-left: 20px;
  margin-bottom: 10px;
}
.vd-desc ul li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
}

/* ---- Video Tags ---- */
.vd-tags,
.nd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.vd-tag,
.nd-tag {
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.vd-tag:hover,
.nd-tag:hover {
  background: var(--gold-light);
  color: var(--gold);
}

/* ---- Video Actions ---- */
.vd-actions,
.nd-actions {
  display: flex;
  gap: 12px;
}
.vd-action-btn,
.nd-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.vd-action-btn:hover,
.nd-action-btn:hover {
  border-color: var(--gold-border);
  color: var(--gold);
  background: var(--gold-light);
}
.vd-action-btn.like,
.nd-action-btn.like {
  color: var(--gold);
  border-color: var(--gold-border);
}

/* ---- Related Video Items ---- */
.vd-related-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
}
.vd-related-item:last-child {
  border-bottom: none;
}
.vd-related-item:hover .vd-related-title {
  color: var(--gold);
}
.vd-related-thumb {
  width: 120px;
  height: 68px;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.vd-related-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 1px 6px;
  background: rgba(0,0,0,0.7);
  color: #FFFFFF;
  font-size: 10px;
  border-radius: 3px;
}
.vd-related-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.vd-related-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s;
}
.vd-related-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========================================================
   NEWS DETAIL PAGE
   ======================================================== */

.nd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

/* ---- News Header ---- */
.nd-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.nd-header-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.nd-source-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.nd-source-urgent { background: #FEF2F2; color: #DC2626; }
.nd-source-market { background: #EFF6FF; color: #2563EB; }
.nd-source-exchange { background: #FFF7ED; color: #EA580C; }
.nd-source-policy { background: #FDF4FF; color: #9333EA; }
.nd-source-research { background: #F0FDF4; color: #16A34A; }
.nd-source-intl { background: #F0F9FF; color: #0284C7; }
.nd-tag-hot {
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: var(--gold-light);
  color: var(--gold);
}
.nd-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.nd-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.nd-source-text {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: var(--text-secondary);
}
.nd-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}

/* ---- News Content ---- */
.nd-content {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}
.nd-content p {
  margin-bottom: 16px;
}
.nd-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 14px;
}
.nd-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.nd-content ul li {
  line-height: 2;
  margin-bottom: 4px;
}
.nd-content ul li strong {
  color: var(--gold);
}
.nd-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--gold-light);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.8;
}

/* ---- News Related Items ---- */
.nd-related-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
}
.nd-related-item:last-child {
  border-bottom: none;
}
.nd-related-item:hover .nd-related-title {
  color: var(--gold);
}
.nd-related-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}
.nd-related-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.nd-related-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- News Side Cards ---- */
.nd-side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.nd-side-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.nd-side-header svg {
  color: var(--gold);
  flex-shrink: 0;
}
.nd-side-body {
  padding: 12px 20px 16px;
}

/* ---- Hot Items ---- */
.nd-hot-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.nd-hot-item:last-child {
  border-bottom: none;
}
.nd-hot-rank {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.nd-hot-rank.top1 { background: #DC2626; color: #FFFFFF; }
.nd-hot-rank.top2 { background: #EA580C; color: #FFFFFF; }
.nd-hot-rank.top3 { background: #D97706; color: #FFFFFF; }
.nd-hot-rank.normal { background: var(--bg-secondary); color: var(--text-muted); }
.nd-hot-content {
  flex: 1;
  min-width: 0;
}
.nd-hot-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 4px;
}
.nd-hot-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- Market Mini Grid ---- */
.nd-market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nd-market-item {
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
}
.nd-market-name {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.nd-market-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.nd-market-change {
  font-size: 11px;
  font-weight: 600;
}
.nd-market-change.up { color: #E54848; }
.nd-market-change.down { color: #00A870; }

/* ========================================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ======================================================== */
@media (max-width: 1024px) {
  /* ── Detail breadcrumb ── */
  .detail-breadcrumb { padding: 16px 40px 0; }

  /* ── Q&A Detail ── */
  .qa-detail-page { padding: 24px 40px 40px; }
  .qa-detail-body { flex-direction: column; }
  .qa-detail-sidebar { width: 100%; margin-top: 24px; }

  /* ── Article Detail ── */
  .article-detail-page { padding: 24px 40px 40px; }
  .article-detail-body { flex-direction: column; }
  .article-detail-sidebar { width: 100%; margin-top: 24px; }

  /* ── Video Detail ── */
  .vd-page { padding: 24px 40px 40px; }
  .vd-body { flex-direction: column; }
  .vd-sidebar { width: 100%; margin-top: 24px; }
  .vd-related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* ── News Detail ── */
  .nd-page { padding: 24px 40px 40px; }
  .nd-body { flex-direction: column; }
  .nd-sidebar { width: 100%; margin-top: 24px; }

  /* ── Detail main card ── */
  .detail-main-card { padding: 28px; }
}

/* ========================================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ======================================================== */
@media (max-width: 768px) {
  /* ── Detail breadcrumb ── */
  .detail-breadcrumb { padding: 12px 16px 0; font-size: 12px; flex-wrap: wrap; }

  /* ── Q&A Detail ── */
  .qa-detail-page { padding: 16px 16px 32px; }
  .qa-detail-body { flex-direction: column; }
  .qa-detail-sidebar { width: 100%; margin-top: 20px; }
  .detail-main-card { padding: 20px 16px; }
  .qa-detail-title { font-size: 18px; line-height: 1.35; }
  .qa-detail-meta { flex-wrap: wrap; gap: 8px; font-size: 12px; }
  .a-header { flex-wrap: wrap; gap: 8px; }
  .a-author-info { flex: 1; }
  .a-contact-strip { flex-direction: column; gap: 8px; align-items: stretch; }
  .a-wechat-btn { width: 100%; justify-content: center; }
  .a-body { font-size: 14px; }
  .a-body p { font-size: 14px; }
  .detail-reply-form { padding: 16px; }
  .detail-reply-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .detail-reply-textarea { min-height: 100px; font-size: 14px; }
  .detail-reply-tips { flex-direction: column; gap: 4px; }
  .qa-q-label { font-size: 11px; padding: 1px 6px; }
  .qa-a-label { font-size: 11px; padding: 1px 6px; }
  .qa-detail-answers-count { font-size: 15px; }
  .section-hint { font-size: 12px; padding: 8px 0; }
  .related-card-title { font-size: 14px; }

  /* ── Article Detail ── */
  .article-detail-page { padding: 16px 16px 32px; }
  .article-detail-body { flex-direction: column; }
  .article-detail-sidebar { width: 100%; margin-top: 20px; }
  .article-detail-header { padding: 20px 16px 16px; }
  .article-detail-title { font-size: 18px; line-height: 1.35; }
  .article-detail-meta { flex-wrap: wrap; gap: 6px; font-size: 12px; }
  .article-detail-content { padding: 16px; }
  .article-detail-content h2 { font-size: 16px; }
  .article-detail-content h3 { font-size: 15px; }
  .article-detail-content p, .article-detail-content li { font-size: 14px; }
  .geo-summary { padding: 10px 14px; }
  .geo-summary p { font-size: 12px; }
  .author-card-inner { flex-direction: column; align-items: center; text-align: center; }

  /* ── Video Detail ── */
  .vd-page { padding: 16px 16px 32px; }
  .vd-body { flex-direction: column; }
  .vd-sidebar { width: 100%; margin-top: 20px; }
  .vd-player { height: auto; min-height: 200px; }
  .vd-player-inner { height: 200px; }
  .vd-player-overlay { height: 200px; }
  .vd-info-card { padding: 16px; }
  .vd-info-title { font-size: 18px; }
  .vd-info-meta { flex-wrap: wrap; gap: 8px; font-size: 12px; }
  .vd-contact-strip { flex-direction: column; gap: 10px; align-items: stretch; padding: 12px 16px; }
  .vd-desc { padding: 16px; font-size: 14px; }
  .vd-actions { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .vd-related { display: flex; flex-direction: column; gap: 12px; }
  .vd-related-item { flex-direction: row; gap: 12px; }
  .vd-related-thumb { width: 120px; height: 68px; }

  /* ── News Detail ── */
  .nd-page { padding: 16px 16px 32px; }
  .nd-body { flex-direction: column; }
  .nd-sidebar { width: 100%; margin-top: 20px; }
  .nd-card { padding: 20px 16px; }
  .nd-title { font-size: 18px; line-height: 1.35; }
  .nd-header { padding: 16px; }
  .nd-content { padding: 16px; }
  .nd-content h2 { font-size: 16px; }
  .nd-content h3 { font-size: 15px; }
  .nd-content p, .nd-content li { font-size: 14px; }
  .nd-tags { gap: 6px; padding: 8px 16px; }
  .nd-tag { font-size: 11px; padding: 2px 8px; }
  .nd-actions { gap: 12px; padding: 12px 16px; font-size: 13px; }
  .nd-related-item { flex-direction: column; }
  .nd-side-card { padding: 14px; }

  /* ── Author Card ── */
  .author-card { padding: 16px; }
  .author-card-inner { flex-direction: column; align-items: center; text-align: center; gap: 12px; }

  /* ── Video player mobile fix ── */
  .vd-player { border-radius: 8px; }
  .play-btn-big { width: 48px; height: 48px; }
}
