@charset "utf-8";
/* ============================================
   xudag.com - 瑞士国际风格 + 仪表盘布局
   风格: S(瑞士国际) + G(仪表盘式)
   色彩: 11(高级灰 #a0aec0/#b2f5ea/#fed7e2)
   ============================================ */

:root {
  --primary: #2d3748;
  --secondary: #4a5568;
  --accent: #38b2ac;
  --accent-light: #b2f5ea;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --bg-dark: #f7fafc;
  --bg-card: #ffffff;
  --bg-light: #edf2f7;
  --bg-gray: #e2e8f0;
  --text-dark: #2d3748;
  --text-light: #718096;
  --text-muted: #a0aec0;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(45, 55, 72, 0.08);
  --shadow-lg: 0 8px 30px rgba(45, 55, 72, 0.12);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
}

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

/* ============================================
   头部 - 简洁水平
   ============================================ */
.header { background: var(--bg-card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.top_header { max-width: 1400px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.top_header a#logo img { height: 100px; }

.nav-warp { background: var(--bg-card); border-bottom: 2px solid var(--border); }
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; padding: 0 24px; }
.nav-item { padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--text-light); transition: all 0.25s ease; border-bottom: 3px solid transparent; }
.nav-item:first-child { color: var(--accent); border-bottom-color: var(--accent); }
.nav-item:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ============================================
   仪表盘卡片网格
   ============================================ */
.dashboard-section { padding: 40px 24px; background: var(--bg-dark); }
.dashboard-container { max-width: 1400px; margin: 0 auto; }
.dashboard-header { margin-bottom: 24px; }
.dashboard-header h2 { font-size: 22px; font-weight: 700; color: var(--text-dark); }

.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.dashboard-card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.25s ease; }
.dashboard-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.dashboard-card-img { height: 160px; background-size: cover; background-position: center; border-radius: var(--radius-sm); margin-bottom: 16px; position: relative; overflow: hidden; }
.dashboard-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(45,55,72,0.4) 0%, transparent 50%); }
.dashboard-card-cat { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; border-radius: 20px; }
.dashboard-card-title { font-size: 15px; 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; }
.dashboard-card-title:hover { color: var(--accent); }
.dashboard-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.dashboard-card-meta i { margin-right: 4px; }

/* ============================================
   三栏布局
   ============================================ */
.three-col-section { padding: 0 24px 40px; background: var(--bg-dark); }
.three-col-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: 24px; }

/* 主内容区 */
.main-col { min-width: 0; }
.section-box { background: var(--bg-card); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.section-box-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.section-box-title { font-size: 18px; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
.section-box-title i { color: var(--accent); }
.section-box-more { font-size: 13px; color: var(--text-muted); }
.section-box-more:hover { color: var(--accent); }

/* 列表样式 */
.list-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); transition: all 0.25s ease; }
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--bg-light); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.list-item-img { width: 120px; height: 80px; background-size: cover; background-position: center; border-radius: var(--radius-sm); flex-shrink: 0; }
.list-item-info { flex: 1; min-width: 0; }
.list-item-title { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-item-title:hover { color: var(--accent); }
.list-item-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.list-item-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); }
.list-item-meta i { margin-right: 3px; }

/* 纯净列表 */
.pure-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.pure-list li:last-child { border-bottom: none; }
.pure-list li::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.pure-list a { flex: 1; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pure-list a:hover { color: var(--accent); }
.pure-list span { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

/* 数字排名列表 */
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.rank-list li:last-child { border-bottom: none; }
.rank-num { width: 24px; height: 24px; background: var(--bg-light); color: var(--text-muted); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.rank-num.top { background: var(--accent); color: #fff; }
.rank-list a { flex: 1; font-size: 13px; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rank-list a:hover { color: var(--accent); }

/* 中间栏 */
.mid-col { }
.mid-col .section-box { border-top: 3px solid var(--accent); }

/* 右侧栏 */
.side-col { }
.side-col .section-box { border-top: 3px solid var(--secondary); }

/* 标签列表 */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { padding: 6px 14px; background: var(--bg-light); color: var(--text-light); font-size: 12px; border-radius: 20px; transition: all 0.25s ease; }
.tag-item:hover { background: var(--accent); color: #fff; }

/* ============================================
   全宽图片区
   ============================================ */
.fullimg-section { padding: 40px 24px; background: var(--bg-card); }
.fullimg-container { max-width: 1400px; margin: 0 auto; }
.fullimg-header { text-align: center; margin-bottom: 24px; }
.fullimg-header h2 { font-size: 22px; font-weight: 700; color: var(--text-dark); }

.fullimg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fullimg-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.25s ease; }
.fullimg-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.fullimg-item-img { height: 180px; background-size: cover; background-position: center; position: relative; }
.fullimg-item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(45,55,72,0.8) 0%, transparent 60%); display: flex; align-items: flex-end; padding: 16px; }
.fullimg-item-title { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.4; }

/* ============================================
   页脚
   ============================================ */
.footer { background: var(--bg-card); padding: 30px 24px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1400px; margin: 0 auto; text-align: center; }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-copy a { color: var(--accent); }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1200px) {
  .dashboard-grid { grid-template-columns: repeat(3, 1fr); }
  .three-col-container { grid-template-columns: 1fr 280px; }
  .side-col { display: none; }
}
@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col-container { grid-template-columns: 1fr; }
  .fullimg-grid { grid-template-columns: 1fr; }
}

/* ============================================
   列表页样式
   ============================================ */
.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.25s 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(--accent); }
.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(--accent); }
.list-sidebar { position: sticky; top: 80px; height: fit-content; }
.sidebar-card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.sidebar-card h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); display: flex; align-items: center; gap: 8px; }
.sidebar-card h4 i { color: var(--accent); }
.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(--accent); }
.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.25s ease; }
.pagination a:hover, .pagination .active { background: var(--accent); color: #fff; border-color: var(--accent); }

.page-header { background: var(--bg-card); padding: 40px 0; border-bottom: 1px 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(--accent); }
.content-wrapper { background: var(--bg-dark); 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(--accent); 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(--accent); }
.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(--accent); }
.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(--accent); 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(--accent); display: flex; align-items: center; gap: 8px; }
.related-title i { color: var(--accent); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { border-radius: var(--radius); overflow: hidden; transition: all 0.25s 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(--accent); }
.related-info span { font-size: 12px; color: var(--text-muted); }
.related-info span i { margin-right: 4px; color: var(--accent); }

@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; }
}
