/* 全局样式重置与基础配置 */
:root {
  --primary: #c62828;
  --secondary: #f9a825;
  --dark: #2d2d2d;
  --light: #f8f9fa;
  --gray: #5c636a; /* 加深以达 WCAG AA 正文对比度 ≥4.5:1 */
  --white: #ffffff;
  --footer-bg: #333333;
  --footer-text: #e0e0e0; /* 深底上的正文/链接，≥4.5:1 */
  --footer-muted: #b8b8b8; /* 版权等次要文字，≥4.5:1 on #333/#000 */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--light);
}

/* ========== ADA 无障碍：跳过主内容链接 ========== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 15px;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  z-index: 10000;
  border-radius: 6px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 15px;
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* ========== ADA：焦点可见样式（键盘导航） ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.carousel-btn:focus-visible,
.mobile-menu-btn:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* ========== 移动端：最小触控目标 44x44px（WCAG 2.5.5） ========== */
.carousel-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.indicator {
  width: 12px;
  height: 12px;
  padding: 16px;
  margin: 0 4px;
  box-sizing: content-box;
  border-radius: 50%;
}
.nav-link {
  padding: 12px 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 576px) {
  .nav .nav-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* 防止移动端横向滚动 */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #a71c1c;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--dark);
}

.btn-secondary:hover {
  background: #e69500;
  transform: translateY(-2px);
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary);
}

/* 头部样式 */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--dark);
  color: var(--footer-text);
  padding: 10px 0;
  font-size: 0.9rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info span {
  margin-right: 20px;
}

.contact-info i {
  color: var(--secondary);
  margin-right: 6px;
}

.social-links a {
  margin-left: 15px;
  font-size: 1.2rem;
}

.social-links a:hover {
  color: var(--secondary);
}

.header-main {
  padding: 20px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  margin-right: 15px;
}

.logo-text h1 {
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 700;
}

.logo-text p {
  font-size: 0.9rem;
  color: var(--gray);
}

.nav {
  display: flex;
}

.nav-list {
  display: flex;
}

.nav-item {
  margin-left: 30px;
  position: relative;
}

.nav-link {
  font-weight: 600;
  font-size: 1.1rem;
  padding: 8px 0;
  display: inline-block;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
}


/* 响应式基础配置 */
@media (max-width: 992px) {
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .logo-text h1 {
    font-size: 1.8rem;
  }
  
  .nav-item {
    margin-left: 20px;
  }
}

@media (max-width: 768px) {
  .header-top .container {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-info {
    margin-bottom: 10px;
  }
  
  .header-main .container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  .nav-list {
    justify-content: center;
  }
  
  .nav-item {
    margin: 0 10px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .mobile-menu-btn {
    display: inline-flex;
    position: absolute;
    top: 25px;
    right: 20px;
  }
  
  .nav {
    display: none;
    width: 100%;
    margin-top: 20px;
  }
  
  .nav.active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-item {
    margin: 10px 0;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
}




/* 核心：Home和Business Hours水平排列容器 */
.home-hours-container {
  display: flex;
  align-items: center; /* 垂直居中对齐 */
  justify-content: space-between; /* 两端分布，可改center/space-around */
  gap: 30px; /* 板块间间距 */
  width: 100%;
  max-width: 1200px; /* 限制最大宽度，和contact页一致 */
  margin: 40px auto; /* 上下间距+水平居中 */
  padding: 0 20px;
}

/* Home板块样式优化 */
.home-section {
  flex: 1; /* 等分宽度 */
  background: var(--white);
  border-radius: 10px;
  padding: 40px;
  box-shadow: var(--shadow);
}

/* Business Hours板块样式优化（和contact页样式统一） */
.business-hours-section {
  flex: 1; /* 等分宽度 */
  background: var(--light);
  border-radius: 10px;
  padding: 40px;
  box-shadow: var(--shadow);
}

/* 响应式适配：小屏幕垂直排列 */
@media (max-width: 768px) {
  .home-hours-container {
    flex-direction: column;
    align-items: stretch; /* 拉伸占满宽度 */
  }
  
  .home-section, .business-hours-section {
    width: 100%;
  }
}

/* 补充：Business Hours列表样式（和contact页统一） */
.business-hours-section ul {
  list-style: none;
  padding: 0;
}

.business-hours-section ul li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 1.1rem;
}

.business-hours-section ul li:last-child {
  border-bottom: none;
}

.business-hours-section h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
}

 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        /* Logo + 导航菜单样式 */
       
        .logo img {
            height: 60px; /* 根据实际 Logo 尺寸调整 */
        }
        .nav-menu {
            display: flex;
            gap: 30px;
        }
        .nav-menu a {
            text-decoration: none;
            color: var(--dark);
            font-size: 18px;
            font-weight: 500;
            text-transform: uppercase; /* 英文大写 */
        }
        .nav-menu a:hover {
            color: var(--primary);
        }
        /* 轮播图容器样式 */
        .carousel-container {
            position: relative;
            width: 100%;
            height: 500px; /* 轮播图高度，可调整 */
            overflow: hidden;
        }
        /* 轮播图片容器 */
        .carousel-slides {
            display: flex;
            width: 300%; /* 3张图 = 300% */
            height: 100%;
            transition: transform 0.5s ease;
        }
        /* 单张轮播图样式 */
        .carousel-slide {
            width: 100%;
            height: 100%;
        }
        .carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 保持图片比例，填充容器 */
        }
        /* 轮播控制按钮 */
        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background-color: rgba(0,0,0,0.65);
            color: #fff;
            border: none;
            font-size: 24px;
            cursor: pointer;
            z-index: 10;
        }
        .prev-btn {
            left: 20px;
        }
        .next-btn {
            right: 20px;
        }
        /* 轮播指示器（小圆点） */
        .carousel-indicators {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
        }
        .indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(255,255,255,0.85);
            cursor: pointer;
        }
        .indicator.active {
            background-color: var(--primary);
        }
        /* 响应式适配 */
        @media (max-width: 768px) {
            .carousel-container {
                height: 300px;
            }
            .header-top {
                flex-direction: column;
                gap: 10px;
                padding: 10px;
            }
            .nav-menu {
                gap: 15px;
            }
        }
        /* ========== 新增/修改：轮播图相关样式 ========== */
.carousel-container {
  position: relative; /* 作为子元素绝对定位的容器 */
  width: 100%;
  overflow: hidden; /* 保持轮播容器原有特性 */
}
.carousel-slide {
  position: relative; /* 为轮播图上的文字层做定位容器 */
}
.carousel-slide img {
  width: 100%; /* 确保图片铺满轮播容器 */
  height: auto; /* 保持图片比例 */
  filter: brightness(0.7); /* 图片变暗（70%亮度，可调整0.1-1） */
}
/* 轮播图居中文字层 - 深色遮罩保证 WCAG 对比度（白字 on 深底） */
.carousel-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #ffffff;
  width: auto;
  max-width: calc(100% - 40px);
  padding: 1.25rem 2rem;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
/* Logo 主标题 - 白色 on 深色背景 ≥4.5:1 */
.carousel-text-overlay .logo-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
/* 副标题 */
.carousel-text-overlay .logo-subtitle {
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
/* 移动端适配文字大小 */
@media (max-width: 768px) {
  .carousel-text-overlay .logo-title {
    font-size: 2.5rem;
  }
  .carousel-text-overlay .logo-subtitle {
    font-size: 1rem;
  }
}
@media (max-width: 576px) {
  .carousel-text-overlay .logo-title {
    font-size: 2rem;
  }
  .carousel-text-overlay .logo-subtitle {
    font-size: 0.9rem;
  }
}
/* ========== 底部样式（WCAG AA 对比度） ========== */
    .footer {
      background: var(--footer-bg);
      color: var(--footer-text);
      padding: 60px 0 20px;
      width: 100%;
      height: 100%;
    }
    .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 40px;
      margin-bottom: 40px;
    }
    .footer-hours { order: 1; }
    .footer-links { order: 2; }
    .footer-contact { order: 3; }
    .footer-social { order: 4; }
    .footer-column h3 {
      font-size: 1.4rem;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 2px solid var(--primary);
    }
    .footer-column ul {
      list-style: none;
    }
    .footer-column ul li {
      margin-bottom: 10px;
      font-size: 1.1rem;
    }
    .footer-column a {
      color: var(--footer-text);
      text-decoration: none;
      transition: color 0.3s;
    }
    .footer-column a:hover {
      color: #f5a3a3;
    }
    .footer-hours ul li {
      display: flex;
      justify-content: space-between;
      padding: 5px 0;
      border-bottom: 1px solid #555;
    }
    .footer-hours ul li:last-child {
      border-bottom: none;
    }
    .footer-bottom {
      text-align: center;
      padding-top: 20px;
      border-top: 1px solid #555;
      font-size: 0.9rem;
      color: var(--footer-muted);
    }


