/* ============================================
   糖心vlog 影视传媒视频社区 - 原创样式表
   域名: uqqLd.cn
   配色: 玫瑰金 #C8A27A + 深酒红 #6B1D3A + 暖灰 #F5F0EB
   ============================================ */

/* === 基础重置与变量 === */
:root {
    --rose-gold: #C8A27A;
    --rose-gold-light: #E8D5BF;
    --rose-gold-dark: #A07850;
    --wine-red: #6B1D3A;
    --wine-red-light: #8C2E52;
    --wine-red-dark: #4A0E28;
    --warm-cream: #FDF8F3;
    --warm-gray: #F5F0EB;
    --charcoal: #2A2025;
    --text-primary: #2A2025;
    --text-secondary: #6E5F68;
    --text-light: #9A8D93;
    --border-color: #E8DDD5;
    --shadow-soft: 0 4px 20px rgba(107,29,58,0.08);
    --shadow-hover: 0 8px 32px rgba(107,29,58,0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    color: var(--text-primary);
    background: var(--warm-cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--wine-red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--rose-gold); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === 顶部导航 === */
.site-header {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--wine-red-dark) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 68px;
}

.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 42px; width: auto; border-radius: 4px; }
.site-logo .brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rose-gold);
    letter-spacing: 1px;
}

.main-nav { display: flex; gap: 6px; }
.main-nav a {
    color: #E8D5BF;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
    background: var(--wine-red);
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--rose-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* === 搜索框 === */
.search-bar-wrap {
    background: var(--charcoal);
    padding: 12px 0;
    border-bottom: 1px solid rgba(200,162,122,0.15);
}

.search-bar {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.search-bar input {
    flex: 1;
    padding: 10px 18px;
    border: 2px solid var(--rose-gold);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}
.search-bar input::placeholder { color: var(--text-light); }
.search-bar input:focus { border-color: var(--rose-gold-light); background: rgba(255,255,255,0.12); }

.search-bar button {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.search-bar button:hover { background: linear-gradient(135deg, var(--rose-gold-light), var(--rose-gold)); }

/* === Banner区域 === */
.hero-banner {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--charcoal);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42,32,37,0.75) 0%, rgba(107,29,58,0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 720px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    line-height: 1.3;
}

.hero-content h1 .highlight { color: var(--rose-gold-light); }

.hero-content p {
    font-size: 1.15rem;
    color: var(--rose-gold-light);
    margin-bottom: 28px;
    line-height: 1.8;
}

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--rose-gold), var(--wine-red));
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(200,162,122,0.4); color: #fff; }

.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid var(--rose-gold);
    color: var(--rose-gold);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
}
.btn-outline:hover { background: var(--rose-gold); color: #fff; transform: translateY(-2px); }

/* === 通用区块 === */
.section { padding: 72px 0; }
.section-alt { background: var(--warm-gray); }
.section-dark { background: linear-gradient(135deg, var(--charcoal), var(--wine-red-dark)); color: #fff; }

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wine-red);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--rose-gold), var(--wine-red));
    border-radius: 2px;
}

.section-dark .section-header h2 { color: var(--rose-gold-light); }

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 16px;
}

.section-dark .section-header p { color: var(--rose-gold-light); opacity: 0.8; }

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

.video-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
}

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

.video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--charcoal);
}

.video-thumb img {
    position: absolute;
    inset: 0;
    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.8);
    width: 60px;
    height: 60px;
    background: rgba(200,162,122,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.play-btn::after {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

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

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 2;
}

.video-info { padding: 16px; }

.video-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.video-meta span { display: flex; align-items: center; gap: 4px; }

/* === 分类标签 === */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }

.tag-item {
    padding: 6px 18px;
    background: var(--warm-cream);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}
.tag-item:hover, .tag-item.active {
    background: var(--wine-red);
    color: #fff;
    border-color: var(--wine-red);
}

/* === 模块卡片 === */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.module-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--rose-gold);
}

.module-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--rose-gold-light), var(--rose-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.module-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--wine-red);
}

.module-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    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: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: center;
}

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

.expert-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 24px auto 16px;
    overflow: hidden;
    border: 3px solid var(--rose-gold-light);
}

.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }

.expert-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--wine-red); }
.expert-card .role { color: var(--rose-gold); font-size: 0.9rem; margin: 4px 0 12px; }
.expert-card .bio { padding: 0 20px 20px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.expert-links { padding: 0 20px 20px; display: flex; gap: 10px; justify-content: center; }
.expert-links a {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}
.expert-links .btn-sm-primary { background: var(--wine-red); color: #fff; }
.expert-links .btn-sm-primary:hover { background: var(--wine-red-light); color: #fff; }
.expert-links .btn-sm-outline { border: 1px solid var(--rose-gold); color: var(--rose-gold); }
.expert-links .btn-sm-outline:hover { background: var(--rose-gold); color: #fff; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: #fff;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover { color: var(--wine-red); }

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--rose-gold);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.active .faq-question::after { content: '-'; }

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer { max-height: 400px; 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: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.review-card:hover { box-shadow: var(--shadow-hover); }

.review-stars { color: var(--rose-gold); font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }

.review-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-style: italic;
}

.review-author { display: flex; align-items: center; gap: 12px; }
.review-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-gold-light), var(--rose-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.review-author-info .name { font-weight: 600; font-size: 0.9rem; }
.review-author-info .date { color: var(--text-light); font-size: 0.8rem; }

/* === 合作品牌 === */
.brand-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.brand-wall-item {
    padding: 16px 28px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.brand-wall-item:hover { box-shadow: var(--shadow-hover); color: var(--wine-red); }

/* === 联系我们 === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.contact-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.contact-card h3 { font-size: 1.1rem; color: var(--wine-red); margin-bottom: 12px; }
.contact-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }
.contact-card img { max-width: 160px; margin: 12px auto 0; border-radius: var(--radius-sm); }

/* === 社交分享 === */
.share-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
}

.share-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    transition: var(--transition);
}
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #FB7299; }

/* === 页脚 === */
.site-footer {
    background: linear-gradient(135deg, var(--charcoal), var(--wine-red-dark));
    color: var(--rose-gold-light);
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(200,162,122,0.15);
}

.footer-col h4 {
    font-size: 1.05rem;
    color: var(--rose-gold);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col p, .footer-col a {
    color: rgba(232,213,191,0.7);
    font-size: 0.9rem;
    line-height: 2;
}

.footer-col a:hover { color: var(--rose-gold); }

.footer-col .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-col .footer-logo img { height: 36px; border-radius: 4px; }
.footer-col .footer-logo span { font-size: 1.2rem; font-weight: 700; color: var(--rose-gold); }

.footer-qr { display: flex; gap: 16px; margin-top: 12px; }
.footer-qr img { width: 100px; border-radius: var(--radius-sm); }

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(232,213,191,0.5);
}

/* === 面包屑 === */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}
.breadcrumb a { color: var(--wine-red); }
.breadcrumb span { margin: 0 8px; }

/* === 内页通用 === */
.page-hero {
    background: linear-gradient(135deg, var(--charcoal), var(--wine-red-dark));
    padding: 60px 0;
    text-align: center;
    color: #fff;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.page-hero p { color: var(--rose-gold-light); font-size: 1.05rem; }

.content-section { padding: 48px 0; }

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-content h2 { font-size: 1.5rem; color: var(--wine-red); margin: 32px 0 16px; }
.article-content h3 { font-size: 1.25rem; color: var(--wine-red-light); margin: 24px 0 12px; }
.article-content p { margin-bottom: 16px; }

/* === How-To指南 === */
.howto-steps {
    max-width: 700px;
    margin: 0 auto;
    counter-reset: step;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--rose-gold), var(--wine-red));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.howto-step-content h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.howto-step-content p { font-size: 0.92rem; color: var(--text-secondary); }

/* === 懒加载 === */
.lazy { opacity: 0; transition: opacity 0.5s ease; }
.lazy.loaded { opacity: 1; }

/* === MCP前端代码区 === */
.mcp-widget {
    background: rgba(200,162,122,0.05);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === 响应式 === */
@media (max-width: 768px) {
    .header-inner { height: 56px; }
    .main-nav { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--charcoal); padding: 16px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
    .main-nav.show { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero-banner { height: 380px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
    .section { padding: 48px 0; }
    .section-header h2 { font-size: 1.6rem; }
    .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; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .search-bar { margin: 0 16px; }
}

@media (max-width: 480px) {
    .hero-banner { height: 300px; }
    .hero-content h1 { font-size: 1.5rem; }
    .module-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; align-items: center; }
}
