/* ======================================================
   第一部分：容器与搜索框 (已修正类名并美化)
   ====================================================== */
.zhanshi-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: "Microsoft YaHei", sans-serif;
    text-align: center;
}

.zhanshi-title h2 {
    color: #0b519b;
    font-size: 28px;
    margin-bottom: 10px;
}

.zhanshi-title p {
    color: #666;
    margin-bottom: 30px;
}

.zhanshi-search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 40px;
}

.zhanshi-search-box {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 20px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    background: #fdfdfd;
    outline: none;
    transition: all 0.3s ease;
}

.zhanshi-search-box:focus {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: #0b519b;
}

.zhanshi-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* ======================================================
   第二部分：项目网格与卡片 (电脑端5列，手机端2列)
   ====================================================== */
.zhanshi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
}

.zhanshi-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.zhanshi-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #0b519b;
}

.zhanshi-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    object-fit: contain;
}

.zhanshi-name {
    color: #333;
    font-size: 14px;
}

/* 添加项目虚线框 */
.zhanshi-add-item {
    border: 2px dashed #ddd;
    background: #fafafa;
}

.add-plus {
    font-size: 40px;
    color: #ccc;
    line-height: 1;
}

/* ======================================================
   第三部分：关键修复！弹窗定位 (确保视频出现在屏幕中心)
   ====================================================== */
.zhanshi-modal {
    display: none; /* 默认隐藏 */
    position: fixed; /* 必须是 fixed，否则视频会掉到网页底部 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 黑色半透明遮罩 */
    z-index: 10000; /* 确保层级最高，不被网页其他内容挡住 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

/* 弹窗内容白底框 */
.zhanshi-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* 蓝色标题头 */
.zhanshi-modal-header {
    background-color: #0b519b;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 关闭按钮 */
.zhanshi-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

/* 视频本身 */
.zhanshi-media {
    width: 100%;
    max-height: 70vh; /* 限制视频高度，防止太长看不见底部的文字 */
    display: block;
    background: #000;
}

/* 弹窗文字描述 */
.zhanshi-description {
    padding: 15px 20px;
    background: #f9f9f9;
    color: #333;
    font-size: 14px;
    border-top: 1px solid #eee;
    text-align: left;
}

/* ======================================================
   第四部分：手机端适配
   ====================================================== */
@media (max-width: 768px) {
    .zhanshi-grid {
        grid-template-columns: repeat(2, 1fr); /* 手机端一行2个 */
        gap: 15px;
    }
    .zhanshi-title h2 { font-size: 22px; }
}