/* 
 * 糖心vlog - 核心样式表
 * 品牌：糖心vlog | 域名：kirinmc.cn
 */

:root {
    --pink: #FF6B8B;
    --pink-dark: #E55A7A;
    --purple: #9B5DE5;
    --dark: #12122A;
    --dark-light: #1A1A3A;
    --light: #F8F9FA;
    --text-main: #333333;
    --text-muted: #A0AAB2;
    --border: #EEEEEE;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* 辅助类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-white { color: white !important; }
.text-muted { color: var(--text-muted); }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); }
.bg-pink { background-color: var(--pink); }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.p-4 { padding: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-md-8 { flex: 0 0 66.666%; padding: 0 15px; }
.col-md-4 { flex: 0 0 33.333%; padding: 0 15px; }
.align-items-center { align-items: center; }

/* 按钮样式 */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: var(--pink-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--pink);
    color: var(--pink);
}

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

.btn-large {
    padding: 12px 36px;
    font-size: 1.1rem;
    border-radius: 30px;
}

.btn-text {
    color: var(--pink);
    font-weight: 500;
}

/* 头部导航 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    display: block;
}

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

.nav-menu a {
    font-weight: 500;
    font-size: 16px;
    position: relative;
}

.nav-menu a.active {
    color: var(--pink);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--pink);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 15px;
    padding-right: 35px;
    border: 1px solid var(--border);
    border-radius: 20px;
    outline: none;
    width: 200px;
    transition: width 0.3s;
}

.search-input:focus {
    border-color: var(--pink);
    width: 250px;
}

.search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: white;
    padding: 15px;
    border-top: 1px solid var(--border);
}

.mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 页面通用结构 */
.section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
    position: relative;
}

.section-header h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

.view-all {
    position: absolute;
    right: 0;
    top: 5px;
    color: var(--pink);
    font-weight: 500;
}

.page-header {
    padding: 60px 0;
    background-color: var(--light);
    text-align: center;
}

.breadcrumb {
    padding: 15px 0;
    background-color: var(--light);
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

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

.hero-text {
    max-width: 600px;
}

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

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 24px;
    font-weight: bold;
    color: var(--pink);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

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

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

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

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

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

.video-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* 直播卡片 */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.live-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    padding-top: 140%; /* 直播封面比例 */
    cursor: pointer;
}

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

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

.live-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 50%, rgba(0,0,0,0.8) 100%);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.live-badge {
    background: #FF3B30;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    align-self: flex-start;
}

.live-viewers {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 12px;
}

.live-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.live-anchor {
    font-size: 13px;
    opacity: 0.8;
}

/* 社区特性 */
.community-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--light);
    border-radius: 12px;
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-item h3 {
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* AI功能区 */
.ai-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ai-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

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

.ai-content {
    padding: 20px;
}

.ai-content h3 {
    color: var(--pink);
    margin-bottom: 10px;
}

.ai-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* 两列布局 (专家与合作) */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.expert-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.expert-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.expert-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.expert-info h4 {
    margin-bottom: 5px;
}

.expert-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.partner-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

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

.review-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

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

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

.review-name {
    font-weight: bold;
}

.review-stars {
    color: #FFC107;
}

.review-text {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

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

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-q h3 {
    font-size: 18px;
    font-weight: 500;
}

.faq-icon {
    font-size: 24px;
    color: var(--pink);
    transition: transform 0.3s;
}

.faq-a {
    margin-top: 15px;
    color: var(--text-muted);
    display: none;
}

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

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

/* 创作者中心布局 */
.creator-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.creator-menu li {
    margin-bottom: 10px;
}

.creator-menu a {
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-main);
}

.creator-menu li.active a, .creator-menu a:hover {
    background: var(--light);
    color: var(--pink);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dash-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

/* 底部区域 */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

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

.brand-col .footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin: 15px 0;
}

.social-links {
    display: flex;
    gap: 10px;
}

.share-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.share-btn:hover {
    background: var(--pink);
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-links li, .footer-contact li {
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-links a:hover {
    color: var(--pink);
}

.qr-col {
    display: flex;
    gap: 15px;
}

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

.qr-item img {
    width: 100px;
    height: 100px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.qr-item span {
    display: block;
    font-size: 14px;
}

.qr-item small {
    color: rgba(255,255,255,0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* 视频弹窗 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.open {
    display: flex;
}

.video-modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

.video-container {
    width: 100%;
    background: #000;
}

.video-container video {
    width: 100%;
    max-height: 60vh;
    display: block;
}

.video-modal .video-info {
    padding: 20px;
    color: white;
}

.video-modal .video-meta {
    margin: 10px 0;
}

.brand-tag {
    background: var(--pink);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
}

/* 选项卡与分页 */
.filter-bar, .cat-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn, .cat-tab {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .cat-tab.active {
    background: var(--pink);
    color: white;
    border-color: var(--pink);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
}

.page-btn.active {
    background: var(--pink);
    color: white;
    border-color: var(--pink);
}

.page-btn.next {
    width: auto;
    padding: 0 15px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .brand-col, .qr-col {
        grid-column: span 2;
    }
    .two-col-layout {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 32px;
    }
    .community-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .ai-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu, .search-box, .header-actions .btn-primary {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    .section-header .view-all {
        position: static;
        display: block;
        margin-top: 10px;
    }
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    .community-features, .ai-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .brand-col, .qr-col {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
