/*
Theme Name: 掘金风格首页主题
Theme URI: https://example.com/
Author: Codex
Author URI: https://example.com/
Description: 基于 Tailwind CDN 与 DaisyUI CDN 的掘金首页风格 WordPress 主题，首页包含频道侧栏、推荐文章流、文章榜与作者榜。
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: juejin-style
Tags: blog, news, three-columns, custom-logo, featured-images
*/

html {
  background: #f2f3f5;
}

body {
  min-height: 100vh;
  background: #f2f3f5;
  color: #252933;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

a {
  text-decoration: none;
}

.site-shell {
  width: min(1200px, calc(100vw - 40px));
}

.top-shell {
  width: min(1220px, calc(100vw - 40px));
}

.logo-mark {
  width: 25px;
  height: 25px;
}

.logo-mark path {
  stroke: #1e80ff;
  stroke-width: 3.2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 60px;
  color: #515767;
  font-size: 14px;
  white-space: nowrap;
}

.nav-link.active,
.nav-link:hover,
.current-menu-item > a {
  color: #1e80ff;
}

.article-card {
  min-height: 99px;
}

.text-two-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-one-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-thumb {
  background:
    linear-gradient(140deg, rgba(30, 128, 255, 0.16), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.7) 0 2px, transparent 2px 13px),
    repeating-linear-gradient(90deg, rgba(30, 128, 255, 0.16) 0 2px, transparent 2px 20px),
    #eef5ff;
}

.dark-thumb {
  background: radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.62), transparent 10%), linear-gradient(135deg, #27364a, #5e6a74 45%, #2b3442);
}

.rank-num {
  width: 20px;
  flex: 0 0 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.creator-btn {
  background: #1e80ff !important;
  border-color: #1e80ff !important;
  color: #ffffff !important;
}

.creator-btn:hover {
  background: #1171ee !important;
  border-color: #1171ee !important;
}

.juejin-menu ul {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.juejin-menu a {
  display: inline-flex;
  align-items: center;
  height: 60px;
  color: #515767;
  font-size: 14px;
  white-space: nowrap;
}

.juejin-menu a:hover {
  color: #1e80ff;
}

.juejin-content :where(p, ul, ol, blockquote, pre, figure) {
  margin-top: 1rem;
}

.juejin-content :where(h1, h2, h3) {
  margin-top: 1.6rem;
  font-weight: 700;
  color: #252933;
}

.juejin-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.juejin-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

.juejin-pagination .page-numbers {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e6eb;
  border-radius: 3px;
  background: #ffffff;
  color: #515767;
  font-size: 13px;
}

.juejin-pagination .current,
.juejin-pagination .page-numbers:hover {
  border-color: #1e80ff;
  color: #1e80ff;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .site-shell,
  .top-shell {
    width: min(100%, calc(100vw - 24px));
  }
}
