/* ===== 基础样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif; background: #f5f5f5; color: #333; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }

/* ===== 顶栏 ===== */
.header { background: #fff; border-bottom: 1px solid #e8e8e8; padding: 0 40px; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,0.05); white-space: nowrap; overflow: hidden; }
.logo { font-size: 20px; font-weight: bold; color: #4CAF50; cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.logo-img { height: 32px; }
.nav { display: flex; gap: 24px; white-space: nowrap; flex-shrink: 0; }
.nav a { color: #666; font-size: 15px; padding: 20px 0; border-bottom: 2px solid transparent; transition: all 0.3s; white-space: nowrap; }
.nav a:hover, .nav a.active { color: #4CAF50; border-bottom-color: #4CAF50; }
.header-right { display: flex; align-items: center; gap: 16px; white-space: nowrap; flex-shrink: 0; }
.header-phone { font-size: 14px; color: #4CAF50; font-weight: 500; white-space: nowrap; }

/* ===== 主内容 ===== */
.main { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }

/* ===== 面包屑 ===== */
.breadcrumb { padding: 16px 0; font-size: 14px; color: #999; }
.breadcrumb a { color: #4CAF50; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; color: #ccc; }

/* ===== 首页板块标题 ===== */
.section-title { font-size: 20px; font-weight: 600; margin-bottom: 16px; color: #333; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 4px; height: 20px; background: #4CAF50; border-radius: 2px; }
.section-more { font-size: 14px; color: #999; margin-left: auto; cursor: pointer; }
.section-more:hover { color: #4CAF50; }

/* ===== 卡片网格 ===== */
.content { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 8px; overflow: hidden; cursor: pointer; transition: all 0.3s; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.card-cover { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.tag-article { background: #e3f2fd; color: #1976d2; }
.tag-qa { background: #e8f5e9; color: #388e3c; }
.tag-announcement { background: #fce4ec; color: #c62828; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.card-summary { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12px; color: #999; display: flex; gap: 16px; align-items: center; }
.qa-card .card-body { position: relative; }
.qa-icon { position: absolute; top: -24px; right: 20px; width: 48px; height: 48px; background: linear-gradient(135deg, #4CAF50, #2E7D32); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; border: 3px solid #fff; }
.qa-status { font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.qa-status.answered { background: #e8f5e9; color: #388e3c; }
.qa-status.pending { background: #fff3e0; color: #f57c00; }

/* ===== 公告列表 ===== */
.announcement-list { max-width: 900px; }
.announcement-item { background: #fff; border-radius: 8px; padding: 20px 24px; margin-bottom: 12px; cursor: pointer; display: flex; align-items: center; gap: 16px; transition: all 0.3s; }
.announcement-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); transform: translateX(4px); }
.announcement-date { font-size: 13px; color: #999; white-space: nowrap; }
.announcement-title { font-size: 15px; flex: 1; }
.announcement-badge { font-size: 12px; color: #c62828; background: #fce4ec; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

/* ===== 列表页 ===== */
.list-page { max-width: 900px; margin: 0 auto; }
.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.list-title { font-size: 24px; font-weight: 600; }
.list-count { font-size: 14px; color: #999; }

/* ===== 详情页 ===== */
.detail-page { background: #fff; border-radius: 8px; padding: 40px; max-width: 900px; margin: 0 auto; }
.detail-tag { display: inline-block; margin-bottom: 12px; }
.detail-title { font-size: 28px; font-weight: bold; margin-bottom: 16px; line-height: 1.4; }
.detail-meta { font-size: 14px; color: #999; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 24px; display: flex; gap: 20px; }
.detail-content { font-size: 16px; line-height: 1.8; color: #333; }
.detail-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.detail-content h2, .detail-content h3 { margin: 20px 0 12px; }
.detail-content p { margin-bottom: 12px; }
.detail-content ul, .detail-content ol { padding-left: 20px; margin-bottom: 12px; }
.detail-actions { display: flex; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.action-btn { padding: 10px 24px; border-radius: 20px; font-size: 14px; cursor: pointer; border: none; transition: all 0.3s; }
.action-btn.primary { background: #4CAF50; color: #fff; }
.action-btn.primary:hover { background: #388e3c; }
.action-btn.secondary { background: #f5f5f5; color: #666; border: 1px solid #e8e8e8; }
.action-btn.secondary:hover { background: #eee; }

/* 问答样式 */
.qa-section { margin-top: 24px; }
.qa-block { padding: 20px; border-radius: 8px; margin-bottom: 16px; }
.qa-block.question { background: #f8f9fa; border-left: 4px solid #4CAF50; }
.qa-block.answer { background: #e3f2fd; border-left: 4px solid #2196F3; }
.qa-block-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.qa-block-label.q { color: #4CAF50; }
.qa-block-label.a { color: #2196F3; }
.qa-pending-msg { text-align: center; padding: 32px; background: #f8f9fa; border-radius: 8px; color: #999; }

/* 相关推荐 */
.related-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid #f0f0f0; }
.related-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.related-list { }
.related-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: color 0.2s; }
.related-item:hover { color: #4CAF50; }
.related-item-title { font-size: 15px; flex: 1; }
.related-item-date { font-size: 13px; color: #999; margin-left: 16px; }

.empty { text-align: center; padding: 80px 0; color: #999; font-size: 16px; }
.loading { text-align: center; padding: 40px; color: #999; }

/* ===== 底栏 ===== */
.footer { background: #2c3e50; color: #ecf0f1; padding: 40px 24px; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 { font-size: 16px; margin-bottom: 16px; color: #fff; }
.footer-col p { font-size: 13px; line-height: 2; color: #bdc3c7; }
.footer-col a { color: #4CAF50; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { max-width: 1200px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 12px; color: #7f8c8d; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .nav { gap: 12px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .nav { gap: 8px; }
  .nav a { font-size: 13px; padding: 20px 0; }
  .container { padding: 16px; }
  .content { grid-template-columns: 1fr; }
  .detail-page { padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .header-phone { display: none; }
}
@media (max-width: 600px) {
  .logo { font-size: 16px; }
  .logo-img { height: 24px; }
  .nav { gap: 6px; }
  .nav a { font-size: 12px; padding: 16px 0; }
}
