/* ═══════════════════════════════════════════
   DEEPTRUST 官网站群 - 公共组件样式
   版本: V1.0
   日期: 2026-06-25
   ═══════════════════════════════════════════ */

/* ── 1. 导航栏 ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(26, 43, 74, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-normal);
}

.header.scrolled {
  background: rgba(26, 43, 74, 0.98);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 800;
  font-size: var(--font-size-lg);
}

.header-logo-text {
  display: flex;
  flex-direction: column;
}

.header-logo-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.header-logo-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}

/* 导航链接 */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.75);
  transition: all var(--transition-fast);
  position: relative;
  font-weight: 500;
}

.header-nav a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.header-nav a.active {
  color: var(--color-brand);
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-brand);
  border-radius: 1px;
}

/* 右侧区域 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 汉堡菜单按钮 */
.header-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}

.header-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.header-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── 2. 页脚 ── */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 60px 0 0;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-brand);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.footer-contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--color-brand);
}

/* ── 响应式断点 ── */

/* 平板 */
@media (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* 移动端 */
@media (max-width: 767px) {
  .header-hamburger {
    display: flex;
  }

  .header-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(26, 43, 74, 0.98);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav a {
    padding: 12px 16px;
    width: 100%;
  }

  .header-actions .btn {
    display: none;
  }

  .header-actions .btn-sm {
    display: inline-flex;
    padding: 6px 14px;
    font-size: var(--font-size-xs);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
