body {
    padding-top: 0px;
}
#map {
    width: 100%;
    aspect-ratio: 191 / 81;
    height: auto;
    margin-top: 10rem;
}
.header {
    background: rgba(255, 255, 255, 1);
}
.return-home {
    font-weight: bold;
    font-size: 1.67rem;
    color: #10222e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.return-home:hover {
    opacity: 0.8;
}
.return-home img {
    height: 1.67rem;
}
.info-container-info {
    position: absolute;
    top: 1.66rem;
    left: 2.5rem;
    width: 20.42rem;
    display: flex;
    flex-direction: column;
    gap: 1.67rem;
    z-index: 999;
}
.stat-box {
    width: 100%;
}
.lengend-container {
    position: absolute;
    bottom: 13rem;
    left: 2.5rem;
    z-index: 999;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 0.83rem 0.83rem 0.83rem 0.83rem;
    padding: 1rem 1.5rem 0.16rem;
    font-weight: 400;
    font-size: 1.35rem;
    color: #000000;
}
.l-title {
    font-weight: bold;
    font-size: 1.35rem;
    color: #000000;
    margin-bottom: 0.3rem;
}
.l-content{
    display: flex;
    flex-direction: column;
}
.l-content .item{
    display: flex;
    flex-direction: row;
}
.l-content .item .item-l{
    width: 15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.l-content .item .item-l::before {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    background: #E0F4B1;
    border: 0.08rem solid #674620;
    border-radius: 0.2rem;
}
.l-content .item:nth-child(2) .item-l::before {
    background: #B6E08E;
}
.l-content .item:nth-child(3) .item-l::before {
    background: #5DBC48;
}
.l-content .item .item-r {
    margin-bottom: 0.67rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.l-content .item .item-r::before {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    background: #275cbf;
    border: 0.08rem solid #ffffff;
    border-radius: 50%;
}
.l-content .item:nth-child(2) .item-r::before {
    background: #00a391;
}
.l-content .item:nth-child(3) .item-r::before {
    background: #e39326;
}
.desc{
    margin: -11.58rem 21.88rem 0.8rem;
    position: relative;
    z-index: 999;
}
.desc span {
    font-size: 1.3rem;
    color: #000; padding: 0 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.83rem; height: 2.92rem; line-height: 2.92rem; display: inline-block;
}
.row {
    width: calc(100% - 20rem);
    border-radius: 0.4rem;
    overflow: hidden;
    margin: 0.8rem 10rem 14.83rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
    z-index: 100;
    position: relative;
    background-color: #fff;
    padding: 2.5rem 3rem;
    background: linear-gradient(180deg, #efffc9 0, #ffffff 6.33rem);
}
.case-table {
    background-color: transparent;
    border-collapse: collapse;
    width: 100%;
}
.case-table thead {
    border-radius: 0px;
}
.case-table th,
.case-table td {
    padding: 1rem;
    font-weight: 500;
    font-size: 1.35rem;
    color: #0f212d;
    text-align: center;
}
.case-table th {
    height: 6.33rem;
    font-weight: bold;
    font-size: 1.33rem;
    color: #0f212d;
}
#caseTableBody tr {
    border-bottom: 0.08rem solid #cccccc;
}
.action-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: middle;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23547130'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}
.action-icon:hover {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233d5a1f'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}
.layui-table tbody tr td{
    cursor: pointer !important;
}
.layui-table-view{
    border: none;
}
.layui-table-view:after{
    content: '';
    background: none;
    border: none;
}
.layui-table-view .layui-table-header{
    border-bottom: none;
}
.layui-table-view .layui-table-body{
    margin-bottom: 0;
}
.layui-table-view .layui-table{
    background: none;
}
.layui-table-view .layui-table .layui-table-cell {
    height: auto;
    line-height: normal;
    padding: 16px 15px;
}
.layui-table-view .layui-table td, .layui-table-view .layui-table th{
    border-right: none !important;
    border-color: #ccc;
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: 500;
    font-size: 1.4rem;
    color: #0F212D;
    background: none;
}
.layui-table-view .layui-table td:last-child, .layui-table-view .layui-table th:last-child{
    border-right: none !important;
}
.layui-table-view .layui-table th{
    font-weight: bold;
    font-size: 1.4rem;
    border-bottom: none;
}
.layui-table-view .layui-table-main .layui-table tr td:nth-child(1) div,
.layui-table-view .layui-table-main .layui-table tr td:nth-child(3) div,
.layui-table-view .layui-table-main .layui-table tr td:nth-child(4) div{
    text-align: left;
}
.layui-table-grid-down .layui-icon{
    margin: -8px 0 0 -8px;
}
.layui-table-sort[lay-sort=asc] .layui-table-sort-asc {
    border-bottom-color: #46A057;
}
.layui-table-sort[lay-sort=desc] .layui-table-sort-desc {
    border-top-color:#46A057;
}
.layui-table-page{
    text-align: right;
    padding: 20px 0;
}
.layui-laypage .layui-laypage-curr .layui-laypage-em{
    background-color: #46A057;
}
.layui-laypage a:hover {
    color: #46A057;
}
.layui-laypage input:focus, .layui-laypage select:focus {
    border-color: #46A057 !important;
}

.search-container{
    width: 42rem;
    height: 5.5rem;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 2.8rem;
    position: absolute;
    top: 4.2rem;
    right: 4rem;
    z-index: 11;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}
.search-input-wrapper{
    position: relative;
    flex: 1;
}
.search-container .search-input{
    width: 100%;
    height: 5.5rem;
    background: none;
    border: none;
    outline: none;
    font-size: 1.4rem;
}
.search-container .search-btn{
    width: 2rem;
    height: 2rem;
    border: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23547130'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    cursor: pointer;
    margin-left: 1rem;
}
.search-dropdown{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-height: 20rem;
    overflow: hidden;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.5rem;
    display: none;
}
.search-dropdown-item{
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1.4rem;
    border-bottom: 1px solid #f0f0f0;
}
.search-dropdown-item:hover{
    background: #f5f5f5;
}
.search-dropdown-item:last-child{
    border-bottom: none;
}
.filter-con{
    display: flex;
    align-items: center;
    height: 6rem;
    background: linear-gradient( 180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 1rem;
    margin: -11.58rem 10rem 2rem;
    padding: 0 4rem;
    position: relative;
    z-index: 100;
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: 500;
    font-size: 1.4rem;
    color: #0F212D;
    gap: 5rem;
}
.filter-con span{
    width: 4.2rem;
}
.filter-con .filter-select{
    flex: 1;
    height: 3rem;
    line-height: 3rem;
    text-align: center;
    border: none;
    border-bottom: 0.1rem solid #CCCCCC;;
    background: none;
    outline: none;
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: 500;
    font-size: 1.4rem;
    color: #46A057;
    cursor: pointer;
}
.filter-con .filter-select option{
    cursor: pointer;
}
.filter-con button{
    width: 6.5rem;
    height: 3rem;
    background: #547130 !important;
    color: #fff !important;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: .2em;
    border: none !important;
    border-radius: .4rem;
    cursor: pointer;
    line-height: 3rem;
    text-align: center;
    padding: 0;
}
.filter-con button:hover{
    background: #3d5a1f !important;
}
/* 地图点击小弹窗 */
.case-small-tip{
    display: none;
    width: 36.4rem;
    height: 51.1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    position: absolute;
    top: 22rem;
    right: 4rem;
    z-index: 200;
}
.case-small-tip .title{
    width: 100%;
    height: 4.2rem;
    background: #45813F;
    border-radius: 1rem 1rem 0rem 0rem;
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: 500;
    color: #fff;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.case-small-tip .title span{
    display: block;
    width: 22rem;
    font-weight: bold;
    font-size: 1.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.case-small-tip .title span::before{
    content: '';
    display: inline-block;
    width: 2.4rem;
    height: 2.4rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    vertical-align: text-top;
    margin-right: 0.5rem;
}
.case-small-tip .title i,
.case-small-tip .title em{
    font-size: 1.4rem;
    font-style: normal;
    cursor: pointer;
}
.case-small-tip .title em{
    background: #89A64B;
    color: #F2FDE0;
    border-radius: 3px;
    padding: 0 0.8rem;
}
.case-small-tip .title i::after{
    content: '';
    display: inline-block;
    width: 1.4rem;
    height: 1.4rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    vertical-align: middle;
}
.case-small-tip .title b{
    width: 1.4rem;
    height: 1.4rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    vertical-align: text-top;
    cursor: pointer;
}
.case-small-tip .con{
    width: 100%;
    height: calc(100% - 4.2rem);
    padding: 2rem 2.5rem;
}
.case-small-tip .con .banner{
    width: 100%;
    height: 17.7rem;
    position: relative;
}
.case-small-tip .con .banner img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.case-small-tip .con .banner p {
    width: 100%;
    position: absolute; /* Absolute positioning to fill container */
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.6rem;
    padding: 0.5rem 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.case-small-tip .con .info{
    width: 100%;
    height: calc(100% - 17.7rem);
    overflow-y: auto;
}
.case-small-tip .con .info .item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
    height: 4.2rem;
    border-bottom: 0.1rem solid #999999;
    box-sizing: border-box;
}
.case-small-tip .con .info .item span{
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: 400;
    font-size: 1.4rem;
    color: #666666;
}
.case-small-tip .con .info .item span:nth-child(1){
    width: 9.5rem;
}
.case-small-tip .con .info .item span:nth-child(2){
    width: calc(100% - 9.5rem);
    color: #0F212D;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 地图点击大弹窗 */
.case-big-tip{
    display: none;
    width: 158.3rem;
    height: 58rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    position: absolute;
    top: 20.5rem;
    right: 4rem;
    z-index: 11000;
}
/* 标题栏 */
.case-title-bar {
    height: 4.2rem;
    line-height: 3.9rem;
    background-color: #45813F; /* Green header */
    color: #fff;
    padding: 0 4.5rem 0 2.5rem ; /* Extend full width */
    border-radius: 1rem 1rem 0rem 0rem;
}

.case-title-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.case-title-bar .title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.case-title-bar .title-wrap .icon {
    width: 2.4rem;
    height: 2.4rem;
}

.case-title-bar h1 {
    font-size: 2.2rem;
    font-weight: 500;
    margin: 0;
}

.case-title-bar .status-tag {
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.7rem;
    margin-right: 0.7rem;
}

.case-title-bar .arrow-up {
    display: inline-block;
    width: 1.4rem;
    height: 1.5rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    vertical-align: inherit;
    margin-top: 1.4rem;
}
.case-title-bar .status-tag em{
    line-height: normal;
    font-style: normal;
    background: #89A64B;
    color: #F2FDE0;
    border-radius: 3px;
    padding: 0 0.8rem;
}
.case-title-bar .closeTip {
    width: 1.4rem;
    height: 1.4rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    vertical-align: text-top;
    margin-left: 0.3rem;
    position: absolute;
    right: -2.2rem;
    cursor: pointer;
}

/* 顶部信息区：左图右文 */
.case-top-section {
    display: flex;
    height: calc(100% - 4.2rem);
    gap: 2rem;
    align-items: stretch;
    padding: 1.2rem 2.5rem;
}

/* 左侧轮播图 */
.case-gallery {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    background: #fff;
    min-height: auto;
    display: flex;
    flex-direction: column;
}

.gallery-viewport {
    width: 100%;
    flex: 1; /* Take remaining height */
    overflow: hidden;
    position: relative;
}

.gallery-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute; /* Absolute positioning to fill container */
    top: 0;
    left: 0;
}
.gallery-viewport p {
    width: 100%;
    object-fit: cover;
    display: block;
    position: absolute; /* Absolute positioning to fill container */
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.6rem;
    padding: 0.5rem 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-controls {
    position: relative; /* Not absolute anymore */
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: space-between; /* Arrow on sides */
    align-items: center;
    padding: 1rem 2rem;
    margin-top: 0;
    flex-shrink: 0; /* Don't shrink */
    height: 4.5rem; /* Fixed height for controls */
}

.gallery-controls button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 1;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
}

.gallery-controls button:hover {
    opacity: 0.8;
}

.gallery-controls button img {
    height: 1.6rem; /* Smaller arrows */
    width: auto;
}

.gallery-controls .dots {
    display: flex;
    gap: 1.2rem;
}

.gallery-controls .dots span {
    width: 1.2rem;
    height: 1.2rem;
    background-color: #D8D8D8; /* Grey inactive */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gallery-controls .dots span.active {
    background-color: #88B04B; /* Green active */
}

/* 右侧信息卡片 */
.case-info-card {
    flex: 0.8;
    display: flex;
    flex-direction: column;
}

.case-info-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
}

.case-info-card .card-header h2 {
    font-size: 1.8rem;
    color: #45813F;
    font-weight: bold;
    margin: 0;
}

.case-info-card .card-header .view-map {
    font-size: 1.4rem;
    color: #4a7c59;
    text-decoration: none;
    font-weight: 500;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    padding-right: 1rem;
}

.info-item {
    width: 100%;
    border-bottom: 0.1rem solid #999999;
}

.info-item label {
    font-size: 1.4rem;
    color: #888;
    margin-bottom: 0.4rem;
    display: block;
}

.info-item .content {
    font-size: 1.6rem;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    font-family: Source Han Sans CN, Source Han Sans CN;
}
.info-item textarea.content {
    width: 100%;
    background: none;
    border: none;
    min-height: 13rem;
    resize: none;
    outline: none;
    font-family: Source Han Sans CN, Source Han Sans CN;
}
.laytable-cell-1-0-0,laytable-cell-1-0-2,laytable-cell-1-0-3{
    min-width: 150px !important;
}
.layui-table-cell{
    overflow: initial;
    text-overflow: initial;
    white-space: normal;
    word-break: break-all;
}
/* 已移除 1600/1440/1366/1280/1279 几档 @media：新架构下 body 始终 ≥1830，
   窄视口仅横向滚动而不触发断点布局，这些 aspect-ratio 补丁不再需要。 */

/* ── 英文模式适配 ── */
/* 图例：
   将 .l-content 改为二列 Grid；.item 用 display:contents 使其子元素
   直接成为网格子项，第一列宽度由三行最宽的 .item-l 统一决定，
   .item-r 因此自动纵向左对齐；nowrap 防止英文文字换行。
   .item:nth-child 选择器针对 DOM 中的 .item 元素，display:contents
   不影响其在 DOM 中的位置，故 nth-child 颜色规则仍然生效。 */
html[lang="en"] .l-content {
    display: grid;
    grid-template-columns: max-content max-content;
    row-gap: 0.67rem;
    column-gap: 15px;
}
html[lang="en"] .l-content .item {
    display: contents;
}
html[lang="en"] .l-content .item .item-l {
    width: auto;
    white-space: nowrap;
}
html[lang="en"] .l-content .item .item-r {
    white-space: nowrap;
    margin-bottom: 0;
}

/* 列表：layui 单元格默认 word-break:break-all 适用于中文，
   英文模式下改为仅在空格处换行，避免单词被截断 */
html[lang="en"] .layui-table-cell {
    word-break: normal;
    overflow-wrap: break-word;
}