/* 跳戏 - 非遗文化网站 主样式表 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SimSun', 'STSong', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f3e9;
}

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

/* 头部导航 */
.header {
    background-color: #8c1c13;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

/* 导航菜单 */
.nav-menu {
    list-style-type: none;
    display: flex;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #f9c74f;
}

/* 移动端导航按钮 */
.mobile-menu-btn {
    display: none !important;
    /* 强制PC端隐藏 */
    cursor: pointer;
    font-size: 24px;
    padding: 5px 10px;
    color: #fff;
}

/* 轮播图 */
.carousel {
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

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

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 20px;
}

.carousel-caption h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.carousel-indicator.active {
    background-color: #fff;
}

/* 主要内容区域 */
.main-content {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #8c1c13;
    font-weight: bold;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #8c1c13;
    margin: 10px auto;
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #8c1c13;
}

.card-text {
    color: #666;
    margin-bottom: 15px;
}

.card-btn {
    display: inline-block;
    background-color: #8c1c13;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.card-btn:hover {
    background-color: #5f1108;
}

/* 关于页面样式 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin: 30px 0;
    align-items: center;
}

.about-content.reverse {
    grid-template-columns: 2fr 1fr;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-image video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.about-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.about-text li {
    margin-bottom: 10px;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

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

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #f9c74f;
}

.footer-links {
    list-style-type: none;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #f9c74f;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: auto;
        flex-direction: column;
        background-color: #8c1c13;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.4s ease;
        z-index: 1000;
        padding: 20px 0;
    }

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

    .nav-menu li {
        margin: 15px 0;
        text-align: center;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block !important;
        /* 强制移动端显示 */
        z-index: 1001;
        font-size: 24px;
        cursor: pointer;
        padding: 5px 10px;
    }

    .carousel {
        height: 300px;
    }

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

    .about-content,
    .about-content.reverse {
        flex-direction: column;
    }

    /* 移动端图片修复 */
    img {
        max-width: 100%;
        height: auto !important;
        object-fit: contain;
    }

    /* 移动端卡片优化 */
    .card-container {
        grid-template-columns: 1fr;
    }

    .card {
        margin-bottom: 20px;
    }

    /* 增强移动端可读性 */
    body {
        font-size: 16px;
    }

    p {
        line-height: 1.7;
    }

    /* 确保移动端logo正确显示 */
    .logo {
        font-size: 20px;
    }

    .logo img {
        height: 35px;
        margin-right: 5px;
    }
}

/* 底部动画元素 */
.animated-footer {
    width: 100%;
    overflow: hidden;
    margin: 40px 0 0;
    position: relative;
    height: 120px;
}

.color-stripe-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #8c1c13, #b85c44);
    overflow: hidden;
}

.color-stripe-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    animation: rotate 20s linear infinite;
}

.color-stripe-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    pointer-events: none;
}

/* 添加悬浮粒子 */
.color-stripe-container .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

.color-stripe-container .particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: particle-float 7s ease-in-out infinite;
}

.color-stripe-container .particle:nth-child(2) {
    top: 70%;
    left: 20%;
    width: 5px;
    height: 5px;
    animation: particle-float 9s ease-in-out infinite;
    animation-delay: 1s;
}

.color-stripe-container .particle:nth-child(3) {
    top: 40%;
    left: 50%;
    width: 10px;
    height: 10px;
    animation: particle-float 8s ease-in-out infinite;
    animation-delay: 2s;
}

.color-stripe-container .particle:nth-child(4) {
    top: 30%;
    left: 80%;
    width: 6px;
    height: 6px;
    animation: particle-float 10s ease-in-out infinite;
    animation-delay: 0.5s;
}

.color-stripe-container .particle:nth-child(5) {
    top: 60%;
    left: 70%;
    width: 7px;
    height: 7px;
    animation: particle-float 11s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-15px) translateX(10px);
    }

    50% {
        transform: translateY(5px) translateX(15px);
    }

    75% {
        transform: translateY(10px) translateX(-10px);
    }
}

.color-stripe {
    position: absolute;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform-origin: center bottom;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
    filter: blur(1px);
}

.color-stripe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
    border-radius: 50%;
}

.color-stripe:nth-child(1) {
    width: 180px;
    height: 180px;
    left: 10%;
    animation-delay: 0s;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite, wobble 5s ease-in-out infinite;
}

.color-stripe:nth-child(2) {
    width: 140px;
    height: 140px;
    left: 25%;
    animation-delay: 0.3s;
    opacity: 0.5;
    animation: float 3.5s ease-in-out infinite, wobble 6s ease-in-out infinite 0.2s;
}

.color-stripe:nth-child(3) {
    width: 200px;
    height: 200px;
    left: 40%;
    animation-delay: 0.5s;
    opacity: 0.6;
    animation: float 4s ease-in-out infinite, wobble 4.5s ease-in-out infinite 0.5s;
}

.color-stripe:nth-child(4) {
    width: 160px;
    height: 160px;
    left: 60%;
    animation-delay: 0.2s;
    opacity: 0.4;
    animation: float 3.2s ease-in-out infinite, wobble 5.5s ease-in-out infinite 0.3s;
}

.color-stripe:nth-child(5) {
    width: 120px;
    height: 120px;
    left: 80%;
    animation-delay: 0.8s;
    opacity: 0.5;
    animation: float 3.7s ease-in-out infinite, wobble 4.8s ease-in-out infinite 0.7s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes wobble {

    0%,
    100% {
        border-radius: 50%;
    }

    25% {
        border-radius: 45% 55% 52% 48% / 48% 44% 56% 52%;
    }

    50% {
        border-radius: 52% 48% 45% 55% / 56% 52% 48% 44%;
    }

    75% {
        border-radius: 48% 52% 55% 45% / 44% 56% 52% 48%;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animated-footer:hover .color-stripe {
    animation-play-state: paused;
    filter: blur(0);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.animated-footer:hover .color-stripe:nth-child(1) {
    transform: scale(1.2) translateY(-30px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgba(255, 255, 255, 0.2);
}

.animated-footer:hover .color-stripe:nth-child(2) {
    transform: scale(1.3) translateY(-40px);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgba(255, 255, 255, 0.15);
}

.animated-footer:hover .color-stripe:nth-child(3) {
    transform: scale(1.1) translateY(-25px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgba(255, 255, 255, 0.25);
}

.animated-footer:hover .color-stripe:nth-child(4) {
    transform: scale(1.25) translateY(-35px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgba(255, 255, 255, 0.18);
}

.animated-footer:hover .color-stripe:nth-child(5) {
    transform: scale(1.15) translateY(-20px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgba(255, 255, 255, 0.22);
}