/* public.css - 古风主题改造（全局样式、布局、古风装饰） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ========== 导航栏样式（古风融合） ========== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 0.25rem;
    background: linear-gradient(90deg, #7A3E2C, #4A2618);
    border-bottom: 1px solid #C99B6B;
    position: relative;
    height: auto;
    min-height: 1.25rem;
}

.nav-container {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-wrap: wrap;
}

header h1 {
    font-size: 0.475rem;
    color: #FFF2E0;
    text-align: center;
    line-height: 1rem;
    text-shadow: 0 0 5px #A55A3A;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 0.2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.3rem;
    padding: 0.05rem 0.15rem;
    backdrop-filter: blur(2px);
}

.nav-links a {
    font-size: 0.22rem;
    color: #F0E0CA;
    text-decoration: none;
    padding: 0.08rem 0.18rem;
    border-radius: 0.3rem;
    transition: all 0.3s ease;
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-links a:hover {
    background: #C88F5E;
    color: #2C1E16;
    box-shadow: 0 0 8px rgba(200, 143, 94, 0.6);
    transform: translateY(-1px);
}

.nav-links a.active {
    background: #D8A66B;
    color: #3E2A23;
    pointer-events: none;
    font-weight: bold;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
}

header .showTime {
    position: static;
    font-size: 0.22rem;
    color: #EADABC;
    line-height: 1rem;
    margin-left: auto;
    white-space: nowrap;
}

/* 响应式：窄屏幕时导航换行 */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .nav-container {
        justify-content: center;
        margin-bottom: 0.1rem;
    }
    header .showTime {
        text-align: center;
        margin: 0 auto 0.1rem;
    }
}
@font-face {
    font-family: electronicFont;
    src: url(../font/DS-DIGIT.TTF);
}

dd, dl, dt, em, i, p, textarea, a, div {
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: #D8A66B;
}

a:hover {
    color: #F2D89E;
}

img {
    border: 0;
}

ul, li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

/* 古风主体背景 */
body {
    margin: 0;
    padding: 0;
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;  /* 原为 Georgia, Times... */
    background: #F7F0E1;
    background-image: repeating-linear-gradient(45deg, rgba(160, 120, 80, 0.03) 0px, rgba(160, 120, 80, 0.03) 2px, transparent 2px, transparent 8px);
    color: #3E2A23;
    line-height: 1.15;
}

.clearfix:after,
.clearfix:before {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
    overflow: hidden;
}

/* 头部样式 (古风宫灯样式) */
.caption-title {
    font-size: 22px;
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;  /* 原为 黑体,Georgia */
    color: #FFF2E0;
    max-width: 900px;
    margin: 0 auto;
    height: 48px;
    margin-top: 10px;
    text-shadow: 0 0 5px #A55A3A;
}

.biaoti {
    line-height: 48px;
    display: inline-block;
    margin: 0;
    padding: 0;
    width: 276px;
    text-align: center;
    font-size: 28px;
    background: linear-gradient(135deg, #7A3E2C, #4A2618);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    font-weight: bold;
    /* 原无 font-family，现补充统一 */
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;
}

/* 主卡片容器样式 (古风镶边) */
.data-box1 {
    border: 1px solid rgba(181, 123, 75, 0.75);
    background: rgba(38, 28, 22, 0.82);
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    position: relative;
    transition: all 0.2s;
}

/* 四角装饰 (原有类名保留并古风化) */
.topL {
    width: 20px;
    height: 20px;
    border-top-width: 2px;
    border-top-color: #C88F5E;
    border-top-style: solid;
    border-left-width: 2px;
    border-left-color: #C88F5E;
    border-left-style: solid;
    position: absolute;
    top: -2px;
    left: -2px;
}

.topR {
    width: 20px;
    height: 20px;
    border-top-width: 2px;
    border-top-color: #C88F5E;
    border-top-style: solid;
    border-right-width: 2px;
    border-right-color: #C88F5E;
    border-right-style: solid;
    position: absolute;
    top: -2px;
    right: -2px;
}

.bottomL {
    width: 20px;
    height: 20px;
    border-bottom-width: 2px;
    border-bottom-color: #C88F5E;
    border-bottom-style: solid;
    border-left-width: 2px;
    border-left-color: #C88F5E;
    border-left-style: solid;
    position: absolute;
    bottom: -2px;
    left: -2px;
}

.bottomR {
    width: 20px;
    height: 20px;
    border-bottom-width: 2px;
    border-bottom-color: #C88F5E;
    border-bottom-style: solid;
    border-right-width: 2px;
    border-right-color: #C88F5E;
    border-right-style: solid;
    position: absolute;
    bottom: -2px;
    right: -2px;
}

/* 小标题装饰 */
.data-title-left,
.data-title-right {
    color: #D8A66B;
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;  /* 原为 微软雅黑,Georgia */
    font-size: 20px;
}

.data-title {
    background-color: #2C1E16;
    width: 178px;
    margin: -18px auto 0 auto;
    color: #E8C48A;
    font-size: 20px;
    /* border-radius: 4px; */
    text-align: center;
    padding: 2px 0;
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;  /* 新增统一 */
}

.data-title span {
    text-align: center;
    width: 150px;
    display: inline-block;
    font-size: 18px;
    /* 原无 font-family，继承父级即可，无需额外修改 */
}

/* 布局容器 */
.zhenwen {
    width: 96%;
    margin: 0 auto;
    overflow: hidden;
    padding-top: 30px;
}

/* .left_zs {
    flex: 3;        
    display: flex;
    flex-direction: column;
 
} */
/* .left_tb {
    width: 95%;
} */

.mtop40 {
    margin-top: 40px;
}

.h30 {
    height: 40px;
}

/* .right_zs {
    flex: 4;        
    display: flex;
    flex-direction: column;
} */


.right_tb {
    width: 95%;
    float: right;
}
/* .center_zs {
    flex: 3;        
    display: flex;
    flex-direction: column;
} */

/* 针对表格、卡片内容细节的统一样式 */
table,
td,
th {
    border-color: #B57B4B;
    color: #EADABC;
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;  /* 新增统一 */
}

input,
button,
select,
textarea {
    background: rgba(30, 22, 18, 0.8);
    border: 1px solid #B57B4B;
    color: #F0E0CA;
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;  /* 新增统一 */
}

/* 响应式适配 */
@media screen and (max-width: 1024px) {
    html {
        font-size: 42px !important;
    }
}

@media screen and (min-width: 1920px) {
    html {
        font-size: 80px !important;
    }
}
.center_zs .data-title {
    margin-top: 12px;   /* 原为 -18px，改为 -10px 或更小 */
}

/* 主容器：弹性三列等宽等高 */
.zhenwen {
    width: 96%;
    margin: 0 auto;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: stretch;   /* 关键：让三列高度自动拉伸至最高列 */
}

/* 三列基础样式：等宽、无浮动、垂直弹性列 */
.left_zs,
.center_zs,
.right_zs {
    flex: 1;                
    display: flex;
    flex-direction: column;
   
    min-width: 0;           
}

/* 列内卡片占满宽度，且自动撑开 */
.left_tb,
.right_tb,
.center_zs .data-box1 {
    width: 100%;
    float: none;
    margin-bottom: 20px;    /* 卡片之间的间距 */
}


/* 右侧卡片原本有 float: right，强制取消 */
.right_tb {
    float: none;
}

/* 中间 3D 卡片：自适应高度 */
.center_zs .box1-back {
    height: auto;
    flex: 1;               
    display: flex;
    flex-direction: column;
}

#model-container {
    flex: 1;
    width: 100%;
    min-height: 400px;      /* 保证3D区域可见 */
}


/* 左侧列两个卡片平分高度，填满整列 */
.left_zs .left_tb {
    flex: 1;
}
/* 删除或注释这两行的 min-height */
.center_zs .box1-back {
    height: auto;
    /* min-height: 500px; */   /* 注释掉 */
    display: flex;
    flex-direction: column;
}

#model-container {
    flex: 1;
    width: 100%;
    position: relative;
    /* min-height: 450px; */   /* 注释掉 */
}
/* 江西古建概览 - 卡片样式优化 */
.xm_cszs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 15px;
}
.xm_cszs li {
    /* background: rgba(45, 35, 28, 0.6); */
    /* border-radius: 8px; */
    padding: 8px 12px;
    width: calc(50% - 10px);
    box-sizing: border-box;
    /* border-left: 3px solid #c88f5e; */
    transition: all 0.2s;
    font-size: 13px;
    /* color: #f0e2cf; */
    backdrop-filter: blur(2px);
}
.xm_cszs li:hover {
    /* background: rgba(100, 70, 50, 0.7); */
    transform: translateY(-2px);
}
.xm_cszs li span {
    float: right;
    /* color: #f7c56e; */
    font-weight: bold;
    font-size: 14px;
}
.xm_cszs li p {
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
}
.xm_cszs li p cite {
    font-style: normal;
    /* color: #d4a373; */
}
.xm_cszs li:first-child,
.xm_cszs li:nth-child(2) {
    width: 100%;
    /* background: rgba(70, 50, 35, 0.7); */
    font-weight: bold;
}
.xm_cszs li:first-child span,
.xm_cszs li:nth-child(2) span {
    font-size: 16px;
    /* color: #ffda99; */
}
@media (max-width: 800px) {
    .xm_cszs li {
        width: 100%;
    }
}
/* 江西古建概览 - 卡片样式优化（微调：防止换行、对齐优化） */
.xm_cszs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 15px;
}
.xm_cszs li {
    padding: 8px 12px;
    width: calc(50% - 10px);
    box-sizing: border-box;
    transition: all 0.2s;
    font-size: 13px;
    backdrop-filter: blur(2px);
    /* 新增：防止内容溢出导致折行 */
    overflow-x: auto;
    white-space: nowrap;
    /* 隐藏滚动条（保持美观） */
    scrollbar-width: none;
}
.xm_cszs li::-webkit-scrollbar {
    display: none;
}
.xm_cszs li:hover {
    transform: translateY(-2px);
}
.xm_cszs li span {
    float: right;
    font-weight: bold;
    font-size: 14px;
    margin-left: 8px;  /* 增加左侧间距，避免紧贴文字 */
}
/* 百分比项内部段落：强制单行，左文右数 */
.xm_cszs li p {
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;   /* 防止换行 */
    gap: 8px;              /* 文字与数字之间间距 */
}
/* 数字与百分号紧凑显示 */
.xm_cszs li p span:last-child {
    margin-right: 2px;
}
.xm_cszs li p cite {
    font-style: normal;
    margin-left: 2px;
}
/* 前两项（国保、省保等）保持100%宽度，内部数字适当右移 */
.xm_cszs li:first-child,
.xm_cszs li:nth-child(2) {
    width: 100%;
    font-weight: bold;
}
.xm_cszs li:first-child span,
.xm_cszs li:nth-child(2) span {
    font-size: 16px;
}
@media (max-width: 800px) {
    .xm_cszs li {
        width: 100%;
    }
}
