/* 
 * 大众养生网 - 统一样式表
 * 风格：自然、健康、活力
 * 配色：#27ae60 (生机绿), #2ecc71 (嫩草绿), #f9fdf9 (清爽底)
 */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 15px; color: #444; line-height: 1.7; background-color: #f9fdf9; }
a { text-decoration: none; color: #333; transition: all 0.2s ease-in-out; }
a:hover { color: #27ae60; }
ul { list-style: none; }
img { max-width: 100%; height: auto; border: none; vertical-align: middle; border-radius: 4px; }

.container { width: 1180px; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* Header Section */
.top-bar { background: #f1f8f1; border-bottom: 1px solid #e1eee1; padding: 8px 0; font-size: 13px; color: #666; }
.top-bar .container { display: flex; justify-content: space-between; }

.header { background: #fff; padding: 25px 0; border-bottom: 1px solid #eee; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { color: #27ae60; font-size: 36px; font-weight: 800; display: flex; align-items: center; }
.logo h1::before { content: "🍃"; margin-right: 10px; font-size: 32px; }
.logo p { color: #888; font-size: 14px; letter-spacing: 1px; }

.search-box { position: relative; width: 350px; }
.search-box input { width: 100%; padding: 10px 50px 10px 20px; border: 2px solid #27ae60; border-radius: 25px; outline: none; }
.search-box button { position: absolute; right: 5px; top: 5px; background: #27ae60; color: #fff; border: none; padding: 6px 15px; border-radius: 20px; cursor: pointer; }

/* Navigation */
.nav-wrap { background: #27ae60; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.nav { display: flex; }
.nav li a { display: block; padding: 15px 30px; color: #fff; font-size: 17px; font-weight: 600; }
.nav li a:hover, .nav li.active a { background: #2ecc71; }

/* Index Modules */
.index-main { margin-top: 25px; display: grid; grid-template-columns: 1fr 340px; gap: 30px; }

/* Slide & Focus */
.slide-area { height: 380px; background: #eee; border-radius: 8px; overflow: hidden; position: relative; margin-bottom: 30px; }
.slide-area img { width: 100%; height: 100%; object-fit: cover; }
.slide-title { position: absolute; bottom: 0; width: 100%; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; font-size: 20px; }

/* Category Blocks */
.cat-box { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 30px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); border: 1px solid #f0f5f0; }
.cat-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f1f8f1; padding-bottom: 12px; margin-bottom: 20px; }
.cat-title h3 { font-size: 22px; color: #27ae60; position: relative; padding-left: 15px; }
.cat-title h3::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 5px; background: #27ae60; border-radius: 3px; }
.cat-title .more { font-size: 14px; color: #999; }

.article-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-item { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px dashed #eee; }
.news-item:last-child { border: none; }
.news-thumb { width: 120px; height: 80px; overflow: hidden; flex-shrink: 0; }
.news-content h4 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; height: 44px; overflow: hidden; }
.news-content p { font-size: 13px; color: #888; display: none; }

/* Sidebar */
.side-card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 25px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.side-title { font-size: 18px; font-weight: bold; margin-bottom: 15px; color: #333; display: flex; align-items: center; }
.side-title::before { content: ""; width: 4px; height: 18px; background: #2ecc71; margin-right: 10px; border-radius: 2px; }

.hot-rank li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f9f9f9; }
.hot-rank span { width: 22px; height: 22px; background: #eee; text-align: center; line-height: 22px; font-size: 12px; border-radius: 4px; color: #999; }
.hot-rank li:nth-child(-n+3) span { background: #27ae60; color: #fff; }

/* List Page */
.breadcrumb { padding: 15px 0; color: #888; font-size: 14px; }
.list-main-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 30px; }
.post-list { background: #fff; border-radius: 8px; padding: 25px; }
.post-item { display: flex; gap: 25px; padding: 25px 0; border-bottom: 1px solid #f1f8f1; }
.post-item:last-child { border: none; }
.post-thumb { width: 240px; height: 160px; flex-shrink: 0; }
.post-info { flex: 1; }
.post-info h2 { font-size: 22px; margin-bottom: 15px; }
.post-info p { color: #666; font-size: 15px; margin-bottom: 15px; height: 72px; overflow: hidden; }
.post-meta { font-size: 13px; color: #aaa; }

.pages { margin-top: 40px; text-align: center; }
.pages li { display: inline-block; margin: 0 4px; }
.pages a, .pages span { padding: 8px 16px; background: #fff; border: 1px solid #e1eee1; border-radius: 4px; }
.pages .thisclass { background: #27ae60; color: #fff; border-color: #27ae60; }

/* Article Page */
.article-container { background: #fff; border-radius: 8px; padding: 40px; }
.article-header { text-align: center; border-bottom: 1px solid #f1f8f1; padding-bottom: 30px; margin-bottom: 30px; }
.article-header h1 { font-size: 32px; color: #222; margin-bottom: 20px; }
.article-info { font-size: 14px; color: #999; }
.article-info span { margin: 0 15px; }
.article-content { font-size: 18px; line-height: 1.8; color: #333; }
.article-content p { margin-bottom: 25px; }
.article-content img { display: block; margin: 20px auto; }

.article-footer { margin-top: 50px; padding-top: 30px; border-top: 1px solid #f1f8f1; }
.prev-next { display: flex; justify-content: space-between; color: #666; font-size: 15px; }

/* Footer */
.footer { background: #2c3e50; color: #ecf0f1; padding: 60px 0 30px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-logo h2 { color: #27ae60; margin-bottom: 15px; }
.footer-links h4 { margin-bottom: 20px; border-bottom: 1px solid #3e4f5f; padding-bottom: 10px; }
.footer-links a { color: #bdc3c7; display: block; margin-bottom: 10px; font-size: 14px; }
.copyright-area { border-top: 1px solid #3e4f5f; padding-top: 30px; text-align: center; font-size: 13px; color: #95a5a6; }
