/* 每日大赛 品牌社区门户 样式表 */
:root {
    --primary-color: #0056b3;
    --secondary-color: #ff8c00;
    --text-color: #333;
    --bg-color: #f4f7f9;
    --white: #ffffff;
}

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

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

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

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

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

.logo img {
    height: 50px;
}

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

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    font-weight: bold;
    color: #444;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Search Box */
.search-bar {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.search-bar input {
    width: 60%;
    padding: 10px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 25px 0 0 25px;
    outline: none;
}

.search-bar button {
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

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

.video-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    position: relative;
}

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

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

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

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

.video-info {
    padding: 15px;
}

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

.video-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid #3e4f5f;
    padding-top: 20px;
    font-size: 14px;
}

/* FAQ & Comments */
.section-title {
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
    margin: 40px 0 20px;
}

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

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

.comment-item {
    background: var(--white);
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
    }
    .nav-menu ul {
        margin-top: 15px;
    }
    .nav-menu li {
        margin: 0 10px;
    }
}
