/* 樱花动漫官网入口 - 主样式文件 */
/* iray8.com - 免费观看视频平台 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b9d;
}

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

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

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a80 50%, #ffab91 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li a {
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* 搜索框 */
.search-bar {
    background: rgba(255,255,255,0.15);
    padding: 12px 0;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-btn {
    padding: 12px 25px;
    background: #fff;
    color: #ff6b9d;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #ff6b9d;
    color: #fff;
    transform: scale(1.05);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-list li::after {
    content: '>';
    margin-left: 10px;
    color: #ccc;
}

.breadcrumb-list li:last-child::after {
    content: '';
}

.breadcrumb-list a:hover {
    color: #ff6b9d;
}

/* Hero区域 */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero h2 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: normal;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #ff6b9d;
    color: #fff;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
    color: #fff;
}

/* 视频卡片区域 */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 157, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

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

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

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.video-stats {
    display: flex;
    gap: 15px;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 分类标签 */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.tag {
    padding: 8px 20px;
    background: #fff;
    border: 2px solid #ff6b9d;
    color: #ff6b9d;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover,
.tag.active {
    background: #ff6b9d;
    color: #fff;
}

/* 专家展示 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.expert-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid #ff6b9d;
}

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

.expert-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.expert-title {
    color: #ff6b9d;
    font-size: 14px;
    margin-bottom: 10px;
}

.expert-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.expert-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b9d, #ff8a80);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.expert-btn:hover {
    transform: scale(1.05);
    color: #fff;
}

/* 合作品牌 */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
}

.partner-logo {
    width: 150px;
    height: 80px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

/* 用户评价 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

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

.review-user h5 {
    font-size: 16px;
    margin-bottom: 3px;
}

.review-stars {
    color: #ffc107;
    font-size: 14px;
}

.review-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* FAQ区域 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-answer {
    padding: 0 20px 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    display: none;
}

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

/* 联系我们 */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b9d, #ff8a80);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.contact-qr {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.qr-item p {
    font-size: 14px;
    color: #666;
}

/* 社交分享 */
.social-share {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #000; }
.share-bilibili { background: #00a1d6; }

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2d3436 0%, #1a1a2e 100%);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #ff6b9d;
}

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

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

.footer-links a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b9d;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.footer-bottom a {
    color: #ff6b9d;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .expert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero h2 {
        font-size: 18px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .expert-grid {
        grid-template-columns: 1fr;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 26px;
    }
    
    .contact-qr {
        flex-direction: column;
        align-items: center;
    }
}

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

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

/* 懒加载占位 */
.lazy-load {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 内页特定样式 */
.page-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a80 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* 工具卡片 */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b9d, #ff8a80);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.tool-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.tool-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.tool-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #ff6b9d, #ff8a80);
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    transform: scale(1.05);
    color: #fff;
}

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

/* 社区帖子 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

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

.post-content {
    flex: 1;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.post-author {
    font-weight: 500;
    color: #333;
}

.post-time {
    font-size: 13px;
    color: #999;
}

.post-text {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.post-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.post-images img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.post-actions {
    display: flex;
    gap: 25px;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.post-action:hover {
    color: #ff6b9d;
}

/* 直播卡片 */
.live-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.live-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.live-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.live-thumb {
    position: relative;
    padding-top: 56.25%;
}

.live-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.live-viewers {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.live-info {
    padding: 15px;
}

.live-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

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

.live-host-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}

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

.live-host-name {
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .live-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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