/* ==========================================================================
   DALY BMS — 页脚（实为 CONTACT DALY 联系区）
   ⚠️ 源站没有传统页脚，每页最后一块就是这个联系区。
   实测值：section padding 100.8px 0；bg contactbg.jpg cover；
          h2 36px/500/#000；左栏 450px；右栏 650px；正文 14px #333
   ========================================================================== */

.index_connection_container {
  position: relative;
  padding: 100px 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--daly-text);
}

/* 源站 .index_connection_container .index_hd：
   margin-bottom:70px; padding-bottom:25px; border-bottom:1px solid #aab6c6
   标题本身沿用 .hd_title 的 42px/500/uppercase */
/* 源站实测：.index_hd 高 57px、padding-bottom 20px、margin-bottom 45px。
   （我原先 margin-bottom 70 + padding 25 偏大，是导致整屏放不下的原因之一） */
.index_connection_container .daly-sec-title {
  margin: 0 0 45px;
  padding-bottom: 20px;
  border-bottom: 1px solid #aab6c6;
  color: #000;
  font-weight: 500;
  font-size: 42px;
  line-height: 1;
  text-transform: uppercase;
}

.connection_wrap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.connection_left {
  flex: 0 0 450px;
  max-width: 450px;
}

.connection_right {
  flex: 0 0 650px;
  max-width: 650px;
}

/* ---------- 左栏信息 ---------- */
.connection_info {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.connection_info li {
  margin-bottom: 14px;
  color: var(--daly-text);
  font-size: 14px;
  line-height: 1.7;
}

.connection_info li span {
  display: inline-block;
  min-width: 72px;
  font-weight: 500;
}

.connection_info a {
  color: var(--daly-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.connection_info a:hover {
  color: var(--daly-red);
}

.privacy_link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--daly-text);
  font-size: 14px;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.privacy_link:hover {
  color: var(--daly-red);
}

/* ---------- 社交图标 ---------- */
.foot_sns {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.foot_sns li a {
  display: block;
  line-height: 0;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.foot_sns li a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.foot_sns img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* ---------- 右栏表单 ---------- */
.send_title {
  margin: 0 0 20px;
  color: #000;
  font-size: 20px;
  font-weight: 500;
}

/* 源站实测：input 高 41px（padding 9px 15px / 14px 字号），textarea 高 153px。
   我原先 padding 12px 18px + textarea 236px，整块高出近 200px，
   在 ≤950px 视口下把 Send 按钮挤出屏幕且滚不到（全屏滚动模式 body overflow:hidden）。 */
.connection_right .wpcf7-form input[type="text"],
.connection_right .wpcf7-form input[type="email"],
.connection_right .wpcf7-form input[type="tel"],
.connection_right .wpcf7-form textarea {
  margin-bottom: 10px;
  padding: 9px 15px;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--daly-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.connection_right .wpcf7-form textarea {
  border-radius: 14px;
  height: 153px;
  min-height: 0;
  resize: vertical;
}

/* CF7 的 <p> 会额外撑高，压掉多余外边距 */
.connection_right .wpcf7-form p {
  margin: 0;
}

.connection_right .wpcf7-form input:focus,
.connection_right .wpcf7-form textarea:focus {
  border-color: var(--daly-red);
  outline: none;
}

.connection_right .wpcf7-form input[type="submit"] {
  padding: 12px 46px;
  width: auto;
  border: 0;
  border-radius: 22px;
  background: var(--daly-red);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.connection_right .wpcf7-form input[type="submit"]:hover {
  background: var(--daly-red-dark);
}

/* ---------- 版权条 ----------
   源站实测：.foot_bar .layout{padding:25px 0;border-top:1px solid #fff}
            .foot_bar .copyright{color:#a8a8a8;font-size:14px;line-height:1.5}
   （早前我加的 #f5f5f5 灰底 + 居中是自造的，源站没有底色、左对齐） */
.foot_bar .layout {
  padding: 25px 0;
  border-top: 1px solid #fff;
}

.foot_bar .copyright,
.foot_bar .copyright a {
  color: #a8a8a8;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .foot_bar { text-align: left; }
  .foot_bar .copyright { display: block; float: none; }
}

/* ---------- 右侧固定 SEND EMAIL ----------
   源站 .aside_inuiry{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:99}
   按钮样式复用 .dali-more 那套（#c80000 / 190px / radius 24） */
/* 源站 .aside_inuiry{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:99}
   ⚠️ 源站这个按钮和首页第 3 屏的视频播放按钮**确实重叠**（实测 aside 400-500 vs
   video 458-617），源站那里点到的是它的 livechat iframe。我们不复刻 livechat，
   所以把它下移到 68%，避开播放按钮，两个按钮都能点到。 */
.aside_inuiry {
  position: fixed;
  right: 0;
  top: 68%;
  z-index: 99;
  transform: translateY(-50%);
}

.aside_inuiry button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  padding: 10px 0;
  width: 190px;
  border: 1px solid var(--daly-red-dark);
  border-radius: 24px;
  background-color: var(--daly-red-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s ease-in-out;
}

.aside_inuiry button:hover {
  border-color: #aaa;
  background-color: transparent;
  color: #aaa;
}

@media (max-width: 1080px) {
  .aside_inuiry button {
    padding: 10px 0;
    width: 150px;
    font-size: 12px;
  }
}

body.daly-inquiry-open { overflow: hidden; }
.daly-inquiry-modal { position: fixed; z-index: 1000; inset: 0; display: none; padding: 12px; }
.daly-inquiry-modal.is-open { display: grid; place-items: center; }
.daly-inquiry-modal__backdrop { position: absolute; inset: 0; background: rgba(5, 19, 39, .64); }
.daly-inquiry-modal__dialog { position: relative; width: min(620px, 100%); max-height: calc(100dvh - 24px); overflow: auto; padding: 32px 48px 24px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .32); }
.daly-inquiry-modal__close { position: absolute; top: 14px; right: 18px; border: 0; padding: 0; background: transparent; color: #17233a; font-size: 34px; line-height: 1; cursor: pointer; }
.daly-inquiry-modal__eyebrow { margin: 0 0 7px; color: var(--daly-red-dark); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.daly-inquiry-modal h2 { margin: 0; color: #11213d; font-size: 30px; line-height: 1.15; }
.daly-inquiry-modal__intro { margin: 10px 0 18px; color: #667085; line-height: 1.5; }
.daly-inquiry-modal .wpcf7 p { margin: 0 0 10px; }
.daly-inquiry-modal .wpcf7 input:not([type="submit"]), .daly-inquiry-modal .wpcf7 textarea { box-sizing: border-box; width: 100%; border: 1px solid #d4d9e0; border-radius: 0; padding: 12px 14px; color: #17233a; font: inherit; }
.daly-inquiry-modal .wpcf7 textarea { min-height: 82px; resize: vertical; }
.daly-inquiry-modal .wpcf7 input[type="submit"] { width: 100%; border: 1px solid var(--daly-red-dark); border-radius: 0; padding: 13px 18px; background: var(--daly-red-dark); color: #fff; font-weight: 600; text-transform: uppercase; cursor: pointer; }
@media (max-width: 600px) { .daly-inquiry-modal { padding: 8px; } .daly-inquiry-modal__dialog { max-height: calc(100dvh - 16px); padding: 36px 22px 20px; } .daly-inquiry-modal h2 { font-size: 24px; } }

/* ---------- 回到顶部 ---------- */
.gotop {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 90;
  display: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gotop.is-visible {
  display: block;
}

.gotop::after {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.gotop:hover {
  background: var(--daly-red);
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1280px) {
  .connection_left { flex: 0 0 42%; max-width: 42%; }
  .connection_right { flex: 0 0 54%; max-width: 54%; }
}

@media (max-width: 1080px) {
  .index_connection_container { padding: 60px 0; }

  .index_connection_container .daly-sec-title {
    margin-bottom: 34px;
    padding-bottom: 16px;
    font-size: 28px;
  }

  .connection_wrap {
    flex-direction: column;
    gap: 34px;
  }

  .connection_left,
  .connection_right {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .gotop { right: 12px; bottom: 76px; }
}
