/* 每日大赛 全局样式表 */
:root {
    --primary-color: #ffcc00;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --accent-color: #007bff;
}

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Header */
header {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

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

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    gap: 20px;
}

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

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

.search-box {
    width: 100%;
    max-width: 600px;
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
    outline: none;
}

/* Video Card */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.video-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
}

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

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
}

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

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

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Footer */
footer {
    background: #111;
    padding: 50px 0 20px;
    margin-top: 50px;
    border-top: 1px solid #333;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 14px;
    color: var(--text-muted);
}

/* FAQ & Reviews */
.section-title {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 28px;
    color: var(--primary-color);
}

.faq-item {
    background: #222;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
