/* ============================================================
 * 世界政党网 - 头部导航样式
 * 配合 header.php 使用
 * 复制此文件到 /skin/sjzhengdang/css/header.css
 * ============================================================ */

:root {
  --red-primary: #B91C1C;
  --red-dark: #7F1D1D;
  --red-light: #FEE2E2;
  --blue-primary: #1E3A8A;
  --blue-dark: #0F1D44;
  --blue-light: #DBEAFE;
  --blue-mid: #1D4ED8;
  --gold: #B45309;
  --gold-light: #FEF3C7;
  --text-dark: #111827;
  --text-mid: #374151;
  --text-light: #6B7280;
  --bg-cream: #FAFAF8;
  --bg-warm: #FEF7ED;
  --border-red: rgba(185,28,28,0.15);
  --border-blue: rgba(30,58,138,0.15);
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--blue-dark) 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-top {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.header-date {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 1px;
}

.header-badge {
  background: var(--red-primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 2px;
  font-weight: 700;
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-emblem {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.9) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
}

.logo-emblem svg { width: 32px; height: 32px; }

.logo-text h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 4px;
  line-height: 1.1;
}

.logo-text p {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ===== 桌面端导航 ===== */
.main-nav { display: flex; align-items: center; gap: 0; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-list li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  display: block;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.5px;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-bottom-color: var(--red-primary);
}

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

/* 语言切换按钮 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s;
  cursor: pointer;
  white-space: nowrap;
}

.lang-switch:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  transform: translateY(-1px);
}

.lang-switch span { font-size: 14px; font-weight: 700; }

/* 订阅按钮 */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark)) !important;
  color: #fff !important;
  border-radius: 10px;
  font-weight: 700 !important;
  font-size: 13px;
  padding: 10px 20px !important;
  text-decoration: none !important;
  letter-spacing: 1px;
  transition: all 0.35s !important;
  box-shadow: 0 2px 12px rgba(185,28,28,0.3);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.nav-cta:hover::before { left: 100%; }

.nav-cta:hover {
  background: linear-gradient(135deg, #fff, #fef2f2) !important;
  color: var(--red-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(185,28,28,0.45);
}

.nav-cta svg { width: 14px; height: 14px; transition: transform 0.3s; }
.nav-cta:hover svg { transform: rotate(15deg) scale(1.1); }

/* 移动端菜单按钮（桌面端隐藏） */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
}

/* ===== 移动端全屏导航 ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 200;
  padding: 80px 24px 24px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

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

.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.mobile-nav a:hover { color: #FCA5A5; padding-left: 8px; }

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff;
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.mobile-nav-close:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

/* ===== 响应式：900px 以下 ===== */
@media (max-width: 900px) {
  /* 桌面导航隐藏 */
  .main-nav { display: none; }

  /* Logo 缩小 */
  .logo-emblem { width: 42px; height: 42px; }
  .logo-emblem svg { width: 24px; height: 24px; }
  .logo-text h1 { font-size: 20px; letter-spacing: 2px; }
  .logo-text p { font-size: 9px; letter-spacing: 2px; }
  .logo-link { gap: 10px; }

  /* 右侧操作区 */
  .header-actions { gap: 8px; }
  .lang-switch { padding: 8px 12px; }
  .lang-switch span { display: none; }
  .lang-switch svg { width: 18px; height: 18px; }

  /* 移动端菜单按钮显示 */
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px; padding: 0;
    border-radius: 8px; font-size: 18px;
  }

  /* 顶部信息条 */
  .header-date { font-size: 10px; }
}

/* ===== 响应式：600px 以下 ===== */
@media (max-width: 600px) {
  /* Logo 进一步缩小 */
  .logo-emblem { width: 34px; height: 34px; }
  .logo-emblem svg { width: 20px; height: 20px; }
  .logo-text h1 { font-size: 16px; letter-spacing: 1px; }
  .logo-text p { font-size: 8px; letter-spacing: 1px; }
  .logo-link { gap: 8px; }

  /* 顶部信息条 */
  .header-top { gap: 12px; padding: 6px 0; }
  .header-date { font-size: 10px; letter-spacing: 0.5px; }
  .header-badge { font-size: 8px; padding: 2px 8px; }
}
