/* 每日大赛官网全局样式 */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
}

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

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

.header-content {
    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: 20px;
}

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

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

/* Search Box */
.search-container {
    margin: 10px 0;
    text-align: center;
}

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

/* Banner */
.banner {
    background: url('../images/banner_main.jpg') no-repeat center center/cover;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.banner p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.cta-button {
    background: var(--accent-color);
    color: var(--text-color);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
}

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

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card img {
    width: 80px;
    margin-bottom: 20px;
}

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

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

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.play-button-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-button-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--primary-color);
    margin-left: 5px;
}

.video-info {
    padding: 20px;
}

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

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 5px;
}

.faq-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    font-style: italic;
}

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

.footer-links a {
    color: #ccc;
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--white);
}

.update-time {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #999;
}

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