/* 糖心vlog 全局样式表 - 百度SEO优化版 */
:root {
    --primary-color: #ff69b4; /* 糖心品牌粉 */
    --secondary-color: #ff4d94;
    --text-color: #333;
    --bg-color: #f8f8f8;
    --white: #ffffff;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* 导航栏 */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav ul li {
    margin-left: 25px;
}

.nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: 0.3s;
}

.nav ul li a:hover {
    color: var(--primary-color);
}

/* 搜索框 */
.search-container {
    padding: 10px 0;
    background: #eee;
    text-align: center;
}

.search-box {
    display: inline-flex;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    overflow: hidden;
    background: var(--white);
}

.search-box input {
    border: none;
    padding: 10px 20px;
    width: 300px;
    outline: none;
}

.search-box button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

/* Banner */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/banner.jpg') center/cover;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; margin-bottom: 20px; }
.btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* 模块通用 */
.section { padding: 60px 0; background: var(--white); margin-bottom: 20px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2.2rem; color: var(--primary-color); }

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

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: 0.3s;
}

.video-card:hover { transform: translateY(-5px); }

.video-thumb {
    position: relative;
    height: 180px;
    background: #ddd;
}

.video-thumb img { width: 100%; height: 100%; object-fit: cover; }

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,105,180,0.8);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.video-card:hover .play-btn { display: flex; }

.video-info { padding: 15px; }
.video-info h3 { margin: 0 0 10px; font-size: 1.1rem; }

/* 页脚 */
.footer {
    background: #333;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}

.footer-logo img { height: 40px; margin-bottom: 20px; }
.footer p { margin: 5px 0; }

/* 响应式 */
@media (max-width: 768px) {
    .header .container { flex-direction: column; }
    .nav ul { margin-top: 15px; }
    .nav ul li { margin: 0 10px; }
    .hero h1 { font-size: 2rem; }
    .search-box input { width: 200px; }
}
