/* 优化后的土楼节CSS */
:root {
    --primary-color: #2c5e1a;
    --secondary-color: #3a7d29;
    --accent-color: #d4a017;
    --light-bg: rgba(142, 252, 168, 0.15);
    --dark-text: #2c3e50;
    --light-text: #f9f9f7;
}

body {
    background-color: #f9f9f7;
    color: #333;
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
}

.culture-content {
    background: linear-gradient(45deg, rgba(94, 80, 63, 0.05) 0%, rgba(140, 112, 95, 0.08) 100%);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 12px;
}

.article-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease-in-out;
}

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

.article-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.article-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.article-title {
    color: var(--primary-color);
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, rgba(201, 126, 42, 0.4) 100%);
    border-radius: 2px;
}

.festival-activities {
    list-style: none;
    padding-left: 1.5rem;
}

.festival-activities li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed #ddd;
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.8rem;
}

.festival-activities li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.history-timeline {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.1) 0%, rgba(234, 174, 32, 0.15) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 3.5rem;
    border: 1px solid rgba(44, 94, 26, 0.1);
}

.history-timeline h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
}

.history-timeline h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.8rem;
    padding: 1.5rem 0;
    border-left: 3px solid var(--primary-color);
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s ease;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
}

.timeline-year {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    color: #b8513e;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 700;
}

.timeline-year::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.timeline-detail p {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid var(--accent-color);
    margin-bottom: 0.8rem;
    position: relative;
}

.timeline-detail p:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.detail-block {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.1) 0%, rgba(234, 174, 32, 0.15) 100%);
    border-radius: 16px;
    border: 1px solid rgba(44, 94, 26, 0.1);
    transition: all 0.3s ease;
}

.detail-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.detail-block img {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.detail-block img:hover {
    transform: scale(1.02);
}

.detail-block ul {
    list-style: none;
    padding: 0;
}

.detail-block li {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 2.5rem;
    border-left: 3px solid var(--accent-color);
}

.detail-block li::before {
    content: '•';
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.detail-block li:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.defense-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.defense-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.defense-item i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(212, 160, 23, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.festival-highlights {
    margin-top: 3rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.1) 0%, rgba(234, 174, 32, 0.15) 100%);
    border: 1px solid rgba(44, 94, 26, 0.1);
}

.festival-highlights h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
}

.festival-highlights h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.highlight-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 0;
    flex: 0 1 calc(50% - 20px);
    min-width: 300px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.highlight-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-blend-mode: multiply;
    background-color: rgba(44, 94, 26, 0.3);
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 1;
}

.card-header i {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
    animation: iconBounce 1.8s infinite;
}

.card-header h4 {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.6rem;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.card-body {
    padding: 1.8rem;
    background: white;
}

.card-body p {
    margin: 0;
    line-height: 1.8;
    color: var(--dark-text);
}

/* 动画效果 */
@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(-12px);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .highlight-card {
        flex: 0 1 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .article-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-image {
        height: 250px;
        order: -1;
    }

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

    .timeline-item {
        grid-template-columns: 1fr;
        border-left: none;
        padding-left: 0;
    }

    .timeline-year {
        padding-left: 0;
        margin-bottom: 1rem;
    }

    .timeline-year::before {
        left: -12px;
    }

    .highlight-card {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .article-image {
        height: 200px;
    }

    .article-title {
        font-size: 2rem;
    }

    .history-timeline,
    .detail-block,
    .festival-highlights {
        padding: 1.5rem;
    }

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

/* 新增：文化价值部分 */
.cultural-value {
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.1) 0%, rgba(234, 174, 32, 0.15) 100%);
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 160, 23, 0.15);
}

.cultural-value h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.cultural-value h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.8rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.value-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.value-item h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

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

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

.div-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 4rem 0;
    border: none;
}