/**
 * 漫画资讯站主样式
 *
 * @package manhuaqu
 */

/* 基础样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #4CAF50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --dark-color: #333;
    --light-color: #f5f5f5;
    --text-color: #333;
    --text-muted: #999;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* 重置样式 */
* {
    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: var(--text-color);
    background-color: var(--light-color);
}

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

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: var(--shadow);
    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: var(--dark-color);
}

.site-logo a {
    color: var(--dark-color);
    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: var(--transition);
}

.main-nav a:hover,
.main-nav a.current {
    color: var(--primary-color);
}

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

.header-search input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.header-search button {
    padding: 8px 16px;
    background-color: var(--primary-color);
    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: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.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: var(--dark-color);
}

.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: var(--text-muted);
    font-size: 12px;
}

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

/* 侧边栏 */
.widget {
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    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: var(--primary-color);
    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: var(--dark-color);
}

/* 页脚 */
.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 var(--border-color);
    border-radius: 4px;
    color: #555;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .current {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 表单 */
.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 var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

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

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.btn:hover {
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

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

/* 面包屑 */
.breadcrumb {
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

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

/* 链接 */
.social-menu {
    display: flex;
    gap: 10px;
}

.social-menu a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #f0f0f0;
    border-radius: 50%;
    color: #666;
}

.social-menu a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 评论 */
.comment-list {
    margin-bottom: 30px;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.comment-author img {
    border-radius: 50%;
}

.comment-metadata {
    color: var(--text-muted);
    font-size: 12px;
}

.comment-content {
    line-height: 1.8;
}

.comment-reply-link {
    font-size: 13px;
}

/* 评论表单 */
.comment-respond {
    margin-top: 30px;
}

.comment-respond .form-group {
    margin-bottom: 15px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.comment-respond textarea {
    min-height: 120px;
}

.comment-respond .submit {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 提示信息 */
.no-results {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin-top: 30px;
}

/* 用户信息卡片 */
.user-info-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* 词条认领者 */
.entry-claimer {
    background: #e3f2fd;
    padding: 15px;
    border-radius: var(--radius);
    margin-top: 20px;
}

/* 词条编辑历史 */
.entry-revisions .revision-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: var(--radius);
    padding: 30px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}
