/* 糖心vlog 品牌主题网站样式表 */
:root {
    --primary-color: #ff4d4f;
    --secondary-color: #1890ff;
    --dark-bg: #141414;
    --light-bg: #f5f5f5;
    --text-main: #333;
    --text-light: #666;
    --white: #ffffff;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.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:hover {
    color: var(--primary-color);
}

/* Search Box */
.search-section {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 20px;
}

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

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

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

/* Banner */
.hero-banner {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Section Common */
section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Video Cards */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-card:hover .video-thumb img {
    transform: scale(1.1);
}

.video-info {
    padding: 15px;
}

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

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Experts */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.expert-card {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.expert-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

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

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.faq-q {
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: #ccc;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

.qr-codes {
    display: flex;
    gap: 20px;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 100px;
    height: 100px;
    background: white;
    padding: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 15px;
    }
    nav ul li {
        margin: 0 10px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
}
