/* 文物详情页样式 */

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

a, button, .nav-link, .tts-btn {
    cursor: pointer !important;
}

/* 英雄区 */
.artifact-hero {
    position: relative;
    height: 45vh;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 3rem;
}

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

.artifact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 74, 92, 0.2) 0%, rgba(26, 74, 92, 0.7) 100%);
}

.artifact-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--cave-beige);
    width: 100%;
    max-width: 1000px;
    padding: 0 2rem;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--earth-yellow);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: rgba(245, 235, 224, 0.5);
}

.breadcrumb .current {
    color: var(--cave-beige);
}

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

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

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

.artifact-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232d6b5f' stroke-width='0.6' opacity='0.1'%3E%3Cpath d='M40 10 Q50 25 40 40 Q30 25 40 10'/%3E%3Cpath d='M40 70 Q50 55 40 40 Q30 55 40 70'/%3E%3Cpath d='M10 40 Q25 50 40 40 Q25 30 10 40'/%3E%3Cpath d='M70 40 Q55 50 40 40 Q55 30 70 40'/%3E%3Cpath d='M18 18 Q30 25 40 40 Q25 30 18 18'/%3E%3Cpath d='M62 18 Q50 25 40 40 Q55 30 62 18'/%3E%3Cpath d='M18 62 Q30 55 40 40 Q25 50 18 62'/%3E%3Cpath d='M62 62 Q50 55 40 40 Q55 50 62 62'/%3E%3Ccircle cx='40' cy='40' r='6' fill='%23c4a35a' opacity='0.12'/%3E%3C/g%3E%3Cg fill='%23c73e3a' opacity='0.05'%3E%3Ccircle cx='5' cy='5' r='2'/%3E%3Ccircle cx='75' cy='75' r='2'/%3E%3Ccircle cx='75' cy='5' r='1.5'/%3E%3Ccircle cx='5' cy='75' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

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

/* 主图 */
.artifact-main-image {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

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

.image-caption {
    padding: 1rem 1.5rem;
    text-align: center;
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    color: var(--cave-brown);
    background: #f8f5f0;
}

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

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--earth-yellow);
}

.panel-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--stone-blue);
    margin: 0;
}

/* AI朗读按钮 */
.tts-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--stone-blue) 0%, var(--stone-green) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(26, 74, 92, 0.3);
}

.tts-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 74, 92, 0.4);
}

.tts-btn.speaking {
    background: linear-gradient(135deg, var(--vermilion-red) 0%, #d45a58 100%);
    animation: pulse 1.5s infinite;
}

.tts-btn.paused {
    background: linear-gradient(135deg, var(--earth-yellow) 0%, #d4b86a 100%);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(199, 62, 58, 0.3);
    }
    50% {
        box-shadow: 0 3px 20px rgba(199, 62, 58, 0.6);
    }
}

.tts-icon {
    font-size: 1.1rem;
}

/* 描述内容 */
.artifact-description {
    line-height: 2;
    color: var(--cave-brown);
}

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

.artifact-description .highlight {
    font-weight: 600;
    color: var(--stone-blue);
    background: linear-gradient(180deg, transparent 60%, rgba(196, 163, 90, 0.3) 60%);
    padding: 0.2rem 0.5rem;
    text-indent: 0;
}

/* 标签 */
.artifact-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(61, 41, 20, 0.1);
}

.tag {
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #f8f5f0 0%, #f0ebe3 100%);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--stone-blue);
    border: 1px solid rgba(26, 74, 92, 0.2);
}

/* 详情卡片 */
.artifact-detail-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.detail-card h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--stone-blue);
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--earth-yellow);
}

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

/* 导航链接 */
.navigation-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--stone-blue) 0%, var(--stone-green) 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 74, 92, 0.3);
}

.nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 74, 92, 0.4);
}

.nav-arrow {
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .artifact-hero {
        height: 35vh;
        min-height: 280px;
    }
    
    .artifact-hero-title {
        font-size: 2.2rem;
    }
    
    .artifact-hero-subtitle {
        font-size: 1rem;
    }
    
    .artifact-detail-section {
        padding: 2rem 1rem;
    }
    
    .artifact-info-panel {
        padding: 1.5rem;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .panel-header h2 {
        font-size: 1.3rem;
    }
    
    .tts-btn {
        width: 100%;
        justify-content: center;
    }
    
    .artifact-detail-cards {
        grid-template-columns: 1fr;
    }
    
    .navigation-links {
        flex-direction: column;
    }
    
    .nav-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .artifact-hero-title {
        font-size: 1.8rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
}
