/* 糖心vlog - 外部样式表 */
/* 域名: sdcits.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: linear-gradient(135deg, #fff5f8 0%, #f8f0ff 100%);
    min-height: 100vh;
}

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

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

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

/* ==================== 头部导航 ==================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(255, 182, 193, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    font-weight: 500;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ff6b9d;
    background: rgba(255, 107, 157, 0.1);
}

/* ==================== 搜索框 ==================== */
.search-bar {
    background: linear-gradient(135deg, #fff0f5, #f8f0ff);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 182, 193, 0.3);
}

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

.search-input {
    width: 400px;
    max-width: 80%;
    padding: 12px 20px;
    border: 2px solid #ffb6c1;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.3);
}

.search-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

/* ==================== 英雄区 ==================== */
.hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.7), rgba(196, 69, 105, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #ff6b9d;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

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

/* ==================== 区块标题 ==================== */
.section {
    padding: 60px 0;
}

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

.section-title h2 {
    font-size: 2rem;
    color: #333;
    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: 4px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border-radius: 2px;
}

.section-title p {
    color: #888;
    font-size: 1rem;
    margin-top: 15px;
}

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

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

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.2);
}

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

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

.video-card:hover .video-thumbnail 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: '';
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent white;
    margin-left: 4px;
}

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

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 1rem;
    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;
    color: #999;
    font-size: 0.85rem;
}

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

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

.tag {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #fff0f5, #f8f0ff);
    color: #ff6b9d;
    border-radius: 12px;
    font-size: 0.75rem;
}

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

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

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.15);
}

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

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

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

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

.expert-credentials {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

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

.expert-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

/* ==================== 合作伙伴 ==================== */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.partner-logo {
    padding: 15px 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.2);
    color: #ff6b9d;
}

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

.review-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px 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 h4 {
    font-size: 1rem;
    color: #333;
}

.review-user span {
    font-size: 0.85rem;
    color: #999;
}

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

.review-content {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== 联系我们 ==================== */
.contact-section {
    background: linear-gradient(135deg, #fff5f8, #f8f0ff);
}

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

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
    color: #ff6b9d;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.qrcode-img {
    width: 150px;
    height: 150px;
    margin: 15px auto;
    border-radius: 10px;
    overflow: hidden;
}

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

/* ==================== 页脚 ==================== */
.footer {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    color: white;
    padding: 50px 0 20px;
}

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

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

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

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

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

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

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

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

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

.social-links a:hover {
    background: #ff6b9d;
    color: white;
    transform: translateY(-3px);
}

/* ==================== 面包屑 ==================== */
.breadcrumb {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 182, 193, 0.3);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    font-size: 0.9rem;
}

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

.breadcrumb-list li:last-child::after {
    display: none;
}

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

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

.breadcrumb-list li:last-child {
    color: #ff6b9d;
}

/* ==================== 页面Banner ==================== */
.page-banner {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.8), rgba(196, 69, 105, 0.8));
}

.page-banner h1 {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* ==================== 内容模块 ==================== */
.content-module {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.content-module h2 {
    color: #ff6b9d;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fff0f5;
}

.content-module h3 {
    color: #333;
    margin: 20px 0 10px;
}

.content-module p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ==================== 功能卡片 ==================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: linear-gradient(135deg, #fff5f8, #f8f0ff);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ==================== FAQ ==================== */
.faq-item {
    background: white;
    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;
    color: #333;
    transition: background 0.3s ease;
}

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

.faq-answer {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
    display: none;
}

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

/* ==================== 弹幕区 ==================== */
.danmaku-container {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 30px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.danmaku-item {
    position: absolute;
    white-space: nowrap;
    color: white;
    font-size: 0.9rem;
    padding: 5px 15px;
    background: rgba(255, 107, 157, 0.3);
    border-radius: 20px;
    animation: danmaku-scroll 10s linear infinite;
}

@keyframes danmaku-scroll {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .video-grid,
    .expert-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ==================== 懒加载 ==================== */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

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

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

/* ==================== 今日更新标签 ==================== */
.today-tag {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 10px;
}

/* ==================== 社区美图画廊 ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ==================== 情感话题 ==================== */
.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, #fff0f5, #f8f0ff);
    color: #ff6b9d;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-tag:hover {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
}


/* 专家社交账号样式 */
.expert-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.expert-social a {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.expert-social a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}


/* 弹幕容器样式 */
.danmaku-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.danmaku-item {
    position: absolute;
    white-space: nowrap;
    color: white;
    font-size: 1.1rem;
    padding: 8px 15px;
    background: rgba(255, 107, 157, 0.8);
    border-radius: 20px;
    animation: danmaku-scroll 10s linear infinite;
    right: -300px;
}

@keyframes danmaku-scroll {
    0% { right: -300px; }
    100% { right: 100%; }
}

/* 话题标签样式 */
.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.topic-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.topic-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

/* 内容模块样式 */
.content-module {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.content-module h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* 画廊网格样式 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

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