/* 糖心vlog - 全新原创设计 - 紫色渐变主题 */
:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --secondary: #EC4899;
    --accent: #F472B6;
    --bg-dark: #1F1B2E;
    --bg-card: #2D2640;
    --bg-light: #F8F5FF;
    --text-light: #FFFFFF;
    --text-dark: #1F1B2E;
    --text-muted: #A0A0B0;
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-dark: linear-gradient(180deg, #1F1B2E 0%, #2D2640 100%);
    --shadow-card: 0 8px 32px rgba(139, 92, 246, 0.15);
    --shadow-hover: 0 12px 40px rgba(139, 92, 246, 0.25);
    --radius: 16px;
    --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

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

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

/* 头部导航 - 深色背景 */
.site-header {
    background: var(--bg-dark);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

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

.brand-logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.main-nav a {
    padding: 10px 18px;
    color: var(--text-light);
    font-weight: 500;
    border-radius: var(--radius-sm);
    opacity: 0.85;
}

.main-nav a:hover, .main-nav a.current {
    background: var(--gradient-primary);
    opacity: 1;
}

/* 搜索栏 */
.search-bar {
    background: var(--bg-card);
    padding: 16px 0;
}

.search-wrapper {
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    width: 100%;
    max-width: 600px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.search-box input {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
}

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

.search-box button {
    padding: 14px 32px;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover { opacity: 0.9; }

/* 面包屑 */
.breadcrumb {
    background: var(--bg-light);
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

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

.breadcrumb-list a { color: var(--primary); }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list .separator { color: var(--text-muted); }
.breadcrumb-list .active { color: var(--text-muted); }

/* Hero区域 - 全宽渐变背景 */
.hero {
    background: var(--gradient-dark);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(139,92,246,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(236,72,153,0.1)"/><circle cx="40" cy="80" r="2" fill="rgba(139,92,246,0.1)"/></svg>');
    background-size: 100px 100px;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-text h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

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

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

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

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

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

/* 内容区块 */
.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--text-light);
}

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

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* 视频卡片网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.section-dark .video-card {
    background: var(--bg-card);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.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-card:hover .video-thumb img {
    transform: scale(1.08);
}

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

.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: 4px;
}

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

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-dark .video-title {
    color: var(--text-light);
}

.video-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.video-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.section-dark .tag {
    background: rgba(139, 92, 246, 0.3);
    color: var(--accent);
}

/* 功能卡片网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.section-dark .feature-card {
    background: var(--bg-card);
    border-color: rgba(139, 92, 246, 0.2);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-dark .feature-card h4 {
    color: var(--text-light);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 专家卡片 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.expert-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.section-dark .expert-card {
    background: var(--bg-card);
}

.expert-card:hover {
    transform: translateY(-8px);
}

.expert-avatar {
    position: relative;
    overflow: hidden;
}

.expert-avatar img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.expert-info {
    padding: 24px;
    text-align: center;
}

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

.section-dark .expert-name {
    color: var(--text-light);
}

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

.expert-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 页面标题 */
.page-header {
    background: var(--gradient-dark);
    padding: 48px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

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

/* 页脚 */
.site-footer {
    background: var(--bg-dark);
    padding: 64px 0 32px;
    color: var(--text-light);
}

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

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.9rem;
}

.footer-column h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .expert-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-wrapper { flex-wrap: wrap; }
    .main-nav { width: 100%; justify-content: center; flex-wrap: wrap; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2rem; }
    .hero-stats { justify-content: center; }
    .video-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .expert-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* 联系卡片 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}

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

.qr-img {
    margin-top: 16px;
}

.qr-img img {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: var(--radius-sm);
}

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

@media (max-width: 480px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* 文本居中 */
.text-center { text-align: center; }
