/* 
 * 每日大赛官网 - 全局样式
 * 设计理念：高端时尚·暗黑潮流·沉浸式科技娱乐风格
 * 色彩方案：深黑背景+霓虹金紫渐变光效
 */

/* ========== 全局变量与重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0e27;
    --primary-darker: #050812;
    --accent-purple: #b524f3;
    --accent-gold: #ffd700;
    --accent-cyan: #00d9ff;
    --accent-pink: #ff006e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: rgba(255, 215, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(181, 36, 243, 0.3);
    --shadow-glow-cyan: 0 0 20px rgba(0, 217, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== 顶部导航 ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.navbar-menu {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========== 搜索框 ========== */
.search-container {
    background: rgba(10, 14, 39, 0.8);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-box:hover,
.search-box:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    border: none;
    color: var(--primary-dark);
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* ========== 首屏Banner ========== */
.banner-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 60px;
}

.banner-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.6) 0%, rgba(181, 36, 243, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease;
}

.banner-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn {
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.4);
}

/* ========== 通用Section样式 ========== */
section {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ========== 热播视频模块 ========== */
.hot-section {
    margin-bottom: 80px;
}

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

.video-card {
    background: rgba(255, 215, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeIn 0.6s ease;
}

.video-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.video-cover {
    position: relative;
    width: 100%;
    padding-bottom: 150%;
    overflow: hidden;
    background: var(--primary-darker);
}

.video-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-dark);
}

.video-card:hover .play-button {
    opacity: 1;
    animation: pulse 0.6s ease infinite;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
}

.video-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    background: rgba(181, 36, 243, 0.2);
    color: var(--accent-purple);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid rgba(181, 36, 243, 0.3);
}

/* ========== 社区模块 ========== */
.community-section {
    margin-bottom: 80px;
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(181, 36, 243, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.community-topics h3,
.community-danmu h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.topic-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.topic-name {
    font-weight: 600;
}

.topic-count {
    font-size: 12px;
    opacity: 0.7;
}

.danmu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.danmu-item {
    padding: 12px 15px;
    background: rgba(0, 217, 255, 0.05);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-secondary);
    animation: slideIn 0.5s ease;
}

@media (max-width: 768px) {
    .community-content {
        grid-template-columns: 1fr;
    }
}

/* ========== AI模块 ========== */
.ai-section {
    margin-bottom: 80px;
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.ai-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
}

.ai-features h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.features-list li {
    padding: 12px 15px;
    background: rgba(0, 217, 255, 0.05);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.features-list strong {
    color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .ai-content {
        grid-template-columns: 1fr;
    }
}

/* ========== 用户评价模块 ========== */
.testimonials-section {
    margin-bottom: 80px;
}

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

.testimonial-card {
    background: rgba(255, 215, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 25px rgba(181, 36, 243, 0.2);
    transform: translateY(-3px);
}

.testimonial-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.testimonial-user h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.rating {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 12px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(181, 36, 243, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(181, 36, 243, 0.1);
    color: var(--accent-purple);
}

.faq-icon {
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    animation: slideDown 0.3s ease;
}

/* ========== 联系模块 ========== */
.contact-section {
    margin-bottom: 80px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.contact-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-info strong {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
}

.qr-codes {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.qr-item {
    text-align: center;
}

.qr-item p {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: rgba(0, 217, 255, 0.1);
    border: 2px dashed var(--accent-cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 12px;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .qr-codes {
        flex-direction: column;
    }
}

/* ========== 页脚 ========== */
.footer {
    background: rgba(5, 8, 18, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.footer-top h3 {
    font-size: 18px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-gold);
}

.footer-middle {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.footer-middle p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.share-link {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-link:hover {
    color: var(--accent-cyan);
}

/* ========== 动画效果 ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .navbar-menu {
        gap: 15px;
        font-size: 12px;
    }

    .navbar-logo h1 {
        font-size: 20px;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }

    .navbar-menu {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .banner-section {
        height: 300px;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        margin-bottom: 40px;
    }

    .video-grid {
        gap: 15px;
    }

    .community-content,
    .ai-content,
    .contact-content {
        padding: 20px;
    }

    .qr-codes {
        gap: 20px;
    }
}
