﻿/* ===== 糖心vlog - 主样式表 ===== */
/* 百度SEO优化：精简CSS，提升页面加载速度 */
/* --- 全局重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #ff6b9d;
    --primary-dark: #e84a7a;
    --secondary-color: #c44dff;
    --accent-color: #ff9a56;
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --bg-light: #0f3460;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7a8ba0;
    --border-color: #2a3a5e;
    --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #c44dff 100%);
    --gradient-card: linear-gradient(145deg, #1a2540 0%, #16213e 100%);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(255, 107, 157, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--accent-color);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
ul, ol {
    list-style: none;
}
/* --- 容器 --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
/* --- 头部导航 --- */
.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    -webkit-text-fill-color: #fff;
}
.nav {
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav a {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav a:hover,
.nav a.active {
    color: var(--text-primary);
    background: rgba(255, 107, 157, 0.1);
}
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}
/* --- Banner/Hero区域 --- */
.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px;
}
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,26,46,0.4) 0%, rgba(255,107,157,0.15) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    z-index: 2;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.hero-tags span {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.section-title h2 {
    font-size: 1.4rem;
    position: relative;
    padding-left: 15px;
}
.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--gradient-primary);
    
    border-radius: 2px;
}
.section-title .more-link {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.section-title .more-link:hover {
    color: var(--primary-color);
}
/* --- 内容区域 --- */
.main-content {
    padding: 40px 0;
}
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}
.content-left {
    min-width: 0;
}
.content-right {
    min-width: 0;
}
/* --- 文章卡片 --- */
.article-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
    display: flex;
    gap: 20px;
}
.article-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.article-card-thumb {
    width: 200px;
    min-width: 200px;
    height: 130px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}
.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-card-thumb .thumb-placeholder .play-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 107, 157, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}
.article-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.article-card-content h3 {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 8px;
}
.article-card-content h3 a {
    color: var(--text-primary);
}
.article-card-content h3 a:hover {
    color: var(--primary-color);
}
.article-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.article-card-meta .category-tag {
    background: rgba(255, 107, 157, 0.15);
    color: var(--primary-color);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
}
/* --- 视频网格卡片 --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.video-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.video-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.video-card-thumb {
    width: 100%;
    height: 160px;
    background: var(--bg-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
}
.video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-card-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 107, 157, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}
.video-card:hover .play-icon {
    opacity: 1;
}
.video-card-thumb .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}
.video-card-info {
    padding: 15px;
}
.video-card-info h3 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card-info h3 a {
    color: var(--text-primary);
}
.video-card-info h3 a:hover {
    color: var(--primary-color);
}
.video-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}
/* --- 侧边栏 --- */
.sidebar-widget {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-widget h3 {
    font-size: 1.05rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 12px;
}
.sidebar-widget h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 18px;
    background: var(--gradient-primary);
    
    border-radius: 2px;
}
.sidebar-hot-list {
    counter-reset: hotlist;
}
.sidebar-hot-list li {
    counter-increment: hotlist;
    padding: 10px 0;
    border-bottom: 1px solid rgba(42, 58, 94, 0.5);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.sidebar-hot-list li:last-child {
    border-bottom: none;
}
.sidebar-hot-list li::before {
    content: counter(hotlist);
    min-width: 22px;
    height: 22px;
    background: var(--bg-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.sidebar-hot-list li:nth-child(-n+3)::before {
    background: var(--gradient-primary);
    
    color: #fff;
}
.sidebar-hot-list li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}
.sidebar-hot-list li a:hover {
    color: var(--primary-color);
}
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sidebar-tags a {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.82rem;
    transition: var(--transition);
}
.sidebar-tags a:hover {
    background: var(--primary-color);
    color: #fff;
}
/* --- 面包屑导航 --- */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--text-secondary);
}
.breadcrumb a:hover {
    color: var(--primary-color);
}
.breadcrumb span {
    margin: 0 8px;
    color: var(--text-muted);
}
/* --- 文章详情页 --- */
.article-detail {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 35px;
}
.article-detail h1 {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 15px;
}
.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-muted);
}
.article-detail-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}
.article-detail-content p {
    margin-bottom: 18px;
}
.article-detail-content h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 30px 0 15px;
}
.article-detail-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 25px 0 12px;
}
.article-detail-content img {
    border-radius: var(--radius-sm);
    margin: 20px 0;
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}
.article-image {
    margin: 25px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.article-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}
/* --- 友情链接专区 --- */
.footer-friendlinks {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-friendlinks h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}
.friendlinks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.friendlinks-list a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    transition: all 0.3s ease;
}
.friendlinks-list a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(255, 107, 157, 0.05);
}
/* --- 评论区 --- */
.comments-section {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-top: 25px;
}
.comments-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(42, 58, 94, 0.4);
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    min-width: 40px;
.comment-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
}
.comment-body {
    flex: 1;
}
.comment-user {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}
.comment-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.comment-time {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 5px;
}
/* --- 分页 --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}
.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.pagination .current {
    background: var(--gradient-primary);
    
    color: #fff;
    border-color: transparent;
}
/* --- 底部 --- */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px 20px;
    margin-top: 50px;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-about h3,
.footer-links h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}
.footer-about p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.footer-links ul li {
    margin-bottom: 8px;
}
.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.88rem;
}
.footer-links ul li a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-seo-text {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 15px;
    background: rgba(15, 52, 96, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.8;
}
/* --- 分类导航条 --- */
.category-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
}
.category-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.category-nav a {
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 0.88rem;
    background: var(--bg-light);
    transition: var(--transition);
}
.category-nav a:hover,
.category-nav a.active {
    background: var(--gradient-primary);
    
    color: #fff;
}
/* --- 关于页面等内页 --- */
.page-content {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    margin: 30px 0;
}
.page-content h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}
.page-content h2 {
    font-size: 1.3rem;
    margin: 25px 0 12px;
    color: var(--primary-color);
}
.page-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}
/* --- 相关推荐 --- */
.related-articles {
    margin-top: 30px;
}
.related-articles h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.related-list a {
    display: block;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}
.related-list a:hover {
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary-color);
}
/* --- 上一篇/下一篇 --- */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.article-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 45%;
}
.article-nav a:hover {
    color: var(--primary-color);
}
.article-nav .prev::before {
    content: '← ';
}
.article-nav .next::after {
    content: ' →';
}
/* --- 网站介绍区域 --- */
.site-intro {
    padding: 60px 0;
    background: var(--gradient-card);
    border-bottom: 1px solid var(--border-color);
}
.intro-header {
    text-align: center;
    margin-bottom: 40px;
}
.intro-header h2 {
    font-size: 2rem;
    background: var(--gradient-primary);
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}
.intro-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}
.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}
.intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}
.intro-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.intro-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.intro-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.intro-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}
.intro-stats {
    display: flex;
    justify-content: space-around;
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
    .intro-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .stat-item {
        width: 45%;
    }
    .intro-header h2 {
        font-size: 1.5rem;
    }
}
