/* 糖心Vlog - 主样式文件 */
/* ===================== 基础重置 ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    background: #f5f6fa;
    color: #222;
    line-height: 1.7;
}
a { color: #e84393; text-decoration: none; transition: color .2s; }
a:hover { color: #c0306e; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===================== 容器 ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 4px solid #e84393;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title .badge {
    font-size: .75rem;
    background: #e84393;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

/* ===================== 顶部栏 ===================== */
.topbar {
    background: #1a1a2e;
    color: #aaa;
    font-size: .8rem;
    padding: 6px 0;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: #ccc; }
.topbar a:hover { color: #e84393; }

/* ===================== 头部 ===================== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #e84393, #ff6b9d);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 900;
}
.logo-text { font-size: 1.3rem; font-weight: 800; color: #1a1a2e; }
.logo-text span { color: #e84393; }

/* 主导航 */
.main-nav ul {
    display: flex;
    gap: 4px;
    align-items: center;
}
.main-nav a {
    color: #333;
    font-size: .95rem;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 500;
    transition: all .2s;
}
.main-nav a:hover, .main-nav a.active {
    background: #fde8f3;
    color: #e84393;
}
.nav-hot {
    background: #e84393 !important;
    color: #fff !important;
    border-radius: 6px;
}
.nav-hot:hover { background: #c0306e !important; }

/* 搜索框 */
.search-wrap {
    display: flex;
    align-items: center;
    background: #f5f6fa;
    border: 1.5px solid #eee;
    border-radius: 24px;
    padding: 4px 6px 4px 14px;
    min-width: 220px;
    transition: border-color .2s;
}
.search-wrap:focus-within { border-color: #e84393; }
.search-wrap input {
    border: none;
    background: transparent;
    outline: none;
    font-size: .9rem;
    flex: 1;
    color: #333;
}
.search-btn {
    background: #e84393;
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: background .2s;
}
.search-btn:hover { background: #c0306e; }

/* 搜索栏（导航下方） */
.search-bar-section {
    background: linear-gradient(90deg, #1a1a2e 0%, #2d1b5e 100%);
    padding: 14px 0;
}
.search-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.search-bar-label {
    color: #e84393;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}
.search-bar-form {
    display: flex;
    flex: 1;
    max-width: 600px;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(232,67,147,.2);
}
.search-bar-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 20px;
    font-size: 1rem;
    color: #333;
}
.search-bar-form button {
    background: #e84393;
    color: #fff;
    border: none;
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.search-bar-form button:hover { background: #c0306e; }
.search-hot-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.search-hot-tags span { color: #aaa; font-size: .85rem; }
.search-hot-tags a {
    color: #ffd6ec;
    font-size: .82rem;
    padding: 2px 10px;
    border: 1px solid rgba(232,67,147,.4);
    border-radius: 12px;
    transition: all .2s;
}
.search-hot-tags a:hover { background: #e84393; color: #fff; }

/* ===================== 轮播/头条 ===================== */
.hero-section { background: #fff; padding: 24px 0; }
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
.hero-main { position: relative; border-radius: 12px; overflow: hidden; }
.hero-main img { width: 100%; height: 400px; object-fit: cover; }
.hero-main-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    padding: 32px 20px 20px;
    color: #fff;
}
.hero-main-info .tag {
    background: #e84393;
    color: #fff;
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
}
.hero-main-info h2 { font-size: 1.4rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.hero-main-info .meta { font-size: .8rem; opacity: .85; }

.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero-side-item {
    display: flex;
    gap: 12px;
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s;
}
.hero-side-item:hover { box-shadow: 0 4px 16px rgba(232,67,147,.15); }
.hero-side-item img { width: 120px; height: 80px; object-fit: cover; flex-shrink: 0; }
.hero-side-info { padding: 10px; flex: 1; }
.hero-side-info .tag {
    font-size: .72rem;
    color: #e84393;
    font-weight: 600;
    margin-bottom: 4px;
}
.hero-side-info h3 { font-size: .9rem; font-weight: 600; color: #222; line-height: 1.4; }
.hero-side-info .meta { font-size: .75rem; color: #999; margin-top: 4px; }

/* ===================== 视频卡片 ===================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(232,67,147,.18);
}
.video-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 52px; height: 52px;
    background: rgba(232,67,147,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    transition: transform .25s, opacity .25s;
    opacity: 0;
    pointer-events: none;
}
.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,.7);
    color: #fff;
    font-size: .72rem;
    padding: 2px 6px;
    border-radius: 4px;
}
.video-info { padding: 12px; }
.video-info h3 {
    font-size: .92rem;
    font-weight: 600;
    color: #222;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    color: #999;
}
.video-stats { display: flex; gap: 10px; }
.video-stats span { display: flex; align-items: center; gap: 3px; }
.video-author { display: flex; align-items: center; gap: 5px; }
.video-author img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* ===================== 热点资讯 ===================== */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
    transition: box-shadow .2s;
}
.news-item:hover { box-shadow: 0 4px 16px rgba(232,67,147,.12); }
.news-item img { width: 110px; height: 74px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.news-item-info { flex: 1; }
.news-item-info .tags { display: flex; gap: 6px; margin-bottom: 6px; }
.news-item-info .tag {
    font-size: .7rem;
    padding: 1px 7px;
    border-radius: 3px;
    background: #fde8f3;
    color: #e84393;
    font-weight: 600;
}
.news-item-info h3 { font-size: .95rem; font-weight: 600; color: #222; line-height: 1.45; margin-bottom: 6px; }
.news-item-info .meta { font-size: .78rem; color: #999; display: flex; gap: 12px; }

/* 侧边栏 */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fde8f3;
}
.hot-rank-list { display: flex; flex-direction: column; gap: 10px; }
.hot-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color .2s;
}
.hot-rank-item:hover .rank-title { color: #e84393; }
.rank-num {
    width: 22px; height: 22px;
    border-radius: 4px;
    background: #eee;
    color: #999;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rank-num.top1 { background: #e84393; color: #fff; }
.rank-num.top2 { background: #ff6b9d; color: #fff; }
.rank-num.top3 { background: #ffb3d1; color: #fff; }
.rank-title { font-size: .88rem; color: #333; line-height: 1.4; }
.rank-views { font-size: .75rem; color: #bbb; margin-left: auto; white-space: nowrap; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
    font-size: .82rem;
    padding: 4px 12px;
    border-radius: 16px;
    background: #f5f6fa;
    color: #555;
    border: 1px solid #eee;
    transition: all .2s;
}
.tag-cloud a:hover { background: #e84393; color: #fff; border-color: #e84393; }

/* ===================== 专题策划 ===================== */
.special-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.special-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
}
.special-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(232,67,147,.2);
}
.special-card img { width: 100%; height: 200px; object-fit: cover; }
.special-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(26,26,46,.85));
    padding: 40px 16px 16px;
    color: #fff;
}
.special-overlay .count { font-size: .78rem; opacity: .8; margin-bottom: 4px; }
.special-overlay h3 { font-size: 1.05rem; font-weight: 700; }
.special-overlay .desc { font-size: .82rem; opacity: .85; margin-top: 4px; }

/* ===================== 热门阅读 ===================== */
.read-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.read-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
}
.read-card:hover {
    box-shadow: 0 6px 20px rgba(232,67,147,.15);
    transform: translateY(-3px);
}
.read-card img { width: 100%; height: 150px; object-fit: cover; }
.read-card-info { padding: 12px; }
.read-card-info .tag {
    font-size: .7rem;
    color: #e84393;
    font-weight: 600;
    margin-bottom: 6px;
}
.read-card-info h3 { font-size: .9rem; font-weight: 600; color: #222; line-height: 1.45; margin-bottom: 8px; }
.read-card-meta { font-size: .75rem; color: #bbb; display: flex; justify-content: space-between; }

/* ===================== 推荐作者 ===================== */
.author-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.author-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
}
.author-card:hover {
    box-shadow: 0 6px 20px rgba(232,67,147,.15);
    transform: translateY(-3px);
}
.author-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 3px solid #fde8f3;
}
.author-name { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.author-bio { font-size: .82rem; color: #888; margin-bottom: 12px; line-height: 1.5; }
.author-stats { display: flex; justify-content: center; gap: 20px; margin-bottom: 14px; }
.author-stats .stat { text-align: center; }
.author-stats .stat .num { font-size: 1rem; font-weight: 700; color: #e84393; }
.author-stats .stat .label { font-size: .72rem; color: #bbb; }
.follow-btn {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, #e84393, #ff6b9d);
    color: #fff;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    transition: opacity .2s;
}
.follow-btn:hover { opacity: .85; color: #fff; }

/* ===================== 用户评论 ===================== */
.reviews-section { background: #fff; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.review-card {
    background: #f9f9fb;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #e84393;
    transition: box-shadow .2s;
}
.review-card:hover { box-shadow: 0 4px 16px rgba(232,67,147,.1); }
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.review-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.review-user { flex: 1; }
.review-user .name { font-size: .95rem; font-weight: 700; color: #222; }
.review-user .date { font-size: .75rem; color: #bbb; }
.review-stars { color: #ffb800; font-size: .9rem; }
.review-text { font-size: .9rem; color: #555; line-height: 1.7; }
.review-tag {
    display: inline-block;
    margin-top: 10px;
    font-size: .75rem;
    padding: 2px 8px;
    background: #fde8f3;
    color: #e84393;
    border-radius: 4px;
}

/* ===================== FAQ ===================== */
.faq-section { background: #f5f6fa; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.faq-question {
    padding: 16px 20px;
    font-size: .95rem;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .2s;
    user-select: none;
}
.faq-question:hover { background: #fde8f3; }
.faq-question.active { background: #fde8f3; color: #e84393; }
.faq-icon { font-size: 1.1rem; transition: transform .3s; color: #e84393; }
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s;
    font-size: .9rem;
    color: #555;
    line-height: 1.75;
}
.faq-answer.open { max-height: 300px; padding: 14px 20px 18px; }

/* ===================== 投稿/联系 ===================== */
.contact-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b5e 100%);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}
.contact-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.contact-section p { font-size: 1rem; opacity: .8; margin-bottom: 28px; }
.contact-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: #e84393;
    color: #fff;
    border-radius: 28px;
    font-size: 1rem;
    font-weight: 700;
    transition: background .2s, transform .2s;
}
.btn-primary:hover { background: #c0306e; transform: translateY(-2px); color: #fff; }
.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
    border-radius: 28px;
    font-size: 1rem;
    font-weight: 700;
    transition: all .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ===================== 页脚 ===================== */
.site-footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-brand .logo-text { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; color: #888; }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #888; font-size: .85rem; transition: color .2s; }
.footer-col a:hover { color: #e84393; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .82rem;
    color: #666;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: #e84393; }

/* ===================== 搜索结果提示 ===================== */
.search-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}
.search-modal.show { display: flex; }
.search-modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
}
.search-modal-box h3 { font-size: 1.1rem; color: #1a1a2e; margin-bottom: 10px; }
.search-modal-box p { font-size: .9rem; color: #888; margin-bottom: 20px; }
.search-modal-close {
    padding: 8px 24px;
    background: #e84393;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
}

/* ===================== 响应式 ===================== */
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .read-grid { grid-template-columns: repeat(3, 1fr); }
    .author-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .special-grid { grid-template-columns: repeat(2, 1fr); }
    .read-grid { grid-template-columns: repeat(2, 1fr); }
    .author-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .search-wrap { min-width: 160px; }
    .header-inner { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
    .special-grid { grid-template-columns: 1fr; }
    .read-grid { grid-template-columns: 1fr; }
    .author-grid { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 1.2rem; }
}

/* ===================== 工具类 ===================== */
.text-pink { color: #e84393; }
.bg-pink { background: #e84393; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.view-more {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 24px;
    border: 1.5px solid #e84393;
    color: #e84393;
    border-radius: 20px;
    font-size: .88rem;
    font-weight: 600;
    transition: all .2s;
}
.view-more:hover { background: #e84393; color: #fff; }
.text-center { text-align: center; }
