
/* 头部标题通用样式 */
.news-header {
    text-align: center;
    padding-top: 15px;
}

.news-header h1 {
    font-family: Source Han Sans;
    font-size: 22px;
    font-weight: bold;
    line-height: 25px;
    letter-spacing: 2px;
    font-variation-settings: "opsz" auto;
    font-feature-settings: "kern" on;
    color: #3D3D3D;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-left: 20%;
}

.news-header h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    opacity: 1;
    background: #0063F9;
}

.news-header .more {
    float: right;
    margin-right: 20px;
    font-family: Source Han Sans;
    font-size: 14px;
    font-weight: 500;
    line-height: 25px;
    text-align: center;
    letter-spacing: 0px;
    font-variation-settings: "opsz" auto;
    font-feature-settings: "kern" on;
    color: #0063F9;
}

.news-header h1 div:nth-child(1) {
    width: 36px !important;
    background-color: #D8D8D8;
    height: 1px !important;
    margin-top: 13px;
    margin-right: 5px;
    float: left;
}

.news-header h1 div:nth-child(2) {
    font-family: Source Han Sans;
    font-size: 22px;
    font-weight: bold;
    line-height: 25px;
    text-align: center;
    letter-spacing: 2px;
    font-variation-settings: "opsz" auto;
    font-feature-settings: "kern" on;
    color: #3D3D3D;
    float: left;
}


.news-header h1 div:nth-child(3) {
    width: 36px !important;
    background-color: #D8D8D8;
    height: 1px !important;
    margin-top: 13px;
    margin-left: 5px;
    float: left;
}

/* mysj内容区域样式 */
.mysj-content {
    margin: 20px;
    background-image: url(../images/left-select-bg.png);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    transition: background-image 0.3s ease;
}

.mysj-content.right-bg {
    background-image: url('../images/right-select-bg.png');
}

/* mysj tab切换框样式 */
.mysj-tab-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.mysj-tab-item {
    position: relative;
    padding: 10px 0px 10px 0px;
    /* margin-left: 18px; */
    cursor: pointer;
    font-family: Source Han Sans;
    font-size: 15px;
    text-align: center;
    width: 50%;
    font-weight: 600;
    color: #000000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background: linear-gradient(180deg, #FBFCFE 0%, #DFF1FD 100%);
}

.mysj-tab-item.active {
    color: #0063F9;
    font-weight: bold;
    background: #ff000000;
    box-shadow: 0 0 0 0;
}

.mysj-tab-item img {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    display: none;
}

.mysj-tab-item.active img {
    display: block;
}

/* mysj内容框样式 */
.mysj-content-box {
    width: 100%;
}

.mysj-content-item {
    display: none;
    padding: 5px;
    border-radius: 8px;
    min-height: 300px;
}

.mysj-content-item.active {
    display: block;
}

/* mysj内容项样式 */
.mysj-content-item-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: #a5a5a524 1px solid;
}


.mysj-content-item-item img:first-child {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 10px;
    object-fit: cover;
}

.mysj-content-item-item img:last-child {
    width: 7px;
    height: 12px;
    margin-left: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.mysj-content-item-item:hover img:last-child {
    opacity: 1;
}

.mysj-content-item-item-txt {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    height: 44px; /* 控制为2行高度：22px * 2行 = 44px */
}

.mysj-content-item-item-txt div:first-child {
    font-family: Source Han Sans;
    font-size: 16px;
    font-weight: bold;
    line-height: 22px;
    color: #333;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.mysj-content-item-item-txt div:last-child {
    font-family: Arial;
    font-size: 14px;
    font-weight: normal;
    line-height: 22px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}


.mysj-content-item button {
    padding: 10px 56px;
    background-color: white;
    color: #0063F9;
    border: none;
    border-radius: 5px;
    font-family: Source Han Sans;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    margin-left: 20%;
}

.mysj-content-item button:hover {
    background-color: #0052D3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 99, 249, 0.3);
}

/* 第一个tab的指数内容样式 */
.mysj-index-content {
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

.mysj-index-content > div {
    width: 100% !important;
    height: 100% !important;
}

.mysj-index-title {
    font-family: Source Han Sans;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.mysj-index-desc {
    font-family: Source Han Sans;
    font-size: 16px;
    line-height: 24px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
}

.mysj-index-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.stat-number {
    font-family: Arial;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-family: Source Han Sans;
    font-size: 14px;
    opacity: 0.9;
}

/* mysj-content-tow 样式 */
.mysj-content-tow {
    padding: 20px;
}

/* 顶部tab样式 */
.mysj-content-item-tow-tab {
   display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}

.mysj-content-item-tow-tab::before {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    height: 135px;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
}

.mysj-content-item-tow-tab-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 8px;
    cursor: pointer;
    font-family: Source Han Sans;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 4px 4px 0 0;
    flex: 1;
    min-width: 0;
    text-align: center;
    height: 148px;
}

.mysj-content-item-tow-tab-item:hover {
    color: #0063F9;
    background-color: rgba(0, 99, 249, 0.1);
}

.mysj-content-item-tow-tab-item.active {
    color: #ffffff;
    font-weight: bold;
    background: url('../images/flfg-list-tab-bg.png') no-repeat center;
    background-size: 117% 115%;
}

/* tab项中的图片样式 */
.mysj-content-item-tow-tab-item img {
    width: 42px;
    height: 42px;
    margin-bottom: 6px;
    transition: opacity 0.3s ease;
    max-width: 100%;
}

/* 默认显示第一个img，隐藏第二个img */
.first-image {
    display: block;
}

.next-image {
    display: none ;
}

/* active状态时隐藏第一个img，显示第二个img */
.mysj-content-item-tow-tab-item.active .first-image {
    display: none !important;
}

.mysj-content-item-tow-tab-item.active .next-image {
    display: block !important;
}


/* 中部tab容器样式 */
.mysj-content-item-tow-box {
    margin-bottom: 20px;
}

.mysj-content-item-tow-box-item {
    display: none;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.mysj-content-item-tow-box-item.active {
    display: block;
}

/* flfg-list-header 样式 */
.flfg-list-header {
    background-color: #EDF4F9;
    display: flex;
    align-items: center;
    padding: 0px 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.flfg-list-header-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.flfg-list-header-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.flfg-list-header-item {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 40px;
}

.flfg-list-header-item.active {
    color: #0063F9;
    position: relative;
}

.flfg-list-header-item.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0063F9;
}

/* 右侧滑动按钮 */
.flfg-list-header-nav {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, #EDF4F9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.flfg-list-header-nav.show {
    opacity: 1;
    pointer-events: auto;
}

.flfg-list-header-nav img {
    width: 40px;
    height: 42px;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 中部条件区域 */
.mysj-content-item-tow-box-item-kz {
    margin-bottom: 20px;
    border-radius: 8px;
}

.mysj-content-item-tow-box-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mysj-content-item-tow-box-item-content input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Source Han Sans;
    font-size: 14px;
}

/* 底部内容区域 */
.mysj-content-item-tow-box-item-content:last-child {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mysj-content-item-tow-box-item-content-item {
    display: none;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: -webkit-fill-available;
}

.mysj-content-item-tow-box-item-content-item.active {
    display: block;
}

/* 第三部分：中非贸易数据可视化 */
.china-africa-section {
   padding: 20px 15px;
    background-image: url('../images/index-5-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.china-africa-title {
    width: 100%;
    height: 40px;
    background-image: url('../images/index-5-shuzidiqiu.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.data-theme {
    font-family: Source Han Sans;
    font-size: 14px;
    font-weight: 600;
    line-height: 25px;
    text-align: center;
    letter-spacing: 0px;
    font-feature-settings: "kern" on;
    background: linear-gradient(180deg, #F8FAFC 20%, #E7F2FA 54%, #A5DCF3 86%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-top: 15px;
}

.data-title {
    font-family: Source Han Sans;
    font-size: 18px;
    font-weight: bold;
    line-height: 28px;
    letter-spacing: 2px;
    font-feature-settings: "kern" on;
    text-fill-color: transparent;
    text-shadow: 0px 2px 4px rgba(13, 45, 79, 0.4);
    background-image: url(../images/index-5-l-bg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 15px 33px;
}

.total-amount {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    display: flow-root;
    margin-top: 5px;
}

.amount {
    display: flex;
    align-items: self-start;
    justify-content: space-around;
    gap: 2px;
    width: 95%;
    float: left;
}

.amount-number {
    width: 40px;
    height: 50px;
    background-image: url(../images/index-5-number-bg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

.amount-dot {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.unit {
    font-size: 10px;
    font-weight: normal;
    color: #fff;
    width: 5%;
    float: left;
    padding-top: 22px;
}

.data-module {
    /*background: rgba(255, 255, 255, 0.05);*/
    border-radius: 10px;
    padding: 10px;
   /* margin-bottom: 20px;*/
    backdrop-filter: blur(8px);
   /* border: 1px solid rgba(255, 255, 255, 0.1);*/
}

.chart-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* 日期输入框样式 */
#notifyingDate {
    cursor: pointer;
    background-image: url(data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%230063F9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>);
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 20px;
    -webkit-tap-highlight-color: transparent;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    min-height: 50px !important;
    width: 70% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    z-index: 100 !important;
    position: relative !important;
    float: left;
    margin-right: 1%;

}

.mysj-content-kongzhi-item input, .mysj-content-kongzhi-item select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #DDD;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    height: 48px;
    opacity: 1;
    background: #FFFFFF;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.mysj-content-kongzhi-item button {
   width: 27%;
    height: 49px;
    opacity: 1;
    background: #0063F9;
    color: white;
    border: 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 25px;
    text-align: center;
    letter-spacing: 3px;
    font-variation-settings: "opsz" auto;
    font-feature-settings: "kern" on;
    color: #FFFFFF;
}

.mysj-content-kongzhi-item {
    margin-top: 20px;
}

.layui-laydate-range {
    width: 277px !important;
    max-width: 600px !important;
}


#content0 , #content1 , #content2{
    width: 100%;
    height: 400px;
    overflow: hidden;
    box-sizing: border-box;
}

/* 移动端图表容器优化 */
@media (max-width: 768px) {
    #content0 , #content1 , #content2{
        height: 500px;
    }
}

.mysj-content-item-tow-box-item-content-item {
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.data-earth {
     height: 500px;
}