﻿/* 基础样式重置 - 羞羞漫画暖色系设计 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 图标基础样式 */
.fas, .fab {
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    font-style: normal;
    display: inline-block;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.6;
    color: #5a3921;
    background-color: #FFF8F0;
    background-image: linear-gradient(180deg, #FFF8F0 0%, #FFE8D6 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 - 暖色系 */
.header {
    background-color: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #FF8C42;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo h1 {
    color: #FF5252;
    font-size: 32px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 82, 82, 0.1);
}

.logo h1 i {
    color: #FF8C42;
    font-size: 36px;
}

.tagline {
    color: #FF8C42;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 导航菜单 - 圆角设计 */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    color: #5a3921;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    background: linear-gradient(135deg, #FF8C42, #FF5252);
    color: white;
    border-color: #FF8C42;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.3);
}

/* 搜索框 - 圆角设计 */
.search-box {
    display: flex;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid #FFD166;
    box-shadow: 0 4px 15px rgba(255, 209, 102, 0.2);
}

.search-box input {
    background: transparent;
    border: none;
    padding: 12px 25px;
    color: #5a3921;
    width: 250px;
    outline: none;
    font-size: 16px;
}

.search-box button {
    background: linear-gradient(135deg, #FF8C42, #FF5252);
    border: none;
    color: white;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.search-box button:hover {
    background: linear-gradient(135deg, #FF5252, #FF8C42);
    transform: scale(1.05);
}

/* 用户操作 */
.user-actions {
    display: flex;
    gap: 15px;
}

.btn-login, .btn-register {
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-login {
    color: #5a3921;
    border: 2px solid #FF8C42;
    background: white;
}

.btn-register {
    background: linear-gradient(135deg, #FF8C42, #FF5252);
    color: white;
    border: 2px solid transparent;
}

.btn-login:hover {
    background: #FF8C42;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.3);
}

.btn-register:hover {
    background: linear-gradient(135deg, #FF5252, #FF8C42);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 82, 82, 0.3);
}

/* 轮播图 - 大圆角设计 */
.hero-slider {
    position: relative;
    margin: 40px auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.2);
    border: 3px solid white;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(90, 57, 33, 0.9));
    color: white;
    padding: 50px;
    border-radius: 0 0 25px 25px;
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #FFD166;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 25px;
    color: #FFE8D6;
    max-width: 600px;
}

.btn-watch {
    display: inline-block;
    background: linear-gradient(135deg, #FF8C42, #FF5252);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    border: 2px solid white;
}

.btn-watch:hover {
    background: linear-gradient(135deg, #FF5252, #FF8C42);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 140, 66, 0.4);
}

/* 轮播控制 */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 30px;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #FF8C42;
    color: #FF8C42;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background: #FF8C42;
    color: white;
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot.active {
    background: #FF8C42;
    border-color: white;
    transform: scale(1.2);
}

/* 通用区域样式 */
.section {
    margin: 80px 0;
}

.section-title {
    color: #5a3921;
    font-size: 36px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.section-title i {
    color: #FF5252;
    font-size: 40px;
}

/* 漫画网格 - 大圆角卡片 */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.comic-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 3px solid #FFD166;
    box-shadow: 0 10px 30px rgba(255, 209, 102, 0.1);
}

.comic-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.3);
    border-color: #FF8C42;
}

.comic-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.comic-info {
    padding: 20px;
}

.comic-title {
    color: #5a3921;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comic-meta {
    display: flex;
    justify-content: space-between;
    color: #FF8C42;
    font-size: 16px;
    font-weight: 600;
}

.comic-rating {
    color: #FF5252;
    font-weight: 700;
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
}

.category-item {
    background: white;
    border: 3px solid #FFD166;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #5a3921;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(255, 209, 102, 0.1);
}

.category-item:hover {
    background: linear-gradient(135deg, #FF8C42, #FF5252);
    color: white;
    border-color: #FF8C42;
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 140, 66, 0.3);
}

.category-item i {
    font-size: 36px;
    color: #FF8C42;
}

.category-item:hover i {
    color: white;
    transform: scale(1.2);
}

/* 展示网格 */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.showcase-item {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    border: 3px solid #FFD166;
    box-shadow: 0 12px 35px rgba(255, 209, 102, 0.15);
    transition: all 0.4s;
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(255, 140, 66, 0.25);
    border-color: #FF8C42;
}

.showcase-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.showcase-content {
    padding: 25px;
}

.showcase-title {
    color: #5a3921;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.showcase-desc {
    color: #FF8C42;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #5a3921, #3a2911);
    border-top: 3px solid #FF8C42;
    padding: 60px 0 30px;
    margin-top: 100px;
    border-radius: 30px 30px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3,
.footer-section h4 {
    color: #FFD166;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
}

.footer-section h3 i {
    color: #FF8C42;
    margin-right: 15px;
    font-size: 28px;
}

.footer-section p {
    color: #FFE8D6;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #FFE8D6;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a:hover {
    color: #FF8C42;
    transform: translateX(10px);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFD166;
    font-size: 22px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social-links a:hover {
    background: #FF8C42;
    color: white;
    transform: translateY(-5px) scale(1.1);
    border-color: #FFD166;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 209, 102, 0.3);
    color: #FFE8D6;
    font-size: 16px;
}

.footer-bottom p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.baidu-seo {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.baidu-seo span {
    background: rgba(255, 140, 66, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #FFD166;
    border: 1px solid #FF8C42;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .header .container {
        flex-direction: column;
        gap: 25px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box input {
        width: 220px;
    }
    
    .slide-content h2 {
        font-size: 36px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 28px;
    }
    
    .logo h1 i {
        font-size: 32px;
    }
    
    .main-nav ul {
        gap: 12px;
    }
    
    .main-nav a {
        padding: 8px 18px;
        font-size: 15px;
    }
    
    .search-box input {
        width: 180px;
        padding: 10px 20px;
    }
    
    .search-box button {
        padding: 10px 20px;
    }
    
    .slide img {
        height: 450px;
    }
    
    .slide-content {
        padding: 30px;
    }
    
    .slide-content h2 {
        font-size: 30px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .user-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-login, .btn-register {
        width: 100%;
        text-align: center;
    }
    
    .slide img {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
