/* 糖心vlog - 全新原创CSS样式表 */
/* 日落渐变主题 - 珊瑚橙+日落粉配色 */

:root {
    --primary-coral: #ff6b6b;
    --primary-orange: #ff9f43;
    --primary-pink: #ff8a8a;
    --accent-purple: #a55eea;
    --accent-blue: #4a90e2;
    --bg-dark: #1a1a2e;
    --bg-darker: #16213e;
    --bg-card: #0f3460;
    --text-white: #ffffff;
    --text-light: #e8e8e8;
    --text-gray: #b8b8b8;
    --gradient-sunset: linear-gradient(135deg, #ff6b6b 0%, #ff9f43 50%, #feca57 100%);
    --gradient-coral: linear-gradient(135deg, #ff6b6b 0%, #ff8a8a 100%);
    --gradient-dark: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    --shadow-glow: 0 0 30px rgba(255, 107, 107, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* 头部导航 */
.site-header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
}

.site-logo img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
}

.site-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--gradient-coral);
    color: var(--text-white);
}

/* 搜索栏 */
.search-bar {
    background: rgba(15, 52, 96, 0.5);
    padding: 20px 0;
    margin-top: 74px;
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 60px 16px 24px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 50px;
    background: rgba(26, 26, 46, 0.8);
    color: var(--text-white);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-coral);
    box-shadow: var(--shadow-glow);
}

.search-input::placeholder {
    color: var(--text-gray);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-sunset);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.search-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* 面包屑导航 */
.breadcrumb {
    background: rgba(15, 52, 96, 0.3);
    padding: 12px 0;
}

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

.breadcrumb-list a {
    color: var(--primary-coral);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list .separator {
    color: var(--text-gray);
}

/* Hero区域 - 全新三列布局 */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 52, 96, 0.3) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: rgba(15, 52, 96, 0.6);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 8px;
}

.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.hero-overlay h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-overlay p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.hero-featured {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-card {
    background: rgba(15, 52, 96, 0.6);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

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

.featured-card .card-info {
    padding: 12px;
}

.featured-card h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.featured-card span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* 通用区块样式 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 视频卡片网格 - 瀑布流风格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.video-card {
    background: rgba(15, 52, 96, 0.6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 107, 107, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-coral);
}

.video-thumb {
    position: relative;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: var(--gradient-sunset);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

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

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.video-info {
    padding: 18px;
}

.video-info h3 {
    font-size: 1rem;
    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;
    color: var(--text-gray);
    font-size: 0.85rem;
}

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

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

/* 服务模块 - 六宫格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(15, 52, 96, 0.5);
    border-radius: var(--radius-lg);
    padding: 35px;
    text-align: center;
    border: 1px solid rgba(255, 107, 107, 0.15);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-coral);
}

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

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 专家团队 - 横向滚动 */
.experts-scroll {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.experts-scroll::-webkit-scrollbar {
    display: none;
}

.expert-card {
    flex: 0 0 280px;
    background: rgba(15, 52, 96, 0.6);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 107, 107, 0.15);
    transition: all 0.3s ease;
}

.expert-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}

.expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-coral);
    margin-bottom: 16px;
}

.expert-card h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.expert-title {
    color: var(--primary-coral);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.expert-desc {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.5;
}

.expert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}

.expert-tags span {
    background: rgba(255, 107, 107, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary-coral);
}

/* 社区展示 - 不规则网格 */
.community-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 200px);
    gap: 20px;
}

.community-card {
    background: rgba(15, 52, 96, 0.6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 107, 107, 0.15);
    transition: all 0.3s ease;
}

.community-card:hover {
    box-shadow: var(--shadow-glow);
}

.community-card.large {
    grid-row: span 2;
}

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

.community-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.community-card h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.community-card p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

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

.review-card {
    background: rgba(15, 52, 96, 0.5);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 107, 107, 0.15);
    transition: all 0.3s ease;
}

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

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

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-sunset);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.review-user h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.review-user span {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.review-stars {
    color: #feca57;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.review-content {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.brand-item {
    width: 120px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.brand-item:hover {
    background: rgba(255, 107, 107, 0.2);
    color: var(--primary-coral);
}

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

.faq-item {
    background: rgba(15, 52, 96, 0.5);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    border: 1px solid rgba(255, 107, 107, 0.15);
    overflow: hidden;
}

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

.faq-question:hover {
    background: rgba(255, 107, 107, 0.1);
}

.faq-question h4 {
    font-size: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-coral);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.contact-info {
    background: rgba(15, 52, 96, 0.5);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 107, 107, 0.15);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-text p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.qrcode-section {
    display: flex;
    gap: 30px;
}

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

.qrcode-item img {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.qrcode-item p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* 页脚 */
.site-footer {
    background: rgba(15, 52, 96, 0.8);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 107, 107, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

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

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

.footer-col a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.update-time {
    color: var(--primary-coral);
    font-size: 0.8rem;
}

/* 社交分享按钮 */
.social-share {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

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

.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.douyin { background: #161823; }
.share-btn.bilibili { background: #fb7299; }

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-sunset);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-coral);
    color: var(--primary-coral);
}

.btn-outline:hover {
    background: var(--primary-coral);
    color: white;
}

/* 动画效果 */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled .fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr 2fr;
    }
    
    .hero-featured {
        display: none;
    }
    
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .community-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .community-card.large {
        grid-row: span 1;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .qrcode-section {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}
