/* 公共组件样式 */
/* 导航栏、页脚、语言切换等公共组件的样式 */

header {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 100px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.language-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--subtext);
}

.language-switch label {
  font-weight: 500;
}

.language-select {
  padding: 6px 32px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  appearance: none;
  position: relative;
  min-width: 140px;
  background-image: linear-gradient(45deg, transparent 50%, var(--subtext) 50%), linear-gradient(135deg, var(--subtext) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

footer {
  padding: 32px 24px;
  background: #0b0f1c;
  color: #cbd5f5;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.footer-links a {
  color: #cbd5f5;
  text-decoration: none;
}

.footer-partner {
  max-width: var(--max-width);
  margin: 24px auto 0;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(203, 213, 245, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-partner a {
  display: inline-block;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-partner a:hover {
  opacity: 1;
}

.footer-partner-text {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 20px;
  border: 1px solid rgba(203, 213, 245, 0.3);
  border-radius: 4px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-partner-text:hover {
  border-color: rgba(203, 213, 245, 0.6);
  background: rgba(203, 213, 245, 0.05);
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 8px;
  }
}

