@charset "utf-8";

/*
 * ========================================
 * 创客教室产品页面样式
 * ========================================
 * 文件路径：assets/zh-cn/css/makerspace.css
 * 
 * 【功能说明】
 * 1. 类型导航栏样式（Sticky定位）
 * 2. 类型分隔样式（橙色标签 + 红色波浪线）
 * 3. 产品卡片样式
 * 4. 响应式布局（重点优化移动端）
 * ========================================
 */

/* ====================================================================
 * 页面特定布局优化（仅影响创客教室页面）
 * ==================================================================== */
/* 确保所有父容器都不会影响 sticky 定位 */
.site-main {
    overflow: visible !important; /* 仅在此页面生效，不影响其他页面 */
}

/* 确保 page-content 也不会影响 sticky 定位 */
.page-content {
    overflow: visible !important;
}

/* ====================================================================
 * Hero 轮播比例（与其他轮播页统一为 16:9，上限 680px 继承 hero-home-featured.css）
 * 代价：2.82:1 的素材在窄屏左右裁切约 30%，换取 1366~1440 屏顶到 680px 满高。
 * ==================================================================== */
.makerspace-main .page-hero {
    --hero-aspect-ratio: 16 / 9;
}

/* ====================================================================
 * 面包屑导航（Breadcrumb Navigation）- 精致按钮式设计
 * ==================================================================== */

/* 容器：透明背景，无边框（与详情页风格统一，整体更薄） */
.site-main .page-breadcrumb {
    background: transparent;
    padding: 0.4rem 0; /* 原 0.75rem，减薄高度 */
    border-bottom: none;
    position: relative;
}

.site-main .page-breadcrumb .container {
    padding: 0 1rem;
}

/* 面包屑列表 */
.site-main .page-breadcrumb .breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* 每个面包屑项 = 精致小按钮 */
.site-main .page-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    padding: 0.25rem 0.55rem; /* 与详情页一致，整体更紧凑 */
    /* 文字样式优化 - 简洁大气有质感 */
    font-size: 0.8125rem; /* 13px - 稍微增大，更易读 */
    line-height: 1.5; /* 优化行高，更舒适 */
    font-weight: 400; /* 使用常规字重，更精致 */
    letter-spacing: 0.01em; /* 微调字间距，更大气 */
    color: var(--text-primary); /* 使用主文字色，更深更有对比度 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif; /* 优化字体栈 */
    text-transform: none; /* 确保不改变大小写 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    /* 字体渲染优化 - 提升质感 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1; /* 启用字距调整 */
}

/* 分隔符（使用符号 ›） */
.site-main .page-breadcrumb .breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    margin-right: 0;
    color: var(--text-tertiary);
    font-weight: 300; /* 更细的字重，更精致 */
    font-size: 0.9375rem; /* 稍微增大，更清晰 */
    opacity: 0.5; /* 降低透明度，更低调 */
    letter-spacing: 0; /* 分隔符不需要字间距 */
}

/* 链接样式 */
.site-main .page-breadcrumb .breadcrumb-item a {
    color: inherit; /* 默认跟随父元素颜色，避免始终是蓝色 */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
    font-weight: 400; /* 保持与父元素一致 */
    letter-spacing: inherit; /* 继承字间距 */
}

.site-main .page-breadcrumb .breadcrumb-item a:hover {
    color: var(--accent-color); /* 悬停时才高亮为主题蓝色 */
    text-decoration: none;
    font-weight: 500; /* 悬停时稍微加粗，增加交互感 */
}

/* 链接悬停时，整个按钮提升 */
/* 使用 :has() 选择器（现代浏览器支持） */
.site-main .page-breadcrumb .breadcrumb-item:has(a:hover) {
    background: rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* 备用方案：直接悬停包含链接的面包屑项时（兼容旧浏览器，仅对非active项生效） */
.site-main .page-breadcrumb .breadcrumb-item:not(.active):hover {
    background: rgba(0, 0, 0, 0.06);
}

/* 图标样式 */
.site-main .page-breadcrumb .breadcrumb-item a i {
    font-size: 0.875rem; /* 稍微增大，与文字更协调 */
    opacity: 0.75; /* 稍微降低透明度，更精致 */
    transition: opacity 0.2s ease;
}

.site-main .page-breadcrumb .breadcrumb-item a:hover i {
    opacity: 1; /* 悬停时图标更清晰 */
}

/* 当前页（非链接）- 淡橙色背景 */
.site-main .page-breadcrumb .breadcrumb-item.active {
    background: rgba(255, 179, 102, 0.1);
    color: var(--text-primary);
    font-weight: 500; /* 从600改为500，更精致 */
    letter-spacing: 0.015em; /* 当前页字间距稍大，更突出 */
}

/* 移动端优化 */
@media (max-width: 767.98px) {
    .site-main .page-breadcrumb {
        padding: 0.45rem 0; /* 与详情页一致，减薄高度 */
    }
    
    .site-main .page-breadcrumb .breadcrumb-item {
        font-size: 0.75rem; /* 移动端稍微增大，保持可读性 */
        padding: 0.25rem 0.45rem; /* 与详情页一致，更紧凑 */
        letter-spacing: 0.005em; /* 移动端字间距稍小 */
    }
    
    .site-main .page-breadcrumb .breadcrumb-item:not(:last-child)::after {
        margin-left: 0.375rem;
        font-size: 0.875rem; /* 移动端分隔符稍大 */
    }
    
    .site-main .page-breadcrumb .breadcrumb-item a i {
        font-size: 0.8125rem; /* 移动端图标稍大 */
    }
}

/* ====================================================================
 * 类型导航栏（Sticky定位，不使用侧边菜单）
 * ==================================================================== */
.site-main .makerspace-type-navbar {
    position: relative; /* 初始为relative，JavaScript会切换为fixed */
    top: 0;
    z-index: 999; /* 比header低1，确保header在滚动时覆盖它 */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* JavaScript控制的fixed定位状态 */
.site-main .makerspace-type-navbar.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.site-main .makerspace-type-navbar.scrolled {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 0.99);
}

/* 移动端：同样粘在顶部 */
@media (max-width: 767.98px) {
    .site-main .makerspace-type-navbar {
        top: 0; /* 移动端也粘在顶部 */
    }
}

.site-main .makerspace-type-navbar .container {
    padding: 0 1rem;
}

.site-main .makerspace-type-nav-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    position: relative;
}

.site-main .makerspace-type-nav-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* 滚动指示器 - 左侧渐变遮罩 */
.site-main .makerspace-type-nav-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, var(--bg-primary), transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-main .makerspace-type-nav-list.scrollable-left::before {
    opacity: 1;
}

/* 滚动指示器 - 右侧渐变遮罩 */
.site-main .makerspace-type-nav-list::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to left, var(--bg-primary), transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-main .makerspace-type-nav-list.scrollable-right::after {
    opacity: 1;
}

.site-main .makerspace-type-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0; /* 防止压缩 */
}

/* 悬停效果 */
.site-main .makerspace-type-nav-item:hover {
    color: var(--primary-color);
    background: var(--primary-pale);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 179, 102, 0.15);
}

/* 悬停时显示下划线 */
.site-main .makerspace-type-nav-item:hover::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* 活动状态 */
.site-main .makerspace-type-nav-item.active {
    color: var(--primary-color);
    background: var(--primary-pale);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 179, 102, 0.2);
}

/* 活动状态 + 悬停：显示下划线 */
.site-main .makerspace-type-nav-item.active:hover::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 1;
    transition: all 0.3s ease;
}

/* ====================================================================
 * 类型导航栏 - 响应式排布（根据类型数量）
 * ==================================================================== */

/* ========== 1个类型 ========== */
.site-main .makerspace-type-nav-list.makerspace-type-count-1 {
    justify-content: center;
}

.site-main .makerspace-type-nav-list.makerspace-type-count-1 .makerspace-type-nav-item {
    min-width: auto;
    max-width: 200px;
}

/* ========== 2个类型 ========== */
.site-main .makerspace-type-nav-list.makerspace-type-count-2 {
    justify-content: space-between;
}

@media (min-width: 481px) {
    .site-main .makerspace-type-nav-list.makerspace-type-count-2 {
        justify-content: center;
        gap: 2rem;
    }
}

/* ========== 移动端通用优化 ========== */
@media (max-width: 480px) {
    .site-main .makerspace-type-nav-list {
        justify-content: flex-start;
        padding: 0.75rem 0;
        gap: 0.75rem;
    }
    
    .site-main .makerspace-type-nav-item {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    /* 1个类型：小屏也居中 */
    .site-main .makerspace-type-nav-list.makerspace-type-count-1 {
        justify-content: center;
    }
    
    /* 2个类型：小屏两端对齐 */
    .site-main .makerspace-type-nav-list.makerspace-type-count-2 {
        justify-content: space-between;
        padding: 0.75rem 0.5rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .site-main .makerspace-type-nav-list {
        padding: 0.875rem 0;
    }
}

@media (min-width: 769px) {
    .site-main .makerspace-type-nav-list {
        justify-content: center;
        padding: 1rem 0;
    }
    
    /* 2个类型：大屏加大间距 */
    .site-main .makerspace-type-nav-list.makerspace-type-count-2 {
        gap: 3rem;
    }
}

/* ====================================================================
 * 类型区域分隔（橙色标签 + 红色波浪线）
 * ==================================================================== */
.site-main .makerspace-type-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4rem 0;
    gap: 1.5rem;
    padding: 2rem 0;
    position: relative;
}

/* 渐变线条 */
.site-main .divider-line-left,
.site-main .divider-line-right {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    position: relative;
    overflow: hidden;
}

.site-main .divider-line-left::after,
.site-main .divider-line-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.8), 
        transparent);
    animation: shimmer 2s infinite;
}

/* 类型标签（橙色边框） */
.site-main .divider-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.site-main .makerspace-type-divider:hover .divider-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 179, 102, 0.3);
}

.site-main .badge-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
}

.site-main .badge-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 红色波浪线 */
.site-main .divider-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    overflow: hidden;
}

.site-main .wave-svg {
    width: 100%;
    height: 100%;
    fill: #EF4444; /* 红色 */
}

.site-main .wave-svg path {
    animation: waveMove 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes waveMove {
    0%, 100% {
        d: path("M0,4 Q300,0 600,4 T1200,4 L1200,8 L0,8 Z");
    }
    50% {
        d: path("M0,4 Q300,8 600,4 T1200,4 L1200,8 L0,8 Z");
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .site-main .makerspace-type-divider {
        margin: 3rem 0;
        padding: 1.5rem 0;
        gap: 1rem;
    }

    /* 首块类型分隔：避免与上方 title 区之间留白过大（覆盖上一段 shorthand） */
    .site-main .makerspace-type-section:first-of-type .makerspace-type-divider {
        margin-top: 0;
        margin-bottom: 2rem;
        padding-top: 0.25rem;
        padding-bottom: 0.75rem;
    }
    
    .site-main .divider-badge {
        padding: 0.625rem 1.25rem;
    }
    
    .site-main .badge-icon {
        width: 28px;
        height: 28px;
        font-size: 1.125rem;
    }
    
    .site-main .badge-text {
        font-size: 1rem;
    }
    
    .site-main .divider-wave {
        height: 6px;
    }
}

/* ====================================================================
 * 页面标题区域 - 简洁居中版
 * ==================================================================== */
.site-main .page-header-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 0 1.5rem;
    position: relative;
}

.page-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.page-main-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    padding: 0 1.5rem;
}

/* 创客教室总页 title 区块（#makerspace-intro）：副标题左对齐、缩短与下方类型分隔条之间的空白 */
.site-main #makerspace-intro .page-main-desc {
    text-align: left;
}

/* 有媒体时：标题与图/视频共用 Bootstrap col-md-10 col-lg-10 版心，取消 700px 限制以与媒体同宽 */
.site-main #makerspace-intro .makerspace-intro-align-col .page-main-desc {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.site-main #makerspace-intro .makerspace-intro-align-col .makerspace-title-media {
    max-width: 100%;
}

.site-main #makerspace-intro .page-header-section {
    margin-bottom: 1rem;
    padding: 2.5rem 0 0.5rem;
}

.site-main #makerspace-intro.page-section {
    padding-bottom: 0.75rem;
}

.site-main .makerspace-type-section:first-of-type {
    padding-top: 0;
}

.site-main .makerspace-type-section:first-of-type .makerspace-type-divider {
    margin-top: 0;
    margin-bottom: 2.5rem;
    padding-top: 0.25rem;
    padding-bottom: 1rem;
}

/* title 区块媒体容器：居中 + 宽松最大宽度 */
.makerspace-title-media {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

/* 视频外层容器：撑满父列、微阴影，不再额外限宽 */
.makerspace-title-video-wrap {
    position: relative;
    width: 100%;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

.makerspace-title-video-wrap--has-poster .makerspace-title-video-poster-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(3rem, 12vw, 5rem);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
    transition: opacity 0.2s ease;
}

.makerspace-title-video-wrap--has-poster.is-playing .makerspace-title-video-poster-play {
    opacity: 0;
}

/* 视频元素：16:9 锁定比例，contain 不裁剪内容，黑底衬 */
.makerspace-title-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
    border-radius: 12px;
}

/* 图片外层容器：16:9 固定比例框，裁剪统一，图片不会大小不一 */
.makerspace-title-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 图片元素：填满容器、cover 裁剪，原图尺寸不影响显示效果 */
.makerspace-title-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .site-main .page-header-section {
        margin-bottom: 2.5rem;
        padding: 2rem 0 1rem;
    }

    .site-main #makerspace-intro .page-header-section {
        margin-bottom: 0.75rem;
        padding: 2rem 0 0.5rem;
    }

    .site-main #makerspace-intro.page-section {
        padding-bottom: 0.5rem;
    }

    .site-main .page-main-title {
        font-size: 1.875rem;
        margin-bottom: 0.75rem;
    }

    .site-main .page-main-desc {
        font-size: 0.9375rem;
        padding: 0 1rem;
        line-height: 1.6;
    }

    .site-main #makerspace-intro .page-main-desc {
        padding-left: 0;
        padding-right: 0;
    }

    .makerspace-title-media {
        max-width: 100%;
    }

    .makerspace-title-video-wrap {
        border-radius: 8px;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.10);
    }

    .makerspace-title-video {
        border-radius: 8px;
    }

    .makerspace-title-img-wrap {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
}

@media (max-width: 480px) {
    .site-main .page-header-section {
        padding: 1.5rem 0 0.75rem;
    }

    .site-main #makerspace-intro .page-header-section {
        padding: 1.5rem 0 0.35rem;
    }

    .site-main .page-main-title {
        font-size: 1.625rem;
    }

    .site-main .page-main-desc {
        font-size: 0.875rem;
    }
}

/* ====================================================================
 * 类型区域
 * ==================================================================== */
.site-main .makerspace-type-section {
    margin-bottom: 4rem;
    padding-top: 1rem;
    scroll-margin-top: 80px; /* 为sticky导航栏留出空间 */
}

/* 移动端优化 */
@media (max-width: 768px) {
    .site-main .makerspace-type-section {
        margin-bottom: 3rem;
        padding-top: 0.5rem;
        scroll-margin-top: 60px;
    }
}

/* ====================================================================
 * 左右分栏内容区域
 * ==================================================================== */
.site-main .makerspace-content-wrapper,
.site-main article.makerspace-content-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
    padding: 3.5rem 2rem;
    background: rgba(248, 249, 250, 0.4);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.site-main .makerspace-content-wrapper:hover,
.site-main article.makerspace-content-wrapper:hover {
    background: rgba(248, 249, 250, 0.7);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.06);
}

/* 左侧：文字内容 */
.site-main .makerspace-content-text,
.site-main article.makerspace-content-wrapper .makerspace-content-text {
    flex: 1;
    padding: 0 2rem;
    max-width: 600px;
}

.makerspace-content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.makerspace-content-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.makerspace-content-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.makerspace-content-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.makerspace-content-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.makerspace-content-features li:last-child {
    margin-bottom: 0;
}

.makerspace-content-features li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.makerspace-content-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.makerspace-content-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
    text-decoration: none;
}

.makerspace-content-link i {
    transition: transform 0.3s ease;
}

.makerspace-content-link:hover i {
    transform: translateX(4px);
}

/* 右侧：产品图片 */
.site-main .makerspace-content-image {
    flex: 1;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片链接：与图片尺寸一致，hover 时联动缩放 */
.makerspace-image-link {
    display: block;
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.makerspace-image-link:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* 图片元素：不裁剪、保持原比例（1200×900=4:3 就是 4:3 显示） */
.makerspace-image {
    display: block;
    width: 100%;
    height: auto;
}

.site-main .makerspace-content-wrapper:hover .makerspace-image-link {
    transform: scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* ====================================================================
 * 响应式布局
 * ==================================================================== */

/* 平板端：调整间距 */
@media (min-width: 769px) and (max-width: 991px) {
    .site-main .makerspace-content-wrapper {
        gap: 3rem;
        padding: 3rem 1.5rem;
    }
    
    .site-main .makerspace-content-text {
        padding: 0 1rem;
    }
    
    .makerspace-content-title {
        font-size: 1.75rem;
    }
    
    .site-main .makerspace-content-image {
        padding: 0 1rem;
    }
}

/* 移动端：上下布局 */
@media (max-width: 768px) {
    .site-main .makerspace-content-wrapper,
    .site-main article.makerspace-content-wrapper {
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }
    
    .site-main .makerspace-content-text {
        padding: 0;
        max-width: 100%;
        order: 2;
    }
    
    .makerspace-content-title {
        font-size: 1.625rem;
        margin-bottom: 0.5rem;
    }
    
    .makerspace-content-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .makerspace-content-desc {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }
    
    .makerspace-content-features {
        margin-bottom: 1.5rem;
    }
    
    .makerspace-content-features li {
        font-size: 0.875rem;
        margin-bottom: 0.875rem;
    }
    
    .makerspace-content-link {
        font-size: 0.9375rem;
    }
    
    .site-main .makerspace-content-image {
        padding: 0;
        order: 1;
        width: 100%;
    }

    .makerspace-image-link {
        max-width: 100%;
        border-radius: 12px;
    }
}

/* 小屏手机：进一步优化 */
@media (max-width: 480px) {
    .site-main .makerspace-content-wrapper {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
        gap: 1.5rem;
    }
    
    .makerspace-content-title {
        font-size: 1.5rem;
    }
    
    .makerspace-content-subtitle {
        font-size: 0.9375rem;
    }
    
    .makerspace-content-desc {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }
    
    .makerspace-content-features li {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }
    
    .makerspace-content-features li i {
        font-size: 0.9375rem;
        margin-right: 0.625rem;
    }
    
    .makerspace-content-link {
        font-size: 0.875rem;
    }
}

/* ====================================================================
 * 页面加载动画
 * ==================================================================== */
.site-main .page-header-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.site-main .makerspace-type-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.site-main .makerspace-type-section:nth-of-type(1) {
    animation-delay: 0.2s;
}

.site-main .makerspace-type-section:nth-of-type(2) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 内容区域加载动画 */
.site-main .makerspace-content-wrapper,
.site-main article.makerspace-content-wrapper {
    opacity: 0;
    animation: fadeInContent 0.6s ease forwards;
}

.site-main .makerspace-type-section:nth-of-type(1) .makerspace-content-wrapper,
.site-main .makerspace-type-section:nth-of-type(1) article.makerspace-content-wrapper {
    animation-delay: 0.3s;
}

.site-main .makerspace-type-section:nth-of-type(2) .makerspace-content-wrapper,
.site-main .makerspace-type-section:nth-of-type(2) article.makerspace-content-wrapper {
    animation-delay: 0.4s;
}

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

/* ====================================================================
 * 页面容器优化
 * ==================================================================== */
.site-main .page-section {
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .site-main .page-section {
        padding: 2rem 0;
    }
}

/* ====================================================================
 * 容器 Padding 设置（只针对页面内容，不影响 footer）
 * ==================================================================== */
/* 只针对页面内容的容器设置 padding，不影响 footer 的宽度 */
.site-main .page-content .container,
.site-main .makerspace-type-navbar .container,
.site-main .page-section .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 768px) {
    .site-main .page-content .container,
    .site-main .makerspace-type-navbar .container,
    .site-main .page-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ====================================================================
 * 工具类
 * ==================================================================== */
.site-main .text-center {
    text-align: center;
}

.site-main .mb-4 {
    margin-bottom: 2rem;
}

.site-main .mt-4 {
    margin-top: 2rem;
}

/* 屏幕阅读器专用类（仅对屏幕阅读器可见，视觉上隐藏） */
.site-main .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
