/* 322窟详情页样式 */

/* 恢复默认鼠标 */
body {
    cursor: auto !important;
}

a, button, .cave-link, .artifact-card-link {
    cursor: pointer !important;
}

/* 详情区域 - 敦煌葡萄藤纹背景 */
.cave-detail-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--cave-beige) 0%, #e8ddd0 100%);
    min-height: 100vh;
    position: relative;
}

.cave-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232d6b5f' stroke-width='1' opacity='0.07'%3E%3Cpath d='M10 60 Q30 40 50 60 Q70 80 90 60 Q110 40 120 50'/%3E%3Cpath d='M0 30 Q20 15 40 30 Q60 45 80 30 Q100 15 120 25'/%3E%3Cpath d='M0 90 Q25 75 50 90 Q75 105 100 90 Q115 80 120 85'/%3E%3Cpath d='M20 10 Q30 25 25 40'/%3E%3Cpath d='M80 20 Q90 35 85 50'/%3E%3Cpath d='M40 80 Q50 95 45 110'/%3E%3Cpath d='M100 70 Q110 85 105 100'/%3E%3C/g%3E%3Cg fill='%231a4a5c' opacity='0.05'%3E%3Ccircle cx='25' cy='35' r='5'/%3E%3Ccircle cx='85' cy='45' r='5'/%3E%3Ccircle cx='45' cy='85' r='4'/%3E%3Ccircle cx='105' cy='75' r='4'/%3E%3Ccircle cx='60' cy='20' r='3'/%3E%3Ccircle cx='60' cy='100' r='3'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.cave-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 封面英雄区 */
.cave-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cave-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) blur(2px);
    transform: scale(1.05);
}

.cave-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(45, 107, 95, 0.25) 0%, rgba(26, 74, 92, 0.6) 100%);
}

.cave-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--cave-beige);
}

.cave-hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.15em;
}

.cave-hero-subtitle {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--earth-yellow);
    letter-spacing: 0.2em;
}

/* 信息卡片 */
.cave-info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.info-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--stone-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--earth-yellow);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-label {
    font-size: 0.9rem;
    color: var(--cave-brown);
    opacity: 0.7;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--stone-blue);
}

/* 描述卡片 */
.cave-description-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.description-content {
    line-height: 1.9;
    color: var(--cave-brown);
}

.description-content p {
    margin-bottom: 1.2rem;
    text-indent: 2em;
}

.description-content h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--stone-green);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--stone-green);
}

/* 文物展示区 */
.cave-artifacts-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.artifacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.artifact-card {
    background: linear-gradient(135deg, #f3f7f5 0%, #e8f0ed 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artifact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(45, 107, 95, 0.15);
}

.artifact-card-link {
    text-decoration: none;
}

.artifact-card-with-image {
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.artifact-image-wrapper {
    height: 200px;
    overflow: hidden;
}

.artifact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artifact-card-with-image:hover .artifact-image {
    transform: scale(1.1);
}

.artifact-info {
    padding: 1rem 1.2rem 1.2rem;
}

.artifact-info h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--stone-blue);
    margin-bottom: 0.5rem;
}

.artifact-info p {
    font-size: 0.85rem;
    color: var(--cave-brown);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.view-detail {
    font-size: 0.8rem;
    color: var(--vermilion-red);
    font-weight: 500;
}

.artifact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.artifact-card h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--stone-blue);
    margin-bottom: 0.8rem;
}

.artifact-card p {
    font-size: 0.9rem;
    color: var(--cave-brown);
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cave-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .cave-hero-title {
        font-size: 2.5rem;
    }
    
    .cave-hero-subtitle {
        font-size: 1rem;
    }
    
    .cave-detail-section {
        padding: 2rem 1rem;
    }
    
    .cave-info-card,
    .cave-description-card,
    .cave-artifacts-section {
        padding: 1.5rem;
    }
    
    .info-title {
        font-size: 1.3rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .artifacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cave-hero-title {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
