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

:root {
    --primary: #ff6b9d;
    --secondary: #ff8fab;
    --accent: #ffb3d1;
    --dark: #ff4d7a;
    --bg-light: #fff5f8;
    --bg-white: #ffffff;
    --text-dark: #2d2d2d;
    --text: #4a4a4a;
    --text-light: #8a8a8a;
    --border: #ffe0e0;
    --shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
    --shadow-lg: 0 8px 24px rgba(255, 107, 157, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.content-box {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 顶部导航栏 */
.header-bar {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.brand-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.brand-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.brand-slogan {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 12px;
}

.navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

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

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

/* 主横幅 */
.banner-area {
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 100%);
    padding: 100px 0;
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.banner-text {
    animation: fadeInLeft 0.6s ease-out;
}

.banner-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 500;
}

.banner-desc {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
}

.banner-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInRight 0.6s ease-out;
}

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 主容器 */
.main-area {
    padding: 0;
}

/* 介绍区块 */
.intro-area {
    padding: 80px 0;
    background: var(--bg-white);
}

.area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary);
}

.area-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
}

.more-btn {
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.more-btn:hover {
    color: var(--dark);
}

.area-body {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-dark);
}

.area-body p {
    margin-bottom: 25px;
}

.area-body p:last-child {
    margin-bottom: 0;
}

/* 视频区块 */
.video-area {
    padding: 80px 0;
    background: var(--bg-white);
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.video-item {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.video-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.video-link {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    text-decoration: none;
    color: inherit;
}

.video-thumb {
    position: relative;
    width: 280px;
    height: 200px;
    overflow: hidden;
    background: var(--text-dark);
}

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

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: var(--bg-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-item:hover .play-icon {
    opacity: 1;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--bg-white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.video-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.video-author {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 15px;
}

.video-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

/* 分类区块 */
.category-area {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.category-item {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.category-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

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

.category-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.category-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
}

.category-btn {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.category-btn:hover {
    color: var(--dark);
}

.category-detail {
    flex: 1;
}

/* 页面标题 */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 80px 0;
    text-align: center;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* 详情区块 */
.detail-area {
    padding: 60px 0;
    background: var(--bg-white);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.detail-player {
    position: sticky;
    top: 90px;
}

.player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--text-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.player-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: var(--bg-white);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--dark);
}

.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.detail-meta {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 25px;
}

.detail-desc {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.detail-desc p {
    margin-bottom: 20px;
}

.detail-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-light);
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* 相关视频 */
.related-area {
    padding: 60px 0;
    background: var(--bg-light);
}

.related-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

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

.video-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--text-dark);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.card-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: var(--bg-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.card-thumb .duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--bg-white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.card-info {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.card-author {
    font-size: 13px;
    color: var(--primary);
}

/* 关于布局 */
.about-area {
    padding: 60px 0;
    background: var(--bg-white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 信息区块 */
.info-area {
    padding: 60px 0;
    background: var(--bg-white);
}

.info-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
}

.info-box h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.info-box p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
}

/* 页脚 */
.footer-bar {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 20px;
    margin-top: 50px;
}

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

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

.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-text {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-menu {
    list-style: none;
}

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

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .banner-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .banner-img {
        order: -1;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-player {
        position: static;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 30px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s;
        z-index: 99;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-link {
        display: block;
        padding: 15px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

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

    .video-link {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }

    .video-thumb {
        width: 200px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 28px;
    }

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

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

    .video-thumb {
        width: 100%;
        height: 200px;
    }
}
