/* 每日大赛 官方样式表 */
:root {
    --primary-color: #e60012;
    --secondary-color: #ffc107;
    --dark-bg: #1a1a1a;
    --light-text: #ffffff;
    --gray-text: #999999;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img { height: 50px; }

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

nav ul li { margin-left: 25px; font-weight: bold; }
nav ul li a:hover { color: var(--primary-color); }

/* Search Bar */
.search-box {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 20px;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-box button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Banner */
.banner {
    width: 100%;
    height: 400px;
    background: url('../assets/images/banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.banner-content {
    background: rgba(0,0,0,0.6);
    padding: 30px;
    border-radius: 8px;
}

/* Sections */
section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

h1, h2, h3 { color: var(--primary-color); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Video Card */
.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s;
}

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

.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.video-info { padding: 15px; }
.video-info h3 { margin: 0 0 10px; font-size: 16px; color: #333; }
.video-meta { font-size: 12px; color: #999; display: flex; justify-content: space-between; }

/* FAQ & Reviews */
.faq-item { background: #fff; padding: 15px; margin-bottom: 10px; border-radius: 4px; }
.review-item { background: #fff; padding: 20px; border-left: 4px solid var(--primary-color); margin-bottom: 15px; }

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--gray-text);
    padding: 40px 20px;
    margin-top: 60px;
}

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

.footer-logo img { height: 40px; margin-bottom: 15px; }
.footer-qrcodes { display: flex; gap: 20px; }
.footer-qrcodes div { text-align: center; font-size: 12px; }
.footer-qrcodes img { width: 100px; height: 100px; display: block; margin-bottom: 5px; }

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    margin-top: 30px;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; }
    nav ul { margin-top: 15px; }
    nav ul li { margin: 0 10px; }
    .banner { height: 250px; }
}
