/* ==============================================================
   汇策检测 - 全新重构的页脚样式（5列布局）
   文件位置: /wp-content/themes/kanghe-compliance/css/footer.css
   设计风格: 深色沉稳、5列网格布局、清晰分区、移动端友好
   ============================================================== */

/* ===================================
   1. CSS 变量
   =================================== */
:root {
  --hc-fg: #ffffff;
  --hc-fg-soft: rgba(255, 255, 255, 0.75);
  --hc-fg-mute: rgba(255, 255, 255, 0.5);
  --hc-fg-faint: rgba(255, 255, 255, 0.3);
  --hc-fg-line: rgba(255, 255, 255, 0.08);
  --hc-accent: #19A7CE;
  --hc-accent-soft: rgba(25, 167, 206, 0.12);
  --hc-bg-grad: linear-gradient(135deg, #031B3D 0%, #063B72 50%, #0B7BC2 100%);
}

/* ===================================
   2. 容器
   =================================== */
.hc-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ===================================
   3. 页脚主容器
   =================================== */
.hc-footer {
  background: var(--hc-bg-grad);
  color: var(--hc-fg);
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  margin-top: auto;
}

/* ===================================
   4. 主体区：5列网格
   =================================== */
.hc-footer-main {
  padding: 56px 0 40px;
}

.hc-footer-main .hc-container {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.hc-col {
  min-width: 0;
}

/* ===================================
   5. 品牌列
   =================================== */
.hc-col-brand {
  padding-right: 8px;
}

.hc-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hc-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.hc-brand-text {
  min-width: 0;
}

.hc-brand-name {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--hc-fg);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-brand-slogan {
  margin: 0;
  font-size: 12px;
  color: var(--hc-fg-soft);
  letter-spacing: 0.3px;
}

.hc-brand-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--hc-fg-soft);
  text-align: justify;
}

/* ===================================
   6. 导航标题与列表
   =================================== */
.hc-nav-title {
  margin: 0 0 18px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--hc-fg);
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hc-accent);
  display: block;
}

.hc-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hc-nav-list li {
  margin-bottom: 12px;
  line-height: 1.5;
}

.hc-nav-list a {
  color: var(--hc-fg-soft);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
  display: inline-block;
}

.hc-nav-list a:hover {
  color: var(--hc-accent);
  transform: translateX(3px);
}

/* ===================================
   7. 联系方式列
   =================================== */
.hc-col-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hc-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hc-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-decoration: none;
  color: var(--hc-fg);
  transition: all 0.3s ease;
}

.hc-contact-card:hover {
  background: var(--hc-accent-soft);
  border-color: var(--hc-accent);
  transform: translateY(-1px);
}

.hc-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--hc-accent-soft);
  color: var(--hc-accent);
  border-radius: 8px;
  font-size: 16px;
  flex-shrink: 0;
}

.hc-contact-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hc-contact-label {
  font-size: 11px;
  color: var(--hc-fg-mute);
  margin-bottom: 2px;
}

.hc-contact-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--hc-fg);
  letter-spacing: 0.2px;
}

/* ---- 二维码 ---- */
.hc-qr-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-top: 4px;
}

.hc-qr-img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: 6px;
  padding: 4px;
  box-sizing: border-box;
}

.hc-qr-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hc-qr-tip {
  margin: 0;
  font-size: 12px;
  color: var(--hc-fg-soft);
  line-height: 1.5;
  flex: 1;
}

/* ===================================
   8. 底部版权区
   =================================== */
.hc-footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--hc-fg-line);
  text-align: center;
}

.hc-copyright {
  margin: 0;
  font-size: 13px;
  color: var(--hc-fg-mute);
  letter-spacing: 0.3px;
}

.hc-divider {
  margin: 0 8px;
  color: var(--hc-fg-faint);
}

/* ===================================
   9. 响应式 - 平板
   =================================== */
@media (max-width: 1199px) {
  .hc-footer-main .hc-container {
    grid-template-columns: 1.4fr 0.7fr 0.7fr 1.2fr;
    gap: 24px;
  }
  /* 4列：品牌+3导航；联系方式换行 */
  .hc-col-contact {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .hc-col-contact .hc-nav-title {
    width: 100%;
  }
  .hc-contact-cards {
    flex-direction: row;
    flex: 1;
    min-width: 280px;
  }
  .hc-contact-card {
    flex: 1;
  }
  .hc-qr-block {
    flex: 0 0 auto;
  }
}

/* ===================================
   10. 响应式 - 小平板
   =================================== */
@media (max-width: 991px) {
  .hc-footer-main .hc-container {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px 24px;
  }
  .hc-col-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    text-align: center;
  }
  .hc-brand-block {
    justify-content: center;
  }
  .hc-brand-desc {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
  }
  .hc-col-contact {
    grid-column: 1 / -1;
    flex-direction: column;
  }
  .hc-contact-cards {
    flex-direction: row;
  }
}

/* ===================================
   11. 响应式 - 移动端
   =================================== */
@media (max-width: 768px) {
  .hc-container {
    padding: 0 20px;
  }

  .hc-footer-main {
    padding: 32px 0 24px;
  }

  .hc-footer-main .hc-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* 品牌列 */
  .hc-col-brand {
    text-align: center;
    padding: 0 0 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--hc-fg-line);
  }

  .hc-brand-block {
    justify-content: center;
    margin-bottom: 16px;
  }

  .hc-brand-name {
    font-size: 18px;
  }

  .hc-brand-slogan {
    font-size: 12px;
  }

  .hc-brand-desc {
    font-size: 13px;
    line-height: 1.7;
  }

  /* 导航列：手风琴式 */
  .hc-col {
    border-bottom: 1px solid var(--hc-fg-line);
    padding: 16px 0;
  }
  .hc-col:last-child {
    border-bottom: none;
  }

  .hc-nav-title {
    margin: 0;
    padding: 0 0 0 14px;
    border-bottom: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    position: relative;
  }

  .hc-nav-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--hc-accent);
    border-radius: 2px;
  }

  /* 手风琴箭头 */
  .hc-nav-title::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    color: var(--hc-fg-mute);
    transition: transform 0.3s ease;
  }

  .hc-col.open .hc-nav-title::after {
    transform: rotate(180deg);
    color: var(--hc-accent);
  }

  /* 列表收起/展开 */
  .hc-nav-list {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
    margin: 0;
  }

  .hc-col.open .hc-nav-list {
    max-height: 320px;
    opacity: 1;
    margin-top: 14px;
  }

  .hc-nav-list li {
    margin-bottom: 12px;
  }

  .hc-nav-list a {
    font-size: 14px;
    display: block;
  }

  /* 联系方式 */
  .hc-col-contact {
    border-bottom: none;
    padding: 16px 0 0;
    gap: 12px;
  }

  .hc-col-contact .hc-nav-title {
    justify-content: center;
  }
  .hc-col-contact .hc-nav-title::before {
    display: none;
  }
  .hc-col-contact .hc-nav-title::after {
    display: none;
  }

  .hc-contact-cards {
    flex-direction: column;
  }

  .hc-contact-card {
    padding: 12px 14px;
  }

  .hc-contact-value {
    font-size: 16px;
  }

  .hc-qr-block {
    padding: 12px 14px;
  }

  .hc-qr-img {
    width: 72px;
    height: 72px;
  }

  .hc-qr-tip {
    font-size: 12px;
  }

  /* 版权区 */
  .hc-footer-bottom {
    padding: 16px 0;
  }

  .hc-copyright {
    font-size: 12px;
  }
}

/* ===================================
   12. 响应式 - 小屏手机
   =================================== */
@media (max-width: 380px) {
  .hc-container {
    padding: 0 16px;
  }

  .hc-contact-value {
    font-size: 14px;
  }

  .hc-brand-name {
    font-size: 17px;
  }
}
