:root {
  --wl-primary: #1258a6;
  --wl-dark: #0b3d73;
  --wl-bright: #1e7bd6;
  --wl-light: #eaf2fb;
  --wl-accent: #f08a24;
  --wl-border: #dbe3ec;
  --wl-text: #333;
  --wl-muted: #888;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: var(--wl-text); background: #fff; font-size: 14px; line-height: 1.6; }
a { color: var(--wl-primary); text-decoration: none; }
a:hover { color: var(--wl-bright); }
img { max-width: 100%; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 10px; }

.wl-wrap { width: 1200px; max-width: calc(100% - 24px); margin: 0 auto; }

.wl-topbar { background: #f5f7fa; border-bottom: 1px solid var(--wl-border); height: 34px; line-height: 34px; font-size: 12px; color: var(--wl-muted); }
.wl-topbar-inner { display: flex; justify-content: space-between; }
.wl-topbar a { color: var(--wl-muted); }
.wl-sep { margin: 0 8px; color: #ccc; }

.wl-header { padding: 18px 0; }
.wl-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wl-logo a { display: flex; align-items: center; gap: 10px; color: var(--wl-dark); }
.wl-logo-mark { display: inline-block; width: 46px; height: 46px; line-height: 46px; text-align: center; background: var(--wl-primary); color: #fff; border-radius: 6px; font-weight: 700; font-size: 20px; }
.wl-logo-text { font-size: 22px; font-weight: 700; }
.wl-header-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wl-quick { font-size: 12px; color: var(--wl-muted); }
.wl-search { display: flex; height: 34px; }
.wl-search input { width: 280px; padding: 0 10px; border: 1px solid var(--wl-primary); border-right: 0; outline: none; }
.wl-search button { padding: 0 18px; border: 0; background: var(--wl-primary); color: #fff; cursor: pointer; }

.wl-nav { background: var(--wl-light); border-top: 2px solid var(--wl-primary); }
.wl-nav-list { display: flex; flex-wrap: wrap; }
.wl-nav-list li a { display: block; padding: 10px 14px; color: var(--wl-dark); font-size: 15px; }
.wl-nav-list li a:hover { background: var(--wl-primary); color: #fff; }

.wl-ticker { background: var(--wl-dark); color: #fff; height: 38px; line-height: 38px; margin-bottom: 12px; }
.wl-ticker-inner { display: flex; gap: 12px; font-size: 13px; }
.wl-ticker strong { color: var(--wl-accent); white-space: nowrap; }
.wl-ticker-list { display: flex; gap: 26px; overflow: hidden; white-space: nowrap; }
.wl-ticker-list a { color: #fff; }

.wl-ad { margin: 12px 0; line-height: 0; overflow: hidden; }
.wl-ad img { width: 100%; height: auto; display: block; }
.wl-ad-side { line-height: 0; }
.wl-ad-side img { width: 100%; height: auto; display: block; }

.wl-focus { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.wl-slider { position: relative; overflow: hidden; height: 340px; background: #f4f7fb; }
.wl-slider-pics { display: flex; height: 100%; transition: transform .45s ease; }
.wl-slider-pics li { flex: 0 0 100%; height: 100%; position: relative; }
.wl-slider-pics a, .wl-slider-pics img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wl-slider-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: rgba(11,61,115,.75); color: #fff; font-size: 15px; }
.wl-slider-dots { position: absolute; bottom: 50px; left: 14px; display: flex; gap: 6px; }
.wl-slider-dots li { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.wl-slider-dots li.active { background: var(--wl-accent); }
.wl-focus-list { border: 1px solid var(--wl-border); padding: 12px; }
.wl-focus-list h2, .wl-box h3 { font-size: 16px; color: var(--wl-dark); border-left: 4px solid var(--wl-primary); padding-left: 8px; margin-bottom: 10px; }
.wl-focus-list li { padding: 8px 0; border-bottom: 1px dotted var(--wl-border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wl-main-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; align-items: start; gap: 16px; margin: 12px 0; }
.wl-main-left, .wl-main-right { min-width: 0; }
.wl-box { border: 1px solid var(--wl-border); padding: 12px; margin-bottom: 12px; }
.wl-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wl-gallery-item img { width: 100%; height: 80px; object-fit: cover; }
.wl-gallery-item span { display: block; font-size: 12px; line-height: 1.4; }
.wl-side-card { display: block; margin-bottom: 10px; font-size: 13px; }
.wl-side-card img { width: 100%; height: 130px; object-fit: cover; }
.wl-rank li { padding: 6px 0; border-bottom: 1px dotted var(--wl-border); }

.wl-tab-head { display: flex; border-bottom: 2px solid var(--wl-primary); }
.wl-tab-head span { padding: 8px 18px; cursor: pointer; color: var(--wl-dark); }
.wl-tab-head span.active { background: var(--wl-primary); color: #fff; }
.wl-list-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--wl-border); }
.wl-list-thumb img { width: 140px; height: 95px; object-fit: cover; }
.wl-list-text h3, .wl-list-text h4 { font-size: 15px; margin-bottom: 4px; }
.wl-meta { font-size: 12px; color: var(--wl-muted); }
.wl-meta time { margin-right: 10px; }
.wl-source { color: var(--wl-muted); margin-left: 8px; }

.wl-section-title { font-size: 20px; color: var(--wl-dark); border-left: 5px solid var(--wl-primary); padding-left: 10px; margin: 24px 0 4px; }
.wl-section-hint { color: var(--wl-muted); font-size: 12px; margin-bottom: 12px; }
.wl-picks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wl-pick-card { border: 1px solid var(--wl-border); padding: 8px; }
.wl-pick-card img { width: 100%; height: 150px; object-fit: cover; }
.wl-pick-card h3 { font-size: 14px; margin-top: 8px; line-height: 1.5; }
.wl-pick-card .wl-source { display: block; font-size: 12px; margin: 6px 0; }

.wl-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
.wl-column { border-top: 2px solid var(--wl-primary); }
.wl-column h3 { font-size: 16px; padding: 8px 0; border-bottom: 1px solid var(--wl-border); }
.wl-column h3 .wl-more { float: right; font-size: 12px; font-weight: 400; }
.wl-col-lead { display: flex; gap: 10px; padding: 10px 0; }
.wl-col-lead img { width: 100px; height: 70px; object-fit: cover; }
.wl-col-lead h4 { font-size: 14px; }
.wl-col-lead p { font-size: 12px; color: var(--wl-muted); }
.wl-col-link { padding: 5px 0; border-bottom: 1px dotted var(--wl-border); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wl-empty { color: var(--wl-muted); font-size: 13px; padding: 10px 0; }

.wl-links { background: #f7f9fc; border-top: 1px solid var(--wl-border); padding: 16px 0; margin-top: 24px; }
.wl-links h4 { font-size: 14px; color: var(--wl-dark); margin-bottom: 8px; }
.wl-links-list a { margin-right: 18px; font-size: 13px; }
.wl-footer { background: var(--wl-dark); color: #c9d9ec; padding: 20px 0; text-align: center; font-size: 12px; }
.wl-footer a { color: #c9d9ec; }

.wl-archive, .wl-article { padding: 20px 0 40px; min-height: 400px; }
.wl-archive-title { font-size: 22px; color: var(--wl-dark); margin-bottom: 12px; border-bottom: 2px solid var(--wl-primary); padding-bottom: 8px; }
.wl-archive-desc { color: var(--wl-muted); }
.wl-pagination { text-align: center; margin-top: 20px; }
.wl-pagination a, .wl-pagination span { display: inline-block; padding: 5px 12px; margin: 0 3px; border: 1px solid var(--wl-border); }
.wl-breadcrumb { font-size: 12px; color: var(--wl-muted); margin-bottom: 12px; }
.wl-post h1 { font-size: 26px; color: var(--wl-dark); margin-bottom: 10px; }
.wl-post-meta { color: var(--wl-muted); font-size: 12px; border-bottom: 1px solid var(--wl-border); padding-bottom: 10px; }
/* 文章页：正文 + 右侧推荐双栏，正文内图片统一居中且不超过 600px */
.wl-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 20px; }
.wl-article-main { min-width: 0; }
.wl-article-side .wl-box { margin-bottom: 12px; }
.wl-rel-card { display: block; margin-bottom: 10px; font-size: 13px; line-height: 1.45; }
.wl-rel-card img { width: 100%; height: 90px; object-fit: cover; display: block; }
.wl-rel-card span { display: block; margin-top: 4px; }
.wl-post-thumb { max-width: 600px; margin: 0 auto 18px; }
.wl-post-thumb img { display: block; width: 100%; max-width: 600px; height: auto; margin: 0 auto; }
.wl-post-content { margin-top: 18px; font-size: 16px; line-height: 1.9; }
.wl-post-content img { display: block; max-width: 600px !important; width: auto; height: auto !important; margin: 14px auto; }
.wl-post-content p { margin-bottom: 16px; }
.wl-post-tags { margin-top: 20px; font-size: 13px; color: var(--wl-muted); }
/* 文章页底部：上一篇/下一篇 + 更多推荐 */
.wl-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.wl-post-nav-item { display: block; border: 1px solid var(--wl-border); background: #fbfdff; padding: 10px 12px; }
.wl-post-nav-item:hover { border-color: var(--wl-primary); }
.wl-post-nav-label { display: block; font-size: 12px; color: var(--wl-primary); margin-bottom: 4px; }
.wl-post-nav-item strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; }
.wl-post-nav-next { text-align: right; }
.wl-more-posts { margin-top: 26px; }
.wl-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wl-more-card { display: block; border: 1px solid var(--wl-border); overflow: hidden; }
.wl-more-card:hover { border-color: var(--wl-primary); }
.wl-more-card img { display: block; width: 100%; height: 110px; object-fit: cover; }
.wl-more-card h3 { font-size: 13px; line-height: 1.5; padding: 8px 8px 0; }
.wl-more-card time { display: block; font-size: 12px; color: var(--wl-muted); padding: 4px 8px 8px; }
.wl-article-side .wl-gallery-item img { height: 80px; }
/* 右侧 10 条热门推荐：序号 + 缩略图 + 标题，固定行高整齐排列 */
.wl-hot-box { border-top: 2px solid var(--wl-primary); }
.wl-hot-list li { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px dotted var(--wl-border); }
.wl-hot-list li:last-child { border-bottom: 0; }
.wl-hot-num { flex: 0 0 22px; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 4px; background: var(--wl-light); color: var(--wl-primary); font-size: 12px; font-weight: 700; }
.wl-hot-num.top { background: var(--wl-accent); color: #fff; }
.wl-hot-thumb { flex: 0 0 62px; line-height: 0; }
.wl-hot-thumb img { display: block; width: 62px; height: 62px; object-fit: cover; border-radius: 3px; }
.wl-hot-text { flex: 1; min-width: 0; }
.wl-hot-text a { display: block; font-size: 13px; line-height: 1.4; color: var(--wl-dark); }
.wl-hot-text a:hover { color: var(--wl-primary); }
.wl-hot-text time { display: block; font-size: 11px; color: var(--wl-muted); margin-top: 3px; }
.wl-rec-badge { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 2px; background: #fff1e2; color: var(--wl-accent); font-size: 11px; font-weight: 400; }
/* 底部更多推荐：固定卡片高度，图片与标题对齐不错位 */
.wl-more-grid { align-items: start; }
.wl-more-card { display: flex; flex-direction: column; height: 100%; }
.wl-more-card img { height: 120px; flex: 0 0 120px; }
.wl-more-card h3 { min-height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wl-more-card time { margin-top: auto; }
.wl-sitemap-cats, .wl-sitemap-posts { columns: 3; padding: 10px 0; }
.wl-sitemap-cats li, .wl-sitemap-posts li { padding: 3px 0; break-inside: avoid; }

@media (max-width: 1024px) {
  .wl-wrap { width: 100%; padding: 0 12px; }
  .wl-main-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .wl-main-right { grid-column: 1 / -1; }
  .wl-picks-grid { grid-template-columns: repeat(2, 1fr); }
  .wl-columns { grid-template-columns: repeat(2, 1fr); }
  .wl-article-layout { grid-template-columns: 1fr; }
  .wl-article-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .wl-more-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .wl-header-inner { flex-direction: column; align-items: flex-start; }
  .wl-header-side { align-items: flex-start; width: 100%; }
  .wl-search input { width: 100%; }
  .wl-focus, .wl-main-grid, .wl-columns { grid-template-columns: 1fr; }
  .wl-main-right { grid-column: auto; }
  .wl-picks-grid { grid-template-columns: 1fr; }
  .wl-ticker-list { display: block; white-space: normal; }
  .wl-sitemap-cats, .wl-sitemap-posts { columns: 1; }
  .wl-list-thumb img { width: 100px; height: 70px; }
  .wl-article-side { display: block; }
  .wl-more-grid, .wl-post-nav { grid-template-columns: 1fr; }
  .wl-post-thumb img, .wl-post-content img { max-width: 100% !important; }
}
