/* 91视频 - 主样式表 */
/* siweiqu.cn */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #f8a5c2;
    --dark-color: #2d3436;
    --light-color: #f9f9f9;
    --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 40px rgba(0,0,0,0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

ul, ol {
    list-style: none;
}

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

/* Header Styles */
.header {
    background: #fff;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--gradient-primary);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-main {
    padding: 15px 0;
}

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

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

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

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-color);
    padding: 10px 5px;
    position: relative;
    display: block;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Search Box */
.search-box {
    background: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-right: none;
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

/* Hero Banner */
.hero-banner {
    background: var(--gradient-primary);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/banner-main.jpg') center/cover no-repeat;
    opacity: 0.25;
}

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

.hero-title {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    transition: var(--transition-normal);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    color: var(--secondary-color);
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-alt {
    background: #f5f5f5;
}

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

.section-title h2 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 15px;
    margin-top: 20px;
}

/* Video Card Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

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

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

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

.video-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%;
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.video-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-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

.hot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff9f43, #ee5a24);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 40px;
}

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

.video-author {
    color: var(--primary-color);
}

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

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.category-tag {
    padding: 8px 20px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.category-tag:hover,
.category-tag.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

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

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

.service-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.service-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

/* Expert Section */
.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: var(--shadow-light);
    transition: var(--transition-normal);
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

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

.expert-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 5px;
}

.expert-title {
    color: var(--primary-color);
    font-size: 13px;
    margin-bottom: 10px;
}

.expert-desc {
    color: #666;
    font-size: 12px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.expert-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
}

.expert-btn:hover {
    color: #fff;
    opacity: 0.9;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-light);
}

.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-author {
    font-weight: 600;
    font-size: 15px;
}

.review-date {
    color: #999;
    font-size: 12px;
    margin-top: 3px;
}

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

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

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

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.faq-question {
    padding: 18px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    font-size: 15px;
}

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

.faq-question::after {
    content: '+';
    font-size: 22px;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.contact-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.contact-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-info {
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

/* QR Code Section */
.qrcode-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

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

.qrcode-item img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    margin-bottom: 10px;
}

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

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background: #f5f5f5;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

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

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 50px 0 20px;
}

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

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

.footer-logo img {
    height: 45px;
    border-radius: 8px;
}

.footer-desc {
    color: #aaa;
    font-size: 13px;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

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

.footer-col ul li a {
    color: #aaa;
    font-size: 13px;
}

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

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

.footer-bottom p {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 5px;
}

/* Social Share */
.social-share {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #444;
    color: #fff;
    font-size: 16px;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .video-grid,
    .service-grid,
    .features-grid,
    .expert-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-medium);
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li a {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .header-top .container {
        justify-content: center;
        text-align: center;
    }
    
    .header-top span:last-child {
        display: none;
    }
}

@media (max-width: 576px) {
    .video-grid,
    .service-grid,
    .features-grid,
    .expert-grid,
    .contact-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .qrcode-grid {
        gap: 30px;
    }
    
    .hero-banner {
        padding: 50px 0;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Lazy Load */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}
