/* =========================================
   全民古玩网 — 古典质感主题 v2.0
   设计理念：宋代山水·器物之美·简洁有质感
   字色：墨黑 #1a1a1a | 主色：#8B6914（古铜金）
   辅色：#C5A028（浅金）| 背景：#FAF7F2（宣纸白）
   ========================================= */

/* === 全局重置 & 基础 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1a1a;
  --ink-light: #4a4a4a;
  --ink-muted: #888;
  --gold: #8B6914;
  --gold-light: #C5A028;
  --gold-pale: #E8D5A0;
  --paper: #FAF7F2;
  --paper-dark: #F0EBE0;
  --border: #D4C4A0;
  --red-seal: #8B2020;
  --font-main: "Noto Serif SC", "STSong", "SimSun", serif;
  --font-heading: "Noto Serif SC", "STKaiti", "KaiTi", serif;
  --transition: 0.25s ease;
}

html { font-size: 16px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* === 顶部通栏 === */
#top-bar {
  background: var(--ink);
  color: #bbb;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 2px solid var(--gold);
}
#top-bar .container { display: flex; justify-content: space-between; align-items: center; }
#top-bar a { color: #bbb; }
#top-bar a:hover { color: var(--gold-pale); }

/* === 头部 Header === */
#header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(139,105,20,0.08);
}
#header .container { display: flex; align-items: center; justify-content: space-between; }

.site-logo { display: flex; align-items: center; gap: 14px; }
.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1;
}
.site-logo .logo-en {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.logo-seal {
  width: 48px; height: 48px;
  border: 2px solid var(--red-seal);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red-seal);
  font-size: 10px;
  font-family: var(--font-heading);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 1px;
}

/* 搜索框 */
.header-search { display: flex; align-items: center; }
.header-search form { display: flex; gap: 0; }
.header-search input {
  border: 1px solid var(--border);
  border-right: none;
  background: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--font-main);
  color: var(--ink);
  width: 200px;
  outline: none;
  border-radius: 2px 0 0 2px;
}
.header-search button {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  border-radius: 0 2px 2px 0;
  transition: background var(--transition);
}
.header-search button:hover { background: var(--gold-light); }

/* === 主导航 === */
#main-nav {
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
}
#main-nav ul { display: flex; list-style: none; padding: 0; margin: 0; }
#main-nav ul li { position: relative; }
#main-nav ul li a {
  display: block;
  padding: 14px 22px;
  color: #e8e0d0;
  font-size: 14px;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  transition: all var(--transition);
  border-right: 1px solid rgba(255,255,255,0.05);
}
#main-nav ul li a:hover,
#main-nav ul li.current a {
  background: var(--gold);
  color: #fff;
}
#main-nav ul li.current a { font-weight: 700; }

/* 分类导航条 */
#cat-nav {
  background: var(--paper-dark);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
#cat-nav ul { display: flex; flex-wrap: wrap; gap: 0; list-style: none; }
#cat-nav ul li a {
  display: block;
  padding: 4px 14px;
  font-size: 13px;
  color: var(--ink-light);
  border-right: 1px solid var(--border);
  transition: color var(--transition);
}
#cat-nav ul li:last-child a { border-right: none; }
#cat-nav ul li a:hover { color: var(--gold); }

/* === 面包屑 === */
.breadcrumb {
  padding: 10px 0;
  font-size: 12px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }

/* === 主体布局 === */
#main-wrapper { padding: 30px 0 50px; }
.layout-main { display: flex; gap: 30px; }
.content-area { flex: 1; min-width: 0; }
.sidebar { width: 280px; flex-shrink: 0; }

/* === 焦点图轮播 === */
.focus-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  background: #000;
}
.focus-wrap img { width: 100%; height: 320px; object-fit: cover; opacity: 0.9; }
.focus-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 20px 16px 12px;
  color: #fff;
  font-size: 15px;
  font-family: var(--font-heading);
}

/* === 分区标题 === */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.section-title h2 {
  font-size: 18px;
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 2px;
}
.section-title .title-deco {
  width: 4px; height: 20px;
  background: var(--gold);
  flex-shrink: 0;
}
.section-title .more-link {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-muted);
}
.section-title .more-link:hover { color: var(--gold); }

/* === 文章卡片列表 === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.news-card:hover {
  box-shadow: 0 6px 24px rgba(139,105,20,0.12);
  transform: translateY(-2px);
}
.news-card .card-thumb {
  overflow: hidden;
  height: 160px;
  background: var(--paper-dark);
}
.news-card .card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .card-thumb img { transform: scale(1.05); }
.news-card .card-body { padding: 14px; }
.news-card .card-cat {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.news-card .card-title {
  font-size: 14px;
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .card-title a { color: var(--ink); }
.news-card .card-title a:hover { color: var(--gold); }
.news-card .card-meta { font-size: 11px; color: var(--ink-muted); }

/* 文章列表（带图）*/
.news-list-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.news-list-item:last-child { border-bottom: none; }
.news-list-item .item-thumb {
  width: 90px; height: 68px; flex-shrink: 0;
  overflow: hidden;
  background: var(--paper-dark);
}
.news-list-item .item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-item .item-body { flex: 1; }
.news-list-item .item-title {
  font-size: 14px;
  font-family: var(--font-heading);
  line-height: 1.6;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-item .item-title a { color: var(--ink); }
.news-list-item .item-title a:hover { color: var(--gold); }
.news-list-item .item-meta { font-size: 11px; color: var(--ink-muted); }

/* === 侧边栏 === */
.sidebar-block {
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}
.sidebar-block .sb-title {
  background: var(--ink);
  color: var(--gold-pale);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-block .sb-title::before {
  content: "◆";
  font-size: 8px;
  color: var(--gold);
}
.sidebar-block .sb-body { padding: 14px; }
.sidebar-block ul { list-style: none; }
.sidebar-block ul li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.sidebar-block ul li:last-child { border-bottom: none; }
.sidebar-block ul li::before { content: " "; color: var(--gold); font-size: 10px; }
.sidebar-block ul li a { color: var(--ink-light); }
.sidebar-block ul li a:hover { color: var(--gold); }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-muted);
  transition: all var(--transition);
}
.tag-cloud a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* === 文章详情页 === */
.article-wrap { background: #fff; border: 1px solid var(--border); padding: 30px 36px; }
.article-title {
  font-size: 24px;
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 14px;
  font-weight: 700;
}
.article-meta {
  font-size: 12px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 24px;
  display: flex; gap: 20px; flex-wrap: wrap;
}
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-content {
  font-size: 15px;
  line-height: 2;
  color: var(--ink);
}
.article-content p { margin-bottom: 16px; }
.article-content h2, .article-content h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  margin: 24px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
}
.article-content img { margin: 16px auto; border: 1px solid var(--border); }
.article-content blockquote {
  background: var(--paper-dark);
  border-left: 4px solid var(--gold);
  padding: 14px 20px;
  margin: 16px 0;
  color: var(--ink-light);
  font-style: italic;
}

/* === 分页 === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 30px 0 10px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-light);
  transition: all var(--transition);
}
.pagination a:hover, .pagination .current {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* === 广告位 === */
.ad-wrap { text-align: center; margin: 16px 0; overflow: hidden; }
.ad-label {
  font-size: 10px;
  color: var(--ink-muted);
  text-align: right;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

/* === Footer === */
#footer {
  background: var(--ink);
  color: #999;
  padding: 40px 0 0;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-about .logo-text { color: var(--gold-pale); font-size: 20px; font-family: var(--font-heading); }
.footer-about p { font-size: 12px; line-height: 1.8; margin-top: 10px; color: #777; }
.footer-col h4 {
  color: var(--gold-pale);
  font-size: 14px;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 4px 0; font-size: 12px; }
.footer-col ul li a { color: #888; }
.footer-col ul li a:hover { color: var(--gold-pale); }

.footer-bottom {
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: #555;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: var(--gold-pale); }
.beian-link { display: inline-flex; align-items: center; gap: 4px; }

/* === 响应式 === */
@media (max-width: 960px) {
  .layout-main { flex-direction: column; }
  .sidebar { width: 100%; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #main-nav ul { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-wrap { padding: 20px 16px; }
  .header-search { display: none; }
  .site-logo .logo-text { font-size: 20px; }
}

/* === 分隔装饰 === */
.divider-classical {
  text-align: center;
  margin: 30px 0;
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 8px;
}
.divider-classical::before,
.divider-classical::after {
  content: "—";
  margin: 0 8px;
}


/* =========================================
   首页大图改版 v3.0 - 新增样式
   ========================================= */

/* === Hero 大图卡片 === */
.news-hero-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(139,105,20,0.08);
  transition: box-shadow var(--transition);
}
.news-hero-card:hover { box-shadow: 0 6px 30px rgba(139,105,20,0.15); }
.hero-img-wrap {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  position: relative;
}
.hero-img-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.news-hero-card:hover .hero-img-wrap img { transform: scale(1.03); }
.hero-card-body {
  padding: 20px 24px 24px;
}
.hero-no-img {
  border-top: 4px solid var(--gold);
  padding-top: 24px;
}
.hero-category-tag {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  padding: 2px 10px;
  margin-bottom: 12px;
}
.hero-card-title {
  font-size: 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}
.hero-card-title a { color: var(--ink); }
.hero-card-title a:hover { color: var(--gold); }
.hero-card-excerpt {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-date { font-size: 12px; color: var(--ink-muted); }
.hero-read-more {
  font-size: 13px;
  color: var(--gold);
  font-family: var(--font-heading);
  letter-spacing: 1px;
  border-bottom: 1px solid var(--gold-pale);
  padding-bottom: 1px;
}
.hero-read-more:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* === 次要卡片两列 === */
.news-sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.news-sec-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-sec-card:hover {
  box-shadow: 0 4px 20px rgba(139,105,20,0.12);
  transform: translateY(-2px);
}
.sec-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.sec-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.news-sec-card:hover .sec-card-img img { transform: scale(1.04); }
.sec-card-body {
  padding: 14px 16px 16px;
}
.sec-no-img {
  border-top: 3px solid var(--gold-pale);
}
.sec-card-title {
  font-size: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
}
.sec-card-title a { color: var(--ink); }
.sec-card-title a:hover { color: var(--gold); }
.sec-card-excerpt {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sec-card-meta { font-size: 11px; color: var(--ink-muted); }

/* === 剩余文章列表（图+文横排）=== */
.news-list-wrap {
  background: #fff;
  border: 1px solid var(--border);
}
.news-list-item2 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px dashed var(--border);
  transition: background var(--transition);
}
.news-list-item2:last-child { border-bottom: none; }
.news-list-item2:hover { background: var(--paper-dark); }
.list2-thumb {
  width: 90px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}
.list2-thumb img {
  width: 90px;
  height: 64px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-list-item2:hover .list2-thumb img { transform: scale(1.06); }
.list2-body { flex: 1; min-width: 0; }
.list2-title {
  font-size: 14px;
  font-family: var(--font-heading);
  line-height: 1.6;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list2-title a { color: var(--ink); }
.list2-title a:hover { color: var(--gold); }
/* 文章内内联图片（无封面但正文有图） */
.list2-inline-imgs {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.list2-inline-imgs a { display: block; flex-shrink: 0; }
.list2-inline-imgs img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 1px;
  border: 1px solid var(--border);
}
.list2-meta { font-size: 11px; color: var(--ink-muted); }

/* === 品类图文列表 === */
.cat-img-list {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
}
.cat-img-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px dashed var(--border);
  transition: background var(--transition);
}
.cat-img-item:last-child { border-bottom: none; }
.cat-img-item:hover { background: var(--paper-dark); }
.cat-item-thumb {
  width: 72px;
  height: 52px;
  flex-shrink: 0;
  overflow: hidden;
}
.cat-item-thumb img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.cat-img-item:hover .cat-item-thumb img { transform: scale(1.06); }
.cat-item-body { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat-item-title {
  font-size: 14px;
  color: var(--ink-light);
  font-family: var(--font-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.cat-item-title:hover { color: var(--gold); }
/* 无图时样式 */
.cat-img-item:not(.has-img)::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 4px;
}
.cat-item-date { font-size: 11px; color: var(--ink-muted); white-space: nowrap; flex-shrink: 0; }

/* === 侧边栏热门排名 Badge === */
.hot-rank-list {
  list-style: none;
  counter-reset: none;
}
.hot-rank-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.hot-rank-item:last-child { border-bottom: none; }
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: var(--paper-dark);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-heading);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 1px;
}
.rank-badge.rank-top3 {
  background: var(--gold);
  color: #fff;
}
.hot-rank-item a {
  color: var(--ink-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-rank-item a:hover { color: var(--gold); }

/* 品类导航图标 */
.cat-nav-list { list-style: none; }
.cat-nav-list li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.cat-nav-list li:last-child { border-bottom: none; }
.cat-nav-list li a { color: var(--ink-light); display: flex; align-items: center; gap: 8px; }
.cat-nav-list li a:hover { color: var(--gold); }
.cat-icon {
  font-size: 7px;
  color: var(--gold);
  display: inline-block;
}

/* === 响应式补充 === */
@media (max-width: 960px) {
  .news-sec-grid { grid-template-columns: 1fr 1fr; }
  .hero-img-wrap { max-height: 260px; }
  .hero-img-wrap img { height: 260px; }
}
@media (max-width: 600px) {
  .news-sec-grid { grid-template-columns: 1fr; }
  .hero-card-title { font-size: 18px; }
  .hero-img-wrap img { height: 200px; }
  .sec-card-img { height: 160px; }
  .sec-card-img img { height: 160px; }
  .list2-thumb, .list2-thumb img { width: 70px; height: 52px; }
}
