/* ============================================
   糖心vlog 全站样式 - 舞团风格原创设计
   配色：霓虹洋红 + 深紫夜空 + 玫瑰金
   域名：921xz.cn
   ============================================ */

/* --- CSS变量 --- */
:root {
    --primary: #e91e8c;
    --primary-dark: #b8156e;
    --primary-light: #ff5cb8;
    --secondary: #7c3aed;
    --secondary-dark: #5b21b6;
    --accent: #f0b866;
    --accent-light: #fcd89d;
    --bg-dark: #0f0a1a;
    --bg-card: #1a1128;
    --bg-card-hover: #241838;
    --bg-section: #130e20;
    --text-main: #f0e6f6;
    --text-muted: #a89bb8;
    --text-dim: #7a6d8a;
    --border-color: #2d2245;
    --gradient-hero: linear-gradient(135deg, #0f0a1a 0%, #1e0a2e 40%, #2a0e3a 100%);
    --gradient-primary: linear-gradient(135deg, #e91e8c, #7c3aed);
    --gradient-card: linear-gradient(145deg, #1a1128, #0f0a1a);
    --shadow-glow: 0 0 30px rgba(233,30,140,0.15);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1200px;
    --nav-height: 64px;
}

/* --- 重置与基础 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-light); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; color: var(--text-main); }

/* --- 容器 --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* --- 导航栏 --- */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(15,10,26,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    height: var(--nav-height);
}
.nav-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-height);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 38px; width: auto; border-radius: 6px; }
.nav-brand span { font-size: 1.2rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
    color: var(--text-muted); font-size: .9rem; padding: 6px 14px;
    border-radius: 20px; transition: all .25s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--gradient-primary); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; padding: 4px; }

/* --- 搜索栏 --- */
.search-bar {
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-top: var(--nav-height);
}
.search-bar .container { display: flex; justify-content: center; }
.search-box {
    display: flex; max-width: 560px; width: 100%;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 28px; overflow: hidden; transition: border-color .3s;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.search-box input {
    flex: 1; border: none; background: transparent; padding: 10px 20px;
    color: var(--text-main); font-size: .95rem; outline: none;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-box button {
    background: var(--gradient-primary); border: none; padding: 10px 24px;
    color: #fff; font-size: .95rem; cursor: pointer; transition: opacity .25s;
}
.search-box button:hover { opacity: .85; }

/* --- Hero区域 --- */
.hero {
    background: var(--gradient-hero);
    position: relative; overflow: hidden;
    padding: 80px 0 60px;
    text-align: center;
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(233,30,140,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(124,58,237,0.08) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-3%, 2%); }
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 2.6rem; margin-bottom: 16px; }
.hero h1 .brand-highlight { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 680px; margin: 0 auto 28px; }
.hero-img { max-width: 900px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-glow); }
.hero-img img { width: 100%; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.hero-tags span {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 5px 16px; border-radius: 20px; font-size: .82rem; color: var(--text-muted);
}

/* --- 通用Section --- */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-section); }
.section-title {
    text-align: center; margin-bottom: 40px;
}
.section-title h2 { font-size: 1.8rem; margin-bottom: 10px; }
.section-title h2 .hl { color: var(--primary); }
.section-title p { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* --- 视频卡片网格 --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.video-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    cursor: pointer;
}
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}
.video-card .thumb {
    position: relative; overflow: hidden;
    aspect-ratio: 4/3;
}
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .thumb img { transform: scale(1.06); }
.video-card .play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
    width: 56px; height: 56px; background: rgba(233,30,140,0.85);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
    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 #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
    margin-left: 4px;
}
.video-card .thumb .duration {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.75); color: #fff; font-size: .75rem;
    padding: 2px 8px; border-radius: 4px;
}
.video-card .card-body { padding: 14px 16px; }
.video-card .card-body h3 { font-size: .95rem; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card .card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--text-dim); }
.video-card .card-meta .views { display: flex; align-items: center; gap: 4px; }
.video-card .card-meta .likes { display: flex; align-items: center; gap: 4px; }

/* --- 四大模块卡片 --- */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.module-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-glow); }
.module-card .icon { font-size: 2.4rem; margin-bottom: 14px; }
.module-card h4 { font-size: 1.05rem; margin-bottom: 8px; color: var(--accent); }
.module-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* --- 专家展示 --- */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.expert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px; text-align: center;
    transition: transform .3s, box-shadow .3s;
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.expert-card img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--primary); }
.expert-card h4 { font-size: 1rem; margin-bottom: 4px; }
.expert-card .role { color: var(--primary); font-size: .85rem; margin-bottom: 10px; }
.expert-card p { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.expert-card .btn-sm {
    display: inline-block; padding: 6px 18px; border-radius: 20px;
    background: var(--gradient-primary); color: #fff; font-size: .82rem;
    transition: opacity .25s;
}
.expert-card .btn-sm:hover { opacity: .85; }

/* --- FAQ手风琴 --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 12px; overflow: hidden;
}
.faq-q {
    padding: 16px 20px; cursor: pointer; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
    transition: background .25s;
}
.faq-q:hover { background: var(--bg-card-hover); }
.faq-q .arrow { transition: transform .3s; font-size: 1.2rem; color: var(--primary); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 16px; }
.faq-a p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }

/* --- 用户评论 --- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px;
}
.review-card .stars { color: var(--accent); font-size: 1rem; margin-bottom: 10px; }
.review-card .review-text { font-size: .9rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; font-style: italic; }
.review-card .reviewer { display: flex; align-items: center; gap: 10px; }
.review-card .reviewer .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem; }
.review-card .reviewer .name { font-size: .85rem; font-weight: 600; }
.review-card .reviewer .date { font-size: .75rem; color: var(--text-dim); }

/* --- 合作品牌墙 --- */
.partner-wall {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 30px;
    padding: 20px 0;
}
.partner-wall .partner-item {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); padding: 16px 28px;
    font-size: .95rem; font-weight: 600; color: var(--text-muted);
    transition: border-color .3s, color .3s;
}
.partner-wall .partner-item:hover { border-color: var(--primary); color: var(--primary-light); }

/* --- 联系我们 --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px; text-align: center;
}
.contact-card .icon { font-size: 2rem; margin-bottom: 10px; }
.contact-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--accent); }
.contact-card p { font-size: .88rem; color: var(--text-muted); }
.contact-card img { max-width: 160px; margin: 12px auto 0; border-radius: var(--radius-sm); }

/* --- 社交分享 --- */
.share-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 16px 0; }
.share-bar a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; border-radius: 22px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-muted); font-size: .85rem;
    transition: all .25s;
}
.share-bar a:hover { border-color: var(--primary); color: var(--primary-light); background: var(--bg-card-hover); }

/* --- How-To指南 --- */
.howto-steps {
    max-width: 700px; margin: 0 auto;
    counter-reset: step;
}
.howto-step {
    display: flex; gap: 18px; margin-bottom: 24px;
    counter-increment: step;
}
.howto-step::before {
    content: counter(step);
    flex-shrink: 0; width: 42px; height: 42px;
    background: var(--gradient-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1.1rem;
}
.howto-step .step-content h4 { font-size: 1rem; margin-bottom: 4px; }
.howto-step .step-content p { font-size: .88rem; color: var(--text-muted); }

/* --- 页脚 --- */
.site-footer {
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 0;
}
.footer-top {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px;
    padding-bottom: 30px; border-bottom: 1px solid var(--border-color);
}
.footer-brand { max-width: 320px; }
.footer-brand img { height: 36px; margin-bottom: 12px; border-radius: 6px; }
.footer-brand p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.footer-links h5 { font-size: .95rem; margin-bottom: 12px; color: var(--accent); }
.footer-links a { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 8px; transition: color .25s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-trust {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
    padding: 16px 0; font-size: .8rem; color: var(--text-dim);
}
.footer-trust a { color: var(--text-dim); }
.footer-trust a:hover { color: var(--primary-light); }
.footer-bottom {
    text-align: center; padding: 18px 0;
    font-size: .82rem; color: var(--text-dim);
}

/* --- 面包屑 --- */
.breadcrumb {
    padding: 14px 0;
    font-size: .85rem; color: var(--text-dim);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { margin: 0 6px; }

/* --- 内页Hero --- */
.page-hero {
    background: var(--gradient-hero);
    padding: 50px 0 40px;
    margin-top: var(--nav-height);
    text-align: center;
}
.page-hero h1 { font-size: 2rem; margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); font-size: 1rem; }

/* --- 内页内容 --- */
.page-content { padding: 40px 0 60px; }
.page-content p { margin-bottom: 16px; color: var(--text-muted); line-height: 1.8; }
.page-content h2 { font-size: 1.5rem; margin: 30px 0 16px; color: var(--accent); }
.page-content h3 { font-size: 1.2rem; margin: 24px 0 12px; }

/* --- 懒加载动画 --- */
.tx-fade { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.tx-fade.visible { opacity: 1; transform: translateY(0); }

/* --- 响应式 --- */
@media (max-width: 768px) {
    :root { --nav-height: 56px; }
    .nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: rgba(15,10,26,0.97); flex-direction: column; padding: 16px; gap: 4px; border-bottom: 1px solid var(--border-color); }
    .nav-links.show { display: flex; }
    .nav-toggle { display: block; }
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 1rem; }
    .section-title h2 { font-size: 1.4rem; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
    .module-grid { grid-template-columns: 1fr 1fr; }
    .expert-grid { grid-template-columns: 1fr 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { flex-direction: column; }
}
@media (max-width: 480px) {
    .module-grid { grid-template-columns: 1fr; }
    .expert-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
}
