/* ========== 详情页完整样式 ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.detail-page {
    background: #f5efe6;
    min-height: 100vh;
    padding: 30px 0 50px;
    color: #3a2c1b;
    font-family: 'Noto Serif SC', '宋体', serif;
}

.detail-container {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1200px;
}

.back-link {
    display: inline-block;
    color: #6b4f2c;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #c9b696;
}
.back-link:hover {
    color: #3a2c1b;
    border-bottom-color: #8b6946;
}

.page-title {
    font-size: 3rem;
    font-weight: 600;
    color: #4a3720;
    letter-spacing: 6px;
    margin-bottom: 8px;
}
.page-subtitle {
    font-size: 1rem;
    color: #8b7356;
    margin-bottom: 40px;
    border-left: 4px solid #c9a87c;
    padding-left: 16px;
}

/* 统计图卡片 */
.chart-card {
    background: transparent;
    padding: 0 0 20px;
    margin-bottom: 30px;
}
.chart-title {
    font-size: 1.4rem;
    color: #5a4530;
    margin-bottom: 20px;
    font-weight: 500;
}

/* 饼图容器 — 统一用类名 */
.pie-chart {
    width: 100%;
    height: 380px;
    margin: 0 auto;
}

/* 起源文字卡片 */
.origin-card {
    background: transparent;
    padding: 10px 0 30px;
    line-height: 1.9;
    color: #4a3a28;
    max-width: 900px;
}
.origin-card p {
    margin-bottom: 12px;
}

/* 渐入动画 */
.fade-in {
    animation: softFade 0.7s ease-out forwards;
}
@keyframes softFade {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ========== 轮播图 ========== */
.carousel-section {
    margin-bottom: 30px;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.carousel-title {
    font-size: 1.1rem;
    color: #6b4f2c;
}

.carousel-toggle {
    background: #e3d5c0;
    border: none;
    color: #4a3720;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
}
.carousel-toggle:hover {
    background: #d4c4a8;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    cursor: pointer;
    padding: 0 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 图片完全自适应，完整显示不裁剪 */
.carousel-slide img {
    width: 100%;
    height: auto;
    max-width: 400px;
    max-height:600px;
    aspect-ratio: 2/3;
    object-fit: contain;
    background: #e8dccc;
    border-radius: 18px;
    border: 1px solid #ddd0bc;
}

.placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e8dccc;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b7356;
    font-size: 1rem;
}

.carousel-caption {
    text-align: center;
    margin-top: 8px;
    color: #7a624b;
    font-size: 0.9rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4c4a8;
    cursor: pointer;
    transition: 0.2s;
}
.dot.active {
    width: 24px;
    border-radius: 10px;
    background: #8b6946;
}

/* ========== 右侧填充卡片（消除空白） ========== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #e3d5c0;
}

.info-card h3 {
    color: #5a4530;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.info-card ul {
    list-style: none;
    color: #4a3a28;
    line-height: 2;
}

.info-card li::before {
    content: "•";
    margin-right: 8px;
    color: #8b6946;
}

/* ========== 图片放大弹窗 ========== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 16px;
    border: 2px solid #c9a87c;
}

.lightbox-caption {
    color: #f5efe6;
    margin-top: 20px;
    font-size: 1.2rem;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f5efe6;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s;
}
.lightbox-close:hover {
    color: #c9a87c;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: #e8dccc;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #c9a87c;
    border-radius: 10px;
}