/* 每日大赛 品牌官方网站 核心样式表 */
:root {
    --primary-color: #d4af37; /* 品牌金 */
    --secondary-color: #1a1a1a; /* 深色背景 */
    --text-color: #333;
    --light-text: #f4f4f4;
    --accent-color: #e63946;
}

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

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

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

ul {
    list-style: none;
}

/* 导航栏 */
header {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    vertical-align: middle;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 10px;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

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

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

/* 搜索框 */
.search-container {
    background: #f4f4f4;
    padding: 10px 5%;
    display: flex;
    justify-content: center;
}

.search-box {
    width: 100%;
    max-width: 600px;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}

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

/* 英雄区 */
.hero {
    height: 400px;
    background: url('../assets/images/hero_banner.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* 模块通用样式 */
section {
    padding: 4rem 5%;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    position: relative;
}

h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 视频卡片 */
.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s;
}

.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.8;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 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: 1.5rem;
}

.video-info h3 {
    margin-bottom: 0.5rem;
}

.video-meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    justify-content: space-between;
}

/* 专家展示 */
.expert-card {
    text-align: center;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
}

.expert-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

/* FAQ */
.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.faq-question {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* 页脚 */
footer {
    background: var(--secondary-color);
    color: var(--light-text);
    padding: 4rem 5% 2rem;
}

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

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

/* 响应式 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    nav ul {
        margin-top: 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
}
