/* 全局样式 */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark-color: #1A535C;
    --light-color: #F7FFF7;
    --gray-color: #6C757D;
    --light-gray: #E9ECEF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

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

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

section {
    padding: 80px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #ff5252;
    color: white;
}

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

.btn-secondary:hover {
    background-color: #3dbdb3;
    color: white;
}

/* 导航栏样式 */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo svg {
    margin-right: 10px;
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: var(--light-gray);
}

/* 轮播横幅样式 */
.banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/template/fan/a/static/picture/d24.jpg') center/cover no-repeat;
    opacity: 0.2;
    animation: bannerBg 20s infinite alternate;
}

@keyframes bannerBg {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 特色功能模块样式 */
.features {
    background-color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

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

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

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray-color);
}

/* 视频推荐模块样式 */
.video-recommend {
    background-color: var(--light-gray);
}

.video-recommend h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

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

.video-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    height: 180px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.video-info p {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-color);
    font-size: 0.8rem;
}

/* APP下载模块样式 */
.app-download {
    background: linear-gradient(135deg, var(--dark-color), #0f3a40);
    color: white;
}

.app-download h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.download-features {
    list-style: none;
    margin-bottom: 30px;
}

.download-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.download-features li i {
    margin-right: 10px;
    color: var(--accent-color);
}

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

.btn-download {
    background-color: white;
    color: var(--dark-color);
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-download:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.btn-icon {
    width: 24px;
    height: 24px;
}

.download-qrcode {
    flex: 0 0 200px;
    text-align: center;
}

.download-qrcode img {
    width: 200px;
    height: 200px;
    border: 5px solid white;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 使用教程模块样式 */
.tutorial {
    background-color: white;
}

.tutorial h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tutorial-step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.step-content img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 100%;
    height: auto;
}

/* 用户评价模块样式 */
.testimonials {
    background-color: var(--light-gray);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    flex: 1;
}

.rating {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.testimonial-text {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-style: italic;
}

.user-name {
    font-weight: 600;
    color: var(--dark-color);
}

/* 常见问题模块样式 */
.faq {
    background-color: white;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 20px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 0 20px;
    color: var(--gray-color);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

/* 相关文章模块样式 */
.articles {
    background-color: var(--light-gray);
}

.articles h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

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

.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.article-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    max-width: 600px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-links-column {
    flex: 1;
    min-width: 200px;
}

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

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

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

.footer-links-column ul li a {
    color: white;
    opacity: 0.8;
}

.footer-links-column ul li a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link img {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright, .icp {
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-friendlinks {
    margin-top: 30px;
}

.footer-friendlinks h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-friendlinks ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
}

.footer-friendlinks ul li a, .footer-friendlinks ul a {
    color: white;
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-friendlinks ul li a:hover, .footer-friendlinks ul a:hover {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
    
    .download-content {
        flex-direction: column;
    }
    
    .download-qrcode {
        margin-top: 30px;
    }
    
    .testimonial-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .banner h1 {
        font-size: 2rem;
    }
    
    .tutorial-step {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .banner-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
}
