/* 糖心vlog - 全站样式表 */
/* per7.cn - 影视传媒与视频社区平台 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

ul, ol {
    list-style: none;
}

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

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

.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 {
    font-size: 16px;
    color: #666;
}

/* ===== 头部导航 ===== */
.header {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a65 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.logo-text {
    margin-left: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover {
    color: #ffe0e8;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

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

/* ===== 搜索框 ===== */
.search-bar {
    background: rgba(255,255,255,0.95);
    padding: 15px 0;
    margin-top: 75px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

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

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

.search-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a65 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,157,0.4);
}

/* ===== Banner区域 ===== */
.banner {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a65 50%, #ffb347 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

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

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

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.banner-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #ff6b9d;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== 视频卡片 ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

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

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 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: opacity 0.3s ease, transform 0.3s ease;
}

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

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

.video-card:hover .play-btn:hover {
    transform: translate(-50%, -50%) scale(1.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;
    color: #333;
    margin-bottom: 10px;
    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: 5px;
}

/* ===== 专家展示 ===== */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

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

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

.expert-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid #ff6b9d;
}

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

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

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

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

.expert-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a65 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

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

/* ===== 合作伙伴 ===== */
.partner-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-item {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

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

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

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

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

.review-user h4 {
    font-size: 16px;
    color: #333;
}

.review-user span {
    font-size: 13px;
    color: #999;
}

.review-stars {
    color: #ffb347;
    margin-bottom: 10px;
}

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

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

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

.contact-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a65 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: #fff;
}

.contact-item h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

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

.qrcode-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.footer-col ul li a:hover {
    color: #ff6b9d;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
    border-radius: 8px;
    margin-right: 10px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: bold;
}

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

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #ff6b9d;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.update-time {
    font-size: 12px;
    color: #888;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    padding: 15px 0;
    background: #f8f9fa;
    margin-top: 75px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-list a {
    color: #666;
}

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

.breadcrumb-list span {
    color: #999;
}

.breadcrumb-list .current {
    color: #ff6b9d;
}

/* ===== 内页通用 ===== */
.page-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a65 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
    margin-top: 75px;
}

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

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

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .expert-grid {
        grid-template-columns: 1fr;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .qrcode-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 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;
    }
}

/* ===== 工具提示 ===== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}
