/* ========== 深色多山多桥水墨导航栏 ========== */
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);
}

/* 透明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;
    gap: 8px;
    margin-left: 15px !important;
}
.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;
    }
}
/* 贵州文旅统一视觉：蜡染蓝 + 苗银金 + 喀斯特肌理 */
: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;
}
/* 黔桥文脉页面字体 = 技艺传承页面完全一致 */
html, body,
h1, h2, h3, h4, h5, h6,
p, span, a, div,
button, input, select, textarea {
    font-family: "思源宋体", "思源黑体", sans-serif !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "思源宋体", "思源黑体", serif;
}
:root {
    --main: #2A4A5C;
    --gold: #D4B276;
    --bg: #F7F8FA;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --transition: all 0.3s ease;
    --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);
}

/* ========== 通用二级标题 国风细节 ========== */
.sec-title {
    text-align: center;
    font-size: 30px;
    color: var(--main);
    margin-bottom: 50px;
    position: relative;
    letter-spacing: 2px;
}
.sec-title::before,
.sec-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    width: 80px;
    height: 3px;
    background: var(--gold);
}
.sec-title::before {
    left: calc(50% - 90px);
}
.sec-title::after {
    right: calc(50% - 90px);
}

/* ========== 模块1：开篇视觉头图 ========== */
.culture-hero {
    width: 100%;
    height: 300px !important;
    border-radius: 16px;
    background: transparent !important;;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}
.culture-hero h1 {
    font-size: 42px;
    color: var(--gold);
    letter-spacing: 8px;
    margin-bottom: 12px;
}
.culture-hero .sub-title {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 25px;
}
.hero-desc {
    width: 75%;
    text-align: center;
    font-size: 16px;
    opacity: 0.85;
    line-height: 2.1;
}

/* ========== 模块2：三大主题分类标签 ========== */
.theme-tab-wrap {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.theme-tab {
    padding: 9px 26px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 18px;
    color: #ffffff !important;
    cursor: pointer;
    transition: var(--transition);
}
.theme-tab.active,
.theme-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212,178,118,0.1);
}

/* ========== 沉浸式古桥卡片矩阵 ========== */
.bridge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 80px;
}
.bridge-card {
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gold);
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-height: 380px;
}
.bridge-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.bridge-card:hover img {
    transform: scale(1.05);
}
/* 底部深蓝渐变蒙版 */
.bridge-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(transparent, var(--main));
    transition: var(--transition);
}
.bridge-card:hover::after {
    opacity: 0.85;
}
.card-hint {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--main);
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}
.bridge-card:hover .card-hint {
    opacity: 1;
}
.bridge-info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 30px;
    z-index: 3;
    color: var(--white);
}
.bridge-info h3 {
    font-size: 26px;
    color: var(--gold);
    margin-bottom: 8px;
    transition: var(--transition);
}
.bridge-card:hover .bridge-info h3 {
    transform: translateY(-4px);
}
.bridge-tag {
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 10px;
    display: inline-block;
}
.bridge-desc {
    font-size: 15px;
    opacity: 0.9;
}

/* ========== 模块3：单桥沉浸式详情弹窗 ========== */
/* ========== 模块3：单桥沉浸式详情弹窗（优化尺寸+金线边框） ========== */
.culture-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.popup-content {
    width: 82%;                /* 整体收窄 */
    max-width: 1000px;         /* 限制最大宽度，变小巧 */
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: 20px;
    position: relative;
    animation: popFade 0.3s ease;
    /* 新增：主界面同款金线边框 */
    border: 2px solid #D4B276;
    box-sizing: border-box;
}
@keyframes popFade {
    from {opacity: 0; transform: scale(0.93);}
    to {opacity: 1; transform: scale(1);}
}
.close-pop {
    position: absolute;
    /* 原 right: 30px; top: 25px;  修改为下面数值 */
    right: 20px;
    top: 15px;
    font-size: 38px;
    color: var(--main);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.close-pop:hover {
    color: var(--gold);
}
.pop-top-banner {
    width: 100%;
    height: 280px; /* 顶部图高度缩小，更协调 */
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    position: relative;
}
.pop-top-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pop-top-banner::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(transparent, var(--main));
}
.pop-base-info {
    position: absolute;
    left: 40px;
    bottom: 30px;
    color: var(--white);
    z-index: 5;
}
.pop-base-info h2 {
    font-size: 32px; /* 标题字号微调缩小 */
    color: var(--gold);
    margin-bottom: 10px;
}
.base-line {
    display: flex;
    gap: 25px;
    font-size: 16px;
}
.pop-body {
    padding: 40px; /* 内容区内边距收窄，整体更紧凑 */
}
.pop-section {
    margin-bottom: 32px; /* 模块间距缩小 */
}
.pop-section h4 {
    font-size: 22px; /* 小标题缩小 */
    color: var(--main);
    border-left: 4px solid var(--gold);
    padding-left: 15px;
    margin-bottom: 20px;
}
.pop-section p {
    font-size: 15px; /* 正文字号微调 */
    line-height: 2;
    color: var(--text);
}
.pop-section p strong {
    color: var(--gold);
    font-weight: normal;
}
.back-list-btn {
    padding: 10px 30px;
    background: var(--main);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}
.back-list-btn:hover {
    background: var(--gold);
    color: var(--main);
}

/* ========== 模块4：贵州古桥交互文脉地图 ========== */
.map-box {
    width: 100%;
    height: 500px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gold);
    box-shadow: var(--shadow);
    position: relative;
    padding: 20px;
    margin-bottom: 80px;
}
.map-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.map-point {
    width: 26px;
    height: 26px;
    background: var(--gold);
    border: 3px solid var(--main);
    border-radius: 50%;
    position: absolute;
    cursor: pointer;
    transition: var(--transition);
}
.map-point:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px var(--gold);
}
.map-tip {
    position: absolute;
    background: var(--main);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
    transform: translate(-50%, -120%);
}
.map-point:hover .map-tip {
    opacity: 1;
}
/* 地图 + 诗词 左右布局 */
.map-poem-row {
    display: flex;
    gap: 30px;
    margin-bottom: 80px;
    align-items: stretch;
}
.map-poem-row .map-box {
    flex: 0 0 68%;
    height: 500px;
    margin-bottom: 0;
    padding: 0;
}
.map-poem-row .poem-show {
    flex: 1;
    height: 500px;
    margin-bottom: 0;
}
.map-poem-row .poem-item {
    height: 100%;
    padding: 30px;
}

/* 手机端自动变回上下 */
@media (max-width: 900px) {
    .map-poem-row {
        flex-direction: column;
    }
    .map-poem-row .map-box,
    .map-poem-row .poem-show {
        width: 100%;
        height: 420px;
    }
}
/* ========== 模块5：一桥一诗·碑刻印记轮播 ========== */
.poem-show {
    width: 100%;
    height: 240px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    margin-bottom: 80px;
    border: 1px solid var(--gold);
}
.poem-roll {
    width: 100%;
    height: 100%;
    display: flex;
    transition: var(--transition);
}
.poem-item {
    min-width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/xuanzhi_texture.jpg') center/cover;
    padding: 40px;
}
.poem-text {
    text-align: center;
    color: var(--main);
}
.poem-text h5 {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 15px;
}
.poem-text p {
    font-size: 17px;
    font-family: "楷体", serif;
    line-height: 2;
}
.poem-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}
.dot.active {
    background: var(--gold);
}

/* ========== 模块6：权威页脚 ========== */
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: 1200px) {
    .bridge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .nav {gap: 20px;}
    .nav a {font-size: 15px;padding:6px 12px;}
    .bridge-grid {grid-template-columns: 1fr;}
    .culture-hero h1 {font-size: 32px;}
    .hero-desc {width: 90%;}
}
/*  skill.html 统一宽高 */
.hero-banner {
    width: 100% !important;
    height: 420px !important;
    margin: 40px 0 70px !important;
}

/*  culture.html 统一宽高 */
.culture-hero {
    width: 100% !important;
    margin: 40px 0 70px !important;
}

/*  inherit.html 统一宽高 */
.inherit-banner {
    width: 100% !important;
    height: 420px !important;
    margin: 42px 0 70px !important;
}
        /* 黔桥分布 · 文脉交互地图 —— 页面统一大背景 */
.map-section,
.map-wrapper,
.map-container,
.map-box,
#guizhou-map-container {
    position: relative !important;
    background-color: #2A4A5C !important;
    background-image: linear-gradient(135deg, #2A4A5C 0%, #1A2A3A 100%) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
    overflow: hidden !important;
}

/* 地图本身高亮提亮，在深色背景上更清晰 */
#guizhou-map,
.map-svg,
svg[map] {
    filter: brightness(1.3) contrast(1.2) saturate(1.1) !important;
    position: relative !important;
    z-index: 2 !important;
}

/* 地图标题文字颜色适配背景 */
.map-section h2,
.map-section .title-wrap h2 {
    color: #D4B276 !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::before,
.sec-title::after {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}
        /* 右侧诗词轮播独立背景（和页面风格匹配，不连地图） */
.poem-show {
    position: relative;
    background: linear-gradient(135deg, #2A4A5C 0%, #1E2F3F 100%);
    border: 1px solid #D4B276;
    box-shadow: 0 6px 20px rgba(42, 74, 92, 0.15);
    overflow: hidden;
}

/* 宣纸底纹轻微质感（不抢视觉、高级） */
.poem-item {
    position: relative;
    z-index: 2;
    background: transparent !important;
}
.poem-show::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 178, 118, 0.05);
    z-index: 1;
    pointer-events: none;
}

/* 诗词文字颜色适配深色背景 */
.poem-text h5 {
    color: #D4B276 !important;
}
.poem-text p {
    color: #ffffff !important;
    opacity: 0.95 !important;
}
/* 隐藏弹窗顶部图片区域 */
.pop-top-banner {
    display: none !important;
}
      /* 导航栏右侧搜索栏（覆盖原有样式） */
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;
}
/* 地图审图号与来源标注 */
.fixed-map-license {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 15px !important;
    z-index: 99 !important;
    font-size: 13px !important;
    color: #fff !important;
    background: #2A4A5C !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    border: 1px solid #D4B276 !important;
    text-align: center !important;
    width: auto !important;
}
/* 搜索高亮红色 */
.search-highlight {
    color: red !important;
    font-weight: bold !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;
}
/* ========== 我的贵州桥记忆 全新布局样式 ========== */
/* 主容器：和时间轴容器100% 像素级对齐 */
.memory-container {
    background: #2A4A5C;
    border: 1px solid rgba(212, 178, 118, 0.3);
    border-radius: 16px;
    padding: 50px 40px;
    margin-bottom: 80px;
    border: 1px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 背景纹理：淡淡的蜡染纹样，和研学卡片统一 */
.memory-container::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;
}

/* 左侧上传区 */
.memory-upload {
    flex: 1;
}

.upload-box {
    width: 100%;
    height: 320px;
    border: 2px dashed rgba(212, 178, 118, 0.5);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-box:hover {
    border-color: #D4B276;
    background: rgba(212, 178, 118, 0.05);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 15px;
    color: #D4B276;
}

.upload-btn p {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 5px;
}

.upload-btn span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* 预览图片 */
.preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* 右侧信息区 */
.memory-info {
    flex: 1;
    color: #ffffff;
}

.memory-info h3 {
    color: #D4B276;
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 600;
}

.memory-info > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.memory-tips {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.memory-tips p {
    color: #D4B276;
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 500;
}

.memory-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.memory-tips li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    padding-left: 15px;
    position: relative;
    margin-bottom: 5px;
}

.memory-tips li::before {
    content: "•";
    color: #D4B276;
    position: absolute;
    left: 0;
}

/* 生成按钮：和全站按钮风格统一 */
.generate-btn {
    width: 100%;
    padding: 14px;
    background: #D4B276;
    color: #2A4A5C;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-btn:hover:not(:disabled) {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 178, 118, 0.3);
}

.generate-btn:disabled {
    background: rgba(212, 178, 118, 0.5);
    cursor: not-allowed;
}

/* 响应式适配：平板/手机端上下布局 */
@media (max-width: 992px) {
    .memory-container {
        flex-direction: column;
        padding: 40px 25px;
        gap: 30px;
    }

    .memory-upload, .memory-info {
        width: 100%;
    }

    .upload-box {
        height: 280px;
    }
}
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;
}
/* 弹窗最终正确样式：标题不缩进 + 正文首行缩进2字符 */
.popup-content {
  background: #1A3A5F !important;
  color: #FFFFFF !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  text-align: justify !important;
}

/* 标题：金色 + 不缩进 */
.popup-content h2,
.popup-content h3,
.popup-content h4,
.popup-title {
  color: #FFE099 !important;
  text-indent: 0 !important; /* 标题禁止缩进 */
}

/* 正文：白色 + 首行缩进2字符 */
.popup-content p,
.popup-content span,
.popup-content div {
  color: #FFFFFF !important;
  text-indent: 2em !important; /* 只有正文缩进 */
}

/* ========== 地图专属 聆听桥韵 弹窗样式（已调整大小并添加金线边框） ========== */
.map-story-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}
.map-story-popup {
    width: 85%; /* 弹窗整体宽度从 90% 调整为 85%，更小巧 */
    max-width: 800px; /* 最大宽度从 950px 调整为 800px */
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    animation: popShow 0.3s ease;
    /* 添加金线边框 */
    border: 2px solid #D4B276; /* 主界面同款鎏金色 */
    box-sizing: border-box; /* 确保边框不会增加弹窗总宽度 */
}
@keyframes popShow {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}
/* 关闭按钮 */
.map-story-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    transition: 0.2s;
}
.map-story-close:hover {
    transform: rotate(90deg);
}
/* 顶部栏：主界面同款深色渐变背景 */
.map-story-header {
    background: linear-gradient(135deg, #2A4A5C 0%, #1A2A3A 100%);
    padding: 24px 30px; /* 内边距从 28px 35px 调整为 24px 30px */
    color: #fff;
    border-bottom: 1px solid rgba(212, 178, 118, 0.25);
}
.map-bridge-name {
    font-size: 30px; /* 字体从 34px 调整为 30px */
    margin: 0 0 8px;
    font-weight: normal;
    color: #D4B276; /* 鎏金标题 */
}
.map-bridge-info {
    font-size: 15px; /* 字体从 16px 调整为 15px */
    opacity: 0.9;
    margin: 0;
}
/* 主体左右布局 */
.map-story-body {
    display: flex;
    min-height: 280px; /* 最小高度从 320px 调整为 280px */
}
.story-img-box {
    width: 45%;
    background: #000;
}
.story-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.story-text-box {
    width: 55%;
    padding: 30px; /* 内边距从 35px 调整为 30px */
}
.story-text-box h3 {
    font-size: 20px; /* 字体从 22px 调整为 20px */
    color: #A66F37;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(166,111,55,0.3);
}
.story-text-box p {
    font-size: 15px; /* 字体从 16px 调整为 15px */
    line-height: 1.8;
    color: #333;
    text-align: justify;
    text-indent: 2em;
    margin: 0;
}
.story-sign {
    text-align: right;
    color: #5A8A37;
    font-size: 14px; /* 字体从 15px 调整为 14px */
    margin-top: 20px;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .map-story-body {
        flex-direction: column;
    }
    .story-img-box, .story-text-box {
        width: 100%;
    }
    .story-img-box {
        height: 200px; /* 移动端图片高度从 220px 调整为 200px */
    }
    .map-bridge-name {
        font-size: 24px; /* 移动端字体从 26px 调整为 24px */
    }
}