/*
Theme Name: 健康养生主题
Theme URI: https://example.com/health-wellness-theme
Author: Theme Developer
Author URI: https://example.com
Description: 一个专为健康养生网站设计的WordPress主题，具有清新自然的视觉风格，响应式设计，适合健康博客、养生资讯、健身指导等网站使用。
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: health-wellness
Tags: health, wellness, blog, responsive, custom-menu, featured-images, theme-options
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5d63;
    --secondary-color: #8BC34A;
    --accent-color: #FF9800;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Noto Sans TC", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.site-branding h1 {
    font-size: 28px;
    color: #1a5d63;
    margin: 0;
    font-family: "SimSun", "Songti SC", "Times New Roman", Times, serif;
}

.site-branding h1 a {
    color: #1a5d63;
}

.site-description {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
    font-family: "SimSun", "Songti SC", "Times New Roman", Times, serif;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation li a {
    display: block;
    padding: 10px 0;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-section h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

/* Main Content Layout */
.site-content {
    padding: 60px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Post Card Styles */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-content-wrapper {
    padding: 25px;
}

.entry-header {
    margin-bottom: 15px;
}

.entry-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.entry-title a {
    color: var(--text-dark);
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.entry-meta span {
    margin-right: 15px;
}

.entry-summary {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 25px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Sidebar Styles */
.widget-area {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.widget {
    margin-bottom: 35px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.widget ul li a {
    color: var(--text-dark);
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* Single Post Styles */
.single-post .post-card {
    padding: 40px;
}

.single-post .entry-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.single-post .entry-content {
    font-size: 18px;
    line-height: 1.8;
}

.single-post .entry-content p {
    margin-bottom: 20px;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

/* Article appearance customization - Added for user request */
.post, .page, .entry-content, .post-content {
    /* 默认样式，会被functions.php中的内联CSS覆盖 */
}

/* Footer Styles */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-widget p,
.footer-widget li {
    color: #CCCCCC;
    margin-bottom: 10px;
}

.footer-widget a {
    color: #CCCCCC;
}

.footer-widget a:hover {
    color: var(--primary-color);
}

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #555;
    color: #999;
}

/* Pagination Styles */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--white);
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--white);
}

.pagination a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Comments Styles */
.comments-area {
    margin-top: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.comment-respond {
    margin-top: 30px;
}

.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 15px;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .widget-area {
        order: 2;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .hero-section h2 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .site-branding {
        margin-bottom: 20px;
    }
}

/* Utility Classes */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}