/* 安阳城建观察 v1.0 — 全局样式
   配色：古铜金 #854F0B / 亮金 #B45309 / 墨绿 #166534 / 深灰 #1F2937 / 暖灰 #F5F5F4
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1F2937;
  background: #F5F5F4;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: #854F0B; text-decoration: none; }
a:hover { color: #B45309; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ===== 排版 ===== */
h1 { font-family: "Source Han Serif SC", "Noto Serif SC", "SimSun", serif; font-size: 28px; font-weight: 700; line-height: 1.4; }
h2 { font-family: "Source Han Serif SC", "Noto Serif SC", serif; font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 16px; }
h3 { font-family: "Source Han Serif SC", "Noto Serif SC", serif; font-size: 18px; font-weight: 600; line-height: 1.5; }
p { margin-bottom: 12px; }
.meta { font-size: 13px; color: #6B7280; }

/* ===== 布局容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding: 28px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== 顶栏 ===== */
.topbar {
  background: #1F2937;
  color: #E5E7EB;
  font-size: 12px;
  line-height: 36px;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 100%;
}
.topbar .left, .topbar .center, .topbar .right { flex: 1; }
.topbar .center { text-align: center; }
.topbar .right { text-align: right; }

/* ===== 导航栏 ===== */
.navbar {
  background: #fff;
  border-bottom: 3px solid #854F0B;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.navbar .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Source Han Serif SC", serif;
  font-size: 20px;
  font-weight: 700;
  color: #854F0B;
  white-space: nowrap;
  margin-right: 16px;
}
.logo-icon {
  width: 40px; height: 40px;
  background: #854F0B;
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Source Han Serif SC", serif;
  font-size: 22px;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  padding: 8px 12px;
  font-size: 14px;
  color: #374151;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-links a:hover { background: #F3F4F6; color: #854F0B; }
.nav-links a.active { background: #FEF3C7; color: #854F0B; font-weight: 600; }

/* ===== Hero 区 ===== */
.hero {
  background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
  color: #fff;
  padding: 48px 20px;
  text-align: center;
}
.hero h1 {
  font-family: "Source Han Serif SC", serif;
  font-size: 32px;
  color: #fff;
  margin-bottom: 8px;
}
.hero .subtitle {
  font-size: 15px;
  color: #D1D5DB;
  margin-bottom: 32px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 20px 32px;
  min-width: 160px;
}
.stat-num {
  font-family: "DIN Alternate", "Roboto", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #FCD34D;
}
.stat-label { font-size: 13px; color: #9CA3AF; margin-top: 4px; }

/* ===== 资讯卡片 ===== */
.article-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #E5E7EB;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.article-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: #D1D5DB;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* 来源标签 */
.tag-source {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.tag-source.gov  { background: #DBEAFE; color: #1E40AF; }
.tag-source.trade { background: #FFEDD5; color: #C2410C; }
.tag-source.media { background: #DCFCE7; color: #15803D; }
.tag-source.ugc   { background: #F3E8FF; color: #7C3AED; }

/* 星级 */
.stars { color: #F59E0B; font-size: 14px; letter-spacing: 1px; white-space: nowrap; }

/* 标题 */
.card-title {
  font-size: 17px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
  line-height: 1.5;
  cursor: pointer;
}
.card-title:hover { color: #854F0B; }

/* AI 摘要 */
.card-summary {
  background: #EFF6FF;
  border-left: 3px solid #3B82F6;
  padding: 10px 14px;
  font-size: 13px;
  color: #1E40AF;
  border-radius: 0 6px 6px 0;
  margin-bottom: 10px;
  line-height: 1.6;
}
.card-summary::before { content: "AI 摘要  "; font-weight: 600; opacity: 0.7; }

/* 编辑点评 */
.card-comment {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  padding: 10px 14px;
  font-size: 13px;
  color: #92400E;
  border-radius: 0 6px 6px 0;
  margin-bottom: 12px;
  line-height: 1.6;
}
.card-comment::before { content: "编辑点评  "; font-weight: 600; opacity: 0.7; }

/* 标签行 */
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tag-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #F3F4F6;
  color: #4B5563;
  cursor: pointer;
  transition: background 0.15s;
}
.tag-pill:hover { background: #E5E7EB; }
.tag-pill.district { background: #FEF3C7; color: #92400E; }
.tag-pill.type { background: #DBEAFE; color: #1E40AF; }

/* 卡片底部 */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #9CA3AF;
}
.card-footer .time { white-space: nowrap; }
.card-footer .actions { display: flex; gap: 12px; }
.card-footer .actions button {
  background: none; border: none; color: #9CA3AF;
  font-size: 13px; cursor: pointer; padding: 2px 6px;
  border-radius: 4px; transition: all 0.15s;
}
.card-footer .actions button:hover { background: #F3F4F6; color: #854F0B; }

/* ===== 日期分组 ===== */
.date-group-label {
  font-size: 13px;
  color: #6B7280;
  font-weight: 600;
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  gap: 8px;
}
.date-group-label .dot {
  width: 8px; height: 8px;
  background: #854F0B;
  border-radius: 50%;
}

/* ===== 侧边栏 ===== */
.sidebar-block {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid #E5E7EB;
}
.sidebar-block h3 {
  font-size: 15px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F3F4F6;
}

/* 项目地图缩略 */
.map-thumb {
  background: #E8F0E8;
  border-radius: 8px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #166534;
  font-size: 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.map-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.map-dot.planning { background: #2563EB; }
.map-dot.bidding  { background: #EA580C; }
.map-dot.building  { background: #DC2626; }
.map-dot.done      { background: #16A34A; }
.map-link { display: block; text-align: center; font-size: 13px; color: #854F0B; margin-top: 6px; }

/* 标签云 */
.tag-cloud { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-cloud .tag-pill { cursor: pointer; }

/* 热议排行 */
.hot-list { display: flex; flex-direction: column; gap: 10px; }
.hot-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}
.hot-rank {
  width: 22px; height: 22px;
  background: #F3F4F6;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #6B7280;
  flex-shrink: 0;
}
.hot-rank.top1 { background: #FCD34D; color: #92400E; }
.hot-rank.top2 { background: #E5E7EB; color: #374151; }
.hot-rank.top3 { background: #FED7AA; color: #9A3412; }
.hot-title { color: #374151; cursor: pointer; line-height: 1.4; }
.hot-title:hover { color: #854F0B; }
.hot-count { font-size: 12px; color: #9CA3AF; margin-top: 2px; }

/* 订阅入口 */
.subscribe-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 14px;
}
.subscribe-box p { font-size: 13px; color: #92400E; margin-bottom: 10px; }
.subscribe-box input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}
.subscribe-box button {
  width: 100%;
  padding: 8px;
  background: #854F0B;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.subscribe-box button:hover { background: #B45309; }

/* 线索征集 */
.clue-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 14px;
}
.clue-box p { font-size: 13px; color: #166534; margin-bottom: 10px; }
.clue-box button {
  width: 100%;
  padding: 8px;
  background: #166534;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.clue-box button:hover { background: #15803D; }

/* ===== 加载更多 ===== */
.load-more {
  display: block;
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  color: #6B7280;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 8px;
}
.load-more:hover { background: #F9FAFB; color: #854F0B; border-color: #D1D5DB; }

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: #6B7280; }
.breadcrumb a:hover { color: #854F0B; }
.breadcrumb .sep { color: #D1D5DB; }

/* ===== 详情页样式 ===== */
.article-detail {
  max-width: 740px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.article-detail .source-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.article-detail h1 {
  font-size: 26px;
  margin-bottom: 14px;
  line-height: 1.4;
}
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-body {
  font-size: 15px;
  line-height: 1.9;
  color: #1F2937;
}
.article-body p { margin-bottom: 16px; }
.article-body h2 { font-size: 20px; margin: 28px 0 14px; }
.article-body h3 { font-size: 17px; margin: 22px 0 10px; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.article-body th, .article-body td {
  border: 1px solid #E5E7EB;
  padding: 8px 12px;
  text-align: left;
}
.article-body th { background: #F9FAFB; font-weight: 600; }
.article-body blockquote {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  padding: 12px 16px;
  margin: 16px 0;
  color: #92400E;
  border-radius: 0 6px 6px 0;
}

/* 关联项目卡片 */
.project-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 14px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.project-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.project-status.planning { background: #DBEAFE; color: #1E40AF; }
.project-status.bidding  { background: #FFEDD5; color: #C2410C; }
.project-status.building  { background: #FEE2E2; color: #DC2626; }
.project-status.done      { background: #DCFCE7; color: #15803D; }

/* 原文链接 */
.original-link {
  display: inline-block;
  margin: 16px 0;
  padding: 8px 16px;
  background: #1F2937;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  transition: background 0.15s;
}
.original-link:hover { background: #374151; color: #fff; }

/* 评论区 */
.comments-section { margin-top: 36px; }
.comment-form {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 8px;
}
.comment-form textarea { min-height: 80px; resize: vertical; }
.comment-form .row { display: flex; gap: 10px; }
.comment-form .row input { flex: 1; }
.comment-form button {
  padding: 8px 20px;
  background: #854F0B;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.comment {
  padding: 14px 0;
  border-bottom: 1px solid #F3F4F6;
  font-size: 14px;
}
.comment .nickname { font-weight: 600; color: #374151; }
.comment .comment-meta { font-size: 12px; color: #9CA3AF; margin: 4px 0 6px; }
.comment .comment-text { color: #4B5563; line-height: 1.6; }
.comment .comment-actions { margin-top: 6px; }
.comment .comment-actions button {
  background: none; border: none; color: #9CA3AF;
  font-size: 12px; cursor: pointer; padding: 2px 6px;
}
.comment .comment-actions button:hover { color: #854F0B; }

/* 相关推荐 */
.related-list { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.related-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: #F9FAFB;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.related-item:hover { background: #F3F4F6; }
.related-item .thumb {
  width: 80px; height: 60px;
  background: #E5E7EB;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #9CA3AF;
}
.related-item .info { flex: 1; }
.related-item .info h4 { font-size: 14px; color: #1F2937; line-height: 1.4; }
.related-item .info .meta { font-size: 12px; margin-top: 4px; }

/* 分享栏 */
.share-bar {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  padding: 14px 0;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
}
.share-btn {
  padding: 6px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  color: #4B5563;
}
.share-btn:hover { border-color: #854F0B; color: #854F0B; }

/* ===== 筛选状态提示 ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-bar .label { font-size: 13px; color: #6B7280; }
.filter-bar .active-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #FEF3C7;
  color: #92400E;
  border-radius: 999px;
  font-size: 13px;
}
.filter-bar .clear-btn {
  background: none; border: none; color: #9CA3AF;
  font-size: 12px; cursor: pointer;
}
.filter-bar .clear-btn:hover { color: #EF4444; }

/* ===== 关于页 ===== */
.about-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.about-page h1 { margin-bottom: 20px; }
.about-page h2 { font-size: 20px; margin: 28px 0 14px; }
.about-page p { margin-bottom: 14px; }
.about-page ul { padding-left: 20px; margin-bottom: 14px; }
.about-page ul li { margin-bottom: 8px; }
.about-page .highlight {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

/* ===== 页脚 ===== */
.footer {
  background: #1F2937;
  color: #9CA3AF;
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  line-height: 2;
}
.footer a { color: #D1D5DB; }
.footer a:hover { color: #FCD34D; }
.footer .disclaimer { max-width: 600px; margin: 12px auto 0; color: #6B7280; font-size: 12px; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
  .hero h1 { font-size: 24px; }
  .hero-stats { gap: 16px; }
  .stat-card { padding: 14px 20px; min-width: 120px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 8px; font-size: 13px; }
}
@media (max-width: 600px) {
  h1 { font-size: 22px; }
  .article-detail h1 { font-size: 22px; }
  .hero { padding: 32px 16px; }
  .main-grid { padding: 16px 12px 40px; }
}

/* ===== 动画 ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.article-card { animation: fadeIn 0.3s ease; }
