/*
Theme Name: Feiyilianmeng
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A modern WordPress theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8.3
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: feiyilianmeng
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

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

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FAF9F6;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.font-display {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Selection Color */
::selection {
    background-color: #EA2831;
    color: #fff;
}

::-moz-selection {
    background-color: #EA2831;
    color: #fff;
}

/* Global Link Styles */
a {
    transition: color 0.2s ease;
}

a:hover {
    color: #EA2831 !important;
}

/* Ensure links in content areas also get hover effect */
.content-area a:hover,
.post-content a:hover,
.entry-content a:hover,
.widget a:hover {
    color: #EA2831 !important;
}

/* Navigation Menu Active State */
#primary-menu .current-menu-item > a,
#primary-menu .current-page-ancestor > a {
    color: #EA2831 !important;
}

#primary-menu .current-menu-item > a:hover,
#primary-menu .current-page-ancestor > a:hover {
    color: #EA2831 !important;
}

/* Page Container */
#page.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
}

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

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

.site-title {
    font-size: 2rem;
    margin: 0;
}

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

.site-description {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Navigation */
.main-navigation {
    margin-top: 1rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* Main Content */
.site-main {
    padding: 2rem 0;
    flex: 1;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Posts */
.post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.post-title a:hover {
    color: #0073aa;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content {
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #0073aa;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 0.5rem;
}

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

.widget a:hover {
    color: #0073aa;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
}

