/* ============================================
   Bootstrap 5.3.3 自定义主题 - 秦和食品
   ============================================ */

/* 秦和品牌色 */
:root,
[data-bs-theme="qinhe"] {
  --qinhe-red: #C41E24;
  --qinhe-red-dark: #9A181D;
  --qinhe-red-light: #E85D63;
  --qinhe-gold: #C9A96E;
  --qinhe-gold-dark: #A0824A;
  --qinhe-cream: #FAF8F5;

  /* 轮播渐变（品牌色系） */
  --qinhe-gradient-brand: linear-gradient(135deg, #C41E24 0%, #8B0000 100%);
  --qinhe-gradient-gold: linear-gradient(135deg, #A0824A 0%, #6B4F2A 100%);
  --qinhe-gradient-heritage: linear-gradient(135deg, #9A181D 0%, #4A0A0D 100%);

  /* 覆盖Bootstrap主色 */
  --bs-primary: #C41E24;
  --bs-primary-rgb: 196, 30, 36;
  --bs-primary-text-emphasis: #9A181D;
  --bs-primary-bg-subtle: #FDE8E9;
  --bs-primary-border-subtle: #F0B2B5;

  /* 次要色 - 金色 */
  --bs-secondary: #C9A96E;
  --bs-secondary-rgb: 201, 169, 110;

  /* 页面背景 */
  --bs-body-color: #333;
  --bs-body-color-rgb: 51, 51, 51;
  --bs-body-bg: #FAF8F5;
  --bs-body-bg-rgb: 250, 248, 245;

  /* 链接色 */
  --bs-link-color: #C41E24;
  --bs-link-hover-color: #9A181D;
  --bs-link-color-rgb: 196, 30, 36;
  --bs-link-hover-color-rgb: 154, 24, 29;

  /* 边框和强调色 */
  --bs-border-color: #e0dcd5;
  --bs-emphasis-color: #1a1a1a;
  --bs-secondary-color: rgba(51, 51, 51, 0.75);
  --bs-secondary-bg: #f0ede8;
  --bs-tertiary-bg: #e8e4dd;
  --bs-heading-color: #1a1a1a;

  /* 字体 */
  --bs-font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;

  /* 布局 */
  --navbar-height: 72px;
  --section-padding-y: 5rem;
  --section-padding-y-md: 3.5rem;
  --section-padding-y-sm: 2.5rem;
}

/* 暗色主题：保留秦和品牌调性 */
[data-bs-theme="dark"] {
  --bs-primary: #E85D63;
  --bs-primary-rgb: 232, 93, 99;
  --bs-primary-text-emphasis: #F0B2B5;
  --bs-primary-bg-subtle: #4A0A0D;
  --bs-primary-border-subtle: #9A181D;
  --bs-secondary: #C9A96E;
  --bs-link-color: #E85D63;
  --bs-link-hover-color: #F0B2B5;
  --bs-body-bg: #1f1a18;
  --bs-body-color: #e8e4e0;
  --bs-body-bg-rgb: 31, 26, 24;
  --bs-border-color: #3d3530;
  --bs-secondary-bg: #2a2420;
  --bs-tertiary-bg: #352e29;
  --bs-heading-color: #f5f0eb;
  --bs-secondary-color: rgba(232, 228, 224, 0.72);
}

/* 浅色主题：白底 + 秦和红主色 */
[data-bs-theme="light"] {
  --bs-primary: #C41E24;
  --bs-primary-rgb: 196, 30, 36;
  --bs-primary-text-emphasis: #9A181D;
  --bs-secondary: #C9A96E;
  --bs-link-color: #C41E24;
  --bs-link-hover-color: #9A181D;
  --bs-body-bg: #ffffff;
  --bs-body-color: #333333;
  --bs-border-color: #e8e4dd;
  --bs-secondary-bg: #f8f6f3;
  --bs-tertiary-bg: #f0ede8;
}

/* ===== 全局字体大小统一规范 ===== */

html {
  font-size: 16px; /* 基准字号 */
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--bs-font-sans-serif);
  font-size: 1rem; /* 16px */
  line-height: 1.6;
  color: var(--bs-body-color);
  padding-top: var(--navbar-height);
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6,
.section-title__zh {
  font-weight: 700;
  line-height: 1.3;
  color: var(--bs-heading-color);
}

h1 { font-size: 2.25rem; }  /* 36px */
h2 { font-size: 1.75rem; }  /* 28px */
h3 { font-size: 1.375rem; } /* 22px */
h4 { font-size: 1.125rem; } /* 18px */
h5 { font-size: 1rem; }     /* 16px */
h6 { font-size: 0.9375rem;} /* 15px */

/* 段落和文本 */
p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

small, .small {
  font-size: 0.875rem; /* 14px */
}

/* 响应式：平板端 */
@media (max-width: 991.98px) {
  html {
    font-size: 15.5px;
  }

  h1 { font-size: 2rem; }     /* 32px */
  h2 { font-size: 1.625rem; } /* 26px */
  h3 { font-size: 1.25rem; }  /* 20px */
}

/* 响应式：手机端 */
@media (max-width: 767.98px) {
  html {
    font-size: 15px;
  }

  h1 { font-size: 1.625rem; } /* 26px */
  h2 { font-size: 1.375rem; } /* 22px */
  h3 { font-size: 1.125rem; } /* 18px */
  h4 { font-size: 1rem; }     /* 16px */

  p {
    font-size: 0.9375rem; /* 15px */
    line-height: 1.7;
  }
}

/* 响应式：小屏手机（保持可读性，不低于 15px） */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
}

/* 深色背景区域内的标题不受全局深色字影响 */
.page-banner h1,
.page-banner p,
.page-banner .lead,
.hero-slide h1,
.hero-slide p,
.hero-slide .lead,
.hero-slide small,
.hero-slide .h2,
.hero-slide .h3 {
  color: #fff;
}
/* ============================================
   全局组件样式 - 秦和食品门户网站
   ============================================ */

.page-banner__subtitle {
  font-size: 1rem;
  opacity: 0.88;
  margin-bottom: 0;
  font-family: var(--bs-font-sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===== 页面主内容区间距（内页统一） ===== */
.page-content {
  padding-top: var(--section-padding-y-md);
  padding-bottom: var(--section-padding-y-md);
}

.page-content .row > [class*="col-"] {
  min-width: 0;
}

/* ===== 富文本正文（CMS 编辑器输出，防止横向溢出） ===== */
.article_container {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article_container img,
.article_container .art-body-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.article_container img + img {
  margin-top: 0.75rem;
}

.article_container video,
.article_container iframe,
.article_container embed {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 1rem auto;
  border: 0;
}

.article_container table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article_container pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== 导航栏 ===== */
.navbar-qinhe {
  background-color: var(--bs-body-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  padding: 0.75rem 0;
  min-height: var(--navbar-height);
}

.navbar-qinhe .navbar-toggler {
  border-color: var(--bs-border-color);
  padding: 0.4rem 0.55rem;
}

.navbar-qinhe .navbar-toggler:focus,
.navbar-qinhe .navbar-toggler:focus-visible,
.navbar-qinhe .navbar-toggler:active {
  box-shadow: none;
  outline: none;
  border-color: var(--bs-border-color);
}

.navbar-qinhe .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bs-body-color) !important;
}

.navbar-qinhe .navbar-brand img {
  height: 45px;
}

.navbar-qinhe .brand-text .fw-bold {
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--bs-body-color);
}

.navbar-qinhe .brand-text small {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bs-secondary);
}

.navbar-qinhe .nav-link {
  color: var(--bs-body-color);
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: color 0.3s;
  position: relative;
}

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

/* 桌面端：底部短横线指示当前页 */
@media (min-width: 992px) {
  .navbar-qinhe .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 2px;
    background: var(--bs-primary);
    border-radius: 1px;
  }
}

/* 手机端：折叠菜单 */
@media (max-width: 991.98px) {
  .navbar-qinhe .navbar-collapse {
    margin-top: 0.5rem;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--bs-border-color);
  }

  .navbar-qinhe .navbar-nav {
    width: 100%;
    padding: 0.25rem 0;
    gap: 0.25rem;
  }

  .navbar-qinhe .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
  }

  .navbar-qinhe .nav-link.active {
    background: var(--bs-primary-bg-subtle);
    font-weight: 600;
  }

  .navbar-qinhe .nav-link.active::after {
    display: none;
  }
}

/* 桌面端：加大栏目间距 */
@media (min-width: 992px) {
  .navbar-qinhe .navbar-nav {
    gap: 0.25rem;
  }

  .navbar-qinhe .nav-link {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    letter-spacing: 0.02em;
  }
}

@media (min-width: 1200px) {
  .navbar-qinhe .nav-link {
    padding: 0.75rem 2rem;
  }
}

/* 区域标题（中英双语） */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title__en {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bs-secondary);
  margin-bottom: 0.5rem;
  font-family: var(--bs-font-sans-serif);
}

.section-title__zh {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-heading-color);
  margin-bottom: 0.75rem;
}

.section-title__desc {
  font-size: 0.95rem;
  color: var(--bs-secondary-color);
}

.section-title__divider {
  width: 60px;
  height: 3px;
  background: var(--bs-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-title.text-start {
  text-align: left;
}

.section-title.text-start .section-title__divider {
  margin-left: 0;
  margin-right: auto;
}

/* ===== 页脚 ===== */
.footer-qinhe {
  background: #1a1a1a !important;
  color: #e0e0e0;
  margin-top: auto;
}

.footer-qinhe .footer-brand {
  line-height: 1.2;
  gap: 0.75rem !important;
}

.footer-qinhe .footer-brand img {
  flex-shrink: 0;
  border-radius: 8px;
}

.footer-qinhe .footer-brand .fw-bold {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.3;
}

.footer-qinhe .footer-brand small {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  display: block;
  margin-top: 2px;
}

.footer-qinhe .footer-brand + p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #999;
}

.footer-qinhe .footer-contact {
  font-size: 0.9rem;
  color: #bbb;
}

.footer-qinhe .footer-contact i {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  color: var(--bs-primary);
}

/* 页脚栏目标题 */
.footer-qinhe .footer-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 1rem !important;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-qinhe .footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--bs-primary);
  border-radius: 1px;
}

/* 页脚链接列表 */
.footer-qinhe .footer-links li {
  margin-bottom: 0.5rem;
}

.footer-qinhe .footer-links a {
  font-size: 0.9rem;
  color: #bbb;
  transition: color 0.3s, padding-left 0.3s;
  text-decoration: none;
}

.footer-qinhe .footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

/* 页脚平台链接 */
.footer-qinhe .platform-link {
  font-size: 0.9rem;
  transition: transform 0.3s, box-shadow 0.3s;
  color: #e0e0e0 !important;
  text-decoration: none;
}

.footer-qinhe .platform-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.footer-qinhe .platform-link i {
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-qinhe .platform-link .fw-medium {
  font-size: 0.9rem;
  color: #e0e0e0;
}

.footer-qinhe .platform-link small {
  font-size: 0.75rem;
  color: #999;
}

.footer-qinhe .platform-link .text-muted {
  color: #999 !important;
}

/* 页脚版权 */
.footer-qinhe hr {
  border-color: #333;
  border-width: 1px;
  opacity: 1;
}

.footer-qinhe .text-muted {
  color: #888 !important;
  font-size: 0.85rem;
}

.footer-qinhe p.text-muted {
  color: #999 !important;
  font-size: 0.9rem;
}

.footer-qinhe .footer-icp-link {
  transition: color 0.2s ease;
}

.footer-qinhe .footer-icp-link:hover {
  color: var(--bs-primary) !important;
  text-decoration: underline !important;
}

/* ===== 主题切换器 ===== */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.theme-switcher .btn {
  padding: 0.375rem 0.625rem;
  font-size: 0.875rem;
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.theme-switcher .btn:hover,
.theme-switcher .btn.active {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bs-primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--bs-primary-text-emphasis);
  transform: translateY(-3px);
}

/* ===== 卡片标题两行省略 ===== */
.card-title-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* 统一的面包屑分隔符 */
.breadcrumb {
  --bs-breadcrumb-divider: '›';
  --bs-breadcrumb-font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  float: left;
  padding-right: 0.5rem;
  color: inherit;
  content: var(--bs-breadcrumb-divider);
}

.breadcrumb-item a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.breadcrumb-item a:hover {
  opacity: 0.7;
  color: inherit;
}

/* 横幅下方面包屑条（内页统一） */
.page-breadcrumb {
  padding: 0.625rem 0;
}

.page-breadcrumb .breadcrumb {
  --bs-breadcrumb-divider: '>';
  --bs-breadcrumb-font-size: 0.8125rem;
  margin-bottom: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.page-breadcrumb .breadcrumb-item a {
  color: var(--bs-secondary-color);
  opacity: 1;
}

.page-breadcrumb .breadcrumb-item a:hover {
  color: var(--bs-primary);
  opacity: 1;
}

.page-breadcrumb .breadcrumb-item.active {
  color: var(--bs-body-color);
  font-weight: 500;
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  float: none;
  padding-right: 0.375rem;
  padding-left: 0.375rem;
  color: var(--bs-border-color);
  font-weight: 400;
}

.page-banner + .page-breadcrumb + .page-content {
  padding-top: 2rem;
}

/* page-banner 内的面包屑（深色背景，浅色文字） */
.page-banner .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
  opacity: 0.9;
}

.page-banner .breadcrumb-item a,
.page-banner .breadcrumb-item {
  color: rgba(255, 255, 255, 0.85);
}

.page-banner .breadcrumb-item a:hover {
  color: rgba(255, 255, 255, 1);
}

.page-banner .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.55);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* 浅色/白色背景下的面包屑（产品详情页内联使用） */
.breadcrumb-light {
  --bs-breadcrumb-divider-color: var(--bs-border-color);
}

.breadcrumb-light .breadcrumb-item a,
.breadcrumb-light .breadcrumb-item {
  color: var(--bs-body-color);
}

.breadcrumb-light .breadcrumb-item a:hover {
  color: var(--bs-primary);
}

.breadcrumb-light .breadcrumb-item.active {
  color: var(--bs-secondary-color);
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
  color: var(--bs-border-color);
}

/* ===== 减少动画（无障碍） ===== */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .product-card,
  .platform-card,
  .store-card,
  .news-item,
  a.product-card:hover,
  .product-card:hover .product-img-wrapper img {
    transition: none !important;
    transform: none !important;
  }
}

/* ===== 统计卡片 ===== */
.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: var(--bs-body-bg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.stat-card__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bs-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card__label {
  color: var(--bs-secondary-color);
  font-size: 0.9375rem;
}

/* ===== Banner区域（全局统一，唯一权威定义） ===== */
.page-banner {
  background-color: var(--bs-primary-text-emphasis);
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../assets/images/banner-products.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  text-align: center;
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 0;
}

.page-banner h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-banner p {
  font-size: 1.125rem;
  opacity: 0.85;
  margin-bottom: 0;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-banner__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===== AOS 滚动触发动画 ===== */

/* 初始状态：隐藏 */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-timing-function: ease;
  will-change: transform, opacity;
}

/* 动画完成状态 */
[data-aos].aos-animate {
  opacity: 1;
  transform: translateZ(0);
}

/* fade-up 动画 */
[data-aos="fade-up"] {
  transform: translate3d(0, 40px, 0);
}

[data-aos="fade-up"].aos-animate {
  transform: translate3d(0, 0, 0);
}

/* fade-down 动画 */
[data-aos="fade-down"] {
  transform: translate3d(0, -40px, 0);
}

[data-aos="fade-down"].aos-animate {
  transform: translate3d(0, 0, 0);
}

/* fade-left / fade-right：与 fade-up 相同，避免横向位移导致移动端溢出 */
[data-aos="fade-left"],
[data-aos="fade-right"] {
  transform: translate3d(0, 40px, 0);
}

[data-aos="fade-left"].aos-animate,
[data-aos="fade-right"].aos-animate {
  transform: translate3d(0, 0, 0);
}

/* zoom-in 动画 */
[data-aos="zoom-in"] {
  transform: scale(0.85);
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
}

/* 动画持续时间 */
[data-aos][data-aos-duration="400"] { transition-duration: 400ms; }
[data-aos][data-aos-duration="600"] { transition-duration: 600ms; }
[data-aos][data-aos-duration="800"] { transition-duration: 800ms; }
[data-aos][data-aos-duration="1000"] { transition-duration: 1000ms; }

/* 默认持续时间 */
[data-aos] { transition-duration: 600ms; }

/* 延迟 */
[data-aos][data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos][data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos][data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos][data-aos-delay="400"] { transition-delay: 400ms; }
[data-aos][data-aos-delay="500"] { transition-delay: 500ms; }
[data-aos][data-aos-delay="600"] { transition-delay: 600ms; }

/* ===== 响应式调整 ===== */

/* 平板端 */
@media (max-width: 991.98px) {
  .section-title__zh {
    font-size: 1.75rem;
  }

  .page-banner__title {
    font-size: 2rem;
  }

  .stat-card__number {
    font-size: 2.25rem;
  }
}

/* 手机端 */
@media (max-width: 767.98px) {
  .section-title {
    margin-bottom: 2rem;
  }

  .section-title__zh {
    font-size: 1.5rem;
  }

  .page-banner + .page-breadcrumb + .page-content {
    padding-top: 1.5rem;
  }

  .page-banner {
    min-height: 11rem;
    padding: 2.5rem 0;
  }

  .page-content {
    padding-top: var(--section-padding-y-sm);
    padding-bottom: var(--section-padding-y-sm);
  }

  .page-banner h1 {
    font-size: 1.625rem;
  }

  .page-banner p {
    font-size: 1rem;
  }

  .page-banner__title {
    font-size: 1.75rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-card__number {
    font-size: 2rem;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }

  /* 页脚：Bootstrap 栅格已处理列宽，仅保留间距微调 */
  .footer-qinhe {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
  }

  .footer-qinhe .footer-title {
    font-size: 0.95rem;
  }

  .footer-qinhe .footer-links a {
    font-size: 0.85rem;
  }

  .footer-qinhe .platform-link .fw-medium {
    font-size: 0.85rem;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .section-title__zh {
    font-size: 1.375rem;
  }

  .page-banner__title {
    font-size: 1.5rem;
  }
}

/* ===== 地图位置组件 ===== */
.location-map {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  height: 100%;
}

.location-map__header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.location-map__body {
  position: relative;
  background: var(--bs-secondary-bg);
}

.location-map__frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.location-map__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--bs-tertiary-bg);
  border-top: 1px solid var(--bs-border-color);
}

.location-map__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--bs-primary);
  text-decoration: none;
}

.location-map__link:hover {
  color: var(--bs-primary-text-emphasis);
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .location-map__frame {
    height: 260px;
  }
}
/* ============================================
   全局卡片组件 - 秦和食品（全站唯一来源）
   ============================================ */

/* ===== 产品卡片 ===== */
.product-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  background: var(--bs-body-bg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

a.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(var(--bs-primary-rgb), 0.3);
  color: inherit;
}

a.product-card:hover .card-title {
  color: var(--bs-primary);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.03);
}

.product-img-wrapper {
  aspect-ratio: 4 / 3;
  background: var(--bs-secondary-bg);
  overflow: hidden;
  flex-shrink: 0;
  border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0;
}

.product-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card .card-body {
  padding: 0.875rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.product-card .card-title {
  font-size: 0.9375rem;
  margin: 0;
  transition: color 0.2s ease;
}

.product-card__action {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
  border-radius: 0.375rem;
  background: var(--bs-primary);
  color: #fff;
  transition: background-color 0.2s ease;
}

a.product-card:hover .product-card__action {
  background: var(--bs-primary-text-emphasis);
}

/* ===== 门店卡片（首页简版） ===== */
.store-card {
  border-radius: 1rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.store-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(var(--bs-primary-rgb), 0.2);
}

.store-card .store-img {
  aspect-ratio: 4 / 3;
  background: var(--bs-secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0;
  overflow: hidden;
}

a.store-card {
  text-decoration: none;
  color: inherit;
}

a.store-card:hover {
  color: inherit;
}

.store-card__action {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
  border-radius: 0.375rem;
  background: var(--bs-primary);
  color: #fff;
  transition: background-color 0.2s ease;
}

a.store-card:hover .store-card__action {
  background: var(--bs-primary-text-emphasis);
}

/* ===== 平台卡片 ===== */
.platform-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
  min-height: 5.5rem;
}

.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(var(--bs-primary-rgb), 0.2);
  color: inherit;
}

.platform-card .platform-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.platform-card .fw-bold {
  font-size: 0.95rem;
}

.platform-card small {
  font-size: 0.8125rem;
}
