/*
Theme Name: Ltaaa WordPress Theme
Theme URI: https://www.ltaaa.cn/
Author: Your Name
Author URI: #
Description: A clean, responsive WordPress theme based on ltaaa.cn website style
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ltaaa
Tags: responsive, clean, simple, news, blog

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;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header Styles */
header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

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

/* Navigation Styles */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
    padding: 5px 0;
}

nav ul li a:hover {
    color: #333;
}

/* Main Content Styles */
.main-content {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

/* Content Area */
.content {
    flex: 1;
    min-width: 300px;
}

main {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px;
}

/* Post Styles */
article {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

article h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

article h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

article h2 a:hover {
    color: #007bff;
}

article .post-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

/* Sidebar Styles */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

aside {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

aside h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

aside ul {
    list-style: none;
}

aside ul li {
    margin-bottom: 10px;
}

aside ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

aside ul li a:hover {
    color: #333;
}

/* Search Form Styles */
.search-form {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    margin: 0;
}

.search-form input[type="submit"] {
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-form input[type="submit"]:hover {
    background-color: #0069d9;
}

/* Footer Styles */
footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-top: 20px;
}

.footer-content {
    text-align: center;
    color: #999;
    font-size: 14px;
}

footer a {
    color: #666;
    text-decoration: none;
}

footer a:hover {
    color: #333;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: row;
        align-items: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    nav {
        position: relative;
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-radius: 4px;
        padding: 10px;
        flex-direction: column;
        gap: 10px;
        width: 200px;
        margin-top: 10px;
        display: none;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 8px 15px;
        border-radius: 4px;
        transition: all 0.3s;
    }
    
    nav ul li a:hover {
        background-color: #f5f5f5;
        color: #333;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .container {
        padding: 0 10px;
    }
    
    header, main, aside {
        padding: 15px;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    /* 移动设备上的搜索表单 */
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form input[type="search"] {
        margin-bottom: 10px;
    }
    
    .search-form input[type="submit"] {
        align-self: flex-start;
    }
}

/* 桌面设备样式 */
@media screen and (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }
    
    nav ul {
        display: flex !important;
        position: static !important;
        background: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        flex-direction: row !important;
        width: auto !important;
        margin-top: 0 !important;
    }
    
    nav ul li {
        margin: 0 !important;
    }
    
    nav ul li a {
        display: inline !important;
        padding: 5px 0 !important;
        border-radius: 0 !important;
    }
    
    nav ul li a:hover {
        background-color: transparent !important;
        color: #333 !important;
    }
}

/* WordPress Default Classes */
.wp-block {
    max-width: 100%;
}

.entry-content {
    margin-top: 20px;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f0f0f0;
    color: #333;
}

.pagination .current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}