/* ============================================
   糖心vlog - 原创样式表
   品牌色系：糖心粉 #FF6B9D / 深玫红 #C44569 / 暖橙 #FF8E53
   ============================================ */

/* === 基础重置与全局 === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    color: #333; background: #FFF5F7; line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: #C44569; text-decoration: none; transition: color .3s; }
a:hover { color: #FF6B9D; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === 顶部导航 === */
.site-header {
    background: linear-gradient(135deg, #2D1B2E 0%, #3D2240 100%);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 20px rgba(45,27,46,.3);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 70px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 42px; width: auto; }
.site-logo span { color: #fff; font-size: 1.3rem; font-weight: 700; letter-spacing: 1px; }
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
    color: rgba(255,255,255,.85); padding: 0 14px; font-size: .9rem;
    height: 70px; display: flex; align-items: center;
    transition: all .3s; position: relative;
}
.main-nav a:hover, .main-nav a.active {
    color: #FF6B9D; background: rgba(255,107,157,.08);
}
.main-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px;
    background: linear-gradient(90deg, #FF6B9D, #FF8E53);
    transition: all .3s; transform: translateX(-50%); border-radius: 3px 3px 0 0;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 60%; }
.mobile-toggle { display: none; color: #fff; font-size: 1.5rem; cursor: pointer; background: none; border: none; }

/* === 搜索栏 === */
.search-bar {
    background: linear-gradient(90deg, #FF6B9D, #FF8E53);
    padding: 12px 0;
}
.search-bar-inner {
    max-width: 700px; margin: 0 auto; display: flex; gap: 0;
    border-radius: 50px; overflow: hidden; box-shadow: 0 4px 15px rgba(255,107,157,.3);
}
.search-bar input {
    flex: 1; border: none; padding: 12px 24px; font-size: .95rem;
    outline: none; background: #fff; color: #333;
}
.search-bar input::placeholder { color: #aaa; }
.search-bar button {
    background: #C44569; color: #fff; border: none; padding: 12px 28px;
    font-size: .95rem; cursor: pointer; transition: background .3s; white-space: nowrap;
}
.search-bar button:hover { background: #a03555; }

/* === Hero Banner === */
.hero-section {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #2D1B2E 0%, #4A2545 50%, #2D1B2E 100%);
    min-height: 520px; display: flex; align-items: center;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 1;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover; opacity: .45;
}
.hero-content {
    position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
    padding: 80px 20px; color: #fff;
}
.hero-content h1 {
    font-size: 2.8rem; font-weight: 800; margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
    line-height: 1.3;
}
.hero-content h1 span { color: #FF6B9D; }
.hero-content p {
    font-size: 1.15rem; max-width: 600px; margin-bottom: 30px;
    color: rgba(255,255,255,.9); line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
    display: inline-block; padding: 14px 36px; border-radius: 50px;
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    color: #fff; font-weight: 600; font-size: 1rem;
    box-shadow: 0 4px 20px rgba(255,107,157,.4);
    transition: all .3s; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(255,107,157,.5); color: #fff; }
.btn-outline {
    display: inline-block; padding: 14px 36px; border-radius: 50px;
    border: 2px solid rgba(255,255,255,.5); color: #fff;
    font-weight: 600; font-size: 1rem; transition: all .3s; background: transparent;
    cursor: pointer;
}
.btn-outline:hover { border-color: #FF6B9D; background: rgba(255,107,157,.15); color: #fff; }

/* === 通用区块 === */
.section { padding: 70px 0; }
.section-dark { background: linear-gradient(135deg, #2D1B2E, #3D2240); color: #fff; }
.section-alt { background: #fff; }
.section-title {
    text-align: center; margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2rem; font-weight: 700; color: #2D1B2E; margin-bottom: 12px;
    position: relative; display: inline-block;
}
.section-dark .section-title h2 { color: #fff; }
.section-title h2::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: linear-gradient(90deg, #FF6B9D, #FF8E53);
    margin: 12px auto 0; border-radius: 2px;
}
.section-title p { color: #666; font-size: 1rem; max-width: 600px; margin: 0 auto; }
.section-dark .section-title p { color: rgba(255,255,255,.7); }

/* === 视频卡片网格 === */
.video-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.video-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: all .3s; cursor: pointer;
}
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(255,107,157,.15); }
.video-thumb {
    position: relative; padding-top: 56.25%; overflow: hidden;
}
.video-thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s;
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.video-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 64px; height: 64px; background: rgba(255,107,157,.9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all .3s; z-index: 2;
    box-shadow: 0 4px 20px rgba(255,107,157,.5);
}
.video-card:hover .video-play-btn { opacity: 1; }
.video-play-btn::after {
    content: ''; width: 0; height: 0;
    border-left: 20px solid #fff; border-top: 12px solid transparent;
    border-bottom: 12px solid transparent; margin-left: 4px;
}
.video-duration {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,.75); color: #fff; padding: 2px 8px;
    border-radius: 4px; font-size: .8rem;
}
.video-info { padding: 16px; }
.video-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: #2D1B2E; line-height: 1.5; }
.video-meta { display: flex; gap: 16px; color: #999; font-size: .82rem; flex-wrap: wrap; }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tag {
    display: inline-block; padding: 2px 10px; background: #FFF0F3;
    color: #C44569; border-radius: 20px; font-size: .75rem; margin-top: 8px;
}

/* === 功能模块网格 === */
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #fff; border-radius: 16px; padding: 32px 24px;
    text-align: center; transition: all .3s;
    box-shadow: 0 4px 15px rgba(0,0,0,.04);
    border: 1px solid rgba(255,107,157,.08);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255,107,157,.12);
    border-color: rgba(255,107,157,.2);
}
.feature-icon {
    width: 72px; height: 72px; margin: 0 auto 20px;
    background: linear-gradient(135deg, #FFF0F3, #FFE0E8);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 600; color: #2D1B2E; margin-bottom: 10px; }
.feature-card p { color: #666; font-size: .9rem; line-height: 1.7; }

/* === 专家展示 === */
.expert-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}
.expert-card {
    background: #fff; border-radius: 16px; padding: 30px 20px;
    text-align: center; transition: all .3s;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
}
.expert-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(255,107,157,.12); }
.expert-avatar {
    width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px;
    overflow: hidden; border: 3px solid #FF6B9D;
    box-shadow: 0 4px 15px rgba(255,107,157,.2);
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h3 { font-size: 1.1rem; font-weight: 600; color: #2D1B2E; margin-bottom: 4px; }
.expert-card .expert-title { color: #FF6B9D; font-size: .85rem; margin-bottom: 10px; }
.expert-card p { color: #666; font-size: .85rem; line-height: 1.6; margin-bottom: 14px; }
.expert-btns { display: flex; gap: 10px; justify-content: center; }
.expert-btns a {
    padding: 6px 16px; border-radius: 20px; font-size: .8rem; font-weight: 500;
}
.btn-sm-primary { background: linear-gradient(135deg, #FF6B9D, #FF8E53); color: #fff; }
.btn-sm-outline { border: 1px solid #FF6B9D; color: #FF6B9D; }
.btn-sm-outline:hover { background: #FF6B9D; color: #fff; }

/* === 合作品牌 === */
.brand-wall {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 30px;
    align-items: center; padding: 20px 0;
}
.brand-wall-item {
    width: 140px; height: 60px; background: rgba(255,255,255,.08);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); font-size: .9rem; font-weight: 500;
    border: 1px solid rgba(255,255,255,.1); transition: all .3s;
}
.brand-wall-item:hover { background: rgba(255,255,255,.15); color: rgba(255,255,255,.8); }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff; border-radius: 12px; margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04); overflow: hidden;
    border: 1px solid rgba(255,107,157,.06);
}
.faq-question {
    padding: 18px 24px; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center;
    font-weight: 600; color: #2D1B2E; font-size: .95rem;
    transition: background .3s;
}
.faq-question:hover { background: #FFF5F7; }
.faq-question .faq-toggle {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; transition: transform .3s; flex-shrink: 0;
}
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height .4s ease;
    padding: 0 24px; color: #666; font-size: .9rem; line-height: 1.8;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 18px; }

/* === 用户评论 === */
.review-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.review-card {
    background: #fff; border-radius: 16px; padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,.04);
    border-left: 4px solid #FF6B9D; transition: all .3s;
}
.review-card:hover { box-shadow: 0 8px 25px rgba(255,107,157,.1); }
.review-stars { color: #FFB800; font-size: 1rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { color: #555; font-size: .9rem; line-height: 1.7; margin-bottom: 14px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-author-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: .9rem;
}
.review-author-info span { display: block; }
.review-author-info .name { font-weight: 600; color: #2D1B2E; font-size: .9rem; }
.review-author-info .date { color: #999; font-size: .78rem; }

/* === 联系我们 === */
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}
.contact-card {
    background: rgba(255,255,255,.06); border-radius: 16px; padding: 28px;
    text-align: center; border: 1px solid rgba(255,255,255,.1);
}
.contact-card h4 { color: #FF6B9D; font-size: 1rem; margin-bottom: 10px; }
.contact-card p { color: rgba(255,255,255,.75); font-size: .9rem; line-height: 1.7; }

/* === How-To 指南 === */
.howto-steps {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px; counter-reset: step;
}
.howto-step {
    background: #fff; border-radius: 16px; padding: 28px 20px;
    text-align: center; position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,.04);
}
.howto-step::before {
    counter-increment: step; content: counter(step);
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    color: #fff; font-weight: 700; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.howto-step h4 { font-size: 1rem; font-weight: 600; color: #2D1B2E; margin-bottom: 8px; }
.howto-step p { color: #666; font-size: .85rem; line-height: 1.6; }

/* === 社交分享 === */
.share-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 50px; font-size: .85rem;
    font-weight: 500; transition: all .3s; color: #fff;
}
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00A1D6; }

/* === 页脚 === */
.site-footer {
    background: linear-gradient(135deg, #1A0F1B, #2D1B2E);
    color: rgba(255,255,255,.7); padding: 50px 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px; margin-bottom: 40px;
}
.footer-col h4 { color: #FF6B9D; font-size: 1rem; margin-bottom: 16px; font-weight: 600; }
.footer-col p, .footer-col a { color: rgba(255,255,255,.6); font-size: .88rem; line-height: 2; display: block; }
.footer-col a:hover { color: #FF6B9D; }
.footer-qr { display: flex; gap: 20px; margin-top: 10px; }
.footer-qr img { width: 100px; height: 100px; border-radius: 8px; border: 2px solid rgba(255,255,255,.1); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0; text-align: center; font-size: .82rem;
    color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }

/* === 面包屑 === */
.breadcrumb {
    padding: 14px 0; font-size: .85rem; color: #999;
}
.breadcrumb a { color: #C44569; }
.breadcrumb span { margin: 0 8px; color: #ccc; }

/* === 内页Banner === */
.page-banner {
    background: linear-gradient(135deg, #2D1B2E, #4A2545);
    padding: 60px 0; text-align: center; color: #fff;
}
.page-banner h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,.7); font-size: 1rem; }

/* === 数据统计条 === */
.stats-bar {
    display: flex; justify-content: center; gap: 50px; flex-wrap: wrap;
    padding: 30px 0;
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 2.2rem; font-weight: 800;
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { color: #666; font-size: .85rem; margin-top: 4px; }

/* === 标签云 === */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-item {
    padding: 6px 18px; border-radius: 20px; font-size: .85rem;
    background: #FFF0F3; color: #C44569; transition: all .3s;
    border: 1px solid rgba(196,69,105,.1);
}
.tag-item:hover { background: #FF6B9D; color: #fff; }

/* === 响应式 === */
@media (max-width: 768px) {
    .header-inner { height: 60px; }
    .main-nav {
        display: none; position: fixed; top: 60px; left: 0; right: 0;
        background: #2D1B2E; flex-direction: column; padding: 10px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,.3);
    }
    .main-nav.active { display: flex; }
    .main-nav a { height: 48px; padding: 0 24px; justify-content: flex-start; }
    .mobile-toggle { display: block; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
    .section { padding: 40px 0; }
    .section-title h2 { font-size: 1.5rem; }
    .video-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .expert-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { gap: 20px; }
    .stat-num { font-size: 1.6rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .search-bar-inner { margin: 0 20px; }
}
@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
    .expert-grid { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* === 动画 === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .6s ease forwards; }

/* === 懒加载占位 === */
.lazy-img { background: #f0e8ec; transition: opacity .5s; }
.lazy-img[data-src] { opacity: .6; }

/* === 视频标签高亮 === */
.highlight-video {
    color: #FF6B9D; font-weight: 600;
}

/* === MCP前端占位 === */
.mcp-widget {
    background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.15);
    border-radius: 12px; padding: 20px; text-align: center;
    color: rgba(255,255,255,.4); font-size: .85rem; margin-top: 20px;
}
