body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #333;
}

.container {
}

.container > img {
    position: absolute;
    left: calc(50% - 40px);
    width: 80px;
    height: auto;
    top: 29%;
}

.container .beiwen {
    color: white;
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
}

.container .beiwen .name {
    position: absolute;
    top: 40%;
    left: calc(50% - 10px);
    font-size: 16px;
}

.container .age {
    position: absolute;
    writing-mode: lr;
    top: 37%;
    left: calc(50% - 30px);
    font-size: 10px;
}

.container .beiwen .shegu {
    position: absolute;
    top: 45%;
    left: calc(50% - 50px);
    font-size: 8px;
}

.top_links {
    position: absolute;
    left: 0;
    top: 30%;
}

.top_links ul {
    padding: 0;
    list-style: none;
}

.top_links li {
    margin: 3px;
    background-color: gray;
    border-radius: 10px;
}

.top_links a {
    font-size: 1.0rem;
    text-decoration: none;
    color: white;
}

.top_links a:hover {
    color: goldenrod;
}

.menu {
    display: flex;
    position: absolute;
    left: calc(50% - 160px);
    width: auto;
    min-width: 300px;
    padding: 5px;
    bottom: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px
}

.menu ul {
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    text-align: center;
}

.menu li {
    list-style: none;
    margin: 5px;
}


#jd-container {
    position: absolute;
    width: 100%;
    height: 60%;
    left: 5px;
    bottom: 5px;
    top: 35%;
    pointer-events: none;
    overflow: hidden;
}

.jd-modal .modal-dialog {
    margin-top: 10vh;
    max-width: 600px; /* 调整模态框宽度 */
}

.jd-modal .nav-tabs {
    justify-content: center; /* 标签页居中 */
}

.option {
    width: 100px;
    height: 100px;
    margin: 10px;
    cursor: pointer;
    border: 2px solid #d3d3d3;
    border-radius: 10px;
    transition: all 0.3s;
    overflow: hidden;
    text-align: center;
}

.option:hover, .option.selected {
    border: 2px solid #ff6b6b;
    transform: scale(1.05);
}

.option img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.placed-item {
    position: absolute;
    max-width: 5rem;
    height: auto;

    z-index: 100;
    cursor: grab; /* 拖拽手型 */
    transition: transform 0.3s;
    pointer-events: auto;
    user-select: none; /* 防止选中图片 */
}

.placed-item:hover {
    transform: scale(1.2);
}

.placed-item.dragging {
    opacity: 0.8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* 拖拽时阴影 */
    cursor: grabbing;
    z-index: 101;
}

.tooltip { /* 祭品显示信息*/
    z-index: 102;
}

.tooltip-inner {
    max-width: 300px;
    text-align: left;
    font-size: 0.9rem;
}

/* Toast 容器 */
.toast-container {
    z-index: 200;
}


@media (max-width: 768px) {
    .jd-modal .modal-dialog {
        max-width: 90%;
    }

    .menu ul {
        flex-wrap: wrap;
    }

    .menu li {
        flex: 1 1 45%;
    }

    @media (max-width: 576px) {
        .top_links a {
            font-size: 0.8rem;
        }

        .content-section {
            left: 28px;
        }

    }
}

/* 新模板样式 */
.content-section {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    position: relative;
    z-index: 103;
    height: 93vh;
    overflow-y: auto;
}

.content-section > h2 {
    position: sticky;
    top: 0; /* 距离顶部的距离 */
    z-index: 104; /* 确保标题层级高于内容 */
    padding: 10px 20px; /* 根据需要调整 */
}

.content-section > h2 > span {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 16px; /* 调整内边距来控制背景宽度 */
    border-radius: 15px; /* 可选：加点圆角更美观 */
    display: inline-block; /* 关键：只包裹文字内容 */
    color: white;
}

/*.subpage .container {*/
/*    max-width: 800px;*/
/*}*/
/*.subpage .top_links {*/
/*    position: static;*/
/*    text-align: center;*/
/*    margin-bottom: 20px;*/
/*}*/
/*.subpage .top_links ul {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    gap: 10px;*/
/*}*/
/*.subpage .top_links li {*/
/*    background-color: #555;*/
/*    border-radius: 15px;*/
/*}*/
/*.subpage .top_links a {*/
/*    font-size: 0.9rem;*/
/*    padding: 6px 12px;*/
/*    display: block;*/
/*}*/
/*.subpage .top_links a.active {*/
/*    background-color: #ff6b6b;*/
/*}*/
/*.subpage .placed-item {*/
/*    cursor: default; !* 禁用拖拽手型 *!*/
/*}*/
/*.subpage .placed-item:hover {*/
/*    transform: none; !* 禁用悬停放大 *!*/
/*}*/