/* 糖心vlog - 全新原创样式 | 11y59j.cn */
/* 版权所有 2025 糖心vlog */

/* CSS变量 */
:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --secondary: #EC4899;
    --accent: #F472B6;
    --bg-dark: #1F1F2E;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-reverse: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
    --shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
    --shadow-lg: 0 20px 60px rgba(139, 92, 246, 0.2);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 重置 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* 容器 */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* 头部 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}
.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo img { height: 48px; width: auto; }
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav a:hover, .nav a.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
}
.nav-btn {
    padding: 10px 24px !important;
    background: var(--gradient) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
}
.nav-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* 搜索框 */
.search-bar {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, transparent 100%);
    padding: 16px 0;
    margin-top: 72px;
}
.search-wrap {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 16px 60px 16px 24px;
    font-size: 1rem;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    background: var(--white);
    outline: none;
    transition: var(--transition);
}
.search-input:focus { border-color: var(--primary); box-shadow: var(--shadow); }
.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.search-btn:hover { transform: translateY(-50%) scale(1.05); }
.search-btn svg { width: 20px; height: 20px; fill: var(--white); }

/* Hero区域 */
.hero {
    position: relative;
    padding: 80px 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 31, 46, 0.9) 0%, rgba(139, 92, 246, 0.7) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--gradient);
    color: var(--white);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

/* 区块标题 */
.section { padding: 80px 0; }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: var(--gradient);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 视频卡片网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.video-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.video-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid var(--primary);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}
.video-card:hover .play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    font-size: 0.8rem;
    border-radius: 4px;
}
.video-info { padding: 20px; }
.video-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.video-tag {
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50px;
}

/* 功能模块 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.2);
}
.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.feature-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* 专家卡片 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}
.expert-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.expert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.expert-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.expert-role {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 16px;
}
.expert-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}
.expert-creds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}
.cred-tag {
    padding: 4px 12px;
    background: linear-gradient(135deg, #F3E8FF 0%, #FCE7F3 100%);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50px;
}
.expert-btns { display: flex; gap: 12px; justify-content: center; }
.expert-btns .btn { padding: 10px 20px; font-size: 0.9rem; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-q {
    padding: 24px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-q:hover { color: var(--primary); }
.faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}
.faq-item.active .faq-q::after { transform: rotate(45deg); }
.faq-a {
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.active .faq-a { padding: 0 28px 24px; max-height: 500px; }
.faq-a p { color: var(--text-light); line-height: 1.8; }

/* 用户评价 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}
.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
}
.review-info h4 { font-size: 1rem; font-weight: 600; color: var(--text-dark); }
.review-info span { font-size: 0.85rem; color: var(--text-light); }
.review-stars { color: #FBBF24; font-size: 1rem; margin-bottom: 12px; }
.review-text { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
}
.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.contact-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.contact-text {
    font-size: 0.95rem;
    color: var(--text-light);
}
.qr-wrap {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.qr-item { text-align: center; }
.qr-item img {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.qr-item span { font-size: 0.9rem; color: var(--text-light); }

/* 页脚 */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand .logo-text { color: var(--white); -webkit-text-fill-color: var(--white); }
.footer-brand p { font-size: 0.95rem; line-height: 1.8; opacity: 0.8; }
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}
.footer-links a {
    display: block;
    padding: 8px 0;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: var(--transition);
}
.footer-links a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copy { font-size: 0.9rem; opacity: 0.7; }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); }

/* 背景色区块 */
.bg-light { background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%); }
.bg-gradient { background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%); }

/* 响应式 */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .header-wrap { padding: 0 16px; }
    .nav { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .video-grid, .feature-grid, .expert-grid, .review-grid { grid-template-columns: 1fr; }
}
