/*
 * Latica Ventures — Custom Overrides
 * Fix: Navigation menu too compact
 * Fix: Footer layout
 * Fix: Cookie banner
 */

/* ============================================================
   HEADER — 增加高度，给菜单更多呼吸空间
   main.css 默认 height:3.5em 太矮，菜单项挤在一起
   ============================================================ */
#header {
  height: 4.5em !important;
  line-height: 4.5em !important;
  padding: 0;
}

#header h1 {
  height: inherit;
  line-height: inherit;
  padding: 0 0 0 2em !important;
  font-size: 1em;
}

/* ============================================================
   NAV — 链接横向间距、字号、字间距
   ============================================================ */
#nav {
  display: flex;
  align-items: center;
  height: inherit;
  line-height: inherit;
  padding-right: 2em;
  margin-left: auto;
}

#nav ul {
  display: flex;
  align-items: center;
  height: inherit;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0;
}

#nav ul li {
  display: flex;
  align-items: center;
  height: inherit;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

#nav ul li:first-child {
  border-left: none;
}

#nav ul li a {
  display: flex;
  align-items: center;
  height: inherit;
  padding: 0 1.3em;
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d1d5db;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  line-height: 1;
}

#nav ul li a:hover,
#nav ul li a.active {
  color: #5eead4;
}

/* ============================================================
   FOOTER — 两列并排布局
   main.css 无 #footer 布局样式，两个 section 默认垂直堆叠
   ============================================================ */
#footer {
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
  padding: 4em 4em 2em;
  background: #1a1a2e;
  color: #d1d5db;
}

#footer section {
  flex: 1;
  min-width: 220px;
}

#footer h2 {
  color: #5eead4;
  font-size: 1em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(94,234,212,0.2);
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

#footer dl.alt dt {
  color: #9ca3af;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#footer dl.alt dd {
  color: #f9fafb;
  margin: 0 0 0.8em 0;
}

#footer a {
  color: #5eead4;
}

#footer .copyright {
  width: 100%;
  text-align: center;
  padding-top: 1.5em;
  margin-top: 0.5em;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78em;
  color: #9ca3af;
}

/* ============================================================
   COOKIE BANNER — 确保 flex 布局在 JS 显示时正确生效
   ============================================================ */
#cookie-banner {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
