 /* --- 样式区域：控制所有页面的外观 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: system-ui, sans-serif;
    background: #655c5c;
    color: #d6c2af;
}

/* ===== 导航栏 ===== */
nav {
    background: #b06d3b; /* 深陶土色底 */
    padding: 20px 24px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;

    /* 上下两条镜像螺旋纹 */
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='18' viewBox='0 0 60 18'%3E%3Cpath d='M0 9 Q7.5 1, 15 9 T30 9 T45 9 T60 9' fill='none' stroke='rgba(255,220,180,0.4)' stroke-width='1.3'/%3E%3Cpath d='M0 9 Q7.5 17, 15 9 T30 9 T45 9 T60 9' fill='none' stroke='rgba(255,220,180,0.4)' stroke-width='1.3'/%3E%3Ccircle cx='7.5' cy='4.5' r='1' fill='rgba(255,220,180,0.7)'/%3E%3Ccircle cx='22.5' cy='13.5' r='1' fill='rgba(255,220,180,0.7)'/%3E%3Ccircle cx='37.5' cy='4.5' r='1' fill='rgba(255,220,180,0.7)'/%3E%3Ccircle cx='52.5' cy='13.5' r='1' fill='rgba(255,220,180,0.7)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='18' viewBox='0 0 60 18'%3E%3Cpath d='M0 9 Q7.5 17, 15 9 T30 9 T45 9 T60 9' fill='none' stroke='rgba(255,220,180,0.4)' stroke-width='1.3'/%3E%3Cpath d='M0 9 Q7.5 1, 15 9 T30 9 T45 9 T60 9' fill='none' stroke='rgba(255,220,180,0.4)' stroke-width='1.3'/%3E%3Ccircle cx='7.5' cy='13.5' r='1' fill='rgba(255,220,180,0.7)'/%3E%3Ccircle cx='22.5' cy='4.5' r='1' fill='rgba(255,220,180,0.7)'/%3E%3Ccircle cx='37.5' cy='13.5' r='1' fill='rgba(255,220,180,0.7)'/%3E%3Ccircle cx='52.5' cy='4.5' r='1' fill='rgba(255,220,180,0.7)'/%3E%3C/svg%3E");
    background-repeat: repeat-x, repeat-x;
    background-position: top center, bottom center;
    background-size: 60px 18px, 60px 18px;

    border-top: 2px solid rgba(255, 220, 180, 0.25);
    border-bottom: 2px solid rgba(255, 220, 180, 0.25);
}

/* ===== 导航项 ===== */
nav a {
    color: #201f1e;                              /* 深色字 */
    text-decoration: none;
    font-family: 'Noto Serif SC', '宋体', serif;  /* 宋体 */
    font-weight: 900;                            /* 加粗 */
    letter-spacing: 2px;                         /* 字距 */
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
    position: relative;
}

/* 下划线：悬停/选中时从中间展开 */
nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #f0e2d0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
nav a:hover::after,
nav a.active::after {
    width: 60%;
}

/* 选中/悬停：深棕底 + 白字 */
nav a.active {
    background: #7a5a44;
    color: #fff;
    border-radius: 6px;
}
nav a:hover {
    background: #7a5a44;
    color: #fff;
}

/* ===== 页面容器 ===== */
.page {
    display: none;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
    animation: fadeIn 0.3s ease;
}
.page.active {
    display: block;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 首页背景 ===== */
.hero {
    text-align: center;
    padding: 60px 20px;
    border-radius: 16px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    background: #afacac8a;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== 首页入场动画（keyframes 版本） ===== */
.hero .spinning-pot {
    opacity: 0;
    font-size: 6rem;
    margin: 10px 0;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

.hero .spinning-pot.animate-in {
    animation: slideDownIn 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero h1 {
    font-family: 'STXingkai', '华文行楷', 'Ma Shan Zheng', 'Noto Serif SC', serif;
    font-weight: 400;
    font-size: 5.5rem;
    letter-spacing: 20px;
    padding-left: 20px;
    line-height: 1.1;

    /* 👇 陶土质感纹理：深棕渐变 + 细颗粒噪点 */
    background-image: 
        /* 第一层：纵向陶土色渐变 */
        linear-gradient(180deg, #a97a48 0%, #7a5a44 35%, #3e2c1b 75%, #2b1d0e 100%),
        /* 第二层：细斜纹颗粒，模拟陶土肌理 */
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.06) 0px,
            rgba(255, 255, 255, 0.06) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(0, 0, 0, 0.08) 0px,
            rgba(0, 0, 0, 0.08) 1px,
            transparent 1px,
            transparent 5px
        );
    background-blend-mode: overlay, normal, normal;
    
    /* 把背景裁剪到文字形状里，透明填色 */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;  /* 兼容老浏览器 */

    /* 👇 立体浮雕阴影（用 drop-shadow，因为 text-shadow 会被 clip 掉） */
    filter:
        drop-shadow(0 1px 0 #c49a6c)      /* 顶部浅金高光 */
        drop-shadow(0 2px 0 #a97a48)      /* 中层金棕 */
        drop-shadow(0 3px 0 #5a3e2b)      /* 下层深棕 */
        drop-shadow(0 5px 0 #2b1d0e)      /* 最底黑棕 */
        drop-shadow(0 8px 14px rgba(62, 44, 27, 0.45))   /* 近投影 */
        drop-shadow(0 14px 28px rgba(62, 44, 27, 0.25)); /* 远投影 */

    opacity: 0;
}

.hero h1.animate-in {
    animation: slideUpIn 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 12px;
    color: #5a3e2b;
    opacity: 0;
}

.hero p.animate-in {
    animation: slideUpIn 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

@keyframes slideUpIn {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDownIn {
    0% {
        opacity: 0;
        transform: translateY(-80px) scale(0.4);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 确保文字在粒子层上方 */
.hero h1,
.hero p,
.hero .spinning-pot {
    position: relative;
    z-index: 1;
}

/* ===== 纹样游动动画 ===== */
@keyframes swimRight {
    0% {
        transform: translate(-200px, 0) scaleX(1);
    }
    100% {
        transform: translate(calc(100vw + 200px), 0) scaleX(1);
    }
}
@keyframes swimLeft {
    0% {
        transform: translate(calc(100vw + 200px), 0) scaleX(-1);
    }
    100% {
        transform: translate(-200px, 0) scaleX(-1);
    }
}
.pattern {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}
.pattern.right {
    animation: swimRight 16s linear infinite;
    animation-fill-mode: both;
}
.pattern.left {
    animation: swimLeft 16s linear infinite;
    animation-fill-mode: both;
}

/* ===== 彩陶卡片网格 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.4s ease, background 0.3s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(60, 40, 20, 0.18);
    background: #fcf8f2;
}
.card img {
    transition: transform 0.5s ease;
}
.card:hover img {
    transform: scale(1.02);
}
.card .placeholder-img {
    width: 100%;
    height: 160px;
    background: #d9cdbc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a5a44;
    font-size: 0.9rem;
}

/* ===== 页脚 ===== */
footer {
    text-align: center;
    padding: 32px 20px;
    color: #ffffff;
    border-top: 1px solid #d9cdbc;
    margin-top: 40px;
}

/* ===== 页脚文字 ===== */
footer p {
    font-family: 'Noto Sans SC', '微软雅黑', sans-serif;
    font-weight: 300;        /* 用细体，不要粗 */
    letter-spacing: 8px;     /* 拉得很开 */
    font-size: 1.2rem;
    color: #d9cdbc;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); /* 👈 加一点阴影，从底纹里跳出来 */
}

/* ===== 彩陶图片容器（不再旋转） ===== */
.spinning-pot {
    display: inline-block;
    font-size: 6rem;
    margin: 10px 0;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

/* ===== 弹窗动画 ===== */
@keyframes bounceIn {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    60% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== 滑动对比滑块样式（鱼、鸟、蛙通用） ===== */
#evo-slider, #niao-slider, #wa-slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 30;
    cursor: ew-resize;
    margin: 0; padding: 0;
}

/* 轨道透明 */
#evo-slider::-webkit-slider-runnable-track,
#niao-slider::-webkit-slider-runnable-track,
#wa-slider::-webkit-slider-runnable-track {
    height: 100%;
    background: transparent;
}
#evo-slider::-moz-range-track,
#niao-slider::-moz-range-track,
#wa-slider::-moz-range-track {
    height: 100%;
    background: transparent;
}

/* ===== 滑块小圆点隐藏（拖动靠自定义逻辑，不需要可见圆点） ===== */
#evo-slider::-webkit-slider-thumb,
#niao-slider::-webkit-slider-thumb,
#wa-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
#evo-slider::-moz-range-thumb,
#niao-slider::-moz-range-thumb,
#wa-slider::-moz-range-thumb {
    width: 0;
    height: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* 缩略图按钮悬停效果 */
#patterns button:hover {
    background: #bf8f60 !important;
    color: white !important;
    transform: translateY(-2px);
}

/* ===== 欢迎遮罩动画 ===== */
@keyframes slideUp {
    0% {
        transform: translateY(60px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== 按钮呼吸灯动画 ===== */
@keyframes breathe {
    0% {
        opacity: 0.7;
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(191, 143, 96, 0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
        box-shadow: 0 6px 40px rgba(191, 143, 96, 0.6);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(191, 143, 96, 0.3);
    }
}

/* ===== 文字呼吸灯动画 ===== */
@keyframes textBreathe {
    0% {
        opacity: 0.7;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px) scale(1.02);
    }
    100% {
        opacity: 0.7;
        transform: translateY(0) scale(1);
    }
}

/* ===== 滚动触发淡入上移动画 ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    nav {
        padding: 12px 12px;
        gap: 8px;
    }
    nav a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .hero h1 {
        font-size: 3.2rem;
        letter-spacing: 12px;
        padding-left: 12px;
    }
    .hero p {
        font-size: 1rem;
    }
    .spinning-pot {
        font-size: 4rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .page {
        padding: 0 16px;
        margin: 20px auto;
    }

    #about div[style*="max-width:800px"] {
        padding: 0 4px;
    }

    #badge-modal > div {
        max-width: 90% !important;
        padding: 30px 20px !important;
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    .hero h1 {
        font-size: 2.4rem;
        letter-spacing: 8px;
        padding-left: 8px;
    }
    .hero {
        padding: 40px 16px;
    }
    .spinning-pot {
        font-size: 3rem;
    }
}

/* 面板切换 */
.compare-panel {
    display: none;
}

.compare-panel.active {
    display: block;
}

/* ===== 互动小功能切换标签 ===== */
.interact-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.interact-tab {
    padding: 10px 28px;
    background: #d9cdbc;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #5a3e2b;
    font-family: inherit;
}

.interact-tab:hover {
    background: #c4b49c;
}

.interact-tab.active {
    background: #5a3e2b;
    color: white;
}

.interact-panel {
    display: none;
}

.interact-panel.active {
    display: block;
}

/* ===== 首页轮播图 ===== */
.hero-carousel {
    width: 180px;        /* 圆形视窗的宽度 */
    height: 180px;       /* 圆形视窗的高度 */
    border-radius: 50%;  /* 保持圆形 */
    overflow: hidden;    /* 关键！把超出圆形的图片裁掉 */
    margin: 10px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.carousel-track {
    display: flex;       /* 让所有图片横向排成一排 */
    height: 100%;
    width: 100%;
    transition: transform 0.8s ease-in-out; /* 关键！滑动时的动画效果，0.8秒平滑过渡 */
    will-change: transform; /* 性能优化，滑动更流畅 */
}

.carousel-slide {
    flex-shrink: 0;      /* 不允许图片被压缩 */
    width: 100%;         /* 每张图占满整个视窗宽度 */
    height: 100%;
    object-fit: cover;   /* 保证图片铺满圆形且不变形 */
}

/* 徽章墙样式 */
.badge-item {
    background: #f5efe6; border-radius: 12px; padding: 16px 10px;
    text-align: center; transition: all 0.3s; border: 2px solid transparent;
}
.badge-item.unlocked { border-color: #bf8f60; background: #fcf8f2; }
.badge-item.locked { filter: grayscale(1); opacity: 0.4; }
.badge-item .badge-icon { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.badge-item h4 { color: #3e2c1b; font-size: 0.95rem; margin-bottom: 4px; }
.badge-item p { color: #7a5a44; font-size: 0.75rem; line-height: 1.4; }

/* ===== 获得徽章飘窗（花边卡片版） ===== */
#badge-toast {
    position: fixed;
    top: 100px; /* 避免挡住顶部导航栏 */
    right: 20px;
    z-index: 10000;
    
    /* 默认隐藏在屏幕右侧外面 */
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* 👇 背景图设置 */
    background-image: url('images/badge-bg.png');
    background-size: 100% 100%; /* 让图片完美拉伸填充卡片，不变形 */
    background-repeat: no-repeat;
    background-position: center;

    /* 👇 尺寸和排版 */
    width: 380px; /* 网页上显示的宽度 */
    height: 97px; /* 按原图比例(685/175≈3.91)算出来的高度，保证不变形 */
    
    /* 用 padding 把内容往中间挤，避开两边的卷曲花边 */
    padding: 0 55px; 
    box-sizing: border-box; /* 保证 padding 不会把总宽度撑爆 */

    /* 布局 */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 图标和文字靠左对齐 */
    gap: 12px;
    
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* 保留一点悬浮感 */
}

/* 添加这个类时卡片滑入 */
#badge-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* 徽章图标样式 */
.toast-icon-wrapper {
    font-size: 2.2rem;
    background: #f5efe6;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* 防止图标被压扁 */
}

/* 文字排版 */
.toast-text-wrapper {
    display: flex;
    flex-direction: column;
    white-space: nowrap; /* 防止文字换行破坏花边 */
}

.toast-label {
    font-size: 0.75rem;
    color: #e8cfa6; /* 浅金色，配深棕色背景 */
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.toast-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff; /* 纯白色 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* 加一点阴影增加可读性 */
}

/* 移动端适配：屏幕小的时候让卡片变小一点 */
@media (max-width: 480px) {
    #badge-toast {
        width: 300px;
        height: 77px; /* 等比例缩小 */
        padding: 0 40px;
        top: 80px;
        right: 10px;
    }
    .toast-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
    .toast-title {
        font-size: 0.95rem;
    }
}

/* ===== 全站底纹（回纹肌理） ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 👇 请确认你的底纹图片名字和路径对不对，比如叫 bg-pattern.png */
    background-image: url('images/dw.png'); 
    background-repeat: repeat;
    
    /* 👇 控制图案大小：图本身很密，放大到 800px 以上才显得舒展 */
    background-size: 800px 800px; 
    
    /* 👇 核心：控制透明度，因为对比度高，透明度要调得很低 */
    opacity: 0.4; /* 如果觉得看不见就调到 0.1，如果觉得太抢眼就调到 0.04 */
    
    pointer-events: none; 
    z-index: -1; 
}

/* ============================================================
   3D 环形旋转木马（古风质感增强版）
   ============================================================ */
   .carousel-3d-wrapper {
    perspective: 1500px;
    perspective-origin: center center;
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.carousel-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* 卡片本体：宣纸底色 + 陶土边框 */
.carousel-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 400px;
    margin-left: -140px;
    margin-top: -200px;
    background: linear-gradient(145deg, #fdf8f0 0%, #f4ebd9 100%);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #d9cdbc;
    box-shadow: 0 8px 24px rgba(62, 44, 27, 0.15);
    text-align: center;
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 图片：暖色滤镜 + 嵌入感 */
.carousel-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    filter: sepia(10%) contrast(105%);
}

/* 标题：宋体 + 加宽字距 */
.carousel-card h4 {
    margin: 16px 0 8px;
    font-family: 'Noto Serif SC', '宋体', serif;
    color: #3e2c1b;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* 描述文字 */
.carousel-card p {
    font-size: 0.8rem;
    color: #7a5a44;
    line-height: 1.6;
    font-family: system-ui, sans-serif;
    padding: 0 8px;
}

/* 中间：最大，完全可见，带金色内圈 */
.carousel-card.pos-center {
    transform: translateX(0) translateZ(80px);
    z-index: 10;
    opacity: 1;
    box-shadow: 0 20px 50px rgba(90, 62, 43, 0.35), 0 0 0 2px #bf8f60 inset;
}

/* 左侧：向左倾斜，稍微退后 */
.carousel-card.pos-left {
    transform: translateX(-280px) translateZ(-100px) rotateY(22deg);
    z-index: 5;
    opacity: 0.6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 右侧：向右倾斜，稍微退后 */
.carousel-card.pos-right {
    transform: translateX(280px) translateZ(-100px) rotateY(-22deg);
    z-index: 5;
    opacity: 0.6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 隐藏在背后 */
.carousel-card.pos-hidden {
    transform: translateX(0) translateZ(-600px) scale(0.5);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

/* 悬停效果：平滑上浮，边框微微发出陶土金光 */
.carousel-card.pos-center:hover {
    transform: translateX(0) translateZ(110px);
    box-shadow: 0 24px 60px rgba(90, 62, 43, 0.45), 0 0 0 2px #d4af37 inset;
}

.carousel-card.pos-left:hover {
    opacity: 1;
    transform: translateX(-280px) translateZ(-60px) rotateY(22deg);
}

.carousel-card.pos-right:hover {
    opacity: 1;
    transform: translateX(280px) translateZ(-60px) rotateY(-22deg);
}

/* 让图片不阻挡点击 */
.carousel-card img,
.carousel-card h4,
.carousel-card p {
    pointer-events: none; 
}

/* 移动端适配 */
@media (max-width: 768px) {
    .carousel-3d-wrapper {
        height: 400px;
        perspective: 1000px;
    }
    .carousel-card {
        width: 220px;
        height: 320px;
        margin-left: -110px;
        margin-top: -160px;
        padding: 12px;
    }
    .carousel-card img {
        height: 150px;
    }
    .carousel-card h4 { font-size: 0.9rem; }
    .carousel-card p { font-size: 0.72rem; }

    .carousel-card.pos-left {
        transform: translateX(-190px) translateZ(-120px) rotateY(25deg);
    }
    .carousel-card.pos-right {
        transform: translateX(190px) translateZ(-120px) rotateY(-25deg);
    }
}

/* ===== 纹样悬停提示框（花边版） ===== */
#hint-bubble {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 100;
    pointer-events: none;
    
    /* 👇 花边背景图 */
    background-image: url('images/badge-bg.png');
    background-size: 100% 100%; /* 让图片完美拉伸填充 */
    background-repeat: no-repeat;
    background-position: center;
    
    /* 👇 尺寸和排版（比之前的徽章卡片稍大，因为文字更长） */
    width: 520px;  /* 宽度 */
    height: 135px; /* 根据原图比例 685/175≈3.91 估算 */
    
    /* 用 padding 把文字往中间挤，避开两边的卷曲花边 */
    padding: 20px 65px;
    box-sizing: border-box;
    
    /* 布局 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* 文字颜色：因为背景是深棕色，文字必须用浅色 */
    color: #f0e2d0; 
    
    /* 默认隐藏 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 显示状态 */
#hint-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

#hint-bubble strong {
    font-size: 1.05rem;
    color: #e8cfa6; /* 浅金色标题 */
    margin-bottom: 6px;
}

#hint-bubble p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #ffffff;
    opacity: 0.9;
    max-width: 100%;
    word-break: break-all; /* 防止长文本撑爆 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    #hint-bubble {
        width: 90vw; /* 手机上宽度占满 */
        height: auto;
        min-height: 110px;
        padding: 16px 50px;
        bottom: 30px;
    }
    #hint-bubble strong { font-size: 0.95rem; }
    #hint-bubble p { font-size: 0.75rem; }
}

/* ===== 纹样卡片 ===== */
.pattern-card {
    cursor: pointer;
    background: #ffffff99;         /* 👈 卡片底色，改成你想要的颜色 */
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.pattern-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(60, 40, 20, 0.18);
    background: #f5efe6;         /* 👈 鼠标悬停时的底色 */
}

.pattern-card.active {
    border-color: #bf8f60;       /* 👈 选中时的边框颜色 */
    background: #fcf8f2;         /* 👈 选中时的底色 */
    box-shadow: 0 8px 24px rgba(191, 143, 96, 0.25);
}

/* ===== 纹样赏析卡片行 ===== */
.pattern-cards-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 60px;
    margin-bottom: 24px;
}

.pattern-cards-row .card {
    width: 280px;              /* 固定宽度 */
    height: 380px;             /* 固定高度，防止被拉伸 */
    flex-shrink: 0;
    overflow: hidden;          /* 防止内容溢出 */
    display: flex;
    flex-direction: column;
}

/* 让卡片里的图片固定高度，不要被拉伸 */
.pattern-cards-row .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;         /* 保持比例裁剪 */
    flex-shrink: 0;
}

.pattern-cards-row .card h4 {
    margin: 12px 0 6px;
    color: #3e2c1b;
    font-size: 1rem;
}

.pattern-cards-row .card p {
    font-size: 0.85rem;
    color: #5a3e2b;
    line-height: 1.5;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

/* 手机上变回单列 */
@media (max-width: 768px) {
    .pattern-cards-row {
        flex-direction: column;
        align-items: center;
    }
    .pattern-cards-row .card {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: 360px;
    }
}

/* ===== 纹样演变弹窗 ===== */
#pattern-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#pattern-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: bounceIn 0.4s ease;
}

.pattern-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #f5efe6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    color: #5a3e2b;
    transition: all 0.3s;
    z-index: 10;
}

.pattern-modal-close:hover {
    background: #bf8f60;
    color: white;
    transform: rotate(90deg);
}

/* ===== 工艺简介 - S形蜿蜒路径 ===== */
.craft-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 520px;
    margin: 0 auto;
    overflow: hidden;
}

.craft-path-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.craft-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* 🔥 卡片本体：升级为宣纸/陶土质感 */
.craft-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px; /* 稍微加宽 */
    height: 240px;
    margin-left: -90px;
    margin-top: -120px;
    padding: 16px;
    
    /* 米黄渐变底色 + 细腻的陶土色边框 */
    background: linear-gradient(145deg, #fdf8f0 0%, #e8d9b8 100%);
    border-radius: 12px; 
    border: 1px solid #d4c29a;
    box-shadow: 0 10px 30px rgba(62, 44, 27, 0.15), inset 0 0 10px rgba(255,255,255,0.5);
    
    text-align: center;
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* 🔥 图标：加一个半透明的圆底座 */
.craft-card-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(120, 90, 60, 0.1);
    border: 1px solid rgba(212, 194, 154, 0.5);
}

/* 🔥 标题：宋体 + 加宽字距 */
.craft-card h4 {
    margin: 0 0 8px 0;
    color: #3e2c1b;
    font-family: 'Noto Serif SC', '宋体', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.craft-card p {
    font-size: 0.75rem;
    color: #7a5a44;
    line-height: 1.5;
    margin: 0;
    padding: 0 4px;
}

/* ===== 控制卡片旋转位置 ===== */

/* 最边缘的卡片：降低透明度，轻微模糊产生景深 */
.craft-card.pos-c0 {
    transform: translate(-400px, -50px) scale(0.55);
    z-index: 3;
    opacity: 0.4;
    filter: blur(1px);
}
.craft-card.pos-c4 {
    transform: translate(400px, -50px) scale(0.55);
    z-index: 3;
    opacity: 0.4;
    filter: blur(1px);
}

/* 两侧的卡片： */
.craft-card.pos-c1 {
    transform: translate(-210px, 70px) scale(0.75);
    z-index: 5;
    opacity: 0.7;
    box-shadow: 0 8px 20px rgba(62, 44, 27, 0.1);
}
.craft-card.pos-c3 {
    transform: translate(210px, 70px) scale(0.75);
    z-index: 5;
    opacity: 0.7;
    box-shadow: 0 8px 20px rgba(62, 44, 27, 0.1);
}

/* 🔥 正中间的卡片：最高级形态 */
.craft-card.pos-c2 {
    transform: translate(0, -20px) scale(1.05);
    z-index: 10;
    opacity: 1;
    filter: none;
    
    /* 中间卡片：换更亮的底色，带金色内边框，极深的投影 */
    background: linear-gradient(145deg, #ffffff 0%, #fcf8f2 100%);
    border: none;
    box-shadow: 
        0 25px 50px rgba(62, 44, 27, 0.35),
        0 0 0 2px #d4af37 inset;
}

/* 中间的图标高亮 */
.craft-card.pos-c2 .craft-card-icon {
    background: #fff;
    border-color: #e8cfa6;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
}

/* 隐藏卡片 */
.craft-card.pos-hidden {
    transform: translate(0, 0) scale(0.3);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

/* ===== 工艺详情弹窗（高级质感版） ===== */
#craft-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(43, 29, 14, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
}

#craft-modal-content {
    background: linear-gradient(145deg, #fdf8f0 0%, #f4ebd9 100%);
    border-radius: 16px; 
    padding: 40px 40px 30px;
    max-width: 800px; 
    width: 90%;
    position: relative;
    border: 1px solid #d4c29a;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.6), 
        inset 0 0 0 4px rgba(255, 255, 255, 0.6);
    animation: bounceIn 0.4s ease;
}

/* 🔥 标题区域 - 彻底去掉了图标，完美居中 */
#craft-modal-title {
    font-family: 'Noto Serif SC', '华文行楷', '宋体', serif !important; 
    color: #3e2c1b !important;
    font-size: 1.8rem !important; 
    font-weight: 700 !important;
    letter-spacing: 6px !important; 
    margin: 0 0 20px 0 !important; /* 调整了上下间距 */
    text-align: center !important; /* 文字水平居中 */
    display: block !important;
    position: relative;
}

/* 标题下方的金色装饰线 */
#craft-modal-title::after {
    content: '';
    position: absolute;
    bottom: -10px; /* 让线离文字稍微远一点点 */
    left: 50%;
    transform: translateX(-50%);
    width: 60px; 
    height: 2px;
    background: linear-gradient(90deg, transparent, #bf8f60, transparent);
}

/* 视频容器圆角与阴影 */
#craft-video-container {
    margin-top: 10px; /* 配合上面文字的下边距 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #000;
    display: flex;
    justify-content: center;
    border: 4px solid #fff;
}

#craft-video {
    width: 100%;
    max-height: 450px; 
    object-fit: contain;
    outline: none;
}

/* 描述文字 */
#craft-modal-desc {
    font-family: 'Noto Serif SC', '宋体', serif !important;
    color: #5a3e2b !important;
    line-height: 2 !important;
    font-size: 1rem !important;
    margin-top: 24px !important;
    text-align: justify !important;
    padding: 0 10px;
}

/* 右上角关闭按钮 */
.pattern-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #f5efe6;
    border: 1px solid #d4c29a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    color: #7a5a44;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pattern-modal-close:hover {
    background: #bf8f60;
    color: white;
    transform: rotate(90deg);
    border-color: #bf8f60;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .craft-carousel-wrapper {
        height: 420px;
    }
    .craft-card {
        width: 140px;
        height: 195px;
        margin-left: -70px;
        margin-top: -97px;
        padding: 10px;
    }
    .craft-card-icon { font-size: 1.9rem; }
    .craft-card h4 { font-size: 0.85rem; }
    .craft-card p { font-size: 0.65rem; }
    .craft-card.pos-c0 { transform: translate(-260px, -40px) scale(0.55); }
    .craft-card.pos-c1 { transform: translate(-140px, 60px) scale(0.75); }
    .craft-card.pos-c3 { transform: translate(140px, 60px) scale(0.75); }
    .craft-card.pos-c4 { transform: translate(260px, -40px) scale(0.55); }
}

/* ===== 知识问答卡片底色 ===== */
#quiz-container > div {
    background: #fdf8f0 !important;
}

/* ===== 细闪粒子层 ===== */
#sparkle-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;   /* 不挡点击 */
    z-index: 0;             /* 在底纹之上、内容之下 */
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff8e0 0%, rgba(255, 248, 224, 0) 70%);
    box-shadow: 0 0 6px rgba(255, 235, 180, 0.9);
    animation: sparkleTwinkle 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes sparkleTwinkle {
    0%   { opacity: 0;   transform: scale(0.5); }
    50%  { opacity: 0.9; transform: scale(1.2); }
    100% { opacity: 0;   transform: scale(0.5); }
}

/* 手机上减少粒子数量 */
@media (max-width: 768px) {
    .sparkle { width: 2px; height: 2px; }
}

/* ===== 页面标题与副标题统一高级字体 ===== */
.page h2 {
    font-family: 'Noto Serif SC', '宋体', serif; /* 换成宋体/衬线体 */
    font-weight: 700;       /* 加粗 */
    letter-spacing: 3px;    /* 拉开字距 */
    color: #3e2c1b;         /* 深咖啡色，稳重且清晰 */
}

.page h2 + p {
    font-family: 'Noto Serif SC', '宋体', serif;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #d9cdbc !important;   /* 👈 从 #7a5a44 改成浅米色 */
}

/* ===== 制陶体验整体面板 ===== */
#panel-pottery {
    background: #fbf6e9;
    border-radius: 24px;
    padding: 18px;
    box-shadow:
        0 10px 30px rgba(120, 90, 60, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    border: 3px solid #e8d9b8;
}

/* 制陶内部包裹层 */
.pottery-wrap {
    background: #f7f1e3;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.8),
        0 4px 12px rgba(120, 90, 60, 0.15);
}

/* 顶部步骤条 */
.pottery-step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 16px 12px;
    background: linear-gradient(180deg, #fbf6e9 0%, #f3ead3 100%);
}

.pottery-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9a7b54;
    font-size: 0.95rem;
}

.pottery-step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e3d4b0;
    color: #7a5a44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        0 2px 6px rgba(120, 90, 60, 0.2);
}

.pottery-step-item.active .pottery-step-num {
    background: #c49060;
    color: #fff;
    box-shadow:
        0 0 0 4px rgba(196, 144, 96, 0.25),
        0 4px 10px rgba(196, 144, 96, 0.45);
}

.pottery-step-line {
    width: 48px;
    height: 3px;
    background: #e3d4b0;
    border-radius: 2px;
}

/* 描述栏：更像第二张的顶部棕条 */
.pottery-desc-bar {
    margin: 0 18px 18px;
    padding: 11px 14px;
    background: linear-gradient(180deg, #c39a6c 0%, #a97a48 100%);
    color: #fff;
    border-radius: 12px;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 6px rgba(0, 0, 0, 0.18),
        0 3px 8px rgba(169, 122, 72, 0.35);
}

/* 左右内容区 */
.pottery-content-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 18px 22px;
}

/* 陶轮外框 */
.pottery-wheel-box {
    width: 330px;
    height: 330px;
    position: relative;
    padding: 14px;
    background: #fff8e7;
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.9),
        0 6px 16px rgba(120, 90, 60, 0.2);
}

/* 陶轮旋转圆盘 */
.pottery-wheel-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        repeating-radial-gradient(
            circle at center,
            #c7c2bc 0 6px,
            #b5b0aa 6px 12px,
            #9c9791 12px 18px
        );
    animation: potteryWheelSpin 14s linear infinite;
    box-shadow:
        inset 0 0 25px rgba(0, 0, 0, 0.35),
        inset 0 0 0 4px rgba(255, 255, 255, 0.4);
}

@keyframes potteryWheelSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 陶罐画布居中 */
#pottery-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 右侧滑块区 */
.pottery-slider-area {
    flex: 1;
    min-width: 240px;
    max-width: 340px;
    background: #fff8e7;
    padding: 18px;
    border-radius: 16px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.9),
        0 4px 10px rgba(120, 90, 60, 0.12);
}

/* 每一行 */
.pottery-slider-area label {
    display: block;
    color: #7a5a44;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* 滑块轨道 */
.pottery-slider-area input[type="range"] {
    width: 100%;
    height: 10px;
    background: #e8d9b8;
    border-radius: 99px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 18px;
    box-shadow:
        inset 0 2px 4px rgba(120, 90, 60, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}

/* 滑块圆点 */
.pottery-slider-area input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #8c5c35, #6b4423);
    cursor: pointer;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* ===== 制陶体验 · 步骤面板 ===== */
.pottery-step-panel {
    width: 100%;
}

.pottery-next-btn,
.pottery-prev-btn,
.pottery-fire-btn,
.pottery-save-btn,
.pottery-clear-btn {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 8px;
    font-family: inherit;
    transition: all 0.25s;
}

.pottery-next-btn,
.pottery-fire-btn,
.pottery-save-btn {
    background: linear-gradient(180deg, #c39a6c, #a97a48);
    color: #fff;
    box-shadow: 0 3px 8px rgba(169, 122, 72, 0.35);
}
.pottery-next-btn:hover,
.pottery-fire-btn:hover,
.pottery-save-btn:hover {
    background: linear-gradient(180deg, #d1a97a, #b98a58);
    transform: translateY(-1px);
}

.pottery-prev-btn {
    background: #e3d4b0;
    color: #5a3e2b;
}
.pottery-prev-btn:hover {
    background: #d4c29a;
}

.pottery-clear-btn {
    background: #f0e2d0;
    color: #8c5c35;
}
.pottery-clear-btn:hover {
    background: #e0ceb6;
}

/* 纹样印章按钮 */
.pottery-pattern-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.pattern-stamp {
    padding: 10px;
    border: 2px solid #d9cdbc;
    background: #fdf8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #5a3e2b;
    font-family: inherit;
    transition: all 0.25s;
}
.pattern-stamp:hover {
    background: #f0e2d0;
}
.pattern-stamp.active {
    border-color: #bf8f60;
    background: #f5efe6;
    font-weight: bold;
}

/* 颜色按钮 */
.pottery-color-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}
.color-btn {
    height: 44px;
    border-radius: 10px;
    border: 2px solid #d9cdbc;
    cursor: pointer;
    transition: all 0.25s;
}
.color-btn:hover {
    transform: scale(1.05);
}
.color-btn.active {
    border-color: #5a3e2b;
    box-shadow: 0 0 0 3px rgba(191, 143, 96, 0.4);
}

/* 烧制时的火焰闪光 */
@keyframes fireGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 140, 0, 0); }
    50% { box-shadow: 0 0 40px rgba(255, 140, 0, 0.8); }
}
.pottery-wheel-box.firing {
    animation: fireGlow 0.6s ease-in-out 3;
}

/* ===== 互动面板通用高级样式（问答/拼图共用） ===== */
.interact-wrap {
    background: #fbf6e9;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(120, 90, 60, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    border: 3px solid #e8d9b8;
}

.interact-desc-bar {
    margin: 18px 18px 4px;
    padding: 11px 14px;
    background: linear-gradient(180deg, #c39a6c 0%, #a97a48 100%);
    color: #fff;
    border-radius: 12px;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 6px rgba(0, 0, 0, 0.18),
        0 3px 8px rgba(169, 122, 72, 0.35);
}

.interact-content {
    padding: 18px 18px 22px;
}

.interact-btn {
    padding: 10px 28px;
    background: linear-gradient(180deg, #c39a6c, #a97a48);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
    box-shadow: 0 3px 8px rgba(169, 122, 72, 0.35);
}
.interact-btn:hover {
    background: linear-gradient(180deg, #d1a97a, #b98a58);
    transform: translateY(-1px);
}

/* ===== 问答卡片统一风格（强制覆盖 JS 内联样式） ===== */
#quiz-container > div {
    background: #fff8e7 !important;
    border-radius: 16px !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.9),
        0 4px 10px rgba(120, 90, 60, 0.12) !important;
}

/* 选项按钮 */
#quiz-container .quiz-option {
    background: #fdf8f0 !important;
    border: 2px solid #e8d9b8 !important;
    border-radius: 12px !important;
    color: #5a3e2b !important;
    transition: all 0.25s !important;
}
#quiz-container .quiz-option:hover:not(:disabled) {
    background: #f5efe6 !important;
    border-color: #bf8f60 !important;
    transform: translateY(-1px);
}

/* 下一题 / 重新挑战按钮 */
#quiz-container button[onclick^="nextQuestion"],
#quiz-container button[onclick^="restartQuiz"] {
    background: linear-gradient(180deg, #c39a6c, #a97a48) !important;
    color: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 8px rgba(169, 122, 72, 0.35) !important;
    transition: all 0.25s !important;
}
#quiz-container button[onclick^="nextQuestion"]:hover,
#quiz-container button[onclick^="restartQuiz"]:hover {
    background: linear-gradient(180deg, #d1a97a, #b98a58) !important;
    transform: translateY(-1px);
}

/* ===== 拼图容器 ===== */
#puzzle-container {
    background: linear-gradient(180deg, #e8d9b8, #d9cbb0) !important;
    border: 3px solid #d4c29a !important;
    border-radius: 14px !important;
    box-shadow:
        inset 0 2px 6px rgba(120, 90, 60, 0.2),
        0 4px 10px rgba(120, 90, 60, 0.15) !important;
}

/* ============================================================
   关于与资料 · 数字展厅尾声
   ============================================================ */

/* 数据看板 */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.about-stat {
    background: #fbf6e9;
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    border: 2px solid #e8d9b8;
    box-shadow: 0 4px 12px rgba(120, 90, 60, 0.12);
    transition: all 0.3s;
}
.about-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(120, 90, 60, 0.2);
    border-color: #c49060;
}
.about-stat-num {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #bf8f60;
    letter-spacing: 2px;
    line-height: 1.1;
}
.about-stat-num span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #7a5a44;
    margin-left: 4px;
    letter-spacing: 0;
}
.about-stat-label {
    font-size: 0.85rem;
    color: #7a5a44;
    letter-spacing: 2px;
    margin-top: 8px;
}

/* 通用小节标题 */
.about-section-title {
    font-family: 'Noto Serif SC', '宋体', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #3e2c1b;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #bf8f60;
}

/* 时间轴 */
.about-timeline {
    background: #fbf6e9;
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 40px;
    border: 2px solid #e8d9b8;
    box-shadow: 0 4px 12px rgba(120, 90, 60, 0.12);
}
.timeline-track {
    position: relative;
    padding-left: 24px;
}
.timeline-track::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #c49060, #e8d9b8);
}
.timeline-item {
    position: relative;
    padding: 0 0 24px 24px;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #bf8f60;
    border: 3px solid #fbf6e9;
    box-shadow: 0 0 0 2px #bf8f60;
}
.timeline-year {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #a97a48;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.timeline-text {
    font-size: 0.88rem;
    color: #5a3e2b;
    line-height: 1.7;
}

/* 徽章区 */
.about-badges {
    background: #fbf6e9;
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 40px;
    border: 2px solid #e8d9b8;
    box-shadow: 0 4px 12px rgba(120, 90, 60, 0.12);
}

/* 折叠式学术资料 */
.about-collapse {
    margin-bottom: 40px;
}
.about-collapse details {
    background: #fbf6e9;
    border-radius: 16px;
    border: 2px solid #e8d9b8;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(120, 90, 60, 0.12);
}
.about-collapse summary {
    padding: 18px 24px;
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #3e2c1b;
    list-style: none;
    transition: all 0.25s;
    user-select: none;
}
.about-collapse summary::-webkit-details-marker {
    display: none;
}
.about-collapse summary:hover {
    background: #f5efe6;
    color: #a97a48;
}
.about-collapse summary::after {
    content: '▼';
    float: right;
    font-size: 0.7rem;
    color: #bf8f60;
    transition: transform 0.25s;
}
.about-collapse details[open] summary::after {
    transform: rotate(180deg);
}
.about-collapse-content {
    padding: 0 24px 24px;
    border-top: 1px dashed #e8d9b8;
}

/* 致谢 */
.about-thanks {
    margin-bottom: 32px;
    padding: 0 20px;
}

/* 底部引导 */
.about-end {
    text-align: center;
    padding: 32px 0;
    border-top: 1px dashed #d9cdbc;
}
.about-end-btn {
    margin-top: 16px;
    padding: 12px 32px;
    background: linear-gradient(180deg, #c39a6c, #a97a48);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Noto Serif SC', serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(169, 122, 72, 0.35);
    transition: all 0.25s;
}
.about-end-btn:hover {
    background: linear-gradient(180deg, #d1a97a, #b98a58);
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .about-stat-num {
        font-size: 1.8rem;
    }
}

/* ============================================================
   欢迎遮罩 · 博物馆开馆
   ============================================================ */
   #welcome-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #2b1d0e;                          /* 深棕黑，比原来更深 */
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

#welcome-overlay.show {
    display: flex;
    opacity: 1;
}

/* 背景光晕 */
.welcome-glow {
    position: absolute;
    top: -30%; left: -30%;
    width: 160%; height: 160%;
    background: radial-gradient(ellipse at center,
        rgba(191, 143, 96, 0.22) 0%,
        rgba(191, 143, 96, 0.05) 35%,
        transparent 70%);
    pointer-events: none;
    animation: welcomeGlow 6s ease-in-out infinite;
}
@keyframes welcomeGlow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.05); }
}

/* 上下装饰线 */
.welcome-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(232, 207, 166, 0.6) 30%,
        rgba(232, 207, 166, 0.9) 50%,
        rgba(232, 207, 166, 0.6) 70%,
        transparent);
}
.welcome-line.top    { top: 12%; }
.welcome-line.bottom { bottom: 12%; }

/* 主内容 */
.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    padding: 0 20px;
    text-align: center;
}

/* 顶部小标 */
.welcome-eyebrow {
    font-family: 'Noto Serif SC', '宋体', serif;
    font-size: 0.85rem;
    letter-spacing: 8px;
    color: #a97a48;
    margin-bottom: 28px;
    opacity: 0;
    animation: welcomeFadeUp 0.9s ease-out 0.2s forwards;
}

/* 器物图标 */
.welcome-icon {
    font-size: 5rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 32px rgba(191, 143, 96, 0.5));
    opacity: 0;
    animation: welcomeFloat 4s ease-in-out infinite, welcomeFadeUp 0.9s ease-out 0.4s forwards;
}
@keyframes welcomeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* 主标题 */
.welcome-title {
    font-family: 'Noto Serif SC', '宋体', serif !important;
    color: #f0e2d0;
    margin-bottom: 8px;
    text-shadow: 0 4px 24px rgba(191, 143, 96, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: welcomeFadeUp 0.9s ease-out 0.6s forwards;
}
.welcome-title .title-line1 {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 10px;
    color: #e8cfa6;               /* 第一行浅金色，更雅 */
    padding-left: 10px;
}
.welcome-title .title-line2 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: #f0e2d0;               /* 第二行米白，更重 */
    padding-left: 8px;
}

/* 金色分隔线 */
.welcome-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 20px 0 24px;
    opacity: 0;
    animation: welcomeFadeUp 0.9s ease-out 0.75s forwards;
}
.welcome-divider .line {
    display: block;
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8cfa6, transparent);
}
.welcome-divider .dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e8cfa6;
    box-shadow: 0 0 12px rgba(232, 207, 166, 0.8);
}

/* 副标题 */
.welcome-subtitle {
    font-family: 'Noto Serif SC', '宋体', serif !important;
    font-size: 1rem;
    letter-spacing: 4px;
    color: #b8a088;
    margin-bottom: 44px;
    opacity: 0;
    animation: welcomeFadeUp 0.9s ease-out 0.9s forwards;
}

/* 印章按钮 */
.welcome-btn {
    padding: 16px 56px;
    background: transparent;
    color: #f0e2d0;
    border: 2px solid #bf8f60;
    border-radius: 2px;
    font-family: 'Noto Serif SC', '宋体', serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    opacity: 0;
    animation: welcomeFadeUp 0.9s ease-out 1.05s forwards;
}
.welcome-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(232, 207, 166, 0.25),
        transparent);
    transition: left 0.6s ease;
}
.welcome-btn:hover {
    background: #bf8f60;
    color: #2b1d0e;
    border-color: #e8cfa6;
    letter-spacing: 8px;
    box-shadow: 0 0 40px rgba(191, 143, 96, 0.5);
    transform: translateY(-2px);
}
.welcome-btn:hover::before {
    left: 100%;
}

/* 底部小字 */
.welcome-footer {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.7rem;
    letter-spacing: 6px;
    color: #6b4f38;
    margin-top: 40px;
    opacity: 0;
    animation: welcomeFadeUp 0.9s ease-out 1.2s forwards;
}

/* 通用入场动画 */
@keyframes welcomeFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .welcome-title .title-line1 {
        font-size: 1.4rem;
        letter-spacing: 6px;
    }
    .welcome-title .title-line2 {
        font-size: 1.8rem;
        letter-spacing: 5px;
    }
    .welcome-icon {
        font-size: 3.5rem;
    }
    .welcome-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    .welcome-btn {
        padding: 14px 40px;
        font-size: 0.95rem;
        letter-spacing: 4px;
    }
    .welcome-btn:hover {
        letter-spacing: 5px;
    }
    .welcome-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 5px;
    }
    .welcome-footer {
        font-size: 0.6rem;
        letter-spacing: 4px;
    }
    .welcome-line {
        width: 80%;
    }
}

/* ============================================================
   首页 · 圆形聚光灯（只照陶器）
   ============================================================ */

/* 光晕画在圆形轮播里，被 border-radius 裁成圆 */
.hero-carousel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;

    /* 从圆顶部洒下的暖光 + 底部轻微反光 */
    background:
        radial-gradient(
            ellipse 80% 70% at 50% 0%,
            rgba(255, 245, 210, 0.75) 0%,
            rgba(255, 230, 170, 0.45) 25%,
            rgba(255, 215, 140, 0.2) 50%,
            transparent 75%
        ),
        radial-gradient(
            ellipse 60% 20% at 50% 100%,
            rgba(255, 220, 150, 0.25) 0%,
            transparent 80%
        );

    animation: spotlightBreath 4s ease-in-out infinite;
}

@keyframes spotlightBreath {
    0%, 100% { opacity: 0.88; }
    50%      { opacity: 1; }
}

/* 移动端光稍微收一点 */
@media (max-width: 768px) {
    .hero-carousel::after {
        background:
            radial-gradient(
                ellipse 90% 75% at 50% 0%,
                rgba(255, 245, 210, 0.7) 0%,
                rgba(255, 230, 170, 0.4) 25%,
                rgba(255, 215, 140, 0.18) 50%,
                transparent 75%
            ),
            radial-gradient(
                ellipse 60% 20% at 50% 100%,
                rgba(255, 220, 150, 0.22) 0%,
                transparent 80%
            );
    }
}
/* 让图片和文字不再阻挡点击*/
.carousel-card img,
.carousel-card h4,
.carousel-card p {
    pointer-events: none; /* 让图片和文字不阻挡点击 */
}

/*彩陶图鉴详情页文字换行*/
#detail-full-info {
    color: #3e2c1b; 
    font-size: 0.95rem; 
    line-height: 1.8;
    white-space: pre-line; /* 🔥 加上这行，它就会识别 \n 自动换行了！ */
}

/* 让工艺卡片里的图标和文字不阻挡点击 */
.craft-card-icon,
.craft-card h4,
.craft-card p {
    pointer-events: none;
}

/* 🔥 适配长文本的通关提示样式 */
#badge-toast.long-toast {
    height: auto !important; 
    min-height: 97px;
    padding: 15px 55px !important; 
}

#badge-toast.long-toast .toast-text-wrapper {
    white-space: normal !important; 
    text-align: left;
}

#badge-toast.long-toast .toast-title {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-top: 4px;
}

/* 🔥 已经探索过的工艺卡片，加上金色内边框和小标记 */
.craft-card.completed {
    border: 2px solid #d4af37 !important; /* 金边 */
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25), inset 0 0 15px rgba(212, 175, 55, 0.1) !important;
}

/* 在卡片的右上角加一个小金勾 ✓ */
.craft-card.completed::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    color: #d4af37;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}