/* ==========================================================================
   德聪官网 —— 补充样式
   说明：主体样式来自 assets/css/site.css（原站编译产物，保持 100% 一致）。
        本文件仅补齐原站由 React 运行时提供、静态化后缺失的部分。
   ========================================================================== */

/* 1. 隐藏属性（原站由 Radix 控制显示，编译产物中没有该规则） */
[hidden] { display: none !important; }

/* 2. 首页轮播：非活动幻灯片禁用点击 */
.hero-slide { transition: opacity .7s ease-in-out; }

/* 3. FAQ 手风琴展开/收起的高度过渡 */
.acc-panel { overflow: hidden; transition: height .2s ease; }

/* 4. 视频弹窗 */
.ds-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .72);
}
.ds-modal.is-open { display: flex; }
.ds-modal__inner { position: relative; width: 100%; max-width: 880px; }
.ds-modal__close {
  position: absolute; top: -40px; right: 0;
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; cursor: pointer;
  color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1;
}
.ds-modal__close:hover { color: #fff; }
.ds-modal__box { background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.ds-modal__video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.ds-modal__video video { width: 100%; height: 100%; display: block; }
.ds-modal__video .ds-modal__empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .72); font-size: 14px; text-align: center; padding: 24px;
}
.ds-modal__title { color: rgba(255, 255, 255, .9); font-size: 14px; margin-top: 12px; text-align: center; }

/* 5. 移动端抽屉菜单 */
.ds-drawer { display: none; position: fixed; inset: 0; z-index: 90; }
.ds-drawer.is-open { display: block; }
.ds-drawer__mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.ds-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px;
  background: #fff; padding: 20px; overflow-y: auto;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .12);
  animation: ds-drawer-in .22s ease-out;
}
@keyframes ds-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.ds-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ds-drawer__title { font-weight: 700; color: #1E88E5; }
.ds-drawer__close { background: none; border: 0; cursor: pointer; color: #6B7280; display: inline-flex; }
.ds-drawer__links { display: flex; flex-direction: column; }
.ds-drawer__links a {
  padding: 12px 4px; border-bottom: 1px solid #EEF2F7;
  color: #374151; font-size: 15px;
}
.ds-drawer__links a:hover { color: #1E88E5; }
.ds-drawer__foot { margin-top: 18px; color: #6B7280; font-size: 13px; line-height: 1.9; }

/* 6. 联系页地图占位（原站该区域为空容器） */
.ds-map {
  width: 100%; height: 100%; min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center; background: #F5F8FC;
}
.ds-map__addr { font-weight: 500; color: #1F2937; }
.ds-map__hint { font-size: 13px; color: #6B7280; }
.ds-map__btn {
  display: inline-block; margin-top: 4px; padding: 9px 20px;
  background: #1E88E5; color: #fff; border-radius: 8px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background .15s;
}
.ds-map__btn:hover { background: #1B7AD0; }
/* Leaflet 自定义标记（品牌 D 形图钉，清除默认样式） */
.desson-marker { background: none; border: none; }
.leaflet-container { font-family: inherit; }

/* 7. 404 */
.ds-404 {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #F5F8FC; font-family: inherit;
}
.ds-404__inner { text-align: center; }
.ds-404__code { font-size: 64px; font-weight: 700; color: #1E88E5; line-height: 1; margin-bottom: 16px; }
.ds-404__text { color: #6B7280; margin-bottom: 24px; }

/* 8. 图片加载失败时的兜底底色 */
img { background-color: transparent; }
