/* ================================================
   show.css - SHOW页面专属样式
   
   本文件只包含show页面独有的样式
   通用样式（导航栏、Footer、Banner等）在 style.css 中
   ================================================ */


/* ==================== 页面简介区域 ==================== */
.show-intro {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5px 20px 20px;
    text-align: center;
}

.show-intro p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.8;
}


/* ==================== 纯CSS Tab切换系统（核心） ==================== */

/* 
   这是整个页面最重要的部分
   原理：利用 <input type="radio"> 的 :checked 状态
   配合 CSS 的 ~ （后续兄弟选择器）来控制内容显示/隐藏
   完全不需要 JavaScript
*/

.show-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* --- 隐藏 radio 按钮（用户看不到，但功能在） --- */
.tab-radio {
    display: none;
}

/* --- 分类按钮栏 --- */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 30px 0;
    flex-wrap: wrap;              /* 手机端自动换行 */
}

/* 单个分类按钮 */
.tab-btn {
    padding: 12px 28px;
    font-size: 1rem;
    color: #999;
    cursor: pointer;              /* 鼠标变成手指，提示可点击 */
    border: 1px solid #444;
    border-radius: 30px;          /* 圆角胶囊形状 */
    transition: all 0.3s ease;    /* 平滑过渡动画 */
    user-select: none;            /* 防止文字被选中 */
}

/* 鼠标悬停效果 */
.tab-btn:hover {
    color: #a855f7;
    border-color: #c084fc;
}

/* 
   被选中的按钮高亮样式
   原理：当 #tab-brand 这个radio被选中时（:checked），
   用 ~ 找到后面的 .tab-buttons，再找到对应的 label
*/

#tab-brand:checked ~ .tab-buttons label[for="tab-brand"],
#tab-festival:checked ~ .tab-buttons label[for="tab-festival"],
#tab-personal:checked ~ .tab-buttons label[for="tab-personal"],
#tab-tourist:checked ~ .tab-buttons label[for="tab-tourist"] {
    color: #fff;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border-color: #a855f7;
}


/* --- 内容区块（默认全部隐藏） --- */
.tab-content {
    display: none;                /* 默认隐藏所有内容 */
}

/* 
   显示被选中的内容
   当某个radio被checked时，用 ~ 找到对应的内容区块并显示
*/
#tab-brand:checked ~ .tab-content-brand,
#tab-festival:checked ~ .tab-content-festival,
#tab-personal:checked ~ .tab-content-personal,
#tab-tourist:checked ~ .tab-content-tourist {
    display: block;               /* 只显示被选中的那组 */
}

/* 内容区块里的标题 */
.tab-content h2 {
    text-align: center;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* 内容区块里的描述文字 */
.tab-description {
    text-align: center;
    color: #999;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}


/* ==================== 视频/案例卡片网格 ==================== */
.video-grid {
    display: grid;
    /* 自适应列数：每列最小280px，自动填满一行 */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* 单个卡片 */
.video-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: #1a1a2e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 卡片悬停效果：上浮 + 发光阴影 */
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(215, 112, 219, 0.15);
}

/* 卡片链接去掉下划线 */
.video-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 缩略图容器 */
.video-thumbnail {
    width: 100%;
    height: 200px;                /* 固定高度保持统一 */
    overflow: hidden;
    background-color: #000;
}

/* 缩略图图片 */
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* 等比裁切填满，不变形 */
    opacity: 0.8;
    transition: all 0.4s ease;
}

/* 悬停时图片放大 + 变亮 */
.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
    opacity: 1;
}

/* 卡片标题 */
.video-card h3 {
    color: #e0e0e0;
    font-size: 1rem;
    padding: 14px 16px 4px;
    margin: 0;
    /* 超出一行自动省略号 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 卡片日期 */
.video-date {
    color: #999;                  /* 灰色，比标题淡 */
    font-size: 0.85rem;           /* 比标题小一点 */
    font-weight: 400;             /* 不加粗，和标题区分开 */
    padding: 5px 16px 0;
    margin: 0;
}

.video-card:hover h3 {
    color: #fff;
}

/* 卡片地点信息 */
.video-location {
    color: #777;
    font-size: 0.85rem;
    padding: 5px 16px 16px;
    margin: 0;
}


/* ==================== 响应式适配 ==================== */

/* --- 平板（768px以下） --- */
@media screen and (max-width: 768px) {
    .tab-buttons {
        gap: 8px;
        padding: 20px 0;
    }

    .tab-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .tab-content h2 {
        font-size: 1.4rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .video-thumbnail {
        height: 170px;
    }
}

/* --- 手机（480px以下） --- */
@media screen and (max-width: 480px) {
    .show-intro {
        padding: 20px 16px 10px;
    }

    .tab-buttons {
        /* 手机端按钮变成2x2网格排列 */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 16px 0;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        text-align: center;
        border-radius: 20px;
    }

    .tab-content h2 {
        font-size: 1.2rem;
    }

    .tab-description {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .video-grid {
        /* 手机端变为单列 */
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .video-thumbnail {
        height: 200px;
    }
}