/* 每日大赛 品牌官网 样式表 */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo img {
    height: 50px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

nav ul li {
    padding: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
}

/* Search Box */
.search-container {
    padding: 10px 0;
    background: #f4f4f4;
    text-align: center;
}

.search-container input {
    width: 60%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    background: url('../images/hero_banner.jpg') no-repeat center center/cover;
    height: 400px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Video Cards */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.video-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: scale(1.05);
}

.video-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: rgba(255,255,255,0.8);
    display: none;
}

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

.video-info {
    padding: 10px;
}

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

.video-stats {
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
}

/* Sections */
section {
    padding: 40px 0;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

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

/* FAQ & Reviews */
.faq-item, .review-item {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 10px;
}

.social-links a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2rem;
}

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