/* 每日大赛品牌社区门户官网 样式表 */
:root {
    --primary-color: #ff6600;
    --secondary-color: #0055ff;
    --text-color: #333;
    --bg-color: #f4f7f9;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

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

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

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

ul {
    list-style: none;
}

.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.05);
    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;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

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

nav ul {
    display: flex;
}

nav ul li a {
    display: block;
    padding: 12px 20px;
    font-weight: bold;
}

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

/* Hero Section */
.hero {
    margin: 20px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-banner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-info {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-info h1 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Video Cards */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
}

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

.video-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.video-thumb {
    position: relative;
    height: 160px;
}

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

.play-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: 0.3s;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    height: 44px;
    overflow: hidden;
}

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

/* FAQ & Comments */
.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

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

.faq-item h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.comment-item {
    background: var(--white);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.comment-user {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    filter: grayscale(1) brightness(2);
    margin-bottom: 15px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero, .content-row, .footer-grid {
        grid-template-columns: 1fr;
    }
    .search-box {
        display: none;
    }
}
