/* 定义字体 */
@font-face {
    font-family: 'Local Ma Shan Zheng';
    src: local('Ma Shan Zheng'),
        local('MaShanZheng-Regular'),
        local('Microsoft YaHei'),
        local('PingFang SC'),
        local('Hiragino Sans GB');
    font-display: swap;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.camera-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1000;
}

.camera-container.active {
    display: flex;
    flex-direction: column;
}

.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #333;
    color: white;
}

.close-camera {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

#camera-preview {
    width: 100%;
    height: calc(100% - 120px);
    object-fit: cover;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #333;
}

.camera-controls button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.camera-controls button:hover {
    background-color: #45a049;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #fff9e6;
    color: #5c3d2e;
}

/* 导航栏设计 */
.navbar {
    background: #ffffff;
    padding: 0.8rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(255, 107, 107, 0.2);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Local Ma Shan Zheng', 'Ma Shan Zheng', '楷体', 'STKaiti', cursive;
    font-size: 2.8rem;
    color: #ff6b6b;
    text-shadow: 2px 2px rgba(255, 107, 107, 0.2);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
}

.nav-links {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.nav-links a {
    color: #5c3d2e;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.nav-links a:hover::before {
    width: 80%;
    left: 10%;
}

.nav-links a.active {
    background: #ff6b6b;
    color: #ffffff;
}

/* 移动端菜单 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #5c3d2e;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 1rem;
        background: #ffffff;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .nav-links a {
        width: 100%;
        justify-content: flex-start;
        padding: 1.2rem;
        font-size: 1.2rem;
        border-radius: 12px;
        margin: 0.3rem 0;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(255, 107, 107, 0.1);
    }

    .nav-links a:hover {
        background: rgba(255, 107, 107, 0.1);
        transform: translateX(10px);
    }

    .nav-links a.active {
        background: #ff6b6b;
        color: #ffffff;
        transform: translateX(10px);
        border: 1px solid #ff6b6b;
    }

    /* 添加遮罩层 */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        z-index: -1;
    }

    /* 菜单切换按钮样式 */
    .menu-toggle {
        background: none;
        border: none;
        font-size: 1.8rem;
        color: #5c3d2e;
        cursor: pointer;
        padding: 0.5rem;
        transition: all 0.3s ease;
    }

    .menu-toggle:hover {
        color: #ff6b6b;
    }

    .menu-toggle.active {
        transform: rotate(90deg);
    }

    .logo {
        font-size: 2rem;
        position: relative;
        z-index: 1001;
    }
}

/* 页面路由：每次只展示一个内容板块 */
.route-block[hidden] {
    display: none !important;
}

.route-page-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 1.5rem 1.5rem;
}

.route-page-intro h1 {
    color: #5c3d2e;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 0.55rem;
}

.route-page-intro p {
    color: #6b5d50;
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 44rem;
}

@media (max-width: 768px) {
    .route-page-intro {
        padding: 6.2rem 1rem 1rem;
    }
}

/* 横幅区 */
.banner {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.static-banner {
    width: 100%;
    height: 500px;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.banner h1 {
    font-size: 2.8rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(92, 61, 46, 0.8);
    margin-bottom: 1.2rem;
}

.banner p {
    font-size: 1.4rem;
    color: #ffeedd;
    text-shadow: 1px 1px 4px rgba(92, 61, 46, 0.6);
}

/* 产品展示区 */
.products {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 默认三列 */
    gap: 18px;
    align-items: start;
}

/* 兼容旧的 .product-card 样式，保留不破坏其他区域 */
.product-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
}

/* 新的 .product-item（实际使用） */

.product-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    /* 确保图片圆角 */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    height: 340px;
    /* 固定卡片高度，确保所有卡片等高 */
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

.product-item img,
.product-image {
    width: 100%;
    height: 220px;
    /* 图片高度固定 */
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 10px 12px;
    text-align: center;
    height: calc(340px - 220px);
    /* info 区域高度 = 卡片高度 - 图片高度 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-price {
    color: #e91e63;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 6px;
}

/* 响应式：小屏幕改为两列或一列 */
@media (max-width: 900px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-item img,
    .product-image {
        height: 180px;
    }
}

@media (max-width: 560px) {
    .products {
        grid-template-columns: 1fr;
    }

    .product-item img,
    .product-image {
        height: 160px;
    }
}

/* VR体验区 */
.vr-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f4ff 100%);
    padding: 4rem 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.vr-section::before {
    content: 'VR';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 8rem;
    color: rgba(78, 205, 196, 0.1);
    font-family: 'Ma Shan Zheng', cursive;
    transform: rotate(15deg);
}

.vr-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.vr-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(78, 205, 196, 0.1);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.vr-card:hover {
    transform: translateY(-5px);
}

.vr-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 2rem;
    transform: rotate(45deg);
    font-size: 0.9rem;
}

.vr-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.vr-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.vr-feature {
    background: #f0f4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.vr-feature img {
    width: 18px;
    margin-right: 0.3rem;
}

.vr-duration {
    color: #4ecdc4;
    font-weight: bold;
    margin: 0.5rem 0;
}

.vr-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.vr-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: #4ecdc4;
    margin: 0.5rem auto;
}

.vr-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #666;
}

.vr-button {
    background: #4ecdc4;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.vr-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 技艺展示轮播图 */
.carousel-section {
    margin: 3rem 0;
    position: relative;
}

.carousel-item {
    display: none;
    position: relative;
}

.carousel-item.active {
    display: block;
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

.carousel-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(92, 61, 46, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
}

.carousel-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto;
    display: block;
}

/* 研学项目 */
.study-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.study-card {
    padding: 1.5rem;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.study-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
}

.study-content h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #5c3d2e;
    font-weight: 600;
}

.study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0.8rem 0;
    font-size: 0.9em;
}

.study-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(92, 61, 46, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
}

.study-desc {
    color: #666;
    line-height: 1.8;
    font-size: 0.95em;
    margin: 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 限制显示行数 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.study-button {
    margin-top: auto;
    /* 使按钮始终位于底部 */
    width: fit-content;
}

.study-button:hover {
    background: #ff6b6b;
    transform: scale(1.05);
}

/* 创意工坊时间轴 */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ff6b6b 0%, #4ecdc4 100%);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-date {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #4ecdc4;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.timeline-content {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.timeline-details h3 {
    color: #5c3d2e;
    margin-bottom: 0.5rem;
}

.timeline-tags {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.timeline-tag {
    background: #f0f4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 为手作工坊时间轴提供更高优先级的命名空间样式，防止被其它样式覆盖
   使用 .workshop-section 前缀确保仅作用于手作工坊栏目 */
.workshop-section .timeline {
    position: relative;
    max-width: 1000px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.workshop-section .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ff6b6b 0%, #4ecdc4 100%);
}

.workshop-section .timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: white;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.22s ease;
}

.workshop-section .timeline-item:hover {
    transform: translateY(-6px);
}

.workshop-section .timeline-date {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #4ecdc4;
    color: white;
    padding: 0.45rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.25);
}

.workshop-section .timeline-content {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem 1.2rem;
    align-items: center;
}

.workshop-section .timeline-icon {
    width: 56px;
    height: 56px;
    background: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.workshop-section .timeline-details h3 {
    color: #5c3d2e;
    margin-bottom: 0.4rem;
}

.workshop-section .timeline-details p {
    color: #6b5a4a;
    line-height: 1.5;
    margin: 0;
}

/* 响应式：在窄屏上改为左侧竖线布局 */
@media (max-width: 768px) {
    .workshop-section .timeline::before {
        left: 20px;
        transform: none;
    }

    .workshop-section .timeline-item {
        width: calc(100% - 48px);
        margin-left: 48px;
    }

    .workshop-section .timeline-date {
        left: 8px;
        top: -10px;
        transform: none;
    }

    .workshop-section .timeline-content {
        grid-template-columns: 40px 1fr;
        gap: 0.8rem;
    }

    .workshop-section .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* 页脚 */
footer {
    background: #5c3d2e;
    color: white;
    padding: 2rem;
    text-align: center;
}

/* 非遗纪实视频行样式（四列，统一尺寸，B站风格卡片） */
.video-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.video-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: start;
}

.video-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.video-thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    /* 16:9 */
    cursor: pointer;
}

.video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.video-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-title {
    font-weight: 700;
    color: #2b2b2b;
    font-size: 1rem;
}

.video-desc {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 1000px) {
    .video-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .video-row {
        grid-template-columns: 1fr;
    }
}

/* 视频模态弹窗样式 */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.video-modal-overlay.active {
    display: flex;
}

.video-modal {
    width: 100%;
    max-width: 1100px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.7);
    position: relative;
    /* 固定窗口比例，避免被视频固有比例撑开 */
    aspect-ratio: 16 / 9;
    width: min(1100px, 95vw);
}

.video-modal video {
    width: 100%;
    height: 100%;
    display: block;
    background: black;
    object-fit: contain;
    /* 保持完整画面，不裁剪 */
}

.video-modal .modal-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.video-modal .close-modal {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.video-modal .close-modal:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* 在小屏上让模态占据更多高度 */
@media (max-width: 720px) {
    .video-modal {
        max-width: 100%;
        height: 64vh;
        aspect-ratio: auto;
    }

    .video-modal video {
        height: 100%;
        object-fit: contain;
    }
}

/* 公告栏 */
.notice-board {
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 20px;
    padding: 2rem;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe9e1 100%);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.1);
}

.ribbon {
    background: #ff6b6b;
    color: white;
    padding: 0.8rem 2rem;
    display: inline-block;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    margin: -2rem auto 1rem;
    font-size: 1.2rem;
    transform: translateY(-0.5rem);
}

.notices {
    display: grid;
    gap: 2rem;
    margin-top: 1.5rem;
}

.notice-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.notice-item:hover {
    transform: translateY(-3px);
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-right: 3px solid #ff6b6b;
}

.notice-content {
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 0.8rem;
}

.news-date {
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.notice-content h4 {
    font-size: 1.4rem;
    color: #5c3d2e;
    margin-bottom: 0.8rem;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-tags {
    display: flex;
    gap: 0.8rem;
}

.news-tag {
    background: #f0f4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85em;
}

@media (max-width: 768px) {
    .notice-item {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 200px;
        border-right: none;
        border-bottom: 3px solid #ff6b6b;
    }

    .notice-content {
        padding: 1.5rem;
    }
}

/* 颜色分类 */
.workshop {
    background: #e8f5e9;
}

.vr {
    background: #e3f2fd;
}

@media (max-width: 1024px) {
    .notice-board {
        margin: 2rem 1rem;
    }
}

@media (max-width: 768px) {
    .ribbon {
        margin: -1.5rem auto 0.8rem;
        transform: translateY(-0.3rem);
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: calc(100% - 40px);
        margin-left: 40px;
    }

    .timeline-date {
        left: -50px;
        transform: none;
    }
}

/* 添加指示点样式 */
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #ff6b6b;
    transform: scale(1.2);
}

/* 统一通知项背景色 */
.notice-item {
    background: rgba(255, 255, 255, 0.9);
}

.event {
    background: #fff0f0;
    border-left: 4px solid #ff6b6b;
}

.workshop {
    background: #f0fff4;
    border-left: 4px solid #4ecdc4;
}

.knowledge {
    background: #f0f4ff;
    border-left: 4px solid #6b6bff;
}

.experience {
    background: #fff4f0;
    border-left: 4px solid #ffa94d;
}

/* 图标背景色 */
.event .notice-icon {
    background: #ffd7d7;
}

.workshop .notice-icon {
    background: #d7f5e0;
}

.knowledge .notice-icon {
    background: #d7dfff;
}

.experience .notice-icon {
    background: #ffe0d7;
}

/* 文字颜色 */
.notice-content h4 {
    color: #5c3d2e;
}

.notice-content p {
    color: #666;
}

/* 轮播指示点位置 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* 研学项目样式 */
.study-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.study-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #5c3d2e;
    margin-bottom: 2rem;
    position: relative;
}

.study-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #ff6b6b;
    margin: 0.5rem auto;
}

.study-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.study-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid #ff6b6b;
}

.study-info {
    padding: 1.5rem;
}

.study-info h3 {
    color: #5c3d2e;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.study-date {
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.study-tag {
    position: absolute;
    top: 15px;
    right: -30px;
    background: #4ecdc4;
    color: white;
    padding: 0.3rem 2rem;
    transform: rotate(45deg);
    font-size: 0.9rem;
}

.study-features {
    display: flex;
    gap: 0.8rem;
    margin: 1rem 0;
}

.study-feature {
    display: flex;
    align-items: center;
    background: #fff5f5;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.study-feature img {
    width: 20px;
    margin-right: 0.5rem;
}

/* 产品区标题样式 */
.products-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.products-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #5c3d2e;
    margin-bottom: 2rem;
    position: relative;
}

.products-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #ff6b6b;
    margin: 0.5rem auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .products-section h2 {
        font-size: 1.8rem;
    }
}

/* 时间轴标题样式 */
.workshop-section h2 {
    text-align: center;
    font-size: 2.4rem;
    color: #5c3d2e;
    margin: 2rem 0 3rem;
    position: relative;
}

.workshop-section h2::before,

.workshop-section h2::before {
    left: 0;
    transform: translateX(-100%);
}

.workshop-section h2::after {
    right: 0;
    transform: translateX(100%);
}

/* 新闻轮播样式 */
.news-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-right: 3px solid #ff6b6b;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

.carousel-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #ff6b6b;
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* 添加分类样式 */
.category-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 8px 32px rgba(92, 61, 46, 0.1);
    position: relative;
    overflow: hidden;
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50px;
    width: 120px;
    height: 100%;
    background: rgba(255, 107, 107, 0.05);
    transform: skewX(-15deg);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    color: #5c3d2e;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    border-radius: 12px;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
}

.category-icon {
    width: 48px;
    height: 48px;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 28px;
    height: 28px;
}

.category-title:hover .category-icon {
    transform: rotate(15deg) scale(1.1);
}

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

.product-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            rgba(255, 107, 107, 0.1) 0%,
            rgba(78, 205, 196, 0.1) 100%);
    transform: rotate(45deg);
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(92, 61, 46, 0.15);
}

.product-image {
    border-radius: 12px;
    height: 240px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-price {
    color: #ff6b6b;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .category-title {
        font-size: 1.6rem;
        padding: 0.8rem 1.5rem;
    }

    .category-icon {
        width: 36px;
        height: 36px;
    }

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

/* 研学营样式 */
.study-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.study-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.study-card:hover {
    transform: translateY(-5px);
}

.study-icon {
    font-size: 2.5rem;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.study-content {
    flex: 1;
}

.study-content h3 {
    color: #5c3d2e;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.study-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.study-button {
    display: inline-block;
    background: #4ecdc4;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.study-button:hover {
    background: #ff6b6b;
    transform: scale(1.05);
}

/* 统一研学卡片左侧装饰色条 */
.study-card.visit {
    border-left: 4px solid #ff6b6b;
}

.study-card.lecture {
    border-left: 4px solid #4ecdc4;
}

.study-card.competition {
    border-left: 4px solid #ffd700;
}

.study-card.workshop {
    border-left: 4px solid #6b8cff;
}

.study-card.camp {
    border-left: 4px solid #ff8e4d;
}

.study-card.tea {
    border-left: 4px solid #8bc34a;
}

@media (max-width: 768px) {
    .study-projects {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .study-card {
        flex-direction: column;
        padding: 1.2rem;
    }

    .study-content h3 {
        font-size: 1.3rem;
    }

    .study-meta {
        gap: 0.5rem;
    }

    .study-desc {
        -webkit-line-clamp: 4;
    }

    .study-features {
        grid-template-columns: 1fr;
    }
}

/* 文字排版样式 */
.study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.study-tags {
    display: flex;
    gap: 0.8rem;
}

.tag-base {
    background: #ff6b6b;
    color: white;
}

.tag-theory {
    background: #4ecdc4;
    color: white;
}

.tag-creative {
    background: #ffd700;
    color: #5c3d2e;
}

.tag-practice {
    background: #6b8cff;
    color: white;
}

.tag-special {
    background: #ff8e4d;
    color: white;
}

.tag-culture {
    background: #8bc34a;
    color: white;
}

.tag-prize {
    background: #e91e63;
    color: white;
}

.tag-level {
    background: #9c27b0;
    color: white;
}

.tag-duration {
    background: #607d8b;
    color: white;
}

.study-tags span {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85em;
}

.study-content h3 {
    font-size: 1.5rem;
    color: #5c3d2e;
    margin-bottom: 1rem;
}

.study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.95em;
}

.study-desc {
    color: #444;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.study-features {
    list-style: none;
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}

.study-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #666;
}

.study-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
}

@media (max-width: 768px) {
    .study-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .study-content h3 {
        font-size: 1.3rem;
    }

    .study-desc {
        font-size: 1em;
    }
}

/* 更多好物链接 */
.more-link {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.more-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: all 0.3s;
}

.more-link:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.more-link:hover::before {
    width: 100%;
    left: 0;
}

/* 样式表中添加 */
.more-link {
    margin-left: auto;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(90deg, #ff6b6b, #ff9f4d);
    color: white;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.more-link::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transition: left 0.5s;
}

.more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.more-link:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .more-link {
        position: absolute;
        right: 1rem;
        bottom: -2.5rem;
        font-size: 0.8em;
        padding: 0.4rem 1.2rem;
    }
}

/* 购物车按钮样式 */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cart-button {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 0.85em;
}

.cart-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.cart-button svg {
    width: 16px;
    height: 16px;
    fill: white;
}


@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* 购物车按钮样式 */
.cart-button {
    padding: 0.5rem 1rem;
    font-size: 0.85em;
}

.cart-button svg {
    width: 16px;
    height: 16px;
}

/* 按钮容器间距 */
.product-actions {
    gap: 0.8rem;
    margin-top: 1rem;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .product-actions {
        flex-direction: column;
    }

    .cart-button {
        width: 100%;
        justify-content: center;
    }
}

a {
    text-decoration: none
}

@media (max-width: 480px) {
    .banner-content {
        padding: 1.5rem 1rem;
        width: 90%;
    }

    .banner h1 {
        font-size: 2rem;
        line-height: 1.6;
        letter-spacing: 1px;
        word-break: break-all;
        text-align: center;
        text-shadow: 1px 1px 4px rgba(92, 61, 46, 0.7);
        margin-bottom: 1rem;
    }

    .banner p {
        font-size: 1.2rem;
        line-height: 1.5;
        margin-top: 0.8rem;
        text-shadow: 1px 1px 4px rgba(92, 61, 46, 0.7);
    }

    .notice-board {
        padding: 1rem 0.3rem;
        margin: 1rem 0.2rem;
    }

    .ribbon {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
        margin: -1.2rem auto 0.5rem;
        text-align: center;
    }

    .notices {
        gap: 1.2rem;
    }

    .notice-item {
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        margin: 0 0.2rem;
        padding: 0.5rem 0.2rem;
    }

    .news-carousel {
        height: 200px;
        min-height: 180px;
    }

    .carousel-image,
    .news-image {
        height: 200px;
        min-height: 180px;
        border-radius: 10px 10px 0 0;
    }

    .notice-content {
        padding: 1rem 0.5rem 1rem 0.5rem;
    }

    .news-meta {
        font-size: 0.85em;
        flex-direction: column;
        gap: 0.3rem;
    }

    .news-date {
        font-size: 0.9em;
        padding: 0.2rem 0.6rem;
    }

    .notice-content h4 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }

    .news-excerpt {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    .news-tags {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .news-tag {
        font-size: 0.8em;
        padding: 0.2rem 0.6rem;
    }

    /* 匠心好物移动端优化 */
    .products-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .category-section {
        padding: 1rem 0.2rem;
        margin: 1.2rem 0;
    }

    .category-title {
        font-size: 1.05rem;
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
    }

    .category-icon {
        width: 24px;
        height: 24px;
        padding: 4px;
    }

    .more-link {
        font-size: 0.75rem;
        padding: 0.2rem 0.7rem;
        position: static;
        margin-left: auto;
    }

    .products {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.2rem;
    }

    .product-card {
        margin: 0 0.2rem;
        border-radius: 14px;
        padding: 1rem 0.7rem;
    }

    .product-image {
        height: 220px;
        border-radius: 10px;
    }

    .product-card h3 {
        font-size: 1rem;
        margin: 0.5rem 0 0.3rem 0;
    }

    .product-price {
        font-size: 1.1rem;
        margin: 0.2rem 0 0.5rem 0;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .cart-button,
    .vr-button {
        width: 100%;
        font-size: 0.95em;
        padding: 0.6rem 0;
        justify-content: center;
    }

    /* 研学成长营移动端优化 */
    .study-section {
        padding: 0.5rem 0.2rem;
        margin: 1.2rem 0;
    }

    .study-section h2 {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .study-projects {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.2rem;
    }

    .study-card {
        border-radius: 14px;
        padding: 1rem 0.7rem;
        margin: 0 0.2rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .study-header {
        gap: 0.5rem;
    }

    .study-icon {
        font-size: 1.3rem;
        min-width: 36px;
        height: 36px;
    }

    .study-tags span {
        font-size: 0.8em;
        padding: 0.2rem 0.7rem;
    }

    .study-content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .study-meta {
        font-size: 0.9em;
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .study-desc {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    .study-button {
        width: 100%;
        font-size: 0.95em;
        padding: 0.6rem 0;
        margin-top: 0.5rem;
        text-align: center;
    }

    /* VR体验馆移动端优化 */
    .vr-section {
        padding: 1.2rem 0.2rem;
        margin: 1.2rem 0;
    }

    .vr-section h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .vr-intro {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        padding: 0 0.2rem;
    }

    .vr-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.2rem;
    }

    .vr-card {
        border-radius: 14px;
        padding: 1rem 0.7rem;
        margin: 0 0.2rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .vr-badge {
        font-size: 0.8rem;
        padding: 0.2rem 1.2rem;
        top: 10px;
        right: -20px;
    }

    .vr-image {
        height: 200px;
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }

    .vr-card h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .vr-duration {
        font-size: 0.92rem;
        margin: 0.2rem 0 0.5rem 0;
    }

    .vr-features {
        gap: 0.3rem;
        flex-wrap: wrap;
        margin: 0.5rem 0;
    }

    .vr-feature {
        font-size: 0.8em;
        padding: 0.2rem 0.7rem;
    }

    .vr-card p {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    .vr-button {
        width: 100%;
        font-size: 0.95em;
        padding: 0.6rem 0;
        margin-top: 0.5rem;
        text-align: center;
    }

    /* 手作工坊移动端优化 */
    .workshop-section {
        padding: 0.5rem 0.2rem;
        margin: 1.2rem 0;
    }

    .workshop-section h2 {
        font-size: 1.1rem;
        margin: 1rem 0 1.2rem 0;
    }

    .timeline {
        padding: 0 0.2rem;
        max-width: 100%;
    }

    .timeline::before {
        left: 12px;
        width: 2px;
    }

    .timeline-item {
        width: calc(100% - 24px);
        margin-left: 24px;
        margin-bottom: 1.2rem;
        border-radius: 12px;
        padding: 0.8rem 0.6rem;
    }

    .timeline-date {
        left: -36px;
        font-size: 0.85rem;
        padding: 0.2rem 0.7rem;
        top: -10px;
    }

    .timeline-content {
        grid-template-columns: 32px 1fr;
        gap: 0.7rem;
    }

    .timeline-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .timeline-details h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .timeline-details p {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 0.3rem;
    }

    .timeline-tags {
        gap: 0.3rem;
        flex-wrap: wrap;
        margin-top: 0.3rem;
    }

    .timeline-tag {
        font-size: 0.8em;
        padding: 0.2rem 0.7rem;
    }
}

/* 智能体验菜单样式 */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    width: max-content;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.has-submenu:hover .submenu {
    display: grid;
    opacity: 1;
    visibility: visible;
}

.submenu-column {
    min-width: 200px;
}

.submenu-column h4 {
    color: #5c3d2e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ff6b6b;
}

.submenu-column a {
    display: block;
    padding: 0.8rem 1rem;
    color: #666;
    transition: all 0.3s;
    border-radius: 8px;
    margin: 0.3rem 0;
}

.submenu-column a:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    transform: translateX(5px);
}

/* 智能体验内容区样式 */
.smart-features {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00bcd4, #3f51b5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.feature-title {
    font-size: 1.3rem;
    color: #5c3d2e;
    margin-bottom: 1rem;
}

.feature-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.try-button {
    background: linear-gradient(135deg, #00bcd4, #3f51b5);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.try-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

@media (max-width: 768px) {
    .submenu {
        position: static;
        transform: none;
        box-shadow: none;
        padding: 0;
        display: none;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .has-submenu:hover .submenu {
        display: none;
    }

    .has-submenu.active .submenu {
        display: grid;
    }

    .submenu-column {
        min-width: 100%;
        padding: 0.5rem 0;
    }

    .submenu-column h4 {
        font-size: 1rem;
        margin: 1rem 0 0.5rem;
    }

    .submenu-column a {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
}

/* 悬浮按钮样式 */
.smart-fab {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
}

.fab-wrapper {
    display: flex;
    justify-content: flex-end;
}

.fab-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(218, 165, 32, 0.4);
    padding: 6px;
    border-radius: 40px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 16px rgba(218, 165, 32, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(218, 165, 32, 0.5);
}

.fab-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.5);
    background: rgba(218, 165, 32, 0.45);
    border-color: rgba(218, 165, 32, 0.6);
}

.fab-label {
    color: #8B6914;
    font-size: 14px;
    white-space: nowrap;
    padding-right: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    overflow: hidden;
    position: relative;
    background: none;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.fab-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.fab-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    max-height: 400px;
    /* 添加最大高度限制 */
    overflow-y: auto;
    /* 添加垂直滚动 */
}

.smart-fab.active .fab-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 自定义滚动条样式 */
.fab-menu::-webkit-scrollbar {
    width: 6px;
}

.fab-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.fab-menu::-webkit-scrollbar-thumb {
    background: #00bcd4;
    border-radius: 3px;
}

.fab-menu::-webkit-scrollbar-thumb:hover {
    background: #008ba3;
}

.menu-section {
    margin-bottom: 1.5rem;
}

.menu-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #5c3d2e;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 188, 212, 0.2);
}

.section-icon {
    width: 20px;
    height: 20px;
    fill: #00bcd4;
}

.menu-items {
    display: grid;
    gap: 0.8rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: none;
    background: rgba(0, 188, 212, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    width: 100%;
}

.menu-item:hover {
    background: rgba(0, 188, 212, 0.1);
    transform: translateX(5px);
}

.item-icon {
    font-size: 1.5rem;
    min-width: 32px;
    text-align: center;
}

.item-content {
    display: flex;
    flex-direction: column;
}

.item-title {
    color: #5c3d2e;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.item-desc {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .smart-fab {
        right: 16px;
        bottom: 16px;
    }

    .fab-container {
        padding: 4px;
        gap: 8px;
    }

    .fab-label {
        font-size: 12px;
        padding-right: 12px;
    }

    .fab-button {
        width: 52px;
        height: 52px;
    }

    .fab-icon {
        width: 24px;
        height: 24px;
    }

    .fab-menu {
        width: calc(100vw - 32px);
        right: -16px;
        bottom: 76px;
        max-height: 80vh;
        padding: 12px;
    }

    .menu-section {
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .menu-item {
        padding: 0.8rem;
    }

    .item-icon {
        font-size: 1.3rem;
        min-width: 28px;
    }

    .item-title {
        font-size: 0.95rem;
    }

    .item-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 320px) {
    .smart-fab {
        right: 12px;
        bottom: 12px;
    }

    .fab-button {
        width: 48px;
        height: 48px;
    }

    .fab-menu {
        width: calc(100vw - 24px);
        right: -12px;
        padding: 10px;
    }

    .menu-item {
        padding: 0.7rem;
    }

    .item-title {
        font-size: 0.9rem;
    }

    .item-desc {
        font-size: 0.8rem;
    }
}

/* 适配 iPhone X 及以上带有底部操作条的设备 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .smart-fab {
        bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* 3D Coverflow / Carousel styles */
.carousel {
    position: relative;
    width: 100%;
    margin: 0.6rem 0;
    perspective: 900px;
    /* slightly reduced depth */
}

.carousel-viewport {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    /* ensure it doesn't cover surrounding background */
    padding: 0;
    /* removed large vertical padding */
    background: transparent;
    /* integrate with section background */
    box-shadow: none;
    /* keep layout flatter to blend with page */
}

.carousel-track {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-style: preserve-3d;
    transition: transform 520ms cubic-bezier(.22, .9, .28, 1), opacity 360ms ease;
    transform-origin: center center;
    will-change: transform, opacity;
    display: block;
    width: 48%;
    /* narrower slide to avoid covering background */
    max-width: 720px;
    box-sizing: border-box;
}

.slide-inner {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #f7f7f7;
    box-shadow: 0 6px 18px rgba(18, 26, 34, 0.06);
    transition: box-shadow 320ms ease, transform 320ms cubic-bezier(.22, .9, .28, 1);
    position: relative;
}

.slide-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.slide-caption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.25));
    font-weight: 600;
    backdrop-filter: blur(3px);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(11, 22, 33, 0.12);
    cursor: pointer;
    z-index: 60;
}

.carousel-arrow.prev {
    left: 14px;
}

.carousel-arrow.next {
    right: 14px;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    display: flex;
    gap: 8px;
    z-index: 70;
}

/* thumbnail navigation */
.carousel-thumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 6px 0 0;
}

.carousel-thumb {
    width: 56px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 220ms ease, border-color 200ms ease, opacity 200ms ease;
    opacity: 0.85;
    object-fit: cover;
}

.carousel-thumb.active {
    transform: translateY(-4px) scale(1.06);
    border-color: rgba(0, 188, 212, 0.9);
    opacity: 1;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
    cursor: pointer;
    transition: transform 200ms ease, background 200ms ease;
}

.carousel-dot.active {
    background: #00bcd4;
    transform: scale(1.15);
}

/* small screens: reduce width and transforms */
@media (max-width: 768px) {
    .carousel-slide {
        width: 82%;
    }

    .slide-inner {
        border-radius: 10px;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 420px) {
    .carousel-slide {
        width: 92%;
    }
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    background-color: #fff;
}

.product-item img {
    width: 100%;
    height: auto;
    display: block;
}

.product-item .product-info {
    padding: 10px;
}

.product-item .product-price {
    color: #e91e63;
    font-weight: bold;
    margin-top: 5px;
}

/* 图片优化样式 */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* 渐进式图片加载 */
img.progressive {
    filter: blur(10px);
    transition: filter 0.5s ease-in-out;
}

img.progressive.loaded {
    filter: blur(0);
}

/* 响应式图片优化 */
img {
    max-width: 100%;
    height: auto;
}

/* 关键图片预加载 */
.static-banner {
    /* 首屏图片，立即加载 */
    loading: eager;
}

/* 图片容器优化 */
.product-item img,
.carousel-image,
.vr-image {
    object-fit: cover;
    object-position: center;
}

/* 低质量图片占位符 */
.lqip-placeholder {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 图片错误处理 */
img {
    /* 图片加载失败时的占位符 */
    background: #f5f5f5;
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

img::after {
    content: "图片加载失败";
    display: none;
}

img:not([src]):not([srcset])::after {
    display: flex;
}

/* 图片压缩提示 */
@media (max-width: 768px) {
    img {
        /* 移动端使用更小的图片 */
        max-width: 100%;
    }
}

/* 图片加载性能监控 */
.image-loading {
    position: relative;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.02);
    z-index: 1;
}

/* 3D预览模态框样式 */
.modal-3d {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-3d.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-3d-content {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.modal-3d-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient( #717277 0%);
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.modal-3d-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-3d-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-3d-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-3d-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.modal-3d-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 悬浮按钮布局调整 */
.fab-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-3d-content {
        width: 95%;
        height: 90vh;
        border-radius: 15px;
    }

    .modal-3d-header {
        padding: 1rem 1.5rem;
    }

    .modal-3d-header h3 {
        font-size: 1.2rem;
    }

    .modal-3d-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* ==================================================
   社区服务三大模块（2026 挑战杯新增）
   ================================================== */

/* ---- 通用 ---- */
.module-intro {
    text-align: center;
    color: #8a7a6e;
    max-width: 720px;
    margin: -1rem auto 2rem;
    line-height: 1.8;
}

.module-subtitle {
    font-size: 1.4rem;
    color: #5c3d2e;
    margin: 2.5rem 0 1.2rem;
    padding-left: 0.8rem;
    border-left: 4px solid #b8860b;
}

.btn-gold {
    background: linear-gradient(135deg, #b8860b, #d4a017);
    color: #fff;
    border: none;
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.35);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(184, 134, 11, 0.45);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-item label {
    color: #5c3d2e;
    font-weight: bold;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-item input,
.form-item select,
.form-item textarea {
    padding: 0.7rem 0.9rem;
    border: 1px solid #e0d5c5;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fffdf8;
    color: #4a3a2e;
    outline: none;
    transition: border-color 0.25s;
}

.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
    border-color: #b8860b;
}

.form-hint {
    font-size: 0.82rem;
    color: #a89a8a;
    margin-top: 0.5rem;
}

/* ---- 社区记忆档案 ---- */
.memory-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, #fdf9f0, #fff);
    border-radius: 20px;
}

.memory-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #5c3d2e;
    margin-bottom: 2rem;
    position: relative;
}

.memory-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #b8860b;
    margin: 0.5rem auto;
}

.memory-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.memory-map-panel {
    background: #fff;
    border-radius: 15px;
    padding: 1.2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.memory-map-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.map-title {
    font-weight: bold;
    color: #5c3d2e;
}

.map-note {
    font-size: 0.78rem;
    color: #b0a494;
}

#community-map {
    width: 100%;
    height: auto;
}

.map-watermark {
    font-size: 12px;
    fill: #c9b98a;
    letter-spacing: 4px;
}

.map-community {
    cursor: pointer;
}

.map-community circle {
    fill: rgba(184, 134, 11, 0.75);
    stroke: #8b6914;
    stroke-width: 1.5;
    transition: fill 0.25s, r 0.25s;
}

.map-community text {
    font-size: 11px;
    fill: #5c3d2e;
    text-anchor: middle;
    pointer-events: none;
}

.map-community:hover circle,
.map-community.selected circle {
    fill: #ff6b6b;
    stroke: #c94b4b;
}

.map-community.selected text {
    font-weight: bold;
}

.map-legend {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: #8a7a6e;
}

.legend-dot {
    display: inline-block;
    border-radius: 50%;
    background: rgba(184, 134, 11, 0.75);
    margin-right: 0.3rem;
    vertical-align: middle;
}

.dot-sm { width: 8px; height: 8px; }
.dot-md { width: 12px; height: 12px; }
.dot-lg { width: 16px; height: 16px; }

.memory-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.community-info {
    background: #fff;
    border-radius: 15px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #b8860b;
}

.community-info h4 {
    color: #5c3d2e;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.community-info p {
    color: #6b5d50;
    font-size: 0.92rem;
    line-height: 1.7;
}

.community-info .info-count {
    margin-top: 0.6rem;
    color: #b8860b;
    font-weight: bold;
    font-size: 0.9rem;
}

.community-list {
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border-radius: 15px;
    padding: 0.6rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.community-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.community-list-item:hover,
.community-list-item.selected {
    background: #fdf3dd;
}

.community-list-item .cl-name {
    color: #5c3d2e;
    font-size: 0.95rem;
}

.community-list-item .cl-count {
    background: #fdf3dd;
    color: #b8860b;
    border-radius: 12px;
    padding: 0.1rem 0.6rem;
    font-size: 0.8rem;
}

.community-list-item.selected .cl-count {
    background: #b8860b;
    color: #fff;
}

.memory-tags-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 2rem 0 1rem;
}

.tags-bar-label {
    color: #5c3d2e;
    font-weight: bold;
    font-size: 0.95rem;
}

.memory-tag-chip {
    background: #fff;
    border: 1px solid #e0d5c5;
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.88rem;
    color: #6b5d50;
    cursor: pointer;
    transition: all 0.2s;
}

.memory-tag-chip:hover {
    border-color: #b8860b;
    color: #b8860b;
}

.memory-tag-chip.active {
    background: #b8860b;
    border-color: #b8860b;
    color: #fff;
}

.memory-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.4rem;
}

.memory-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.memory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.memory-card-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.memory-card-noimg {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #f5ead0, #fdf6e3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.memory-card-body {
    padding: 1.1rem 1.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.memory-card-meta {
    display: flex;
    justify-content: space-between;
    color: #b8860b;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.memory-card-story {
    color: #6b5d50;
    font-size: 0.92rem;
    line-height: 1.7;
    flex: 1;
}

.memory-card-tags {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.memory-card-tag {
    background: #fdf3dd;
    color: #9a7508;
    border-radius: 12px;
    padding: 0.15rem 0.6rem;
    font-size: 0.78rem;
}

.memory-upload {
    margin-top: 2.5rem;
    background: #fff;
    border-radius: 15px;
    padding: 1.8rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #b8860b;
}

.upload-head h3,
.apply-head h3 {
    color: #5c3d2e;
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.upload-head p,
.apply-head p {
    color: #8a7a6e;
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
    line-height: 1.7;
}

.photo-picker {
    width: 100%;
    height: 180px;
    border: 2px dashed #d9c9a8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.25s;
    overflow: hidden;
    background: #fffdf8;
}

.photo-picker:hover {
    border-color: #b8860b;
}

.picker-placeholder {
    text-align: center;
    color: #b0a494;
}

.picker-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.4rem;
}

.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.tag-suggest-chip {
    background: #fdf3dd;
    color: #9a7508;
    border-radius: 14px;
    padding: 0.2rem 0.7rem;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.tag-suggest-chip:hover {
    border-color: #b8860b;
}

/* ---- 社区共绣计划 ---- */
.coemb-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem 1rem;
}

.coemb-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #5c3d2e;
    margin-bottom: 2rem;
    position: relative;
}

.coemb-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #4ecdc4;
    margin: 0.5rem auto;
}

.coemb-events {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.4rem;
}

.coemb-event {
    background: #fff;
    border-radius: 15px;
    padding: 1.4rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4ecdc4;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: transform 0.3s;
}

.coemb-event:hover {
    transform: translateY(-4px);
}

.coemb-event-date {
    display: inline-flex;
    align-self: flex-start;
    background: #e8f8f5;
    color: #0f766e;
    border-radius: 8px;
    padding: 0.35rem 0.8rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.coemb-event h4 {
    color: #5c3d2e;
    font-size: 1.15rem;
}

.coemb-event .event-meta {
    color: #8a7a6e;
    font-size: 0.88rem;
    line-height: 1.7;
}

.coemb-slots {
    margin-top: 0.2rem;
}

.coemb-slots .slots-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #8a7a6e;
    margin-bottom: 0.3rem;
}

.coemb-slots .slots-bar {
    height: 8px;
    border-radius: 4px;
    background: #f0ece4;
    overflow: hidden;
}

.coemb-slots .slots-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #4ecdc4, #26a69a);
    transition: width 0.6s;
}

.coemb-slots.full .slots-fill {
    background: linear-gradient(90deg, #ff9f4d, #ff6b6b);
}

.coemb-event .btn-gold {
    margin-top: auto;
    align-self: flex-start;
    background: linear-gradient(135deg, #26a69a, #4ecdc4);
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.35);
}

.coemb-event .btn-gold:disabled {
    background: #d8d2c8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.coemb-history {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.4rem;
    margin-bottom: 1rem;
}

.coemb-history-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.coemb-history-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.coemb-history-card .history-body {
    padding: 1rem 1.2rem;
}

.coemb-history-card h4 {
    color: #5c3d2e;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.coemb-history-card .history-when {
    color: #b8860b;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.coemb-history-card .history-stats {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.coemb-history-card .history-stat {
    background: #f7f3ea;
    color: #6b5d50;
    border-radius: 8px;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
}

.coemb-apply {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, #e8f8f5, #f4fbfa);
    border-radius: 15px;
    padding: 1.8rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #c8ebe6;
}

.apply-form {
    background: #fff;
    border-radius: 12px;
    padding: 1.4rem;
}

.apply-success {
    margin-top: 1rem;
    background: #eaf7e8;
    border: 1px solid #a5d6a7;
    border-radius: 12px;
    padding: 1rem 1.3rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.apply-success strong {
    color: #2e7d32;
}

.apply-success p {
    color: #4c8c50;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* ---- 文化服务预约 ---- */
.booking-section {
    max-width: 1200px;
    margin: 3rem auto 4rem;
    padding: 0 1rem;
}

.booking-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #5c3d2e;
    margin-bottom: 2rem;
    position: relative;
}

.booking-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #8bc34a;
    margin: 0.5rem auto;
}

.booking-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.4rem;
}

.booking-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 3px solid #8bc34a;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: transform 0.3s;
}

.booking-card:hover {
    transform: translateY(-5px);
}

.booking-card-icon {
    font-size: 2.6rem;
}

.booking-card h3 {
    color: #5c3d2e;
    font-size: 1.2rem;
}

.booking-card p {
    color: #6b5d50;
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
}

.booking-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #8a7a6e;
    background: #f7f9ef;
    border-radius: 10px;
    padding: 0.6rem;
}

.booking-my {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-top: 1rem;
}

.booking-my-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px dashed #e8e0d0;
}

.booking-my-item:last-child {
    border-bottom: none;
}

.bmi-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bmi-title {
    color: #5c3d2e;
    font-weight: bold;
}

.bmi-detail {
    color: #8a7a6e;
    font-size: 0.85rem;
}

.bmi-status {
    background: #fdf3dd;
    color: #9a7508;
    border-radius: 14px;
    padding: 0.25rem 0.8rem;
    font-size: 0.82rem;
}

/* ---- 通用弹窗 ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(60, 45, 25, 0.55);
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 15px;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-box-header h3 {
    color: #5c3d2e;
    font-size: 1.25rem;
}

.modal-box-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #a89a8a;
    cursor: pointer;
    line-height: 1;
}

.modal-box-close:hover {
    color: #ff6b6b;
}

.modal-box-info {
    background: #fdf3dd;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    color: #7a5c08;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ---- 全局提示 toast ---- */
.global-toast {
    position: fixed;
    left: 50%;
    bottom: 2.2rem;
    transform: translateX(-50%) translateY(20px);
    background: #3c3d2e;
    color: #fff;
    background: rgba(92, 61, 46, 0.95);
    padding: 0.8rem 1.6rem;
    border-radius: 24px;
    font-size: 0.95rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    max-width: 86vw;
    text-align: center;
}

.global-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- 缺图兜底（修复旧版遗留） ---- */
.video-thumb {
    background: linear-gradient(135deg, #5c3d2e, #b8860b);
}

.img-broken {
    display: none !important;
}

.notice-item.no-media {
    grid-template-columns: 1fr;
}

.notice-item.no-media .notice-content {
    padding: 1.5rem;
}

/* ---- 响应式 ---- */
@media (max-width: 860px) {
    .memory-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .memory-section,
    .coemb-section {
        padding: 1.4rem 0.8rem;
    }

    .memory-upload,
    .coemb-apply {
        padding: 1.2rem;
    }
}
