/* 51漫画网站样式 - 响应式设计 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.logo h1 {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.2);
}

/* 搜索框 */
.search-section {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #667eea;
}

.search-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background: #fff;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb span {
    color: #666;
}

/* 通用标题 */
.section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* 主视觉区 */
.hero-section {
    background: #fff;
    padding: 50px 0;
    margin-bottom: 30px;
}

.hero-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

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

/* 视频卡片 */
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #667eea;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.video-info p {
    color: #666;
    font-size: 14px;
}

/* 服务网格 */
.media-section,
.entertainment-section,
.ai-section,
.community-section {
    background: #fff;
    padding: 50px 0;
    margin-bottom: 30px;
}

.service-grid,
.entertainment-grid,
.ai-grid,
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card,
.entertainment-card,
.ai-card,
.community-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover,
.entertainment-card:hover,
.ai-card:hover,
.community-card:hover {
    transform: translateY(-5px);
}

.service-card h3,
.entertainment-card h3,
.ai-card h3,
.community-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.community-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 专家展示 */
.experts-section {
    background: #fff;
    padding: 50px 0;
    margin-bottom: 30px;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.expert-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.expert-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.expert-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: #fff;
}

/* 合作品牌 */
.partners-section {
    background: #fff;
    padding: 50px 0;
    margin-bottom: 30px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.partner-logo {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    color: #666;
}

/* 用户评价 */
.reviews-section {
    background: #fff;
    padding: 50px 0;
    margin-bottom: 30px;
}

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

.review-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.reviewer {
    margin-top: 15px;
    font-style: italic;
    color: #667eea;
}

/* 如何加入 */
.howto-section {
    background: #fff;
    padding: 50px 0;
    margin-bottom: 30px;
}

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

.howto-step {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.howto-step h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* 联系我们 */
.contact-section {
    background: #fff;
    padding: 50px 0;
    margin-bottom: 30px;
}

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

.contact-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

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

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.qrcode-group {
    display: flex;
    gap: 20px;
}

.qrcode-item img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
}

.qrcode-item p {
    margin-top: 10px;
    font-size: 12px;
}

.social-share {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 16px;
    background: #34495e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.share-btn:hover {
    background: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

/* 视频列表 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-desc {
    margin-top: 10px;
    color: #999;
    font-size: 13px;
}

/* 视频分类标签 */
.video-categories,
.template-categories,
.music-categories {
    background: #fff;
    padding: 30px 0;
    margin-bottom: 30px;
}

.category-tabs,
.template-tab,
.music-tab {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.category-tab,
.template-tab,
.music-tab {
    padding: 10px 25px;
    background: #f5f5f5;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab.active,
.template-tab.active,
.music-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.category-tab:hover,
.template-tab:hover,
.music-tab:hover {
    background: #667eea;
    color: #fff;
}

/* 视频列表项 */
.video-list,
.feed-list,
.tutorial-list,
.music-list,
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.video-item,
.feed-item,
.tutorial-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.video-thumb,
.tutorial-thumb {
    position: relative;
    width: 200px;
    height: 120px;
    flex-shrink: 0;
}

.video-thumb img,
.tutorial-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 16px;
}

.video-details,
.tutorial-info {
    flex: 1;
}

.video-details h3,
.tutorial-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.video-meta,
.tutorial-meta {
    color: #999;
    font-size: 13px;
    margin-top: 10px;
}

/* 专题卡片 */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.topic-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.topic-count {
    margin-top: 15px;
    opacity: 0.9;
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tool-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tool-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.tool-features {
    list-style: none;
    margin: 20px 0;
}

.tool-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.tool-features li:before {
    content: "✓ ";
    color: #667eea;
    font-weight: bold;
}

/* 直播卡片 */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.live-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

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

.live-info {
    background: #fff;
    padding: 15px;
}

/* 社区动态 */
.user-avatar {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

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

.feed-content {
    flex: 1;
}

.feed-video {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 15px 0;
}

.feed-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.feed-actions {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
}

/* 定价卡片 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pricing-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
}

.price {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin: 20px 0;
}

.price span {
    font-size: 18px;
    color: #999;
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* 音乐列表 */
.music-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.music-actions {
    display: flex;
    gap: 10px;
}

.btn-play,
.btn-download {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-play {
    background: #667eea;
    color: #fff;
}

.btn-download {
    background: #f5f5f5;
    color: #333;
}

/* FAQ */
.faq-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .hero-grid,
    .service-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-item,
    .tutorial-item {
        flex-direction: column;
    }
    
    .video-thumb,
    .tutorial-thumb {
        width: 100%;
        height: 200px;
    }
    
    .qrcode-group {
        flex-direction: column;
    }
}

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

.video-card,
.service-card,
.expert-card {
    animation: fadeIn 0.5s ease-out;
}
