/* 每日大赛 品牌官网 样式表 */
:root {
    --primary-color: #8d6e63; /* 暖棕色 */
    --secondary-color: #f5f5f5; /* 浅灰色 */
    --accent-color: #6b8e23; /* 橄榄绿 */
    --text-color: #4e342e; /* 深棕色 */
    --bg-color: #fffaf0; /* 象牙白 */
    --white: #ffffff;
}

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

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

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

ul {
    list-style: none;
}

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

/* Header */
header {
    background-color: rgba(255, 250, 240, 0.9);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
}

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

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

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

.search-box {
    width: 100%;
    max-width: 600px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    background: var(--white);
}

/* Banner */
.banner {
    height: 600px;
    background: url('../images/banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: #888;
    font-style: italic;
}

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

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

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

.video-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

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

.play-btn::after {
    content: '';
    border-left: 15px solid var(--primary-color);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 5px;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.video-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    background: var(--secondary-color);
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

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

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

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    font-style: italic;
}

.review-user {
    margin-top: 15px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .banner h1 { font-size: 2.5rem; }
    nav ul { display: none; }
    .header-content { flex-direction: column; }
}
