/*
Theme Name: 漫画资讯站
Theme URI: https://manhuaqu.cn
Author: 漫画资讯站团队
Author URI: https://manhuaqu.cn
Description: 漫画资讯站WordPress主题 - 专注于漫画评测、资讯、词条的原创内容平台
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manhuaqu
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

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

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

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

/* 导航 */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: #555;
    font-size: 16px;
    padding: 5px 0;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.current {
    color: #007bff;
}

/* 搜索框 */
.header-search {
    display: flex;
}

.header-search input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.header-search button {
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 用户菜单 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu a {
    color: #555;
}

/* 主内容区 */
.site-content {
    padding: 30px 0;
}

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

/* 卡片 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.card-body {
    padding: 20px;
}

/* 漫画卡片 */
.manhua-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.manhua-card:last-child {
    border-bottom: none;
}

.manhua-cover {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
}

.manhua-info {
    flex: 1;
}

.manhua-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.manhua-title a {
    color: #333;
}

.manhua-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.manhua-desc {
    color: #555;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    margin-right: 5px;
    margin-bottom: 5px;
}

.tag-country {
    background-color: #e3f2fd;
    color: #1976d2;
}

.tag-status {
    background-color: #e8f5e9;
    color: #388e3c;
}

.tag-genre {
    background-color: #fff3e0;
    color: #f57c00;
}

/* 评分 */
.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-stars {
    color: #ffc107;
}

.rating-score {
    font-size: 18px;
    font-weight: bold;
    color: #ff6b00;
}

/* 评论卡片 */
.review-card {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.review-author {
    font-weight: bold;
}

.review-date {
    color: #999;
    font-size: 12px;
}

.review-content {
    color: #555;
    line-height: 1.8;
}

/* 侧边栏 */
.widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.widget-title {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: bold;
}

.widget-content {
    padding: 15px 20px;
}

/* 排行榜 */
.rank-list {
    list-style: none;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
}

.rank-num.top {
    background-color: #ff6b00;
}

.rank-title {
    flex: 1;
}

.rank-title a {
    color: #333;
}

/* 页脚 */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
}

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

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

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* 响应式 */
@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .header-inner {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .manhua-card {
        flex-direction: column;
    }
    
    .manhua-cover {
        width: 100%;
        height: 200px;
    }
}
