@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC&family=ZCOOL+KuaiLe&display=swap');
/* ========== 全局基础样式 ========== */
body {
  font-family: "汉仪粗宋简", "Noto Serif SC", serif;
  background-color: #fef6e4; /* 故宫米黄 */
  color: #333;
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

/* 色彩定义 */
:root {
  --primary-red: #800000; /* 故宫红 */
  --secondary-gold: #d4af37; /* 古铜金 */
  --light-bg: #fdf6e3;
  --dark-gray: #333;
  --soft-gray: #888;
}

/* 链接样式 */
a {
  color: var(--primary-red);
  text-decoration: none;
}
a:hover {
  color: var(--secondary-gold);
}

:root {
  --primary-red: #800000;
  --secondary-gold: #d4af37;
  --text-white: #ffffff;
}

/* 顶部整个 navbar 设置为故宫红 */
nav.navbar {
  background-color: var(--primary-red) !important;
  color: var(--text-white);
}

/* ====== 张学良故居 字体艺术化 ====== */
/* 艺术字体：ZCOOL KuaiLe 优先，兼容其他字体 */
.site-title {
  font-family: "ZCOOL KuaiLe", "Noto Serif SC", "汉仪粗宋简", serif;
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 2px;
  color: var(--text-white);
  margin-left: 1rem; /* 向左靠一点 */
  display: inline-block;
}


/* 鼠标悬停变色（可选） */
.site-title:hover {
  color: var(--secondary-gold);
}


/* 顶部导航栏区域 */
.topbar-area,
.moduletable.nav-topbar {
  background-color: var(--primary-red);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  text-align: center;
}

.topbar-area a,
.moduletable.nav-topbar a {
  color: var(--text-white);
}
.topbar-area a:hover {
  color: var(--secondary-gold);
}

/* 主导航菜单区域 */
.mainnav-area,
.moduletable.nav-main {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

/* 菜单项文字 */
.mainnav-area a,
.moduletable.nav-main a {
  color: var(--text-white);
  font-weight: bold;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 8px 12px;
  position: relative;
  transition: all 0.3s ease;
}

.mainnav-area a:hover,
.moduletable.nav-main a:hover {
  color: var(--secondary-gold);
}

/* 下划线悬停 */
.mainnav-area a::after,
.moduletable.nav-main a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background-color: var(--secondary-gold);
  transition: width 0.3s ease;
}

.mainnav-area a:hover::after,
.moduletable.nav-main a:hover::after {
  width: 100%;
}

/* 品牌名称也变白 */
.navbar-brand {
  color: var(--text-white) !important;
}
.navbar-brand:hover {
  color: var(--secondary-gold) !important;
}



/* ========== banner 模块样式（轮播图） ========== */
#banner {
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
  border-bottom: 4px solid var(--primary-red);
}

/* ========== 主内容区域模块样式 ========== */
.position1 .moduletable,
.position2 .moduletable {
  background-color: #f7f1df;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid var(--secondary-gold);
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

/* 最新新闻标题样式 */
.position1 .moduletable h3,
.position2 .moduletable h3 {
  font-size: 1.3rem;
  color: var(--primary-red);
  border-bottom: 2px solid var(--primary-red);
  margin-bottom: 15px;
}

/* 新闻卡片样式 */
.position1 .moduletable .news-item,
.position2 .moduletable .news-item {
  padding: 10px;
  border: 1px solid #e4d2b9;
  border-radius: 6px;
  background-color: #fffef8;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}
.position1 .moduletable .news-item:hover,
.position2 .moduletable .news-item:hover {
  background-color: #fff3d1;
  transform: scale(1.02);
}

/* 列表样式 */
.position2 ul {
  list-style-type: square;
  padding-left: 1.5rem;
  color: var(--primary-red);
}
.position2 li {
  margin-bottom: 0.5rem;
}

/* ========== 页脚样式 ========== */

footer,
#footer {
  background-color: #222;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 6px solid var(--primary-red);
  font-size: 0.95rem;
}

footer a {
  color: var(--secondary-gold);
}

footer a:hover {
  color: white;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--secondary-gold), transparent);
  margin: 1.5rem 0;
}




/* ========== 响应式优化 ========== */
@media (max-width: 768px) {
  #navigationbar a {
    display: block;
    padding: 8px 0;
    margin: 5px 0;
  }
}

/* ===== 标题 + 中式装饰样式 ===== */
.section-title.decorated-title {
  font-size: 1.6rem;
  color: var(--primary-red);
  text-align: left;
  margin: 2rem 0 1rem;
  font-family: "Noto Serif SC", "汉仪粗宋简", serif;
  display: flex;
  align-items: left;
  justify-content: left;
  gap: 10px;
}

.section-title.decorated-title .decor {
  color: var(--secondary-gold);
  font-size: 1.6rem;
}

/* 覆盖 DJ-ImageSlider 黑色背景为半透明 */
.dj-imageslider-title,
.dj-imageslider-description {
  background-color: rgba(0, 0, 0, 0.5) !important; /* 半透明黑 */
  color: white !important;
  padding: 10px;
  border-radius: 5px;
}

.site-title {
  font-family: "ZCOOL KuaiLe", "Noto Serif SC", "汉仪粗宋简", serif;
  font-size: 2.2rem; /* 稍大更有Logo感 */
  font-weight: normal;
  letter-spacing: 3px;
  color: var(--text-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* 增加立体感 */
  margin-left: 1rem;
  display: inline-block;
}


/* Kunena 卡片风格帖子样式 */
.kpost {
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}
.kpost:hover {
  transform: translateY(-3px);
}

/* 用户头像优化 */
.kavatar img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-bottom: 10px;
}

/* Kunena 卡片风格帖子样式 */
.kpost {
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}
.kpost:hover {
  transform: translateY(-3px);
}

/* 用户头像优化 */
.kavatar img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-bottom: 10px;
}

/* 回帖按钮样式 */
.kbutton,
.kbtn {
  background-color: #1e88e5;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  transition: 0.3s;
}
.kbutton:hover,
.kbtn:hover {
  background-color: #1565c0;
}

/* 标题间距清理 */
.ktitle {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* 文章正文统一排版优化 */
.article-content {
  font-family: "Noto Serif SC", "宋体", serif;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #2f2f2f;
  text-align: justify;
  padding: 1rem 0;
}

/* 段落间距 */
.article-content p {
  margin-bottom: 1.2rem;
}

/* 一级标题（如红色章节标题） */
.article-content h2 {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary-red);
  border-left: 6px solid var(--secondary-gold);
  padding-left: 10px;
  margin: 2rem 0 1rem 0;
}

/* 二级标题（如“官方网站”、“公众号”等） */
.article-content h3 {
  font-size: 1.3rem;
  color: #206040;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

/* 项目符号美化 */
.article-content ul {
  margin-left: 1.5rem;
  list-style: square;
}
.article-content li {
  margin-bottom: 0.6rem;
}

.topbar-area::after,
.moduletable.nav-topbar::after {
  content: '';
  display: block;
  height: 60px;
  background-image: url('/images/banner/shouye.jpg');
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.6; /* 若要低调些 */
}

/* --- 下拉菜单核心CSS代码 --- */

/* 1. 基础导航栏样式 */
.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none; /* 移除列表的点点 */
    display: flex; /* 使用Flex布局让主菜单项横向排列 */
    justify-content: flex-start; /* 从左边开始排列 */
}

/* 2. 主菜单项样式 */
.main-navigation li {
    position: relative; /* 这是让子菜单正确定位的关键！*/
    display: inline-block; /* 也可以用flex，这里用传统方式 */
}

/* 3. 所有菜单链接的样式 */
.main-navigation a {
    display: block;
    padding: 15px 20px; /* 链接的内边距，让点击区域变大 */
    color: white; /* 链接文字颜色，请根据你的设计修改 */
    text-decoration: none; /* 移除下划线 */
    white-space: nowrap; /* 防止菜单文字换行 */
}

.main-navigation a:hover {
    background-color: #555; /* 鼠标悬停时的背景色 */
}

/* 4. 子菜单 (下拉菜单) 的核心逻辑 */
.main-navigation ul ul {
    /* 默认状态下，隐藏所有子菜单 */
    display: none;
    position: absolute; /* 让子菜单脱离文档流，相对于父菜单定位 */
    top: 100%; /* 从父菜单项的底部开始显示 */
    left: 0;
    background-color: #333; /* 下拉菜单的背景色 */
    min-width: 200px; /* 下拉菜单的最小宽度 */
    z-index: 1000; /* 确保下拉菜单在其他内容之上 */
}

/* 5. 鼠标悬停时显示子菜单 */
.main-navigation ul li:hover > ul {
    /* 当鼠标悬停在任何一个 li 元素上时，它下面的那个 ul (子菜单) 就显示出来 */
    display: block; 
}

/* 6. 子菜单项的样式 */
.main-navigation ul ul li {
    width: 100%; /* 让子菜单项撑满整个下拉菜单的宽度 */
}

/* 7. (可选) 如果你还想支持三级或更多级菜单 */
.main-navigation ul ul ul {
    top: 0;
    left: 100%; /* 从父菜单项的右边开始显示 */
}


/* --- 卡片式布局美化 --- */

/* 针对每一个卡片的样式 */
.blog-item .card {
    background-color: #fffef8; /* 一个非常浅的米白色，比纯白更有质感 */
    border: 1px solid #e0d5c1; /* 一个柔和的边框色 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* 添加细微的阴影，让卡片浮起来 */
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* 平滑过渡效果 */
    border-radius: 8px; /* 添加圆角，让卡片更柔和 */
    overflow: hidden; /* 防止图片溢出圆角 */
    width: 100%; /* 确保卡片撑满它的列容器 */
}

/* 鼠标悬停在卡片上时的效果 */
.blog-item .card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); /* 阴影加深 */
    transform: translateY(-5px); /* 轻微上浮 */
}

/* 美化卡片里的“阅读全文”按钮 */
.blog-item .card .card-footer .btn {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    font-size: 0.9rem;
    padding: 6px 14px;
}

.blog-item .card .card-footer .btn:hover {
    background-color: #a00000; /* 悬停时红色加深 */
    border-color: #a00000;
}

/* 统一卡片标题的样式 */
.blog-item .card .card-title a {
    color: #333; /* 标题颜色变深，更易读 */
}

.blog-item .card .card-title a:hover {
    color: var(--primary-red); /* 悬停时变回主题色 */
}

/* --- 确保卡片内图片自适应，不会撑破布局 --- */
.blog-item .card img {
    max-width: 100%; /* 核心：图片最大宽度为100%的父容器宽度 */
    height: auto;    /* 高度自动缩放，防止图片变形 */
    display: block;  /* 解决一些潜在的边距问题 */
}

/* =========================================================
   最终修正版 - 基于你的截图发现
   直接命令文章项的宽度
=========================================================
*/

/* 这是一个安全措施，确保父容器是flex布局 */
.com-content-category-blog_items.column-2 {
  display: flex;
  flex-wrap: wrap;
}

/* 核心：直接、强制地设置每个文章项的宽度 */
.com-content-category-blog_item {
  width: 50% !important; /* 强制宽度为50%，实现两列布局 */
  padding: 0 15px;       /* 为卡片左右添加15像素的间距 */
  box-sizing: border-box;  /* 确保内边距不会撑大盒子的总宽度 */
  margin-bottom: 30px;     /* 卡片上下的间距 */
}

/* --- 确保卡片内图片自适应，不会撑破布局 --- */
.blog-item .card img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 统一时间轴模块的图片样式 --- */

/* 找到时间轴模块里包裹图片的容器 */
.JT_Historia .timeline-item_img {
    width: 400px;  /* 设定一个你希望的统一宽度 */
    height: 150px; /* 设定一个统一的高度 */
    overflow: hidden; /* 隐藏图片超出容器的部分 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* 图片加载时的浅灰色背景 */
}

/* 对容器里的图片本身进行设置 */
.JT_Historia .timeline-item_img img {
    width: 100%;       /* 图片宽度撑满容器 */
    height: 100%;      /* 图片高度撑满容器 */
    object-fit: cover; /* 这是关键：图片会保持自身比例，自动裁剪以填满整个容器，不变形 */
}

/* ================================================================================
    JT Historia Timeline 美化 (最终修正版 V3)
================================================================================
*/

/* --- 0. 整体布局调整 (解决宽度和吞字问题) --- */

/* 找到包裹着左右两栏的总容器 */
.jt-historia-outer120 .timeline-wrap {
    display: flex;
    flex-wrap: nowrap; /* 禁止换行，确保左右结构 */
    align-items: flex-start; /* 顶部对齐 */
}

/* --- 1. 左侧年份样式 (调整宽度) --- */

/* 左侧年份的容器 */
.jt-historia-outer120 .timeline-nav-wrap {
    flex: 0 0 350px; /* 核心：设定一个固定的宽度，不再让它自由伸缩 */
    padding-right: 40px;
    border-right: 4px solid #e0d5c1;
}

/* 年份本身的样式 */
.jt-historia-outer120 .timeline-nav-item {
    font-size: 2.2rem; /* 字体可以稍微调大一点点 */
    font-weight: 500;
    color: #b0b0b0;
    padding: 10px 0 !important;
    text-align: center;
    transition: all 0.3s ease;
    word-break: keep-all; /* 防止年份数字被奇怪地断开 */
}


/* --- 2. 右侧内容区域 --- */

/* 右侧内容容器，让它占据所有剩余空间 */
.jt-historia-outer120 .timeline-list {
    flex-grow: 1; /* 核心：占据所有可用的剩余空间 */
    padding-left: 30px; /* 与左侧分隔线的距离 */
}

/* --- 3. 右侧内容卡片样式 (已修正) --- */

/* 针对每一个卡片容器 */
.jt-historia-outer120 .timeline-item {
    background-color: #f7f3e0;
    border: 1px solid #e0d5c1;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px !important;
    transition: all 0.3s ease;
}

.jt-historia-outer120 .timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* 卡片标题 (直接针对h3标签) */
.jt-historia-outer120 .timeline-item h3 {
    font-size: 1.5rem !important; /* 使用 !important 确保生效 */
    color: var(--primary-red) !important;
    margin-top: 0 !important;
}

/* 卡片图片 */
.jt-historia-outer120 .timeline-item_img img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* “阅读详情”按钮 (针对.btn.btn-primary) */
.jt-historia-outer120 .timeline-item .btn.btn-primary {
    display: inline-block;
    background-color: var(--primary-red) !important; /* 强制覆盖 */
    border-color: var(--primary-red) !important;     /* 强制覆盖 */
    color: white !important;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.jt-historia-outer120 .timeline-item .btn.btn-primary:hover {
    background-color: #a00000 !important;
    border-color: #a00000 !important;
}

/* ===================================================
   建筑特色页面最终布局 (视频+文字)
====================================================== */

/* 1. 响应式视频容器 */
/* 这个div负责创建一个保持16:9比例的、有阴影的居中视频区域 */
.video-wrapper {

    margin: 0 auto 4rem auto; /* 上边距为0，左右自动居中，下边距4rem，和文字拉开距离 */
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: auto;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* 添加漂亮的阴影 */
    border-radius: 8px; /* 轻微的圆角 */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* 移除iframe可能自带的边框 */
}

/* 2. 统一文字介绍部分的样式 */
/* 我们直接针对Joomla文章输出的容器进行美化 */


/* 3. 文字区域的标题样式 */
.com-content-article__body .feature-heading {
    font-family: "Noto Serif SC", "汉仪粗宋简", serif;
    font-size: 2.8rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* 4. 引言文字样式 */
.com-content-article__body .lead {
    font-size: 1.25rem;
    text-align: center;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* 5. 分隔线样式 */
.com-content-article__body .featurette-divider {
    margin: 3rem 0;
}

/* ===================================================
   Phoca Gallery 灯箱 (PhotoSwipe) 样式美化
====================================================== */

/* 1. 修改背景颜色 */
/* 将刺眼的纯黑背景，改为更柔和的、带透明度的深色 */
.pswp__bg {
    background-color: rgba(42, 42, 41, 0.576) !important; 
}

/* 2. (核心修改) 调整整个文字区域的位置和宽度 */
.pswp__caption {
    max-width: 1800px;  /* 限制最大宽度，提高可读性 */
    width: 80%;       /* 宽度为屏幕的80%，避免太宽 */
    margin: 0 auto;   /* 确保这个容器本身在屏幕上水平居中 */
    left: 0;          /* 这几行是确保居中生效的关键 */
    right: 0;
    bottom: 20%;       /* 修改：不再贴着底边，而是距离底部5%的屏幕高度，从而实现上移 */
    text-align: center; /* 修改：让内部所有文字都默认居中对齐 */
    padding: 100px
}

/* 3. 美化内层文字容器 */
.pswp__caption__center {
    max-width: 100%;
    width: auto;
    padding: 10px;
    font-size: 2rem;
    line-height: 1.8;
    color: #400202; /* 保持清晰的灰白色 */
}

/* 4. 修改标题的字体样式 */
.pswp__caption__center .title {
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--secondary-gold);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 15px;
    font-family: "Noto Serif SC", "汉仪粗宋简", serif;
}

/* 5. 修改控制按钮的样式 (保持不变) */
.pswp__button {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.pswp__button:hover {
    opacity: 1;
}
/* --- 模块标题美化 (替代旧的硬编码标题样式) --- */
.moduletable h3.card-header, /* 兼容Joomla 5的默认标题标签 */
.moduletable h3 {
    font-size: 1.6rem;
    color: var(--primary-red);
    text-align: center; /* 标题居中 */
    margin: 2rem 0 1.5rem;
    font-family: "Noto Serif SC", "汉仪粗宋简", serif;
}
/* 为标题左右添加装饰 */
.moduletable h3::before,
.moduletable h3::after {
    content: ' ❧ '; /* 这是你的装饰符号 */
    color: var(--secondary-gold);
    font-size: 1.6rem;
    margin: 0 10px;
}

/* =========================================================
   创意楼层导览 (Interactive Floor Guide Tabs)
========================================================= */

.floor-guide-tabs {
  background-color: #fdfaf2; /* 淡淡的米黄色背景 */
  border: 1px solid #e0d5c1;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 标签导航栏的样式 */
.floor-guide-tabs .nav-tabs {
  border-bottom: 2px solid var(--primary-red); /* 用故宫红作为底线 */
}

/* 单个标签的样式 */
.floor-guide-tabs .nav-tabs .nav-item .nav-link {
  border: 1px solid transparent;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  color: var(--soft-gray); /* 默认文字颜色 */
  font-size: 1.1rem;
  font-weight: bold;
}

/* 鼠标悬停在非激活标签上 */
.floor-guide-tabs .nav-tabs .nav-item .nav-link:not(.active):hover {
  border-color: #e9ecef #e9ecef #dee2e6;
  background-color: #f7f1df;
  color: #333;
}

/* 激活状态的标签样式 */
.floor-guide-tabs .nav-tabs .nav-link.active {
  color: var(--primary-red); /* 激活时文字为故宫红 */
  background-color: #fdfaf2;
  border-color: #e0d5c1 #e0d5c1 #fdfaf2; /* 边框与内容区融为一体 */
  border-bottom-color: transparent; /* 隐藏底部边框 */
  font-weight: bold;
}

/* 标签内容区域 */
.floor-guide-tabs .tab-content {
  padding: 25px 10px 10px 10px; /* 上、右、下、左 */
}

.floor-guide-tabs .tab-content h4 {
  color: var(--primary-red);
  margin-top: 0;
  margin-bottom: 15px;
}

.floor-guide-tabs .tab-content p {
  line-height: 1.9;
  font-size: 1.05rem;
  color: #555;
}

.floor-guide-tabs .tab-content img {
  border: 1px solid #e0d5c1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- 首页文创商城展示区美化 --- */

.product-showcase-card {
    position: relative; /* 为文字叠加效果做准备 */
    border-radius: 8px;
    overflow: hidden; /* 隐藏溢出的部分，确保圆角生效 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.product-showcase-image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease; /* 平滑的放大动画 */
}

.product-showcase-card:hover .product-showcase-image {
    transform: scale(1.05); /* 鼠标悬停时图片轻微放大 */
}

.product-showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); /* 底部半透明黑色渐变 */
    color: white;
    transition: all 0.3s ease;
}

.product-showcase-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.product-showcase-desc {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.product-showcase-card:hover .product-showcase-overlay {
    background: linear-gradient(to top, rgba(128,0,0,0.9), transparent); /* 悬停时渐变变为主题红色 */
}

/* “即刻探索”按钮样式 */
.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 50px; /* 胶囊形状按钮 */
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(128,0,0,0.3);
}

/* --- 限制首页文创模块内的图片大小 --- */

.product-showcase-card .product-showcase-image {
    max-width: 100%; /* 核心：图片最大宽度为100%的父容器宽度 */
    height: auto;    /* 高度自动缩放，防止图片变形 */
    display: block;  /* 确保图片正确显示为一个块级元素 */
}