:root {
    --primary-color: #ff6b6b;
    --secondary-color: #5f27cd;
    --background-color: #f9f9f9;
    --text-color: #333;
    --light-gray: #eee;
    --dark-gray: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.search-bar {
    display: flex;
    margin-left: 30px;
}

.search-bar input {
    padding: 8px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 250px;
}

.search-bar button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 20px;
    font-weight: 500;
}

.user-actions .login-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.user-actions .login-btn:hover {
    background-color: #ff5252;
}

/* 漫画卡片 */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.comic-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.comic-card:hover {
    transform: translateY(-5px);
}

.comic-cover {
    position: relative;
    height: 240px;
}

.comic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comic-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.comic-rating i {
    color: gold;
    margin-right: 3px;
}

.comic-info {
    padding: 12px;
}

.comic-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comic-author {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.comic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.comic-tag {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* 章节内容 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    color: var(--text-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* 评论区 */
.comments-section {
    margin: 40px 0;
}

.comment-form {
    display: flex;
    margin-bottom: 30px;
}

.comment-input {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px 0 0 5px;
    outline: none;
    transition: border-color 0.3s;
}

.comment-input:focus {
    border-color: var(--primary-color);
}

.comment-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 0 20px;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-submit:hover {
    background-color: #ff5252;
}

/* 页脚 */
footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        margin-top: 15px;
        justify-content: space-between;
    }
    
    .nav-links li {
        margin-left: 0;
    }
    
    .search-bar {
        margin-left: 15px;
        width: 50%;
    }
    
    .search-bar input {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
} 