@charset "utf-8";
/* CSS Document */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	font-family:Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
}
html {
 overflow-x: hidden; /* 防止横向滚动条 */
  width: 100%;
  height: 12500px;
  margin: 0;
  padding: 0;
}
.page-container {
  transform: scale(0.8);
  transform-origin: top left;
  width: 125%;
  height: 100%;
  overflow: hidden;
}

.body1 {
     background-image: url(pic/background1.jpg);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-color: #f9f9f9;
    color: #333;
	line-height: 1.6;
}
   
.container1, .container2 {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.container3{
	font-size: 20px;
	text-align:center;
    max-width: 1300px;
	padding: 3px;
	 margin: 5px auto;
}
.container1 {
    text-align: left;
    max-width: 1500px;
}

.container2{
    text-align:center;
    max-width: 1500px;
}
.biao{
	font-size: 65px;
	color:#2c3e50;
	font-weight: bolder;
}
.intro1{
	text-align:left;
	font-size: 1.5rem;
    width: 1000px;
    margin: 0 auto;
    color: #34495e;
}
.biaocu{
	font-weight:bolder;
	text-align:center;
	font-size: 33px;
	color:#2B4E76;
}
.changtu{
	display: flex;
	gap:20px;
	justify-content: center;
	margin-top: 40px;
}
.t1{
	width: 350px;
	height: 250px;
	transition: transform 0.3s ease;
}
.t1:hover{
	transform: scale(1.2)
}
/* 导航栏样式 */
nav {
    background-color: #2c3e50;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}
.custom-list {
    list-style-type: square;
    padding-left:3rem;
    margin: 1rem 0;
}

.custom-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 0.1rem;
}

ul {
    list-style: square !important;
    padding-left: 3rem !important;
}
.nav-links {
    display: flex;
    justify-content: space-around;
    list-style: none;
	position: sticky;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.nav-links a:hover {
    background-color: #34495e;
}
.nav-links a.active {
    background-color: #e74c3c;
}


/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(10deg, #c3cfe2 50%, #f5f7fa 100%);
    margin-bottom: 10px;
}

/* 背景和现状 */
.data-overview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 50px 0;
}

.section-title {
    font-size: 2rem;
}

#现状 {
	font-weight: bolder;
    font-size: 35px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.data-card {
    background-color: white;
    padding: 20px 60px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    min-height: 500px; /* 改为最小高度 */
    overflow: hidden; 
	margin-bottom: 90px;
}

/* 文字内容样式 */
.data-card .value {
    position: absolute;
    top: 110px;
    left: 50px;
    right: 40px;
    text-align:left;
    text-indent: 2em;
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 20px 0;
    transition: opacity 0.3s ease;
    z-index: 1;
	word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; /* 确保文本正常换行 */
    /* 调整移动端定位 */
}

/* 图片内容样式 */
.data-card .extra-content {
    position: absolute;
    top: 50px;
    left: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.data-card:hover .value {
    opacity: 0;
}
.data-card:hover .extra-content {
    opacity: 1;
    z-index: 1;
}

/* 图片样式 */
.image-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.extra-content img {
    margin: 40px auto;
	height:350px;width: 50%
}

#guotong {
    font-size: 1rem;
    color: #7f8c8d;
    margin-top:350px;
	text-align: center;
}
#guotong2 {
    font-size: 1rem;
    color: #7f8c8d;
    margin-top:400px;
	text-align: center;
}
/* 胖东来 */
#question1{
	text-align: center;
	color:#2c3e50; 
	font-weight: bolder;
	font-size: 40px;
}
#question2{
	text-align: center;
	color: #e74c3c;
	font-weight: bolder;
	font-size: 60px;
}

#qigong {
    font-size: 1rem;
    color: #7f8c8d;
    margin-top:390px;
	text-align: center;
}
.arrow1, .arrow2, .arrow3{
	width: 0;
	height: 10px;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 30px solid#e74c3c;
	text-align: center;
	margin:10px auto;
	position:relative;
}

/* 图表区域样式 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .card-hover {
        @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
    }
    .tab-active {
        @apply bg-primary text-white border-primary;
    }
    .animate-fade-in {
        animation: fadeIn 0.6s ease forwards;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .gradient-bg {
        background: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
    }
}

/* 基础样式补充 */
canvas {
    width: 100% !important;
    height: 100% !important;
}
#summary p, #summary li {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
}

#summary h3, #summary h4 {
    font-size: 1.5rem !important;
}

/* 标签切换动画 */
.dimension-panel {
    transition: all 0.3s ease-in-out;
}

/* 卡片阴影效果增强 */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}
/* 悬停时的平滑过渡 */
* {
    transition: all 0.2s ease;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .nav-links {
        font-size: 0.9rem;
    }
    
    .image-container {
        flex-direction: column;
    }
    
    .extra-content img {
        width: 100% !important;
        height: auto !important;
    }
    
    #china-map {
        height: 450px;
    }
	
}

@media (max-width: 768px) {
    /* 基础容器重置，取消缩放和固定尺寸 */
    .page-container {
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    html {
        height: auto !important;
        overflow-y: auto !important;
    }

    body {
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 网格布局统一为单列 */
    .grid-cols-1.lg\\:grid-cols-2,
    .grid-cols-1.lg\\:grid-cols-3,
    .grid-cols-1.md\\:grid-cols-2,
    .grid-cols-1.md\\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* 导航栏适配 */
    .nav-links {
        flex-wrap: wrap !important;
        padding: 0 10px !important;
    }

    .nav-links li {
        margin: 5px 3px !important;
    }

    .nav-links a {
        font-size: 0.9rem !important;
        padding: 6px 10px !important;
    }

    /* 标题与文本适配 */
    .biao {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        padding: 0 10px !important;
    }

    .intro1 {
        font-size: 1.1rem !important;
        width: 100% !important;
        padding: 0 15px !important;
        line-height: 1.8 !important;
    }

    #question1 {
        font-size: 1.3rem !important;
        padding: 0 10px !important;
    }

    #question2 {
        font-size: 1.8rem !important;
        padding: 0 10px !important;
        line-height: 1.4 !important;
    }

    /* 核心：背景和现状板块调整 */
    .container1 {
        padding: 10px !important;
        margin: 10px auto !important;
        width: 96% !important;
        box-sizing: border-box !important;
    }

    .data-card {
        min-height: auto !important;
        height:500px；!important;
        padding: 15px 10px !important;
        margin-bottom: 40px !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    #现状 {
        font-size: 1.5rem !important;
        margin: 10px 0 20px !important;
        padding: 0 5px !important;
        text-align: center !important;
    }

    /* 文字内容显示优化 */
    .data-card .value {
        position: static !important;
        font-size: 1rem !important;
        line-height: 2 !important;
        margin: 15px 0 !important;
        padding: 0 10px !important;
        text-indent: 1.5em !important;
        opacity: 1 !important;
        color: #e74c3c !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    /* 图片内容显示优化 */
    .data-card .extra-content {
        position: static !important;
        opacity: 1 !important;
        margin-top: 20px !important;
        width: 100% !important;
    }

    .data-card .image-container {
        flex-direction: column !important;
        gap: 25px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .data-card .extra-content img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* 图片说明文字调整 */
    #guotong, #guotong2 {
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        font-size: 0.8rem !important;
        text-align: center !important;
        padding: 0 5px !important;
    }

    /* 标签与地图调整 */
    .dimension-tab {
        padding: 0.4rem 1.2rem !important;
        font-size: 0.85rem !important;
        margin: 0 3px 10px !important;
    }

    #china-map {
        height: 300px !important;
        width: 100% !important;
        margin: 0 auto 20px !important;
        background-size: contain !important;
    }

    /* 取消hover效果干扰 */
    .data-card:hover .value {
        opacity: 1 !important;
    }

    .data-card:hover .extra-content {
        opacity: 1 !important;
    }

    /* 额外补充：解决可能的父容器限制 */
    #background1 {
        padding: 10px !important;
    }

    .gradient-bg {
        background-attachment: scroll !important;
    }
}
@media (max-width: 480px) {
    .container1, .container2 {
        padding: 10px;
        margin-top: 80px;
    }
    
    nav {
        padding: 10px 0;
    }
    
    .dimension-tab {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    
    #china-map {
        height: 250px;
    }
	 .data-card .value {
        font-size: 0.9rem !important; /* 进一步减小字体 */
        top: 70px !important;
    }
    
    #现状 {
        font-size: 1.3rem !important;
    }
    
    .data-card {
        min-height: 350px !important;
        margin-bottom: 60px !important; /* 减小卡片间距 */
    }
}