/* 每日大赛 官方样式表 */
:root {
    --primary-color: #e60012;
    --secondary-color: #333;
    --bg-color: #f4f4f4;
    --text-color: #333;
    --white: #ffffff;
}

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

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: var(--white);
    border-bottom: 2px solid var(--primary-color);
    padding: 10px 0;
}

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

.logo img {
    height: 60px;
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 16px;
}

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

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

.search-box {
    width: 600px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-btn {
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Banner */
.banner {
    margin: 20px 0;
}

.banner img {
    width: 100%;
    border-radius: 8px;
}

/* Main Content */
.main-layout {
    display: flex;
    gap: 20px;
}

.content-left {
    flex: 2;
}

.content-right {
    flex: 1;
}

section {
    background: var(--white);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
    margin-top: 0;
    font-size: 20px;
}

/* Video Cards */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.video-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
}

.video-card img {
    width: 100%;
    transition: transform 0.3s;
}

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

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

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

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

.video-info {
    padding: 10px 0;
}

.video-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.video-meta {
    font-size: 12px;
    color: #888;
}

/* FAQ & Reviews */
.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

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

.review-item {
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-style: italic;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 12px;
}

.footer-logo img {
    height: 40px;
    filter: grayscale(1) brightness(2);
}
