/* 
 * 草莓视频 - 游戏解说与视频社区
 * 原创CSS样式表
 * 主题色：深邃蓝(#0a0f24) + 电竞紫(#7b2cbf) + 荣耀金(#ffd700)
 */

:root {
    --primary-color: #7b2cbf;
    --secondary-color: #ffd700;
    --bg-dark: #0a0f24;
    --bg-card: #151b38;
    --text-main: #e0e6ed;
    --text-muted: #8b9bb4;
    --accent-cyan: #00f5d4;
    --accent-pink: #f15bb5;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* 导航favicon小图标 */
.nav-favicon {
    height: 32px;
    width: 32px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.nav-logo {
    height: 50px;
    display: inline-block;
    vertical-align: middle;
}

.logo {
    display: flex;
    align-items: center;
}

/* 导航下拉菜单 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    color: var(--text-main);
    font-weight: bold;
    font-size: 16px;
    padding: 10px 0;
    display: block;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10,15,36,0.98);
    border: 1px solid rgba(123,44,191,0.4);
    border-radius: 8px;
    min-width: 140px;
    z-index: 2000;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.nav-dropdown-menu.open {
    display: block;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: var(--secondary-color);
    background: rgba(123,44,191,0.2);
}

/* 移动端汉堡菜单 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* 头部导航 */
.header {
    background-color: rgba(10, 15, 36, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(123, 44, 191, 0.3);
}

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

.logo img {
    height: 50px;
}

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

.nav-menu a {
    color: var(--text-main);
    font-weight: bold;
    font-size: 16px;
    position: relative;
    padding: 10px 0;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

/* 搜索框 */
.search-container {
    background-color: var(--bg-card);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.search-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-pink));
    border: none;
    color: #fff;
    padding: 0 30px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.search-btn:hover {
    opacity: 0.9;
}

/* Banner大图 */
.hero-banner {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,15,36,0.3), rgba(10,15,36,1));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hero-desc {
    font-size: 18px;
    color: #fff;
    margin-bottom: 30px;
}

/* 通用区块 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--primary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.video-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(123, 44, 191, 0.3);
    border-color: var(--primary-color);
}

.video-thumb {
    position: relative;
    padding-top: 66.66%; /* 3:2 */
    overflow: hidden;
    cursor: pointer;
}

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

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

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: var(--transition);
}

.video-card:hover .play-icon {
    transform: scale(1);
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #000;
    margin-left: 5px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 15px;
}

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

.tag {
    background: rgba(123, 44, 191, 0.2);
    color: var(--accent-cyan);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(0, 245, 212, 0.3);
}

/* 专家展示 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.expert-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.expert-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

.expert-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
    padding: 5px;
    object-fit: cover;
}

.expert-name {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.expert-title {
    color: var(--accent-cyan);
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expert-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.expert-btn {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition);
}

.expert-btn:hover {
    background: var(--primary-color);
}

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

.faq-item {
    background: var(--bg-card);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.faq-q {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #fff;
    transition: var(--transition);
}

.faq-q:hover {
    color: var(--secondary-color);
}

.faq-icon {
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-a {
    padding: 0 20px 20px;
    max-height: 500px;
}

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

.review-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(123, 44, 191, 0.1));
    padding: 30px;
    border-radius: 15px;
    position: relative;
}

.review-stars {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-main);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
}

.author-info h4 {
    color: #fff;
    font-size: 16px;
}

.author-info p {
    color: var(--text-muted);
    font-size: 12px;
}

/* 响应式 - 移动端 */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(10,15,36,0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(123,44,191,0.3);
        z-index: 999;
        gap: 15px;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-dropdown-menu {
        position: static;
        border: none;
        background: rgba(123,44,191,0.1);
        padding: 5px 0 5px 15px;
        box-shadow: none;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-banner {
        height: 350px;
    }
    .section-title {
        font-size: 26px;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
    .expert-grid {
        grid-template-columns: 1fr;
    }
    .review-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 底部 */
.footer {
    background: #050814;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(123, 44, 191, 0.3);
}

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

.footer-col h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

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

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.yff5kxg li {
    margin-bottom: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.l8mgleos {
    display: flex;
    gap: 20px;
}

.j4u4hw {
    text-align: center;
}

.q2w0sq {
    width: 100px;
    height: 100px;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.j4u4hw p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero-title {
        font-size: 32px;
    }
    .section {
        padding: 50px 0;
    }
}
