/* style.css - 每日大赛现代极简高端风格 */

/* 基础样式 */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --text-color: #333333;
    --light-text-color: #666666;
    --bg-color: #f8f8f8;
    --white: #ffffff;
    --border-color: #eeeeee;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* 页眉 */
header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

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

.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

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

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

nav ul li a {
    text-decoration: none;
    color: var(--light-text-color);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

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

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.search-box {
    position: relative;
    margin-left: 30px;
}

.search-box input {
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 25px;
    outline: none;
    width: 220px;
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--light-text-color);
    width: 260px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

/* 首屏 Banner */
.hero {
    background-color: #f0f0f0;
    padding: 120px 0;
    text-align: center;
    margin-bottom: 80px;
}

.hero h1 {
    font-size: 52px;
    color: #222;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero p {
    font-size: 22px;
    color: var(--light-text-color);
    margin-bottom: 45px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 标题样式 */
.section-title {
    font-size: 38px;
    text-align: center;
    margin-bottom: 60px;
    color: #222;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 品牌介绍 */
.brand-intro {
    padding: 60px 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px auto;
}

.brand-intro h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.brand-intro p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 视频卡片 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.video-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.video-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.video-card:hover img {
    transform: scale(1.05);
}

.video-card-content {
    padding: 25px;
    flex-grow: 1;
}

.video-card h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 12px;
    color: #222;
    font-weight: 600;
}

.video-card p {
    font-size: 15px;
    color: var(--light-text-color);
    margin-bottom: 0;
}

.play-button {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    fill: var(--white);
    width: 25px;
    height: 25px;
}

/* 板块卡片 */
.core-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.section-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.section-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: #eee;
}

.section-card h3 {
    font-size: 22px;
    color: #222;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-card p {
    font-size: 15px;
    color: var(--light-text-color);
}

/* 社区数据 */
.community-stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 80px;
    background-color: var(--white);
    padding: 60px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-item {
    text-align: center;
    margin: 20px 40px;
}

.stat-item .value {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-item .label {
    font-size: 18px;
    color: var(--light-text-color);
    font-weight: 500;
}

/* 用户评价 */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px 35px;
    box-shadow: var(--shadow);
    font-style: italic;
    color: #444;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: "“";
    font-size: 100px;
    color: #f0f0f0;
    position: absolute;
    top: -20px;
    left: 15px;
    line-height: 1;
    font-family: serif;
}

.testimonial-card p {
    font-size: 17px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    font-style: normal;
    position: relative;
    z-index: 1;
    font-size: 15px;
}

/* FAQ */
.faq-section {
    margin-bottom: 80px;
}

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 1px solid #f5f5f5;
}

.faq-question {
    padding: 22px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #fafafa;
}

.faq-question span {
    font-size: 24px;
    transition: var(--transition);
    color: #999;
}

.faq-question.active span {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 30px 25px 30px;
    font-size: 16px;
    color: var(--light-text-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer.open {
    max-height: 400px;
    padding-top: 10px;
}

/* 加入我们 */
.join-us-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.join-us-section h2 {
    font-size: 46px;
    margin-bottom: 25px;
    font-weight: 700;
}

.join-us-section p {
    font-size: 22px;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.join-us-section .btn {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 18px 50px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    transition: var(--transition);
}

.join-us-section .btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

/* 页脚 */
footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 60px 0;
    font-size: 15px;
    text-align: center;
}

footer .footer-links {
    margin-bottom: 30px;
}

footer .footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 20px;
    transition: var(--transition);
}

footer .footer-links a:hover {
    color: var(--white);
}

footer p {
    margin: 0;
    letter-spacing: 0.5px;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .hero h1 { font-size: 42px; }
    .section-title { font-size: 32px; }
    .stat-item .value { font-size: 48px; }
}

@media (max-width: 768px) {
    header { padding: 15px 0; }
    .header-content { flex-direction: column; }
    nav ul { margin: 20px 0; flex-wrap: wrap; justify-content: center; }
    nav ul li { margin: 5px 15px; }
    .search-box { margin: 15px 0 0 0; width: 100%; }
    .search-box input { width: 100%; }
    .search-box input:focus { width: 100%; }
    
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 18px; }
    
    .video-grid { grid-template-columns: 1fr; gap: 30px; }
    .core-sections-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    
    .stat-item { margin: 20px; width: 100%; }
    
    .join-us-section { padding: 80px 0; }
    .join-us-section h2 { font-size: 32px; }
    .join-us-section p { font-size: 18px; }
    
    footer .footer-links a { display: block; margin: 15px 0; }
}
