/* 每日大赛 品牌官方网站 样式表 */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #fbbc05;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --gray: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

ul {
    list-style: none;
}

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

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

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

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
}

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

nav ul li a {
    font-weight: bold;
    transition: color 0.3s;
}

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

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

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

/* Hero Section */
.hero {
    background: url('../images/banner.jpg') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    background: rgba(0,0,0,0.5);
    padding: 40px;
    border-radius: 10px;
}

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

/* Video Grid */
.section-title {
    text-align: center;
    margin: 40px 0;
    font-size: 2rem;
}

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

.video-card {
    background: var(--white);
    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%; /* 16:9 */
}

.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(255,255,255,0.8);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

.video-info {
    padding: 15px;
}

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

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

/* Modules */
.module-section {
    padding: 60px 0;
}

.module-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.module-item:nth-child(even) {
    flex-direction: row-reverse;
}

.module-img {
    flex: 1;
    padding: 20px;
}

.module-img img {
    width: 100%;
    border-radius: 10px;
}

.module-text {
    flex: 1;
    padding: 20px;
}

/* FAQ & Reviews */
.faq-section, .review-section {
    background: var(--white);
    padding: 60px 0;
    margin-bottom: 40px;
}

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

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

.review-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

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

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 15px;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
}

.qrcode-item img {
    width: 120px;
    height: 120px;
}

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