/*
Theme Name: 洛圣都市政府
Theme URI: https://lossantos.cn
Description: 洛圣都市政府官方网站 WordPress 主题
Version: 1.0.0
Author: Los Santos ITA
Text Domain: lossantos
*/

/* ===== lossantos.css - 洛圣都市政府网站自定义样式 ===== */

/* Inter 字体 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@100..900&family=Noto+Serif+SC:wght@400;700&family=Noto+Sans+SC:wght@100..900&display=swap');

/* 分类图标样式 */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.category-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  z-index: 0;
}
.category-badge > svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  z-index: 1;
}
.category-badge > span {
  z-index: 1;
}
.category-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 分类颜色定义 */
.category-badge-news {
  background: linear-gradient(135deg, #1a365d 0%, #2d4a6e 100%);
  color: #e0f2fe;
  border-color: rgba(255,255,255,0.15);
}
.category-badge-news::before {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e0f2fe"><path d="M19 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2zm-2-9H7v2h10zm-4 4H7v2h6z"/></svg>');
  background-size: 1.2rem;
  background-position: 90% 50%;
  background-repeat: no-repeat;
}

.category-badge-policy {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #d1fae5;
  border-color: rgba(255,255,255,0.15);
}
.category-badge-policy::before {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d1fae5"><path d="M12 2L4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5zm-1 14h2v2h-2zm0-8v6h2V8z"/></svg>');
  background-size: 1.2rem;
  background-position: 90% 50%;
  background-repeat: no-repeat;
}

.category-badge-economy {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #f3e8ff;
  border-color: rgba(255,255,255,0.15);
}
.category-badge-economy::before {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f3e8ff"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2.65 1.87 1.96 0 2.4-.98 2.4-1.59 0-.83-.44-1.61-2.67-2.14-2.48-.6-4.18-1.62-4.18-3.67 0-1.72 1.39-2.84 3.11-3.21V4h2.67v1.95c1.86.45 2.79 1.86 2.85 3.39H14.3c-.05-1.11-.64-1.87-2.22-1.87-1.5 0-2.4.68-2.4 1.64 0 .84.65 1.39 2.67 1.91s4.18 1.39 4.18 3.91c0 1.82-1.34 2.98-3.13 3.29z"/></svg>');
  background-size: 1.2rem;
  background-position: 90% 50%;
  background-repeat: no-repeat;
}

.category-badge-announcement {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #fef3c7;
  border-color: rgba(255,255,255,0.15);
}
.category-badge-announcement::before {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fef3c7"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"/></svg>');
  background-size: 1.2rem;
  background-position: 90% 50%;
  background-repeat: no-repeat;
}

.category-badge-event {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #fee2e2;
  border-color: rgba(255,255,255,0.15);
}
.category-badge-event::before {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fee2e2"><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/></svg>');
  background-size: 1.2rem;
  background-position: 90% 50%;
  background-repeat: no-repeat;
}

.category-badge-report {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  color: #e0f2fe;
  border-color: rgba(255,255,255,0.15);
}
.category-badge-report::before {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e0f2fe"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/></svg>');
  background-size: 1.2rem;
  background-position: 90% 50%;
  background-repeat: no-repeat;
}

.category-badge-general {
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  color: #f3f4f6;
  border-color: rgba(255,255,255,0.15);
}
.category-badge-general::before {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f3f4f6"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
  background-size: 1.2rem;
  background-position: 90% 50%;
  background-repeat: no-repeat;
}

/* shadcn/ui CSS 变量 */
:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 221 70% 45%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221 70% 45%;
  --radius: 0.5rem;
}

body {
  font-family: 'Noto Serif SC', 'Cinzel', Georgia, serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 标题使用衬线字体 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif SC', 'Cinzel', Georgia, serif;
}

/* 容器 - 匹配原站 1400px */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}
@media (min-width: 1400px) {
  .container { max-width: 1400px; }
}

/* ===== USA Government Banner ===== */
.usa-banner {
  background-color: #f0f0f0;
  border-bottom: 1px solid #dcdee0;
  color: #1b1b1b;
}

.usa-banner .header-row {
  display: flex;
  align-items: center;
  padding: 0.625rem 0;
  font-size: 0.875rem;
}

.usa-banner .flag {
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.usa-banner .flag svg {
  width: 24px;
  height: 16px;
  display: block;
}

.usa-banner .header-text {
  font-weight: 700;
}

.usa-banner .expand-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: #005ea2;
  padding: 0;
  font-family: inherit;
  text-decoration: none;
}

.usa-banner .expand-btn:hover {
  color: #0b4778;
  text-decoration: underline;
}

.usa-banner .btn-text {
  margin-right: 0.25rem;
}

.usa-banner .chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.usa-banner .chevron.open {
  transform: rotate(180deg);
}

.usa-banner .content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}

.usa-banner .content.open {
  max-height: 500px;
  opacity: 1;
}

.usa-banner .content-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #dcdee0;
}

@media (min-width: 768px) {
  .usa-banner .content-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.usa-banner .info-item {
  display: flex;
  align-items: flex-start;
}

.usa-banner .info-icon {
  margin-right: 0.75rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  color: #005ea2;
}

.usa-banner .info-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.usa-banner .info-title {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.5;
}

.usa-banner .info-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.usa-banner .info-desc strong {
  font-weight: 600;
}

/* ===== 导航下拉 - 修复 z-index ===== */
.nav-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 50;
  min-width: 16rem;
  background-color: white;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid hsl(var(--border));
  border-top: none;
}
.nav-group:hover .nav-dropdown { display: block; }

/* 移动端导航 */
.mobile-nav { display: none; }
.mobile-nav.open { display: block; }
.mobile-sub { display: none; }
.mobile-sub.open { display: block; }

/* ===== Hero 视频区域 ===== */
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 100%);
}

/* ===== 服务卡片图标背景色 ===== */
.icon-bg-blue   { background-color: #dbeafe; color: #1d4ed8; }
.icon-bg-green  { background-color: #dcfce7; color: #15803d; }
.icon-bg-yellow { background-color: #fef9c3; color: #a16207; }
.icon-bg-purple { background-color: #f3e8ff; color: #7c3aed; }
.icon-bg-red    { background-color: #fee2e2; color: #dc2626; }
.icon-bg-indigo { background-color: #e0e7ff; color: #4338ca; }
.icon-bg-orange { background-color: #ffedd5; color: #c2410c; }
.icon-bg-teal   { background-color: #ccfbf1; color: #0f766e; }

/* ===== Footer - 参照 Biden White House 底部设计 ===== */
.site-footer {
  background: #fff;
  padding: 95px 0 60px;
  position: relative;
  overflow: hidden;
}

/* 徽章 - 右侧大尺寸水印，参照 Biden WH wh-bottom-desktop */
.site-footer .seal-icon-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 685px;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.site-footer .seal-icon-wrapper img {
  position: absolute;
  top: -137px;
  right: 0;
  height: 685px;
  width: auto;
  opacity: 0.18;
  display: block;
}

/* Footer 内容层级 */
.site-footer .container {
  position: relative;
  z-index: 1;
}

/* footer-wrapper: 左右非对称布局 */
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px 0 0;
  width: 100%;
  border-top: 1px solid #e0e5ef;
}

/* 左侧主导航区域 */
.primary-footer-navigation {
  flex: 0 0 auto;
  max-width: 60%;
}
.footer-primary-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
  row-gap: 10px;
}
.footer-primary-nav li a {
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-primary-nav li a:hover {
  color: #005ea2;
}

/* 右侧区域 */
.footer-right {
  flex: 0 0 auto;
  text-align: right;
  max-width: 35%;
}

/* 次要导航 */
.secondary-footer-navigation {
  margin-bottom: 16px;
}
.footer-secondary-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: 20px;
  row-gap: 6px;
}
.footer-secondary-nav li a {
  color: #888;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-secondary-nav li a:hover {
  color: #555;
}

/* 右侧底部：社交 + 地址 + 品牌标识 */
.social-and-address {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

/* 社交图标 */
.footer-social {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: color 0.15s;
}
.social-icon:hover {
  color: #005ea2;
}

/* 地址 */
.footer-address {
  color: #333;
  font-size: 12px;
  line-height: 1.7;
}

/* 品牌标识 */
.ls-logo-link {
  border: 0;
  display: inline-block;
  font-family: 'Cinzel', 'Times New Roman', Georgia, serif;
  font-weight: bold;
  font-size: 24px;
  color: #8B6914;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.ls-logo-link:hover,
.ls-logo-link:focus {
  color: #9c1919;
}

/* 响应式: 小屏堆叠 */
@media (max-width: 767px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 24px;
  }
  .primary-footer-navigation {
    max-width: 100%;
  }
  .footer-right {
    max-width: 100%;
    text-align: left;
  }
  .footer-secondary-nav {
    justify-content: flex-start;
  }
  .social-and-address {
    align-items: flex-start;
  }
  .footer-social {
    justify-content: flex-start;
  }
  .footer-primary-nav {
    column-gap: 20px;
  }
}

/* ===== 按钮与交互 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  background-color: white;
  color: #1a4480;
  transition: background-color 0.15s;
}
.btn-primary:hover { background-color: #f3f4f6; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 700;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  transition: background-color 0.15s, color 0.15s;
}
.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
  text-underline-offset: 4px;
  transition: text-decoration 0.15s;
}
.btn-link:hover { text-decoration: underline; }

/* ===== 卡片 ===== */
.card {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-body { padding: 1.5rem 1.5rem 0; flex: 1; }
.card-footer { padding: 0 1.5rem 1.5rem; margin-top: auto; }

.service-card {
  display: block;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.service-card:hover { 
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ===== 无障碍 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== Optimus 风格导航菜单样式 ===== */
.font-display {
  font-family: 'Noto Serif SC', 'Cinzel', Georgia, serif;
}

.font-mono {
  font-family: 'Inter', monospace;
}

/* 导航菜单动画 */
header {
  transition: all 0.5s ease;
}

/* 移动端菜单动画 */
.md\:hidden.fixed {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 导航链接下划线动画 */
.group:hover .group-hover\:w-full {
  width: 100%;
}

/* ===== 响应式 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #000;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #333;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ===== Hero 按钮 - 现代化风格 ===== */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  height: 2.75rem;
  padding: 0 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Noto Sans SC', sans-serif;
  letter-spacing: 0.01em;
}

/* 主按钮 */
.hero-btn-primary {
  background: #fff;
  color: #1a4480;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

.hero-btn-primary:hover {
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.hero-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* 轮廓按钮 */
.hero-btn-outline {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.hero-btn-outline:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 0 0 1px rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.hero-btn-outline:active {
  transform: translateY(0);
  background: rgba(255,255,255,0.12);
}

/* ===== 主头部导航样式（参照公示信息页面） ===== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220, 222, 224, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.main-header.scrolled {
  box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(220, 222, 224, 0.5);
}

.main-header.transparent {
  background: rgba(255, 255, 255, 0);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

/* 菜单文字白色模式（覆盖在视频区上方） */
.main-header.light-text .brand-text h1,
.main-header.light-text .brand-text p,
.main-header.light-text .main-nav a {
  color: #ffffff;
}

.main-header.light-text .main-nav a:hover,
.main-header.light-text .main-nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.main-header.light-text .brand-divider {
  background-color: rgba(255, 255, 255, 0.4);
}

.main-header.light-text .mobile-menu-btn span {
  background: #ffffff;
}

/* 移动端菜单打开时，覆盖 light-text 白色文字（避免白底白字） */
.main-header.light-text .main-nav.open a {
  color: #475569;
}
.main-header.light-text .main-nav.open a:hover,
.main-header.light-text .main-nav.open a.active {
  color: #335eac;
  background: #eef2f9;
}

.main-header .container {
  margin: 0 auto;
  padding: 0 2rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 36px;
  background-color: #dcdee0;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.25rem;
  color: #1b1b1b;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 1px;
}

.brand-text p {
  font-size: 0.75rem;
  color: #335eac;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  color: #475569;
  border-radius: 0.375rem;
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  font-family: 'Noto Sans SC', sans-serif;
}

.main-nav a:hover,
.main-nav a.active {
  color: #335eac;
  background: #eef2f9;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1b1b1b;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 响应式设计 - 移动端菜单 */
@media (max-width: 768px) {
  .main-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }

  .brand-logo-img {
    height: 36px;
  }
  
  .brand-divider {
    height: 26px;
  }
  
  .brand-text h1 {
    font-size: 1rem;
  }
  
  .brand-text p {
    font-size: 0.65rem;
  }
  
  .mobile-menu-btn {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    z-index: 1000;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    padding: 6rem 1rem 3rem;
  }
  
  .main-nav.open {
    display: flex;
  }
  
  .main-nav.open ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .main-nav.open a {
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
  }
}

/* ===== ITA 技术支持徽章 ===== */
.ita-badge {
  position: relative;
  display: inline-flex;
  margin-top: 87px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow:
    0 4px 24px rgba(59, 130, 246, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.ita-badge:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow:
    0 8px 32px rgba(59, 130, 246, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ita-badge-glow {
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), transparent 40%, transparent 60%, rgba(99, 102, 241, 0.1));
  pointer-events: none;
  z-index: 0;
  animation: ita-glow-shift 4s ease-in-out infinite alternate;
}

@keyframes ita-glow-shift {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.ita-badge-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

.ita-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  flex-shrink: 0;
}

.ita-logo-svg {
  display: block;
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4));
}

.ita-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.3), transparent);
  flex-shrink: 0;
}

.ita-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ita-status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ita-dot-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.ita-dot-pulse::before,
.ita-dot-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
}

.ita-dot-pulse::before {
  animation: ita-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ita-dot-pulse::after {
  box-shadow: 0 0 6px #22c55e;
}

@keyframes ita-ping {
  0% { transform: scale(1); opacity: 0.8; }
  75%, 100% { transform: scale(2.5); opacity: 0; }
}

.ita-status-text {
  font-size: 12px;
  font-weight: 600;
  color: #22c55e;
  letter-spacing: 0.04em;
  font-family: 'Inter', system-ui, sans-serif;
}

.ita-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -5px;
  color: rgba(148, 163, 184, 0.6);
  transition: color 0.2s ease;
  cursor: help;
  text-decoration: none;
  flex-shrink: 0;
}

.ita-help:hover {
  color: #3b82f6;
}

.ita-powered {
  font-size: 11px;
  color: rgba(71, 85, 105, 0.8);
  letter-spacing: 0.05em;
  font-family: 'Inter', system-ui, sans-serif;
}

/* 扫描线动画 */
.ita-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
  pointer-events: none;
  z-index: 2;
  animation: ita-scan 3s ease-in-out infinite;
}

@keyframes ita-scan {
  0%, 100% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  50% { top: 100%; opacity: 0; }
}

/* ===== 向下滚动提示动画 ===== */
.scroll-hint {
  animation: scroll-bounce 2s ease-in-out infinite;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.scroll-hint:hover {
  opacity: 1;
}

/* 移动端：往下滑动提示上移，避免被浏览器底部工具栏遮挡 */
@media (max-width: 768px) {
  .scroll-hint {
    bottom: 5rem !important;
  }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}