/* 糖心vlog - 糖果宇宙主题 原创CSS样式 */
/* 主题：Candy Universe - 糖果+宇宙的梦幻结合 */

/* ========== 基础变量 ========== */
:root {
    --candy-purple: #9B59B6;
    --space-blue: #3498DB;
    --candy-pink: #E91E63;
    --star-gold: #F1C40F;
    --deep-space: #1a1a2e;
    --space-dark: #16213e;
    --nebula-purple: #4a1a6b;
    --text-light: #ffffff;
    --text-muted: #b8b8d1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--deep-space) 0%, var(--space-dark) 50%, var(--nebula-purple) 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 星空背景动画 ========== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(155,89,182,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(233,30,99,0.5), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(52,152,219,0.6), transparent);
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========== 星际导航条 ========== */
.nav-cosmic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(155, 89, 182, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-cosmic.scrolled {
    padding: 10px 5%;
    background: rgba(26, 26, 46, 0.95);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 45px;
    filter: drop-shadow(0 0 10px rgba(155, 89, 182, 0.5));
}

.nav-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--candy-purple), var(--candy-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--candy-purple), var(--candy-pink));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--candy-pink);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ========== 面包屑导航 ========== */
.breadcrumb-cosmic {
    padding: 100px 5% 20px;
    font-size: 0.9rem;
}

.breadcrumb-cosmic a {
    color: var(--candy-purple);
    text-decoration: none;
}

.breadcrumb-cosmic a:hover {
    color: var(--candy-pink);
}

.breadcrumb-cosmic span {
    color: var(--text-muted);
    margin: 0 10px;
}

/* ========== 糖果星球Hero区 ========== */
.hero-universe {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 50px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-planet {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.planet-container {
    width: 350px;
    height: 350px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.planet-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--candy-purple) 0%, var(--candy-pink) 50%, var(--space-blue) 100%);
    box-shadow: 
        0 0 60px rgba(155, 89, 182, 0.6),
        0 0 120px rgba(233, 30, 99, 0.4),
        inset -30px -30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.planet-core::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    width: 30%;
    height: 20%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(10px);
}

.planet-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px;
    height: 100px;
    border: 3px solid rgba(241, 196, 15, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(70deg);
    animation: ring-rotate 10s linear infinite;
}

@keyframes ring-rotate {
    0% { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
}

.hero-text {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--candy-purple), var(--candy-pink));
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(233, 30, 99, 0); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .brand {
    background: linear-gradient(90deg, var(--candy-purple), var(--candy-pink), var(--star-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.hero-tag {
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid rgba(155, 89, 182, 0.4);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.hero-tag:hover {
    background: rgba(233, 30, 99, 0.3);
    border-color: var(--candy-pink);
    transform: translateY(-3px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-cosmic {
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--candy-purple), var(--candy-pink));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--candy-purple);
}

.btn-secondary:hover {
    background: rgba(155, 89, 182, 0.2);
    transform: translateY(-3px);
}

/* ========== 波浪分割线 ========== */
.wave-divider {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.wave-divider path {
    fill: rgba(26, 26, 46, 0.5);
}

/* ========== 今日更新提示栏 ========== */
.update-ticker {
    background: linear-gradient(90deg, rgba(155, 89, 182, 0.3), rgba(233, 30, 99, 0.3));
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid rgba(155, 89, 182, 0.3);
    border-bottom: 1px solid rgba(155, 89, 182, 0.3);
}

.update-ticker .live-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========== 视频分类标签栏 ========== */
.video-tags-nav {
    padding: 30px 5%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.video-tag-btn {
    background: rgba(155, 89, 182, 0.15);
    border: 1px solid rgba(155, 89, 182, 0.3);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.video-tag-btn:hover,
.video-tag-btn.active {
    background: linear-gradient(90deg, var(--candy-purple), var(--candy-pink));
    border-color: transparent;
    transform: translateY(-2px);
}

/* ========== 视频星河区 - 星座连线布局 ========== */
.section-title {
    text-align: center;
    padding: 60px 5% 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title h2 .brand {
    color: var(--candy-pink);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.video-galaxy {
    padding: 40px 5% 80px;
    position: relative;
}

.video-constellation {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* 星座连线效果 */
.video-constellation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(155, 89, 182, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 89, 182, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.video-star {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(155, 89, 182, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.video-star::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(155, 89, 182, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.video-star:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--candy-pink);
    box-shadow: 
        0 20px 40px rgba(233, 30, 99, 0.2),
        0 0 30px rgba(155, 89, 182, 0.3);
}

.video-star:hover::before {
    opacity: 1;
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

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

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--candy-purple), var(--candy-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

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

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

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

/* ========== 六边形蜂巢服务区 ========== */
.services-honeycomb {
    padding: 80px 5%;
    background: rgba(74, 26, 107, 0.2);
}

.honeycomb-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hex-cell {
    width: 200px;
    height: 230px;
    position: relative;
    transition: all 0.4s ease;
}

.hex-cell:nth-child(even) {
    margin-top: 115px;
}

.hex-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3), rgba(233, 30, 99, 0.2));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.hex-cell:hover .hex-inner {
    background: linear-gradient(135deg, var(--candy-purple), var(--candy-pink));
    transform: scale(1.1);
}

.hex-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hex-title {
    font-size: 1rem;
    font-weight: bold;
}

/* ========== 专家星座区 ========== */
.experts-constellation {
    padding: 80px 5%;
    position: relative;
}

.experts-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 星座连线 */
.experts-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.3), transparent);
}

.expert-star {
    text-align: center;
    position: relative;
    z-index: 1;
}

.expert-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--star-gold);
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.3);
    transition: all 0.4s ease;
}

.expert-avatar::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed rgba(241, 196, 15, 0.5);
    border-radius: 50%;
    animation: orbit 10s linear infinite;
}

@keyframes orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.expert-star:hover .expert-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(241, 196, 15, 0.5);
}

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

.expert-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.expert-title {
    color: var(--candy-pink);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.expert-cert {
    display: inline-block;
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* ========== 社区星云区 ========== */
.community-nebula {
    padding: 80px 5%;
    background: linear-gradient(180deg, transparent, rgba(74, 26, 107, 0.3), transparent);
}

.nebula-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.nebula-card {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 25px;
    padding: 35px;
    border: 1px solid rgba(155, 89, 182, 0.2);
    transition: all 0.4s ease;
    animation: float-card 6s ease-in-out infinite;
}

.nebula-card:nth-child(2) { animation-delay: -2s; }
.nebula-card:nth-child(3) { animation-delay: -4s; }

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.nebula-card:hover {
    border-color: var(--candy-pink);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.2);
}

.nebula-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.nebula-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.nebula-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========== FAQ星际问答 ========== */
.faq-cosmic {
    padding: 80px 5%;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(155, 89, 182, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--candy-purple);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--candy-pink);
    transition: transform 0.3s ease;
}

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

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

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

.faq-answer-inner {
    padding: 0 30px 25px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ========== 页脚星际站 ========== */
.footer-cosmic {
    background: rgba(10, 10, 20, 0.9);
    padding: 60px 5% 30px;
    border-top: 1px solid rgba(155, 89, 182, 0.2);
    position: relative;
    overflow: hidden;
}

/* 流星动画 */
.footer-cosmic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(135deg, transparent 45%, rgba(255,255,255,0.1) 50%, transparent 55%);
    background-size: 200% 200%;
    animation: meteor 8s linear infinite;
    pointer-events: none;
}

@keyframes meteor {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

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

.footer-logo img {
    height: 50px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--candy-purple), var(--candy-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--candy-pink);
}

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

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

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(155, 89, 182, 0.2);
    margin-top: 40px;
    padding-top: 25px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-bottom a {
    color: var(--candy-purple);
    text-decoration: none;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-planet {
        order: -1;
    }
    
    .planet-container {
        width: 280px;
        height: 280px;
    }
    
    .planet-ring {
        width: 360px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-tags {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hex-cell:nth-child(even) {
        margin-top: 0;
    }
    
    .hex-cell {
        width: 150px;
        height: 173px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .video-constellation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .planet-container {
        width: 220px;
        height: 220px;
    }
    
    .planet-ring {
        width: 280px;
    }
    
    .btn-cosmic {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}
