* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}
img {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
html,
body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
/* index-page */
.i-page {
    /* font-family: Arial, sans-serif; */
    background-image: url("../image/bg.png"); /* 使用线上图片路径 */
    background-size: cover;
    background-position: center;
}
.i-page .container {
    width: 100%;
    height: 100%;
    color: #fff;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    flex-direction: column;
    position: relative;
}
.i-page .container .img-wrap {
    width: 400px;
    height: 400px;
}
.i-page .container .img-wrap img {
    width: 100%;
    height: 100%;
}
.i-page .container main {
    color: #f7b91f;
    height: 26%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    font-size: 40px;
}

.i-page .container footer {
    position: fixed;
    bottom: 10%;
    width: 100vw;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.i-page .container footer button {
    padding: 10px 30px;
    color: #ff0000;
    background: #f7b91f;
    border-radius: 8px;
    font-size: 40px;
}
/* literature-page */
.l-page .container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.l-page main {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.l-page main .title {
    width: 40%;
    height: 60px;
    background-color: #a32b2d;
    color: #fff;
    text-align: center;
    margin: 0 auto;
    line-height: 60px;
    border-radius: 60px;
    font-weight: bolder;
    font-size: 20px;
}
.l-page .search-container {
    position: absolute;
    background: #a32b2d;
    border-radius: 4px;
    width: fit-content;
}
.l-page .search-box {
    padding: 8px;
    padding-right: 30px;
    border: 2px solid #a32b2d;
    border-radius: 4px;
    width: 200px;
    outline: none;
}
.l-page .icon-sousuo {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #a32b2d;
    cursor: pointer;
}
/* 知识图谱相关样式 */
.l-page #graph-container {
    margin-top: 20px;
    width: 100%;
    height: calc(100vh - 140px);
}
.l-page .node {
    stroke: #fff;
    stroke-width: 2px;
    cursor: pointer;
}
.l-page .link {
    stroke: #999;
    stroke-opacity: 0.6;
}
.l-page .label {
    font-size: 12px;
    pointer-events: none;
}
.l-page .popup-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: none;
    z-index: 1000;
    border: 2px solid #a32b2d;
    animation-duration: 0.5s;
}

.l-page .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.l-page .popup-title {
    font-size: 18px;
    font-weight: bold;
    color: #a32b2d;
}

.l-page .popup-close {
    cursor: pointer;
    font-size: 20px;
    color: #666;
}

.l-page .popup-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.l-page .popup-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.l-page .popup-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* 添加遮罩层样式 */
.l-page .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.l-page .loading-spinner {
    background: white;
    padding: 20px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.l-page .loading-spinner .icon-loading {
    font-size: 40px;
    color: #a32b2d;
    display: block;
    margin-bottom: 10px;
}

.l-page .loading-spinner p {
    color: #666;
    margin: 0;
}

/* 添加动画关键帧 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* map-page */
.map-page .flag {
    position: fixed;
    top: 10px;
    width: 200px;
}
.map-page .flag img {
    width: 60%;
    margin: 0 auto;
}
@media (max-width: 480px) {
    .map-page .flag {
        top: 10px;
        width: 100px;
    }
}
.map-page #panel {
    position: fixed;
    background-color: white;
    max-height: 90%;
    overflow-y: auto;
    top: 10px;
    right: 10px;
    width: 280px;
}

.map-page #panel .amap-call {
    background-color: #e41d21;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.map-page #panel .amap-lib-driving {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    overflow: hidden;
}
.map-page aside {
    width: 200px;
    height: calc(100% - 110px);
    /* margin-top: 200px; */
    position: fixed;
    bottom: 0;
    z-index: 9999;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    color: #fff;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
}
.map-page aside.visible {
    opacity: 1;
    visibility: visible;
}
.map-page aside div {
    background-color: #d61318;
    opacity: 0.8;
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
@media (max-width: 480px) {
    .map-page aside {
        width: 100px;
        height: calc(100% - 110px);
        position: fixed;
        bottom: 0;
        z-index: 9999;
        transition: opacity 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        color: #fff;
        font-weight: bold;
        opacity: 0;
        visibility: hidden;
        font-size: 13px;
    }
    .map-page aside.visible {
        opacity: 1;
        visibility: visible;
    }
    .map-page aside div {
        background-color: #d61318;
        opacity: 1;
        flex: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

.map-page aside div:hover {
    opacity: 0.5;
}
.map-page .period {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    color: #d61318;
    font-weight: bolder;
    font-size: 49px;
    text-align: center;
    padding: 0 10px;
}
@media (max-width: 480px) {
    .map-page .period {
        font-size: 25px;
    }
}
.map-page .period.visibility {
    opacity: 1;
    visibility: visible;
}

#map {
    width: 100vw;
    height: 100vh;
}
.info-window {
    width: 320px;
    border: 3px solid #e41d21;
    padding: 2px;
    font-size: 11px;
}
.info-top {
    width: 310px;
    margin: 0 auto;
}
.info-top img {
    width: 100%;
    height: 100%;
}
.info-name,
.info-addr {
    /* font-size: 18px; */
    padding: 5px;
    border-bottom: 1px dashed;
}
.info-desc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 150px;
}
.info-desc .operate {
    display: flex;
    /* justify-content: space-around; */
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    width: 45%;
    height: 100%;
    margin-right: 3px;
    padding: 6px 0;
}
.info-desc .operate button {
    padding: 5px 10px;
    background: #e41d21;
    color: #fff;
    width: 100%;
}
.info-desc .img {
    /* width: 150px; */
    height: 150px;
    padding: 6px 0;
}
.amap-info-close {
    color: #f30;
}
/* 新增关闭按钮样式 */
.panel-close {
    position: fixed;
    bottom: 50px;
    right: 16px;
    width: 30px;
    height: 30px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    font-size: 18px;
    text-align: center; /* 水平居中 */
    line-height: 30px; /* 垂直居中，值等于height */
    font-family: Arial, sans-serif;
    display: none;
}
/*modal*/
.firstModal .modal-title {
    color: #ff0000;
}
.firstModal .modal-body p {
    text-indent: 2em;
}
