/*
Theme Name: TokCost - 大模型 Token 价格对比 最新 LLM Pricing
Theme URI: https://tokcost.com
Author: xxx
Description: AI大模型Token价格查询网站，WordPress主题
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Inter", system-ui, sans-serif;
    background: #f9fafb;
    color: #111827;
    line-height: 1.7;
}
a {
    text-decoration: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航 */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 99;
}
.nav {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #165DFF;
}
.menu a {
    margin-left: 24px;
    color: #333;
}
.menu a:hover {
    color: #165DFF;
}

/* 渐变 Banner */
.banner {
    background: linear-gradient(to right, #165DFF, #3b82f6);
    color: #fff;
    padding: 70px 0;
    text-align: center;
}
.banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
}
.search-box {
    max-width: 700px;
    margin: 30px auto 0;
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 50px;
    border: none;
    outline: none;
    font-size: 16px;
}

/* 模型卡片 */
.model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}
.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: #111;
}

/* 文章列表 */
.article-list {
    margin: 40px 0;
}
.article-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}
.article-item h2 {
    font-size: 20px;
    margin-bottom: 8px;
}
.article-item a {
    color: #165DFF;
}

/* 底部 */
footer {
    background: #111827;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}
/* 文章详情页优化 */
.post-detail {
  background: #fff;
  padding: 40px 42px;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.04);
  margin-bottom: 30px;
}

/* 文章标题 */
.post-detail h1.post-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* 发布时间 */
.post-detail .post-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 30px;
}

/* 正文基础 */
.post-detail .post-content {
  font-size: 16px;
  line-height: 1.85;
  color: #333;
}

/* 段落间距 */
.post-detail .post-content p {
  margin-bottom: 1.4em;
}

/* 标题层级统一 */
.post-detail .post-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 16px;
  color: #222;
}
.post-detail .post-content h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 30px 0 14px;
}

/* 列表美化 */
.post-detail .post-content ul,
.post-detail .post-content ol {
  padding-left: 22px;
  margin: 20px 0;
}
.post-detail .post-content li {
  margin-bottom: 10px;
}

/* 图片自适应 */
.post-detail .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 22px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 链接样式 */
.post-detail .post-content a {
  color: #007bff;
  text-decoration: none;
  border-bottom: 1px solid #cce5ff;
}
.post-detail .post-content a:hover {
  border-bottom: 1px solid #007bff;
}

/* 代码块轻微样式 */
.post-detail .post-content pre,
.post-detail .post-content code {
  background: #f7f7f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.post-detail .post-content pre {
  padding: 16px;
  overflow-x: auto;
  line-height: 1.6;
}
/* 右侧边栏 */
.col-md-4 {
  padding-left: 20px;
}

.widget {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.widget-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

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

.widget a {
  color: #333;
  text-decoration: none;
}

.widget a:hover {
  color: #007bff;
}

/* 分类页样式 */
.category-header {
    margin-bottom: 30px;
}
.category-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}
.category-description {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* 分类文章列表 */
.category-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.category-post-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.post-thumbnail img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.post-info {
    flex: 1;
}
.entry-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.entry-title a {
    color: #111827;
}
.entry-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}
.entry-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}
.read-more {
    color: #165DFF;
    font-size: 14px;
}

/* 分页 */
.pagination {
    margin-top: 40px;
    text-align: center;
}
.pagination .page-numbers {
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 6px;
    background: #fff;
    color: #333;
}
.pagination .current {
    background: #165DFF;
    color: #fff;
}

/* 分类/标签/归档 通用 */
.category-header, .tag-header, .archive-header {
    margin-bottom: 30px;
}
.category-title, .tag-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}
.category-description, .tag-description {
    color: #666;
    font-size: 15px;
}

/* 文章列表卡片 */
.category-posts-list, .tag-posts-list, .archive-posts-list, .search-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.category-post-item, .tag-post-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.post-thumbnail img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.post-info {
    flex: 1;
}
.entry-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.entry-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}
.entry-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}
.read-more {
    color: #165DFF;
}

/* 分页 */
.pagination {
    margin-top: 40px;
    text-align: center;
}
.pagination .page-numbers {
    padding: 8px 12px;
    margin: 0 4px;
    background: #fff;
    border-radius: 6px;
    color: #333;
}
.pagination .current {
    background: #165DFF;
    color: #fff;
}

/* 搜索页 */
.search-header {
    margin-bottom: 30px;
}
.search-item {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* 404 页面 */
.container-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}
.box-404 h1 {
    font-size: 80px;
    color: #165DFF;
}
.box-404 h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
.btn-home {
    display: inline-block;
    padding: 10px 20px;
    background: #165DFF;
    color: #fff;
    border-radius: 8px;
    margin-top: 20px;
}

/* 评论 */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.comments-title {
    font-size: 20px;
    margin-bottom: 20px;
}
.comment-list {
    list-style: none;
    padding-left: 0;
}
.comment-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* 作者页 */
.author-header {
    text-align: center;
    margin-bottom: 30px;
}
.author-header img {
    border-radius: 50%;
    margin-bottom: 15px;
}
.author-post-item {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}