/* 每日大赛 品牌社区门户 样式表 */
:root {
    --primary-color: #0056b3;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --accent-color: #ffc107;
    --border-color: #dee2e6;
}

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

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

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

/* Header & Nav */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
}

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

.logo img {
    height: 60px;
}

nav {
    background: var(--primary-color);
    color: #fff;
}

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

nav ul li a {
    color: #fff;
    padding: 15px 20px;
    display: block;
    font-weight: bold;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.1);
}

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

.search-box {
    width: 60%;
    padding: 12px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    outline: none;
}

/* Banner */
.banner {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Modules */
.module {
    background: #fff;
    margin: 30px 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.module-title {
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

.module-title h2 {
    margin: 0;
    font-size: 24px;
}

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

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-card img {
    width: 100%;
    display: block;
    transition: opacity 0.3s;
}

.video-card:hover img {
    opacity: 0.7;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: #fff;
    display: none;
    pointer-events: none;
}

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

.video-info {
    padding: 10px;
    background: #fff;
}

.video-info h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

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

/* FAQ & Comments */
.faq-item, .comment-item {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.faq-item:last-child, .comment-item:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    background: #333;
    color: #ccc;
    padding: 40px 0;
    margin-top: 50px;
}

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

.footer-logo img {
    height: 50px;
    filter: grayscale(100%);
}

.copyright {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .search-box { width: 90%; }
    .footer-content { flex-direction: column; text-align: center; }
}
