/* ============================================
   KCHKL.COM - 北欧极简风格 CSS 样式
   设计：深海蓝 / 纯白极简 / 几何点缀 / 大留白
   完全原创 - 独特于 KCHKL.COM
   ============================================ */

:root {
  --primary: #0f4c75;
  --primary-dark: #0a3655;
  --primary-light: #3282b8;
  --accent: #bbe1fa;
  --bg: #fcfcfc;
  --bg-card: #ffffff;
  --bg-tint: #f0f7ff;
  --text: #1a1a2e;
  --text-light: #5c5c6d;
  --text-muted: #9999a8;
  --border: #e8e8ec;
  --border-light: #f2f2f5;
  --shadow-sm: 0 1px 3px rgba(15,76,117,0.04);
  --shadow: 0 4px 12px rgba(15,76,117,0.06);
  --shadow-md: 0 8px 24px rgba(15,76,117,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'SF Pro Display', -apple-system, 'PingFang SC', 'Noto Sans SC', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================
   HEADER - 极简透明导航
   ============================================ */
.site-header {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 44px;
  width: auto;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover img { transform: scale(1.08); }

.main-nav ul {
  display: flex;
  gap: 2px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--bg-tint);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  font-size: 16px;
  cursor: pointer;
  color: var(--text);
  padding: 9px 11px;
  border-radius: 8px;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 32px 0;
}

.page-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.page-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
}

.page-breadcrumb a { color: var(--primary); }
.page-breadcrumb a:hover { text-decoration: underline; }

/* ============================================
   CONTENT AREA - 大留白布局
   ============================================ */
.content-wrapper {
  padding: 44px 0 80px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}

.main-content { min-width: 0; }

/* ============================================
   SECTION TITLE - 简洁线条
   ============================================ */
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title i { color: var(--primary-light); font-size: 14px; }

/* ============================================
   ARTICLE CARD - 极简卡片
   ============================================ */
.article-card {
  background: var(--bg-card);
  border-radius: 8px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 160px 1fr;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.article-thumb {
  position: relative;
  height: 100%;
  min-height: 120px;
  overflow: hidden;
  background: var(--bg-tint);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb img { transform: scale(1.05); }

.article-category {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-category:empty { display: none; }

.article-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  transition: color 0.2s;
  letter-spacing: -0.2px;
}

.article-title a:hover { color: var(--primary); }

.article-desc {
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.article-desc:empty { display: none; min-height: 0; }

.article-meta {
  display: flex;
  gap: 14px;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: auto;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   SIDEBAR - 轻量侧栏
   ============================================ */
.sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.widget-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.widget-title i { color: var(--primary-light); }

.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 12px;
  transition: color 0.2s;
}

.sidebar-list a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.sidebar-list a:hover { color: var(--primary); }
.sidebar-list a:hover::before { transform: scale(1.5); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-item {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-tint);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-light);
  transition: all 0.2s;
}

.tag-item:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================
   FOOTER - 极简页脚
   ============================================ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
}

.footer-bottom {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.footer-bottom a { color: var(--primary); }
.footer-bottom a:hover { text-decoration: underline; }

/* ============================================
   ARTICLE DETAIL
   ============================================ */
.article-detail {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 28px;
}

.detail-header {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.detail-category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.detail-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.detail-meta {
  display: flex;
  gap: 18px;
  color: var(--text-muted);
  font-size: 12px;
}

.detail-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-content {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
}

.detail-content p { margin-bottom: 14px; }

.detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 14px 0;
}

.detail-tags {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-tags i { color: var(--primary-light); }
.detail-tags a { color: var(--text-light); padding: 2px 8px; background: var(--bg-tint); border-radius: 4px; font-size: 11px; margin-left: 6px; }
.detail-tags a:hover { background: var(--primary); color: #fff; }

/* ============================================
   RELATED ARTICLES
   ============================================ */
.related-articles { margin-top: 28px; }

.related-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.related-title i { color: var(--primary-light); }

.related-articles .content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.related-articles .article-card { margin-bottom: 0; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 36px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.pagination a, .pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination .page-num-current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.99);
    padding: 70px 24px 24px;
    z-index: 99;
  }

  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { color: var(--text); font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
  .main-nav a:hover { color: var(--primary); background: none; }
  .nav-toggle { display: block; z-index: 101; }

  .article-card { grid-template-columns: 1fr; }
  .article-thumb { height: 160px; min-height: auto; }
}

@media (max-width: 640px) {
  .article-content { padding: 14px 16px; }
  .article-title { font-size: 14px; }
  .article-thumb { height: 140px; }
  .article-detail { padding: 20px; }
  .detail-title { font-size: 20px; }
}
