/*
Theme Name: My Basic Theme
Theme URI: https://example.com/my-basic-theme
Author: Dong xiannan
Author URI: https://example.com
Description: A basic WordPress theme for learning and development.
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-basic-theme
*/

/* WordPress主题特定样式 - 与静态网站CSS兼容 */

/* 确保WordPress内容与静态网站样式兼容 */
.container-component {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* 文章和页面样式 */
.post-item, .page-item, .single-post-item, .archive-post-item, .search-result-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.post-item h2, .page-item h1, .single-post-item h1, .archive-post-item h2, .search-result-item h2 {
    margin-top: 0;
    color: #333;
}

.post-item h2 a, .archive-post-item h2 a, .search-result-item h2 a {
    color: #E87607;
    text-decoration: none;
}

.post-item h2 a:hover, .archive-post-item h2 a:hover, .search-result-item h2 a:hover {
    color: #d06500;
    text-decoration: underline;
}

.post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.entry {
    line-height: 1.6;
    color: #333;
}

.post-thumbnail {
    margin-bottom: 20px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 分页样式 */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #E87607;
    color: #fff;
    border-color: #E87607;
}

/* 搜索表单样式 */
.search-form {
    margin: 20px 0;
}

.search-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-form button {
    background: #E87607;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.search-form button:hover {
    background: #d06500;
}

/* 小工具样式 */
.widget {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.widget-title {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #E87607;
    padding-bottom: 10px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget a {
    color: #333;
    text-decoration: none;
}

.widget a:hover {
    color: #E87607;
}

/* 导航菜单样式 */
.mod-menu.mod-list.nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mod-menu.mod-list.nav li {
    display: inline-block;
    margin: 0 15px;
}

.mod-menu.mod-list.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
}

.mod-menu.mod-list.nav a:hover {
    color: #E87607;
}

/* 页脚样式 */
.background-footer {
    background: #35424a;
    color: #fff;
    padding: 30px 0;
}

.container-footer {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-1, .footer-2 {
    padding: 20px 0;
}

.copyright {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .post-item, .page-item, .single-post-item, .archive-post-item, .search-result-item {
        padding: 15px;
    }
    
    .mod-menu.mod-list.nav li {
        display: block;
        margin: 10px 0;
    }
    
    .container-footer {
        width: 95%;
    }
}

/* WordPress编辑器样式 */
.editor-styles-wrapper {
    font-family: 'Gilroy', Arial, sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3 {
    color: #333;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.editor-styles-wrapper a {
    color: #E87607;
}

.editor-styles-wrapper img {
    max-width: 100%;
    height: auto;
}