@charset "utf-8";
/* ============================================
   ykiym.com - 新中式 + 装饰艺术风格
   风格: P(新中式) + D(装饰艺术) + N(自然有机)
   色彩: 6(大地色系 #8b4513/#f5deb3/#228b22)
   ============================================ */

:root {
  --primary: #8b5a2b;
  --secondary: #a0522d;
  --accent: #228b22;
  --gold: #d4a574;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --bg-dark: #faf6f1;
  --bg-card: #ffffff;
  --bg-light: #f5efe8;
  --bg-cream: #f9f5f0;
  --text-dark: #3d2914;
  --text-light: #6b5344;
  --text-muted: #9a8876;
  --border: #e8dfd4;
  --shadow: 0 4px 20px rgba(139, 90, 43, 0.12);
  --shadow-lg: 0 8px 40px rgba(139, 90, 43, 0.18);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-cream);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul, li { list-style: none; }
img { max-width: 100%; height: auto; }

/* ============================================
   头部 - 中国传统风格
   ============================================ */
.header { background: var(--bg-card); border-bottom: 3px solid var(--primary); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.top_header { max-width: 1300px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.top_header a#logo img { height: 44px; max-width: 160px; }

.nav-warp { background: var(--bg-dark); border-bottom: 2px solid var(--border); }
.nav-container { max-width: 1300px; margin: 0 auto; display: flex; padding: 0 24px; }
.nav-item { padding: 14px 22px; font-size: 15px; font-weight: 500; color: var(--text-light); letter-spacing: 1px; transition: all 0.3s ease; border-bottom: 3px solid transparent; }
.nav-item:first-child { color: var(--primary); border-bottom-color: var(--primary); }
.nav-item:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ============================================
   分屏布局 - 左侧分类+右侧内容
   ============================================ */
.split-layout { padding: 60px 24px; background: var(--bg-cream); }
.split-container { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 280px 1fr; gap: 40px; }

/* 左侧分类导航 */
.split-nav { position: sticky; top: 100px; height: fit-content; }
.category-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.category-header { background: var(--gradient); color: #fff; padding: 20px; text-align: center; }
.category-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.category-header span { font-size: 12px; opacity: 0.9; }
.category-list { padding: 16px 0; }
.category-list li { }
.category-list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; font-size: 14px; color: var(--text-light); border-left: 4px solid transparent; transition: all 0.3s ease; }
.category-list a:hover, .category-list a.active { background: var(--bg-light); color: var(--primary); border-left-color: var(--primary); border-left-width: 4px; padding-left: 20px; }
.category-list .count { background: var(--bg-light); padding: 2px 10px; font-size: 12px; border-radius: 20px; color: var(--text-muted); }
.category-list a:hover .count, .category-list a.active .count { background: var(--primary); color: #fff; }

/* 右侧文章列表 */
.split-content { min-width: 0; }
.split-featured { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 30px; }
.split-featured-img { height: 320px; background-size: cover; background-position: center; position: relative; }
.split-featured-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(61,41,20,0.7) 0%, transparent 60%); }
.split-featured-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; z-index: 1; }
.split-badge { display: inline-block; padding: 4px 14px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; border-radius: 20px; margin-bottom: 12px; }
.split-featured-title { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: 10px; }
.split-featured-title:hover { color: var(--gold); }
.split-featured-meta { display: flex; gap: 20px; font-size: 13px; color: rgba(255,255,255,0.85); }
.split-featured-meta i { margin-right: 4px; }

/* 文章网格 */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.article-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-card-img { height: 180px; background-size: cover; background-position: center; position: relative; }
.article-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(61,41,20,0.5) 0%, transparent 50%); }
.article-card-cat { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 12px; background: var(--gradient); color: #fff; font-size: 11px; font-weight: 600; border-radius: 20px; }
.article-card-content { padding: 20px; }
.article-card-title { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-title:hover { color: var(--primary); }
.article-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.article-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.article-card-meta i { margin-right: 4px; }

/* ============================================
   时间线布局
   ============================================ */
.timeline-section { padding: 80px 24px; background: var(--bg-light); }
.timeline-container { max-width: 1300px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 28px; font-weight: 700; color: var(--text-dark); display: inline-block; position: relative; padding: 0 30px; }
.section-header h2::before, .section-header h2::after { content: ''; position: absolute; top: 50%; width: 50px; height: 2px; background: var(--primary); }
.section-header h2::before { left: -60px; }
.section-header h2::after { right: -60px; }
.section-header p { font-size: 14px; color: var(--text-muted); margin-top: 10px; }

.timeline-list { position: relative; padding-left: 40px; }
.timeline-list::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; background: var(--bg-card); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); transition: all 0.3s ease; }
.timeline-item:hover { transform: translateX(8px); box-shadow: var(--shadow-lg); }
.timeline-item::before { content: ''; position: absolute; left: -33px; top: 30px; width: 12px; height: 12px; background: var(--primary); border-radius: 50%; border: 3px solid var(--bg-light); }
.timeline-item::after { content: attr(data-date); position: absolute; left: -100px; top: 28px; font-size: 13px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.timeline-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.timeline-date i { margin-right: 4px; color: var(--primary); }
.timeline-title { font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; line-height: 1.4; }
.timeline-title:hover { color: var(--primary); }
.timeline-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.timeline-tags { display: flex; gap: 8px; margin-top: 12px; }
.timeline-tag { padding: 3px 10px; background: var(--bg-light); color: var(--text-muted); font-size: 11px; border-radius: 20px; }
.timeline-tag:hover { background: var(--primary); color: #fff; }

/* ============================================
   图文并排模块
   ============================================ */
.image-text-section { padding: 80px 24px; background: var(--bg-card); }
.image-text-container { max-width: 1300px; margin: 0 auto; }
.image-text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.image-text-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); height: 400px; background-size: cover; background-position: center; position: relative; }
.image-text-img::before { content: ''; position: absolute; top: -15px; left: -15px; right: 15px; bottom: 15px; border: 3px solid var(--primary); border-radius: var(--radius-lg); z-index: -1; }
.image-text-content { }
.image-text-badge { display: inline-block; padding: 6px 16px; background: var(--bg-light); color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; border-left: 3px solid var(--primary); }
.image-text-title { font-size: 32px; font-weight: 700; color: var(--text-dark); line-height: 1.4; margin-bottom: 20px; }
.image-text-title:hover { color: var(--primary); }
.image-text-desc { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.image-text-meta { display: flex; gap: 24px; font-size: 13px; color: var(--text-muted); }
.image-text-meta i { margin-right: 4px; color: var(--primary); }

/* ============================================
   标签云
   ============================================ */
.tagcloud-section { padding: 60px 24px; background: var(--bg-cream); }
.tagcloud-container { max-width: 1300px; margin: 0 auto; text-align: center; }
.tagcloud-header { margin-bottom: 30px; }
.tagcloud-header h2 { font-size: 24px; font-weight: 700; color: var(--text-dark); }
.tagcloud-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tagcloud-tag { padding: 10px 22px; background: var(--bg-card); color: var(--text-light); font-size: 14px; border: 1px solid var(--border); border-radius: 50px; transition: all 0.3s ease; }
.tagcloud-tag:hover { background: var(--gradient); color: #fff; border-color: transparent; transform: scale(1.05); box-shadow: var(--shadow); }

/* ============================================
   页脚
   ============================================ */
.footer { background: var(--bg-card); padding: 40px 24px; border-top: 3px solid var(--primary); }
.footer-inner { max-width: 1300px; margin: 0 auto; text-align: center; }
.footer-logo { font-size: 24px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--text-light); }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-copy a { color: var(--primary); }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
  .split-container { grid-template-columns: 1fr; }
  .split-nav { position: static; }
  .article-grid { grid-template-columns: 1fr; }
  .image-text-grid { grid-template-columns: 1fr; }
  .timeline-list::before { left: 10px; }
  .timeline-item::before { left: -28px; }
  .timeline-item::after { display: none; }
}
@media (max-width: 768px) {
  .section-header h2::before, .section-header h2::after { display: none; }
  .split-featured-img { height: 240px; }
  .split-featured-title { font-size: 20px; }
  .image-text-img { height: 280px; }
  .image-text-title { font-size: 24px; }
}

/* ============================================
   列表页样式
   ============================================ */
.list-page-wrapper { max-width: 1200px; margin: 0 auto; padding: 60px 24px; display: grid; grid-template-columns: 1fr 280px; gap: 40px; }
.list-main { min-width: 0; }
.list-articles { display: flex; flex-direction: column; gap: 24px; }
.list-article-item { display: flex; gap: 24px; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; }
.list-article-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.list-article-img { width: 280px; height: 180px; background-size: cover; background-position: center; flex-shrink: 0; }
.list-article-info { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.list-article-info h3 { font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; }
.list-article-info h3:hover { color: var(--primary); }
.list-article-info p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-article-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); }
.list-article-meta i { margin-right: 4px; color: var(--primary); }
.list-sidebar { position: sticky; top: 100px; height: fit-content; }
.sidebar-card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.sidebar-card h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: flex; align-items: center; gap: 8px; }
.sidebar-card h4 i { color: var(--primary); }
.sidebar-nav-list li { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.sidebar-nav-list li:last-child { border-bottom: none; }
.sidebar-nav-list a { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-light); }
.sidebar-nav-list a:hover { color: var(--primary); }
.sidebar-nav-list .count { background: var(--bg-light); padding: 2px 8px; font-size: 12px; border-radius: 20px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-light); transition: all 0.3s ease; }
.pagination a:hover, .pagination .active { background: var(--gradient); color: #fff; border-color: transparent; }

.page-header { background: var(--bg-card); padding: 40px 0; border-bottom: 2px solid var(--border); }
.page-header .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-title { font-size: 28px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.page-breadcrumb { font-size: 14px; color: var(--text-muted); }
.page-breadcrumb a { color: var(--text-light); }
.page-breadcrumb a:hover { color: var(--primary); }
.content-wrapper { background: var(--bg-cream); padding: 60px 0; }
.content-wrapper .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.article-detail { background: var(--bg-card); border-radius: var(--radius); padding: 40px; margin-bottom: 40px; box-shadow: var(--shadow); }
.detail-header { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.detail-category { display: inline-block; padding: 4px 14px; background: var(--gradient); color: #fff; font-size: 12px; font-weight: 600; border-radius: 20px; margin-bottom: 16px; }
.detail-title { font-size: 28px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; line-height: 1.4; }
.detail-meta { display: flex; gap: 24px; font-size: 14px; color: var(--text-muted); }
.detail-meta i { margin-right: 4px; color: var(--primary); }
.detail-content { font-size: 16px; line-height: 1.9; color: var(--text-dark); }
.detail-content p { margin-bottom: 16px; }
.detail-content img { max-width: 100%; height: auto; margin: 16px 0; border-radius: var(--radius); }
.detail-content h2, .detail-content h3 { font-size: 20px; font-weight: 700; color: var(--text-dark); margin: 24px 0 16px; }
.detail-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.detail-tags i { color: var(--primary); }
.detail-tags a { padding: 4px 14px; background: var(--bg-light); color: var(--text-light); font-size: 13px; border-radius: 20px; }
.detail-tags a:hover { background: var(--gradient); color: #fff; }
.related-articles { background: var(--bg-card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.related-title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: flex; align-items: center; gap: 8px; }
.related-title i { color: var(--primary); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { border-radius: var(--radius); overflow: hidden; transition: all 0.3s ease; box-shadow: var(--shadow); }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.related-img { height: 140px; background-size: cover; background-position: center; }
.related-info { padding: 16px; background: var(--bg-card); }
.related-info h4 { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-info h4:hover { color: var(--primary); }
.related-info span { font-size: 12px; color: var(--text-muted); }
.related-info span i { margin-right: 4px; color: var(--primary); }

@media (max-width: 1024px) {
  .list-page-wrapper { grid-template-columns: 1fr; }
  .list-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .list-article-item { flex-direction: column; }
  .list-article-img { width: 100%; height: 200px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-detail { padding: 24px; }
  .detail-title { font-size: 22px; }
}
