/* 囧次元动漫官方网站样式 */
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 主题配色 */
:root {
    --primary-color: #ff6b81; /* 粉红色调，适合动漫主题 */
    --secondary-color: #5f27cd; /* 紫色调，搭配粉色 */
    --accent-color: #ff9f43; /* 橙色，用于强调 */
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #2d3436;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 通用容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 链接样式 */
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background-color: #ff4d67;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 129, 0.3);
}

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

.btn-secondary:hover {
    background-color: #4a1fb0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(95, 39, 205, 0.3);
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    margin: 10px 0;
    width: 200px;
}

.btn-download .platform-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.btn-submit {
    background-color: var(--accent-color);
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #ff8a1e;
}

/* 头部样式 */
.site-header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* 英雄区域 */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffdde1, #ee9ca7);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h2 {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-text p {
    font-size: 20px;
    color: white;
    margin-bottom: 30px;
}

.app-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 通用部分标题 */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 关于我们部分 */
.about-section {
    padding: 80px 0;
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

/* 特色部分 */
.features-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: cover;
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    color: #666;
}

/* 下载部分 */
.download-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #c8d6e5, #8395a7);
    color: white;
}

.download-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.download-text {
    flex: 1;
}

.download-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qr-code {
    margin-top: 30px;
    text-align: center;
}

.qr-img {
    width: 150px;
    height: 150px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
}

.qr-code p {
    margin-top: 10px;
    font-size: 14px;
}

.app-showcase {
    flex: 1;
}

.app-showcase-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 推荐部分 */
.recommend-section {
    padding: 80px 0;
    background-color: white;
}

.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.manga-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.manga-card:hover {
    transform: translateY(-10px);
}

.manga-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.manga-card h3 {
    padding: 15px 15px 5px;
    font-size: 18px;
}

.manga-card p {
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}

.manga-rating {
    padding: 5px 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stars {
    color: var(--accent-color);
}

.score {
    font-weight: bold;
    color: var(--primary-color);
}

/* 联系部分 */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 页脚 */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
}

.footer-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
}

.footer-links-column h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}


    .footer-links-column ul li a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content,
    .about-content,
    .download-content,
    .contact-content {
        flex-direction: column;
    }

    .hero-text,
    .about-text,
    .download-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-logo {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-links-column {
        margin-bottom: 30px;
        text-align: center;
    }

    .main-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .manga-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 28px;
    }

    .hero-text h2 {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .manga-grid {
        grid-template-columns: 1fr;
    }

    .app-buttons {
        flex-direction: column;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* 滚动到顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}