/* ========== 深色多山多桥水墨导航栏 ========== */
header {
    width: 100%;
    height: 240px;        /* 匹配1920×240长图高度 */
    /* 深色水墨背景 + 半透明蒙版（核心：解决多元素背景文字遮挡） */
    background-size: cover;
    background-attachment: scroll;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(100, 110, 120, 0.4);
}
/* 贵州文旅统一视觉：蜡染蓝 + 苗银金 + 喀斯特肌理 */
:root {
  --guizhou-blue: #2A4A5C;
  --guizhou-gold: #D4B276;
  --guizhou-green: #3E6446;
}

/* 文旅提示框（通用） */
.tour-hover-box {
  position: absolute;
  background: var(--guizhou-blue);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  pointer-events: none;
  white-space: nowrap;
}
/* 透明Logo 深色背景适配 */
.logo {
    display: flex;
    align-items: center;
    position: relative;
    left: -16px !important;
    text-decoration: none;
}
.logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    background: transparent;
    /* 白色投影，在深色水墨背景上更立体清晰 */
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}
.logo:hover img {
    filter: drop-shadow(0 0 10px rgba(212, 178, 118, 0.6));
    transform: scale(1.02);
}

/* 导航菜单 深色背景适配 */
.nav {
    display: flex;
    gap: 38px;
}
.nav a {
    color: #ffffff;          /* 纯白色文字，深色背景下最清晰 */
    text-decoration: none;
    font-size: 19px;
    font-family: "思源宋体", 宋体, serif;
    padding: 10px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
    /* 深色文字阴影，增强对比度 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 导航 hover + 选中激活态（鎏金质感） */
.nav a:hover,
.nav a.active {
    background-color: rgba(212, 178, 118, 0.9);
    color: #1a2229;
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(212, 178, 118, 0.3);
}

/* 搜索栏 深色背景适配 */
.search-bar {
    display: flex;
    align-items: center;
    margin-left: 15px !important;
    gap: 8px;
}
.search-bar input {
    border: 1px solid rgba(255, 255, 255, 0.3);
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    padding: 9px 16px;
    border-radius: 24px;
    font-size: 14px;
    color: #2c343b;
}
.search-bar input::placeholder {
    color: #666;
}
.search-bar button {
    border: none;
    background: rgba(212, 178, 118, 0.9);
    color: #1a2229;
    padding: 9px 18px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.search-bar button:hover {
    background: #d4b276;
    box-shadow: 0 2px 8px rgba(212, 178, 118, 0.4);
}

/* ========== 移动端响应式适配 ========== */
@media (max-width: 768px) {
    header {
        height: auto;
        flex-direction: column;
        padding: 25px 20px;
        gap: 20px;
        background-position: center bottom;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }
    .nav a {
        font-size: 16px;
        padding: 8px 20px;
    }
    .logo img {
        height: 45px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "思源宋体", "微软雅黑", serif;
}
:root {
    --main: #2A4A5C;
    --gold: #D4B276;
    --bg: #F7F8FA;
    --text: #333333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 6px 18px rgba(42, 74, 92, 0.12);
}
body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
}
/* 统一导航样式 */
header {
    width: 100%;
    height: 75px;
    background-color: #2A4A5C;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav {
    display: flex;
    gap: 70px;
}
.nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: "思源宋体", "思源黑体", sans-serif;
    transition: all 0.3s ease;
}
.nav a:hover,
.nav a.active {
    background-color: #D4B276;
    color: #2A4A5C;
}
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    min-height: calc(100vh - 260px);
}
.hero-banner {
    width: 100%;
    height: 300px !important;
    border-radius: var(--radius);
    background: transparent !important;;
    margin: 40px 0 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}
.hero-banner h1 {
    font-size: 42px;
    color: var(--gold);
    letter-spacing: 8px;
    margin-bottom: 12px;
}
.hero-banner p.sub-title {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
}
.hero-desc {
    width: 75%;
    text-align: center;
    font-size: 16px;
    line-height: 2;
    opacity: 0.88;
}
/* 全站所有二级标题：强制统一间距（覆盖一切优先级） */
.sec-title {
    margin-top: 0px !important;
    margin-bottom: 30px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    font-size: 30px !important;
    color: var(--main) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    position: static !important;
    text-align: center !important;
}
.sec-title::before,
.sec-title::after {
    content: "" !important;
    width: 70px !important;
    height: 2px !important;
    background: var(--gold) !important;
    margin: 0 20px !important;
}
/* 强制拉近模块与标题距离 */
.skill-wrap,
.intangible-wrap,
.craft-timeline {
    margin-top: 0px !important;
    margin-bottom: 50px !important;
}
.skill-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}
/* 替换原有 .skill-card 样式 */
.skill-card {
    /* 统一背景：深蓝渐变 + 鎏金边框（和研学/非遗卡片一致） */
    background: linear-gradient(135deg, #2A4A5C, #3a5a6e);
    border: 1px solid var(--gold);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* 增加蜡染纹理背景（和研学卡片一致） */
}
.skill-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/layan_pattern.png') center/cover;
    opacity: 0.05;
    pointer-events: none;
}

/* 卡片内文字颜色适配深色背景 */
.skill-info h3 {
    font-size: 24px;
    color: var(--gold); /* 标题改为鎏金色（和研学卡片一致） */
    display: flex;
    align-items: center;
}
.skill-info h3 span.tag {
    font-size: 13px;
    background: rgba(255, 255, 255, 0.9); /* 标签背景改为白色 */
    color: var(--main); /* 标签文字改为深蓝 */
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 12px;
}
.skill-desc {
    color: rgba(255, 255, 255, 0.85); /* 描述文字改为白色半透明 */
    margin-top: 12px;
    font-size: 15px;
}

/* 保持hover交互效果（优化适配深色背景） */
.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(42,74,92,0.18), 0 0 20px rgba(212, 178, 118, 0.2);
    border-color: #D4B276; /* 边框鎏金高亮 */
}
.skill-card:hover {
    transform: translateY(-10px); /* 和研学卡片hover上浮距离一致 */
    box-shadow: 0 15px 35px rgba(212, 178, 118, 0.25); /* 鎏金阴影强化 */
}
.skill-card h3 {
  color: #D4B276 !important;
}
.skill-card p {
  color: #ffffff !important;
}
.card-img-top {
    width: 100%;
    height: 280px;
    position: relative;
}
.img-real, .img-line {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
}
.skill-card:hover .img-real {
    opacity: 0.25;
}
.img-line {
    opacity: 0;
}
.skill-card:hover .img-line {
    opacity: 1;
}
.skill-info {
    padding: 28px;
}
.skill-info h3 {
    font-size: 24px;
    color: var(--main);
    display: flex;
    align-items: center;
}
.skill-info h3 span.tag {
    font-size: 13px;
    background: var(--gold);
    color: var(--main);
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 12px;
}
.skill-desc {
    color: var(--text-light);
    margin-top: 12px;
    font-size: 15px;
}
.intangible-wrap {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px;
    margin: 80px 0;
}
.intangible-card {
    background: var(--main);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 15px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.intangible-card:hover {
    background: #3a5a6e;
}
.intangible-card h4 {
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 15px;
    border-left: 4px solid var(--gold);
    padding-left: 12px;
}
.intangible-card p {
    color: var(--white);
}
/* 时间轴整体深色背景全包 */
.craft-timeline {
    width: 100%;
    margin: 80px 0;
    background-color: var(--main);
    border-radius: 16px;
    padding: 70px 30px;
    border: 1px solid var(--gold);
    box-sizing: border-box;
    overflow: visible;
}
.craft-line {
    width: 90%;
    margin: 0 auto;
    height: 6px;
    background: var(--gold);
    position: relative;
    display: flex;
    justify-content: space-between;
}
.craft-node {
    position: relative;
    top: 0;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.craft-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--gold);
    margin: 0;
    position: absolute;
    top: -15px;
    transition: 0.3s;
}
.craft-node:hover .craft-dot{
    transform: scale(1.15);
}
.craft-text {
    font-size: 16px;
    color: #ffffff !important;
    font-weight: bold;
    line-height: 1.5;
    position: absolute;
    white-space: nowrap;
}
/* 朝代在上 */
.craft-text::before {
    content: attr(data-text);
    display: block;
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
}
/* 阶段在下 */
.craft-text::after {
    content: attr(data-desc);
    display: block;
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
}
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.popup-content {
    width: 85%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    position: relative;
    animation: popShow 0.3s ease;
}
@keyframes popShow {
    from {opacity:0; transform: scale(0.95);}
    to {opacity:1; transform: scale(1);}
}
.close-btn {
    position: absolute;
    right: 30px;
    top: 25px;
    font-size: 36px;
    color: var(--main);
    cursor: pointer;
    transition: 0.3s;
}
.close-btn:hover {
    color: var(--gold);
}
.pop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}
.pop-block {
    margin-bottom: 25px;
}
.pop-block h5 {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 10px;
}
footer {
    width: 100%;
    background-color: #2A4A5C;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}
.footer-source {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}
.footer-source strong {
    color: #D4B276;
}
@media (max-width: 992px) {
    .skill-wrap,.intangible-wrap {
        grid-template-columns: 1fr;
    }
    .pop-grid {
        grid-template-columns: 1fr;
    }
    .hero-banner h1 {
        font-size: 42px;
    }
}
@media (max-width: 768px) {
    .nav {gap: 20px;}
    .nav a {font-size: 15px;padding:6px 12px;}
    .hero-desc {width:90%;}
}
/*  skill.html 统一宽高 */
.hero-banner {
    width: 100% !important;
    margin: 40px 0 70px !important;
}

/*  culture.html 统一宽高 */
.culture-hero {
    width: 100% !important;
    height: 420px !important;
    margin: 40px 0 70px !important;
}

/*  inherit.html 统一宽高 */
.inherit-banner {
    width: 100% !important;
    height: 420px !important;
    margin: 40px 0 70px !important;
}
/* 桥型技艺页面 字号统一 = 技艺传承页面完全一致 */
.hero-banner h1 {
    font-size: 42px !important;
    letter-spacing: 8px !important;
}
.hero-banner .sub-title {
    font-size: 20px !important;
}
.hero-banner .hero-desc {
    font-size: 16px !important;
    line-height: 2.1 !important;
}

.title-wrap h2 {
    font-size: 30px !important;
}

.card-box h3,
.skill-card h3,
.type-item h3 {
    font-size: 22px !important;
}

.card-box p,
.skill-card p,
.type-item p {
    font-size: 15px !important;
    line-height: 1.8 !important;
}
 /* 桥型技艺 —— 二级标题统一为左右金线（同技艺传承） */
.sec-title {
    background: none !important;
    border: none !important;
    position: static !important;
    text-align: center !important;
    font-size: 30px !important;
    color: #ffffff !important; /* 这里改成白色 */
    margin-bottom: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.sec-title::before,
.sec-title::after {
    content: "" !important;
    width: 70px !important;
    height: 2px !important;
    background: var(--gold) !important;
    margin: 0 20px !important;
}
.sec-title::after,
.sec-title::before {
    transform: none !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    position: static !important;
}
/* 时间轴弹窗 —— 小巧协调版 */
.alert-popup {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(42, 74, 92, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.alert-content {
    background: #2A4A5C;
    color: #fff;
    width: 60%;
    max-width: 620px;
    border-radius: 16px;
    border: 1px solid #D4B276;
    overflow: hidden;
    position: relative;
}
/* 图片完整显示，高度自动适配 */
.alert-top-img {
    width: 100%;
    height:280px;
    max-height:300px;
    object-fit: cover;
}
.alert-text {
    padding: 20px 24px;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}
.alert-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #D4B276;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}
/* 导航栏右侧搜索栏（覆盖原有样式） */
header .search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    position: relative; /* 新增 */
}
header .search-bar input {
    height: 38px;
    /* 移除原有宽度，改为动态展开 */
    width: 0;
    padding: 0 14px;
    border: 1px solid #D4B276;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    background: #ffffff;
    color: #2A4A5C;
    font-family: "思源宋体", "思源黑体", sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
header .search-bar:hover input {
    width: 220px;
    opacity: 1;
    visibility: visible;
}
header .search-bar input:focus {
    border-color: #ffffff;
    background: #fff;
}
header .search-bar button {
    height: 38px;
    padding: 0 12px;
    border: none;
    border-radius: 6px;
    background: #ffffff !important;
    color: #2A4A5C !important;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}
header .search-bar button:hover {
    background: #D4B276 !important;
    color: #2A4A5C !important;
}
/* 搜索高亮红色 */
.search-highlight {
    color: red !important;
    font-weight: bold !important;
    background: transparent !important;
}
/* 返回顶部按钮 */
#backTop {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 44px;
    height: 44px;
    background: #2A4A5C;    /* 深色主题 */
    color: #D4B276;        /* 金色文字 */
    border: 1px solid #D4B276;
    border-radius: 50%;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
}
/* ========== 桥型技艺研学点位 全新布局样式 ========== */
.study-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC端横向4列等宽 */
    gap: 24px;
    margin-bottom: 70px;
}

/* 单张研学卡片：深蓝鎏金背景，和全站统一 */
.study-card {
    background: linear-gradient(135deg, #2A4A5C, #3a5a6e);
    border: 1px solid rgba(212, 178, 118, 0.3);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 10px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 卡片背景纹理：淡淡的蜡染纹样，增加质感 */
.study-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/layan_pattern.png') center/cover; /* 替换成你的蜡染纹理图 */
    opacity: 0.05;
    pointer-events: none;
}

/* 大图标：视觉焦点 */
.study-icon {
    font-size: 52px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

/* 标题：金色，突出 */
.study-card h3 {
    color: #D4B276;
    font-size: 22px;
    margin: 0 0 6px 0;
    font-weight: 600;
}

/* 副标题：白色半透明 */
.study-sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 0 0 12px 0;
    font-weight: 500;
}

/* 描述文字：浅白色 */
.study-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* 按钮：鎏金质感，和全站按钮统一 */
.study-btn {
    background: #D4B276;
    color: #2A4A5C;
    border: none;
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* hover交互效果：上浮、边框变亮、图标放大 */
.study-card:hover {
    transform: translateY(-10px);
    border-color: #D4B276;
    box-shadow: 0 15px 35px rgba(212, 178, 118, 0.25);
}

.study-card:hover .study-icon {
    transform: scale(1.2);
}

.study-btn:hover {
    background: #ffffff;
    color: #2A4A5C;
    transform: scale(1.05);
}

/* 响应式适配：平板2列，手机1列 */
@media (max-width: 992px) {
    .study-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .study-card-grid {
        grid-template-columns: 1fr;
    }
}
body {
    background: #1A2B3D !important;
}

/* 2. 顶部导航栏 完全复刻石拱桥技艺页面顶部样式 */
header {
    background: rgba(42,74,92,0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(212,178,118,0.1) !important;
    height: 75px !important;
}
/* 导航栏默认字体颜色：白色 */
header a,
.nav-menu a,
.nav-wrap a {
  color: #ffffff !important;
}

/* 鼠标移上去：字体变黑色（其余不动） */
header a:hover,
.nav-menu a:hover,
.nav-wrap a:hover {
  color: #000000 !important;
}

/* 古桥形制 · 匠艺千年弹窗 */
.bridge-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
}
.bridge-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 弹窗盒子 */
.modal-content {
  position: relative;
  width: 80%;
  max-width: 1000px;
  height: 80vh;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* 关闭按钮 */
.modal-close {
  /* 位置：向内靠右上角 */
  position: absolute;
  top: 15px;
  right: 15px;

  /* 关键：彻底去掉所有背景、边框、方框 */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  /* 只保留 × 图标样式 */
  font-size: 28px;
  color: #ffffff;
  font-weight: bold;

  /* 布局 */
  width: auto;
  height: auto;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: #D4AF37; /* 悬浮变金色 */
  transform: scale(1.15);
}

/* 内容铺满 */
.modal-body {
  width: 100%;
  height: 100%;
  border: none;
}