/*
Theme Name: 食疗家 Theme
Theme URI: http://shqslp.com
Author: Creative Hub
Author URI: http://shqslp.com
Description: 高性能健康养生内容展示主题，简洁大气，SEO 深度优化。
Version: 3.6.52
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fskxbk
Tags: blog, news, chinese, seo, custom-menu, featured-images, translation-ready
*/

/* ===== 重置与全局 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #fff; color: #333; font-family: "Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif; font-size: 14px; line-height: 1.7; }
a { color: #c53030; text-decoration: none; transition: all .2s; }
a:hover { color: #9b2c2c; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== 顶部导航 ===== */
.dp-topbar { background: #1a202c; color: #a0aec0; font-size: 12px; }
.dp-topbar .inner { max-width: 1100px; margin: 0 auto; padding: 6px 20px; display: flex; justify-content: space-between; }
.dp-topbar a { color: #a0aec0; margin: 0 6px; }
.dp-topbar a:hover { color: #f6e05e; }

.dp-header { background: #fff; border-bottom: 1px solid #e2e8f0; }
.dp-header .inner { max-width: 1100px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; }
.dp-logo { font-size: 30px; font-weight: bold; color: #1a202c; font-family: Georgia, serif; margin-right: 40px; }
.dp-logo a { color: #1a202c; }
.dp-logo small { color: #c53030; font-size: 11px; font-weight: normal; margin-left: 6px; text-transform: uppercase; letter-spacing: 1px; }
.dp-search { flex: 1; max-width: 340px; position: relative; }
.dp-search input[type=search] { width: 100%; height: 36px; padding: 0 40px 0 14px; border: 1px solid #cbd5e0; border-radius: 0; outline: none; font-size: 13px; background: #f7fafc; }
.dp-search input[type=search]:focus { background: #fff; border-color: #c53030; }
.dp-search button { position: absolute; right: 0; top: 0; height: 36px; width: 36px; border: 0; background: #c53030; color: #fff; cursor: pointer; font-size: 13px; }
.dp-header .right { margin-left: auto; }
.dp-header .right a { color: #4a5568; margin: 0 10px; font-size: 14px; }

/* ===== 主导航 ===== */
.dp-nav { background: #1a202c; }
.dp-nav .inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.dp-nav ul { display: flex; }
.dp-nav li { position: relative; }
.dp-nav a { display: block; color: #e2e8f0; padding: 11px 20px; font-size: 14px; letter-spacing: 1px; }
.dp-nav a:hover, .dp-nav .current-menu-item > a { background: #c53030; color: #fff; }

/* ===== 主体布局 ===== */
.dp-wrap { max-width: 1100px; margin: 28px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
@media (max-width: 960px) { .dp-wrap { grid-template-columns: 1fr; } .dp-side { order: 2; } }

/* ===== 首页焦点轮播 ===== */
.dp-hero { margin-bottom: 28px; }
.dp-hero .hero-main { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
@media (max-width: 640px) { .dp-hero .hero-main { grid-template-columns: 1fr; } }
.dp-hero .hero-big { position: relative; height: 320px; overflow: hidden; border-radius: 4px; }
.dp-hero .hero-big img { width: 100%; height: 100%; object-fit: cover; }
.dp-hero .hero-big .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); padding: 20px; }
.dp-hero .hero-big .overlay h2 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.dp-hero .hero-big .overlay span { color: #ccc; font-size: 12px; }
.dp-hero .hero-small { display: flex; flex-direction: column; gap: 16px; }
.dp-hero .hero-small .item { display: flex; gap: 12px; align-items: center; }
.dp-hero .hero-small .item img { width: 100px; height: 70px; object-fit: cover; border-radius: 4px; }
.dp-hero .hero-small .item h3 { font-size: 14px; line-height: 1.5; color: #1a202c; }
.dp-hero .hero-small .item h3 a:hover { color: #c53030; }
.dp-hero .hero-small .item span { color: #a0aec0; font-size: 11px; margin-top: 4px; display: block; }

/* ===== 列表：左图右文 ===== */
.dp-list .list-header { font-size: 18px; font-weight: bold; color: #1a202c; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #1a202c; }
.dp-list .dp-post { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid #edf2f7; }
.dp-list .dp-post:last-child { border-bottom: 0; }
.dp-list .dp-thumb { width: 200px; height: 130px; flex-shrink: 0; overflow: hidden; border-radius: 4px; }
.dp-list .dp-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.dp-list .dp-post:hover .dp-thumb img { transform: scale(1.03); }
.dp-list .dp-info { flex: 1; }
.dp-list .dp-info h2 { font-size: 17px; margin-bottom: 8px; line-height: 1.5; }
.dp-list .dp-info h2 a { color: #1a202c; }
.dp-list .dp-info h2 a:hover { color: #c53030; }
.dp-list .dp-meta { color: #a0aec0; font-size: 12px; margin-bottom: 8px; }
.dp-list .dp-meta span { margin-right: 12px; }
.dp-list .dp-excerpt { color: #718096; font-size: 13px; line-height: 1.7; }

/* ===== 单篇文章 ===== */
.dp-single { background: #fff; padding: 36px; border: 1px solid #e2e8f0; }
.dp-single h1.dp-title { font-size: 28px; color: #1a202c; margin-bottom: 14px; line-height: 1.4; font-family: Georgia, serif; }
.dp-single .dp-meta { color: #a0aec0; font-size: 13px; padding-bottom: 14px; border-bottom: 1px solid #e2e8f0; margin-bottom: 20px; }
.dp-single .dp-meta span { margin-right: 14px; }
.dp-content { font-size: 15px; line-height: 1.9; color: #333; }
.dp-content p { margin-bottom: 16px; }
.dp-content h2 { font-size: 20px; color: #1a202c; margin: 24px 0 12px; padding-bottom: 6px; border-bottom: 1px solid #e2e8f0; font-family: Georgia, serif; }
.dp-content h3 { font-size: 17px; color: #4a5568; margin: 18px 0 10px; }
.dp-content blockquote { background: #fffaf0; border-left: 3px solid #c53030; padding: 12px 16px; margin: 16px 0; color: #555; font-style: italic; }
.dp-content ul, .dp-content ol { margin: 10px 0 16px 30px; }
.dp-content ul li { list-style: disc; margin-bottom: 6px; }
.dp-content strong { color: #c53030; }

/* ===== 侧栏 ===== */
.dp-side .widget { background: #f7fafc; border: 1px solid #e2e8f0; margin-bottom: 20px; }
.dp-side .widget h3 { background: #1a202c; color: #fff; font-size: 14px; padding: 10px 16px; letter-spacing: 1px; }
.dp-side .widget ul { padding: 12px 16px; }
.dp-side .widget li { padding: 8px 0; border-bottom: 1px dotted #e2e8f0; font-size: 13px; }
.dp-side .widget li:last-child { border-bottom: 0; }
.dp-side .widget a { color: #4a5568; }
.dp-side .widget a:hover { color: #c53030; }
.dp-tag-cloud { padding: 12px 16px; }
.dp-tag-cloud a { display: inline-block; background: #fff; color: #718096; padding: 4px 10px; margin: 4px 4px 4px 0; border: 1px solid #e2e8f0; font-size: 12px !important; }
.dp-tag-cloud a:hover { background: #c53030; color: #fff; border-color: #c53030; }

/* ===== 分页 ===== */
.dp-pagination { text-align: center; padding: 24px 0; }
.dp-pagination a, .dp-pagination .current { display: inline-block; padding: 6px 12px; margin: 0 3px; background: #fff; border: 1px solid #e2e8f0; color: #4a5568; }
.dp-pagination .current, .dp-pagination a:hover { background: #1a202c; color: #fff; border-color: #1a202c; }

/* ===== 页脚 ===== */
.dp-footer { background: #1a202c; color: #718096; text-align: center; padding: 30px 20px; font-size: 13px; margin-top: 40px; }
.dp-footer a { color: #f6e05e; }
.dp-footer p { margin: 6px 0; }

/* ===== 评论区简化 ===== */
.comments-area { background: #fff; padding: 20px; border: 1px solid #e2e8f0; margin-top: 20px; }
.comments-area h3 { font-size: 17px; margin-bottom: 12px; }
