/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    overflow-x: hidden;
    scroll-behavior: smooth; /* 下滑丝滑 */
}

/* 导航栏容器（悬浮在所有轮播上方） */
.nav-wrapper {
    position: fixed; /* 导航栏固定在屏幕顶部，不随滚动消失 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* 最高层级，始终在轮播上方 */
    padding: 10px 20px;
}

/* Logo+搜索+登录栏 */
.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent; /* 透明 */
}

.logo {
    color: #fff;
    text-shadow: 0 0 3px #000; /* 文字阴影，适配轮播图 */
    display: flex;
    align-items: center;
    font-size: 20px; /* 示例：20px，可改为22px、24px等 */
    font-weight: 550; /* 可选：轻微加粗，让文字更醒目 */
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 5px;
    margin-left: auto; /* 保持靠右 */
    margin-right: 10px; /* 减小与留言板的间距（原30px改成10px，数值越小越近） */
}

.search-bar input {
    padding: 5px 10px;
    border: 1px solid #fff;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 4px;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.8);
}

.search-bar button {
    padding: 5px 10px;
    border: 1px solid #fff;
    background: rgba(209,44,44,0.8);
    color: #fff;
    border-radius: 40px;
    cursor: pointer;
}

/* 登录/注册/留言 */
.header2 {
    display: flex;
    gap: 15px;
}

.header2 a {
    text-decoration: none;
    color: #fff;
    text-shadow: 0 0 3px #000;
    padding: 5px 10px;
}

/* 主导航栏 */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 10px 0;
    margin-top: 10px;
}

.navbar a {
    color: #fff;
    text-shadow: 0 0 3px #000;
    text-decoration: none;
    padding: 14px 16px;
    margin: 0 5px;
}

.dropdown {
    overflow: hidden;
}


.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(249,249,249,0.9);
    min-width: 95px;
    z-index: 1000;
    /* 新增：限制最大高度 + 超出滚动 */
    max-height: 600px; /* 可根据需要调整高度（比如200px更小） */
    overflow-y: auto; /* 垂直方向超出时显示滚动条 */
}

.split-line {
  border-right: 2px solid #fff; /* 白色竖线，可根据背景色调整颜色 */
  padding-right: 20px; /* 给竖线留一点间距，避免和文字太近 */
}


.dropdown-content a {
    color: #333;
    text-shadow: none;
    padding: 12px 16px;
    display: block;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.navbar a:hover, .dropdown:hover .dropbtn {
    background: rgba(92,8,8,0.7);
}

/* ========== 核心：全屏轮播通用样式（所有轮播统一） ========== */
.fullscreen-carousel {
    width: 100vw; /* 视口宽度 */
    height: 100vh; /* 视口高度 */
    position: relative; /* 非固定，随页面滚动 */
    overflow: hidden;
}

/* 轮播内部容器 */
.carousel-inner {
    width: 100%;
    height: 100%;
}

/* 轮播图片：全屏铺满且不变形 */
.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 覆盖容器，保持比例 */
    object-position: center; /* 居中显示 */
}

/* 轮播页码 */
.carousel-dots {
    position: absolute;
    bottom: 20px; /* 保持底部距离不变 */
    left: 50%; /* 左移到容器中间 */
    transform: translateX(-50%); /* 向左偏移自身宽度的50%，实现水平居中 */
    z-index: 10;
}

.carousel-dots ul {
    display: flex;
    gap: 8px;
    list-style: none;
}

.carousel-dots li {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: rgba(165,42,42,0.7);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* 轮播左右按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: rgba(0,0,0,0.3);
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    z-index: 10;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


/* 左上角小图样式 */
.corner-img {
    position: absolute;
    top: 270px;    /* 距离顶部距离，自己可调 */
    left: 120px;    /* 距离左边距离，自己可调 */
    z-index: 10;
}

.corner-img img {
    width: 830px;  /* 小图宽度，可调大小 */
    height: auto
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}


























/*------------------------2--------------------------------------*/

.map-bg {
    width: 100%;
    height: 100%;
    
}




/* 地图容器核心样式 */
.mapW {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.map {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 地图底图样式 */
.map-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 省份点击区域样式 */
.map-point {
    position: absolute;
    cursor: pointer;
    z-index: 10; /* 文字层级 */
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 省份文字样式 */
.map-point .city {
    color: #21d9cc;
    font-size: 14px;
    text-shadow: 0 0 3px #14c984;
    padding: 2px 5px;
    background: rgba(19, 9, 9, 0.3);
    border-radius: 3px;
}

/* 弹窗样式（定位到map容器，统一层级） */
.pop {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    min-width: 200px;
    font-size: 12px;
    line-height: 1.5;
    z-index: 50; /* 所有弹窗统一高层级，覆盖所有文字 */
}

/* 可选：点击区域悬浮高亮 */
.map-point:hover .city {
    background: rgba(255, 215, 0, 0.5);
}



/* ========== 新增：右侧全国非遗数据框样式（图二样式） ========== */
.national-data-box {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 380px;
    background-color: rgba(218, 195, 158, 0.95);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 20; /* 确保数据框在地图和省份弹窗上方 */
}

/* 数据框标题 */
.national-data-box h3 {
    text-align: center;
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
    margin-top: 0; /* 清除默认margin */
}

/* 数据框标签栏 */
.data-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #c4a988;
    padding-bottom: 5px;
}

/* 数据网格容器 */
.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列布局 */
    gap: 12px;
    margin: 15px 0;
}

/* 单个数据项 */
.data-item {
    background-color: rgba(255,255,255,0.8);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* 数据项数值 */
.data-item .num {
    font-size: 20px;
    font-weight: bold;
    color: #b72424; /* 红色数值，匹配图二 */
    margin-bottom: 5px;
}

/* 数据项类型 */
.data-item .type {
    font-size: 12px;
    color: #333;
}

/* 数据说明文字 */
.data-note {
    font-size: 11px;
    color: #555;
    line-height: 1.4;
    margin-top: 10px;
}

/* 总计数值高亮 */
.data-note span {
    color: #b72424;
    font-weight: bold;
}














/*-----------------------3--------------- 地图+卡片容器 */
.map-section {
    width: 100vw;
    height: 100vh;
    position: relative;
}
.map-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.map-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 卡片区域容器 */
.project-cards-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 50px 100px;
}

/* 左侧竖排标题 */
.section-title {
    width: 120px;
    height: 100%;
}
.section-title span {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    writing-mode: vertical-rl;
    letter-spacing: 3px;
    line-height: 40px;
}

/* 不规则卡片容器（绝对定位，自由排列） */
.cards-irregular {
    flex: 1;
    position: relative;
    height: 100%;
}

/* 卡片基础样式（带边角装饰） */
.project-card {
    position: absolute; /* 每个卡片单独定位 */
    width: 180px;
    height: 250px;
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    /* 边角装饰（匹配示例的花纹） */
    background-clip: padding-box;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
/* 卡片悬浮放大 */
.project-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* 卡片图标（白色线条） */
.card-icon img {
    width: 160px;
    height: 180px;
    object-fit: contain;
    
}

/* 卡片文字 */
.card-name {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

/* ========== 每个卡片的不规则定位（核心：单独设置top/left） ========== */
.card1 { /* 东明粮画 */
    top: 20%;
    left: 5%;
}
.card2 { /* 聊城鱼灯 */
    top: 50%;
    left: 18%;
}
.card3 { /* 非遗莲花灯 */
    top: 10%;
    left: 30%;
}
.card4 { /* 滨州剪纸 */
    top: 27%;
    left: 45%;
}
.card5 { /*东昌葫芦雕刻 */
    top: 60%;
    left: 38%;
}
.card6 { /* 黄河口民间草编 */
    top: 45%;
    left: 58%;
}

.card8 { /*惠民布老虎  */
    top: 15%;
    left: 72%;
}
.card9 { /* 掐丝珐琅 */
    top: 65%;
    left: 80%;
}
.card10 { /* 菏泽面塑 */
    top: 30%;
    left: 88%;
}

















/* 页脚样式 */
.footer {
    width: 100%;
    background: rgba(51,51,51,0.8);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 99;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.social-media a {
    display: inline-block;
    margin: 0 5px;
}
.social-media img {
    width: 40px;
    height: auto;
}




/* 页脚（在最后一个轮播下方，随页面滚动） */
.footer {
    width: 100%;
    background: rgba(51,51,51,0.8);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.social-media a {
    display: inline-block;
    margin: 0 5px;
}

.social-media img {
    width: 40px;
    height: auto;
}