/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 隐藏链接样式 */
.hidden-link {
  display: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* 基本样式类 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

/* 移动设备上减小普通section的内外边距 */
@media (max-width: 767px) {
  .section {
    padding: 40px 0;
  }
  
  /* 减小text-center-section中h2的底部边距 */
  .text-center-section .text-heading.text-center.mb-4 {
    margin-bottom: 1rem;
  }
  
  /* 确保text-center-section中p的底部边距合适 */
  .text-center-section .text-body.text-center {
    margin-bottom: 0;
  }
}

/* 燈燈仔 & 半島師奶聯乘介紹區段 */
.intro-section {
    padding: 30px 0;
}

/* 移动设备上减小intro-section顶部间距 */
@media (max-width: 767px) {
  .intro-section {
    padding: 20px 0;
  }
}

/* 燈燈仔故事頁面横幅 */
.dengdeng-banner-section {
  width: 100%;
  overflow: hidden;
  padding-bottom: 60px;
}

/* 移动设备上减小banner底部间距 */
@media (max-width: 767px) {
  .dengdeng-banner-section {
    padding-bottom: 30px;
  }
}

.banner-container {
  width: 100%;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.section-accent {
  background-color: #fdf2f2; /* 浅红色背景 */
}

.section-centered {
  text-align: center;
}

/* 文本样式 */
.text {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.text-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0;
  color: #c11d25; /* 暗红色标题 */
}

/* 移除slider-content中h3與h4之間的間距 */
.slider-content h3.text-heading {
  margin-bottom: 0;
}

/* 使用兄弟選擇器確保h3和h4之間完全無間距 */
.slider-content h3.text-heading + h4.text-subtitle {
  margin-top: 0;
  margin-bottom: 1rem;
}

.text-body {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  margin-top: 3rem;
}

/* 为所有p标签添加默认的底部边距和顶部边距，创建额外的空行效果 */
p {
  margin-bottom: 3rem;
  margin-top: 3rem;
}

/* 移除第一个段落的顶部边距，避免多余的顶部空白 */
p:first-of-type {
  margin-top: 0;
}

/* 为相邻段落添加更多空间 */
p + p {
  margin-top: 4rem;
}

/* 为新闻详情模态框中的段落添加额外空间 */
.news-detail-body p {
  margin-bottom: 4rem;
  margin-top: 4rem;
}

/* 新闻详情模态框中相邻段落的特殊处理 */
.news-detail-body p + p {
  margin-top: 80px;
}

/* 移除新闻详情模态框中第一个段落的顶部边距 */
.news-detail-body p:first-of-type {
  margin-top: 0;
}

/* 为新闻详情模态框中的每个段落添加粗红色边框和大间距 */
.news-detail-body p {
  margin-bottom: 80px !important;
  margin-top: 80px !important;
  border: 2px solid red;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
}

/* 副標題樣式 */
.text-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: #333;
  margin: 0 0 1rem 0;
  padding: 0;
}

/* 間距工具類 */
.mt-10 {
  margin-top: 2.5rem;
}

/* 故事文本样式 */
.story-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 2rem;
}

/* 按钮样式 - 红色主题 */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.button-primary {
  background-color: #c11d25; /* 红色按钮 */
  color: white;
}

.button-primary:hover {
  background-color: #a31520;
}

.button-secondary {
  background-color: #d93742; /* 浅红色按钮 */
  color: white;
}

.button-secondary:hover {
  background-color: #c11d25;
}

/* 滑块部分的按钮样式 */
.split-slider-section .button-secondary {
    background-color: transparent !important;
    color: white !important;
    border: 2px solid white !important;
    padding: 0.3rem 0.5rem !important;
    width: auto !important;
    display: table !important;
    font-size: 0.875rem !important;
    min-width: auto !important;
    max-width: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.split-slider-section .button-secondary:hover {
  background-color: white;
  color: #c11d25;
}

/* 小型按钮样式 */
.button-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* 滑块内容中的按钮左对齐 */
.slider-content .button {
  align-self: flex-start;
}

.button-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Flex布局 */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.items-stretch {
  align-items: stretch;
}

/* 网格布局 */
.grid {
  display: grid;
  gap: 1rem;
}

/* Gap utilities */
.gap-8 {
  gap: 1.25rem;
}

/* 默认单列布局（移动端） */
.grid-cols-1 {
  grid-template-columns: 1fr;
}

/* 响应式桌面设备双列布局 */
@media (min-width: 768px) {
  /* 桌面设备双列布局 */
  .grid-cols-2,
  .md\:grid-cols-2,
  .two-column-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* 70:30 布局 */
  .grid-cols-70-30 {
    grid-template-columns: 70% 30%;
  }
  
  /* 30:70 布局 */
  .grid-cols-30-70 {
    grid-template-columns: 30% 70%;
  }
  
  /* 确保滑块内容和图片在桌面端各占50%宽度 */
  .slider-item .grid-cols-2 > .slider-content,
  .slider-item .grid-cols-2 > .slider-image {
    width: 100%;
  }
}

/* 移除了不適用的Flexbox布局規則，改用grid布局 */

/* 导航样式 - 红色主题 */
.nav-list {
  display: flex;
  gap: 1.8rem; /* 减小间距10% */
  list-style: none;
  padding: 0.9rem 0; /* 减小内边距10% */
  margin: 0;
  width: 100%;
  justify-content: center;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.45rem 0;
}

.nav-link:hover {
  color: #c11d25; /* 红色主题色 */
}

.nav-link.active {
  color: #c11d25;
  border-bottom: 2px solid #c11d25;
}

/* 特殊菜单项样式 - 萬事問燈 */
.nav-link-special {
  background-color: #c11d25;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link-special:hover {
  background-color: #a31520;
  color: white;
}

/* 统计项样式 */
.stat-item {
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #c11d25; /* 红色统计数字 */
  margin-bottom: 0.5rem;
}

/* 首页样式 - 红色主题 */
.home-hero {
  background-image: linear-gradient(rgba(193, 29, 37, 0.5), rgba(193, 29, 37, 0.5)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200&h=600&fit=crop');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 120px 0;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-button {
  margin-top: 1rem;
}

/* 头部样式 - 红色主题 */
.header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
}

/* Logo容器樣式 */
.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  display: inline-block;
}

/* Logo圖片樣式 */
.logo-image {
  max-height: 60px;
  width: auto;
  display: block;
}

/* HKM標誌樣式 */
.hkm-logo .logo-image {
  max-height: 70px;
}

/* 12周年標誌樣式 */
.anniversary-logo .logo-image {
  max-height: 60px;
}

.header-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  width: 100%;
}

/* 使header中的logo和導航在一行顯示 */
.header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* 设置菜单宽度为80% */
.header-content {
  width: 80%;
}

.mobile-menu-button {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #c11d25; /* Red color */
}

/* 页脚样式 - 红色主题 */
.footer {
  background-color: #1e293b;
  color: white;
  padding: 40px 0;
  margin-top: 80px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ef4444;
}

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #f87171;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #f87171;
}

/* 表单样式 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
}

.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
  min-height: 150px;
}

/* 移动响应式样式 */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .header-content {
    width: auto;
  }
  
  .mobile-menu-button {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }
  
  .nav-mobile.active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .text-heading {
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) {
  .mobile-menu-button {
    display: none;
  }
  
  .nav-mobile {
    display: none;
  }
}

/* 活动卡片样式 */
.event-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.event-image {
  height: 200px;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-info {
  padding: 1.5rem;
}

.event-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.event-date {
  color: #6b7280;
  margin-bottom: 1rem;
}

.event-button {
  margin-top: 1rem;
}

/* 视频样式 */
.video-main {
  grid-column: 1 / -1;
}

.video-player {
  height: 400px;
  background-color: #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.play-button {
  margin-top: 1rem;
  padding: 1rem 2rem;
  background-color: #ef4444;
  color: white;
  border-radius: 50%;
  cursor: pointer;
}

.video-item {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
  height: 80px;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-title {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.video-duration {
  color: #6b7280;
}

.video-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.video-card-info {
  padding: 1rem;
}

/* 菜单样式 */
.menu-categories {
  margin-bottom: 2rem;
}

.menu-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-item-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.menu-item-price {
  color: #ef4444;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* 联系表单样式 */
.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-label {
  font-weight: 700;
  margin-right: 0.5rem;
}

/* 滑块区域样式 */
.slider-section {
  background-color: white;
  padding: 20px 0;
  position: relative;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 400px; /* 设置最小高度防止跳動 */
}

.slider-item {
  display: block;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.slider-item.active {
  visibility: visible;
  opacity: 1;
  position: relative;
}

/* 确保滑块内部的网格布局正常工作 */
.slider-item .grid {
  width: 100%;
}

/* 桌面设备双列布局 */
@media (min-width: 768px) {
  /* 确保新闻项目的双列布局 */
  .news-item .grid-cols-2,
  .news-item .md\:grid-cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  
  /* 确保滑块内部的网格布局 */
  .slider-item .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slider-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.slider-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #c11d25;
  line-height: 1.2;
}

.slider-subtitle {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
  line-height: 1.2;
}

.slider-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #666;
  max-width: 100%;
}

.slider-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 100%;
}

.slider-image img {
  display: block;
  margin: 0 auto;
}

.image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Full width banner image */
.image-full-width {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

/* 新闻页面头部横幅 /* 新闻页面样式 */
.news-header-banner {
  width: 100%;
  overflow: hidden;
}

.news-section {
  padding: 60px 0 20px 0;
  background-color: white;
}

/* 新闻项目网格布局 */
.news-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* 桌面设备双列布局 */
@media (min-width: 768px) {
  .news-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  /* 重置order属性，在grid布局中使用DOM顺序 */
  .news-item .news-content,
  .news-item .news-image {
    order: initial;
  }
}

/* 新闻内容区域 */
.news-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  order: 2; /* 移动端内容在下方 */
}

/* 确保新闻内容区域内的按钮不会拉伸到100%宽度，并始终对齐到底部 */
.news-content .button {
  align-self: flex-start;
  width: auto;
  margin-top: auto;
  margin-bottom: 0;
}

/* 移动端新闻内容样式 */
@media (max-width: 767px) {
  .news-content {
    padding: 0;
    width: 100%;
  }
  
  .news-content .button {
    margin-top: 1.5rem;
    margin-bottom: 0;
  }
}

/* 新闻图片区域 */
.news-image {
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 1; /* 移动端图片在上方 */
}

/* 确保图片在容器内正确显示 */
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 旧的新闻滑块样式已删除，使用第1551行开始的新样式 */

/* 桌面设备图片大小限制 */
@media (min-width: 768px) {
  .slider-image .image-responsive,
  .content-image .image-responsive {
    max-width: 100%;
    max-height: 450px;
    width: 100%;
    object-fit: cover;
  }
}

/* 移动设备图片大小限制 */
@media (max-width: 767px) {
  .slider-image .image-responsive,
  .content-image .image-responsive {
    max-width: 100%;
    max-height: 350px;
    width: 100%;
    object-fit: cover;
  }
}

/* 滑块箭头指示器 */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #c11d25;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slider-arrow:hover {
  background-color: #c11d25;
  color: white;
  border-color: #c11d25;
}

.slider-arrow.prev {
  left: -25px;
}

.slider-arrow.next {
  right: -25px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .slider-title {
    font-size: 1.8rem;
  }
  
  .slider-subtitle {
    font-size: 1.8rem;
  }
  
  .slider-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .slider-arrow.prev {
    left: 5px;
  }
  
  .slider-arrow.next {
    right: 5px;
  }
}

/* 新内容部分样式 */
.content-section {
  background-color: white;
  padding: 80px 0;
}

.content-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}

.content-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #c11d25;
}

.content-subtitle {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
}

.content-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

.content-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content-title {
    font-size: 1.8rem;
  }
  
  .content-subtitle {
    font-size: 1.8rem;
  }
  
  .content-paragraph {
    font-size: 1rem;
  }
}

/* 视频占位符样式 */
.video-placeholder-section {
  width: 100%;
  background-color: white;
  padding: 0;
}

.video-placeholder-container {
  height: 300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: #4b5563;
  position: relative;
}

.video-placeholder p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.play-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

/* 视频区域样式 */
.video-section {
  width: 100%;
  padding: 0;
  margin: 0;
  background-color: white;
  position: relative;
}

.video-section .container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  background-color: white;
}

.video-section video {
  display: block;
  width: 100%;
  height: auto;
  outline: none;
  /* 确保视频控件完全可见 */
  /* 防止视频在移动设备上自动进入全屏 */
  position: relative;
  z-index: 1;
  overflow: hidden;
  object-fit: contain;
}









/* 感恩同行区块样式 */
.gratitude-section {
  background-color: #f9fafb;
  padding: 60px 0;
}

/* 故事滑块缩略图导航样式 */
.slider-thumbnail-nav {
  margin-top: 20px;
  padding: 20px 0;
}

.slider-thumbnails-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 0.4rem;
  justify-content: center;
  max-width: 100%;
  overflow-x: auto;
  padding: 6px 0;
}

/* 缩略图按钮样式 */
.slider-thumbnail-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.slider-thumbnail-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.slider-thumbnail-btn.active {
  box-shadow: 0 2px 6px rgba(193, 29, 37, 0.3);
  border: 1px solid #c11d25;
}

/* 缩略图图片样式 */
.thumbnail-image {
  width: 100%;
  height: auto;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.thumbnail-responsive {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.slider-thumbnail-btn:hover .thumbnail-responsive {
  transform: scale(1.05);
}

/* 缩略图标题样式 */
.thumbnail-title {
  padding: 4px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 500;
  color: #333;
  background-color: white;
}

.slider-thumbnail-btn.active .thumbnail-title {
  color: #c11d25;
  font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .slider-thumbnails-container {
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
    gap: 0.4rem;
  }
  
  .thumbnail-image {
    aspect-ratio: 16/9;
  }
  
  .thumbnail-title {
    font-size: 0.6rem;
    padding: 3px;
  }
}

@media (max-width: 480px) {
  .slider-thumbnails-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .thumbnail-image {
    aspect-ratio: 16/9;
  }
}

.gratitude-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.gratitude-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #333;
  line-height: 1.2;
}

.gratitude-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #666;
}

@media (max-width: 768px) {
  .gratitude-title {
    font-size: 2rem;
  }
  
  .gratitude-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
}




/* 70:30分栏滑块样式 */
.split-slider-section {
    background-color: #c11d25; /* 红色背景 */
    padding: 2rem 0 3rem 0; /* 添加顶部内边距和底部内边距 */
    color: white; /* 白色文本 */
    margin-bottom: 0;
}

.split-slider-section .container {
    padding: 0;
}

.split-slider-wrapper {
    position: relative;
    overflow: visible;
    width: 100%;
    display: block;
}

.split-slider-item {
    display: none;
    grid-template-columns: 70% 30%; /* 70:30分栏 - 左侧图片，右侧内容 */
    grid-auto-rows: minmax(auto, auto);
    gap: 2rem;
    animation: fadeIn 0.5s ease-in-out;
    width: 100%;
    margin-bottom: 0;
}

.split-slider-item.active {
    display: grid;
}

.split-slider-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 3rem 0 0;
    align-items: flex-start;
}

.split-slider-content .button {
    align-self: flex-start;
    margin-top: 1rem;
}

.split-slider-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.2;
}

.split-slider-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.split-slider-text {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: white;
    max-width: 100%;
}

.split-slider-image {
    width: 100%;
    height: 0;
    padding-bottom: 62.5%; /* 16:10 aspect ratio */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.1); /* 浅白色背景 */
    position: relative;
    /* 移除圆角 */
}

/* 70:30滑块圆点指示器 */
.split-slider-dots {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.split-slider-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.split-slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.split-slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* 主滑块圆点导航样式 */
.slider-dots {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.slider-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #c11d25;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background-color: rgba(193, 29, 37, 0.2);
}

.slider-dot.active {
    background-color: #c11d25;
    transform: scale(1.2);
}

/* 主滑块圆点导航响应式设计 */
@media (max-width: 768px) {
    .slider-dots {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    .slider-dot {
        width: 12px;
        height: 12px;
    }
}

/* 视频区域移动设备响应式设计 */
@media (max-width: 768px) {
    .video-section {
        overflow: hidden;
    }
    
    .video-section .container {
        padding: 0;
        overflow: hidden;
    }
    
    .video-section video {
    /* 确保视频不会超出容器 */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    max-height: 100vh;
    object-fit: contain;
    /* 移除任何可能导致全屏的样式 */
    cursor: default;
  }
  

}

/* 70:30滑块响应式设计 */
@media (max-width: 768px) {
    .split-slider-item {
        grid-template-columns: 1fr; /* 移动端单列布局 */
        text-align: center;
    }
    
    .split-slider-content {
        padding: 2rem;
    }
    
    .split-slider-main-title {
        font-size: 1.3rem;
    }
    
    .split-slider-subtitle {
        font-size: 1.05rem;
    }
    
    .split-slider-text {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .split-slider-image {
        order: -1; /* 图片在移动端显示在上方 */
    }
    
    .split-slider-dots {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    .split-slider-dot {
        width: 12px;
        height: 12px;
        background-color: transparent;
        border: 2px solid white;
    }
    
    .split-slider-dot:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .split-slider-dot.active {
        background-color: white;
        transform: scale(1.2);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .split-slider-main-title {
        font-size: 1.5rem;
    }
    
    .split-slider-subtitle {
        font-size: 1.1rem;
    }
    
    .split-slider-image {
        height: 350px;
    }
}

/* 最新消息和新闻滑块样式 */
.news-promotion-section {
    background-color: white;
    padding: 2rem 0 60px 0;
    display: block;
    margin-top: 0;
}

/* 这个样式是为了确保section的标题样式正确 */
.news-promotion-section .news-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 3rem;
    color: #c11d25;
    text-align: center;
}

/* 确保每个新闻项目是水平布局且高度一致 */
.promotion-slider-item {
    display: flex;
    flex-direction: column;
    flex: 0 0 300px;
    height: 400px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 最新消息标题样式 */
.news-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 2rem;
    color: #c11d25;
    text-align: center;
}

.promotion-slider-item {
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promotion-slider-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.promotion-thumbnail {
    aspect-ratio: 414 / 270;
    overflow: hidden;
    background-color: #f5f5f5;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.promotion-slider-item:hover .thumbnail-image {
    transform: scale(1.05);
}

.promotion-text {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.promotion-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #c11d25;
    line-height: 1.3;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.promotion-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #666;
    text-align: center;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.promotion-text .button {
    display: block;
    margin: 0 auto;
    width: auto;
    padding: 0.5rem 1rem;
    margin-top: auto;
}

/* 推广滑块容器样式 */
.promotion-slider-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* 推广滑块样式 */
.promotion-slider-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

/* 推广滑块项目样式 */
.promotion-slider-item {
    flex: 0 0 calc(33.333% - 1rem);
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    z-index: 1;
    position: relative;
}

/* 圆点导航样式 */
.promotion-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.promotion-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.promotion-dot.active {
    background-color: #c11d25;
    transform: scale(1.2);
}

/* 弹出层样式 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-overlay.show {
    display: flex;
}

.popup-content {    background-color: white;    border-radius: 8px;    padding: 0;    position: relative;    min-width: 800px;    max-width: 90%;    min-height: 700px;    max-height: 90vh;    overflow: hidden;    display: flex;    flex-direction: column;}

/* 移动设备响应式调整 */
@media (max-width: 768px) {
    .popup-content {
        min-width: 95%;
        max-width: 95%;
        min-height: 80vh;
        max-height: 95vh;
        border-radius: 0;
        padding: 0;
    }
}

/* 萬事問燈容器样式 */
#wanshiwenDengContainer {
    width: 100%;
    flex: 1;
    margin: 0;
    padding: 0;
    display: flex;
}

#wanshiwenDengContainer iframe {
    width: 100%;
    flex: 1;
    border: none;
    margin: 0;
    padding: 0;
}

.chat-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
}

.chat-message.user {
    background-color: #E63946;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.chat-message.bot {
    background-color: #e0e0e0;
    color: #333;
    align-self: flex-start;
}

.chat-input-container {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
}

.chat-button {
    padding: 10px 20px;
    background-color: #E63946;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.chat-button:hover {
    background-color: #c1121f;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 10;
    background: white;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-btn:hover {
    color: #c11d25;
}

.popup-image {
    max-width: 100%;
    max-height: calc(95vh - 200px);
    object-fit: contain;
    border-radius: 4px;
    margin: 1rem 0;
}

.popup-title {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.popup-subtitle {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
    color: #666;
}

.popup-date {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
    color: #999;
}

.popup-detail {
    padding: 1rem;
    line-height: 1.6;
}

.popup-detail p {
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    /* 平板设备：显示2列 */
    .promotion-slider-item {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    /* 移动设备：显示1列 */
    .promotion-slider-wrapper {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .promotion-slider-item {
        flex: 0 0 100%;
        height: auto;
        margin-bottom: 1.5rem;
    }
    
    .promotion-thumbnail {
        aspect-ratio: 414 / 270;
        height: auto;
    }
    
    .promotion-text {
        padding: 1.25rem;
    }
    
    .promotion-title {
        font-size: 1.25rem;
        -webkit-line-clamp: 2;
    }
    
    /* 移除移动设备上的固定宽度滑块限制，改为自适应布局 */
    .promotion-slider-container {
        overflow-x: visible;
    }
}

/* 新底部区域样式 */
.new-footer-section {
    position: relative;
    margin-top: 0;
    overflow: hidden;
    width: 100%;
}

#appStoreLink {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    cursor: pointer;
    z-index: 10;
}

.footer-bg-image {
    width: 100%;
    height: auto;
    display: block;
}

.footer-download-links {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.download-link {
    color: black;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.download-link:hover {
    color: #c11d25;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .new-footer-section {
        margin-top: 0;
    }
}

/* YouTube Overlay样式 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #c11d25;
}

.youtube-container {
    width: 100%;
    padding-top: 56.25%; /* 16:9 宽高比 */
    position: relative;
    margin: 20px 0;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

/* 四格漫畫部分 */
.dengdeng-comic-section {
    padding: 2rem 0 3rem 0;
}

/* 漫畫按鈕網格布局 */
.comic-buttons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .comic-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* 香港街市x半島師奶介紹 */
.peninsula-madam-section {
    padding: 2rem 0 3rem 0;
}

.peninsula-madam-section .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .peninsula-madam-section .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.peninsula-madam-section .text-heading,
.peninsula-madam-section .story-text {
    color: #000000;
}

.peninsula-madam-section .logo-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.peninsula-madam-section .story-content {
    text-align: center;
}

.peninsula-madam-section .logo-image {
    max-width: 350px;
    max-height: none;
    width: auto;
    height: auto;
    display: block;
}

.comic-column-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #c11d25;
}

.comic-button {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #c11d25;
    border-radius: 8px;
    background-color: white;
    color: #c11d25;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.comic-button-icon {
    flex: 0 0 auto;
    width: 250px;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.button-icon {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.comic-button-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.comic-button:hover {
    background-color: #c11d25;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comic-button-number {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.comic-button-title {
    font-size: 1rem;
    line-height: 1.4;
}

.comic-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.comic-image {
    width: 100%;
    height: auto;
    border: 2px solid #c11d25;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    object-fit: contain;
}

.comic-info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .comic-button {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .comic-button-icon {
        width: 150px; /* 移動端適當調整大小 */
    }
    
    .comic-button-number {
        font-size: 1rem;
    }
    
    .comic-button-title {
        font-size: 0.9rem;
    }
}

/* 漫画弹出覆盖层样式 */
.comic-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow: auto;
}

.comic-overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.comic-overlay-close {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.comic-overlay-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* 显示覆盖层动画 */
.comic-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 空间分隔工具类 */
.space-y-4 > * + * {
    margin-top: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .overlay-content {
        width: 95%;
        padding: 15px;
    }
    
    .close-button {
        font-size: 1.2rem;
    }
}