/* ============================================
   对俄补贴指南 v5 - 照搬888原型
   风格: 公告条+搜索+Hero+数据条+分类+两列+页脚
   配色: #0B1F33 深蓝 / #FF6B35 橙 / #4DA3FF 蓝
   ============================================ */

:root {
  --c-navy: #0B1F33;
  --c-navy-2: #15314F;
  --c-accent: #4DA3FF;
  --c-orange: #FF6B35;
  --c-orange-light: #FF8A5C;
  --c-orange-soft: #FFF3EC;
  --c-bg: #F5F6FA;
  --c-white: #FFFFFF;
  --c-text: #2C3E50;
  --c-text-2: #546B85;
  --c-text-3: #6A7F95;
  --c-muted: #95A5A6;
  --c-border: #EEF1F5;
  --c-divider: #F0F2F5;
  --c-tag-new-bg: #FFEAA7;
  --c-tag-new-tx: #D68910;
  --c-tag-hot-bg: #FFCDD2;
  --c-tag-hot-tx: #C0392B;
  --c-tag-info-bg: #D5F5E3;
  --c-tag-info-tx: #1E8449;
  --c-tag-blue-bg: #D6E8FF;
  --c-tag-blue-tx: #2B6CB0;
  --font-cn: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", Arial, sans-serif;
}

html, body {
  font-family: var(--font-cn);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}
body { background: var(--c-bg) !important; }
a { color: inherit; text-decoration: none; }
* { box-sizing: border-box; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--c-navy); margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部公告条 ===== */
.topbar {
  background: var(--c-navy);
  color: var(--c-white);
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
}
.topbar a { color: var(--c-orange-light); }
.topbar a:hover { color: var(--c-orange); }

/* ===== Header（Logo + 搜索） ===== */
.site-header,
header.site-header {
  background: var(--c-white) !important;
  border-bottom: 1px solid var(--c-border) !important;
  padding: 14px 0 !important;
  min-height: auto !important;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--c-orange), #E74C3C);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-size: 22px;
  font-weight: bold;
}
.logo h1 {
  font-size: 22px;
  color: var(--c-navy);
  font-weight: 700;
}
.logo .logo-sub {
  font-size: 12px;
  color: var(--c-muted);
  margin-left: 6px;
}
.site-branding .site-title-wrap,
.site-branding .site-title,
.site-branding a,
.site-branding p { display: none !important; }
.search-box {
  display: flex;
  align-items: stretch;
}
.search-box input {
  width: 320px;
  padding: 10px 16px;
  border: 2px solid var(--c-navy);
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.search-box input:focus { border-color: var(--c-orange); }
.search-box button {
  padding: 10px 22px;
  background: var(--c-navy);
  color: var(--c-white);
  border: none;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}
.search-box button:hover { background: var(--c-navy-2); }

/* ===== 导航条（深蓝） ===== */
.main-nav,
nav.main-nav,
.main-navigation {
  background: var(--c-navy) !important;
  border: 0 !important;
}
.main-nav .container,
.main-navigation .primary-menu-container {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background: var(--c-navy);
}
.main-nav a,
.main-navigation .primary-menu-container > ul > li > a {
  color: var(--c-white) !important;
  padding: 14px 18px !important;
  font-size: 14px;
  display: inline-block;
  transition: background .2s;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a.active,
.main-navigation .primary-menu-container > ul > li > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a {
  background: var(--c-orange) !important;
  color: var(--c-white) !important;
}
.menu-toggle { color: var(--c-white) !important; background: transparent !important; border: 0 !important; }

/* ===== Hero（大搜索框） ===== */
.hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, #1A4A7A 50%, var(--c-navy) 100%);
  color: var(--c-white);
  padding: 50px 0 40px;
  text-align: center;
}
.hero h2 {
  color: var(--c-white);
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 12px;
}
.hero p {
  font-size: 15px;
  opacity: 0.9;
  margin: 0 0 24px;
}
.search-big {
  display: inline-flex;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.search-big input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
}
.search-big button {
  padding: 14px 32px;
  background: var(--c-orange);
  color: var(--c-white);
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.search-big button:hover { background: var(--c-orange-light); }
.hero .hot-tags {
  margin-top: 18px;
  font-size: 13px;
  opacity: 0.85;
}
.hero .hot-tags a {
  color: var(--c-orange-light);
  text-decoration: none;
  margin: 0 6px;
}
.hero .hot-tags a:hover { color: var(--c-white); text-decoration: underline; }

/* ===== 数据条（4个数字） ===== */
.stats-bar {
  display: flex;
  gap: 0;
  justify-content: space-around;
  padding: 20px 0;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.stat-item { text-align: center; flex: 1; min-width: 140px; padding: 8px; }
.stat-item .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-navy);
}
.stat-item .label {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 4px;
}

/* ===== 通用 section ===== */
section { padding: 36px 0; }
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--c-orange);
  display: inline-block;
}

/* ===== 政策分类网格（6个白色卡） ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--c-white);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: 1px solid var(--c-border);
  text-decoration: none;
  color: inherit;
  display: block;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(11, 31, 51, 0.08);
  border-color: var(--c-orange);
}
.cat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}
.cat-card h3 {
  font-size: 16px;
  color: var(--c-navy);
  margin: 0 0 6px;
  font-weight: 700;
}
.cat-card .cat-desc {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0 0 8px;
  line-height: 1.5;
}
.cat-card .count {
  font-size: 12px;
  color: var(--c-orange);
  font-weight: 600;
}
.ci1 .cat-icon { background: #E8F8F0; }
.ci2 .cat-icon { background: #EAF0FF; }
.ci3 .cat-icon { background: #FFF3E6; }
.ci4 .cat-icon { background: #FDE8EF; }
.ci5 .cat-icon { background: #E6F5FF; }
.ci6 .cat-icon { background: #F5F0FF; }
.ci7 .cat-icon { background: #FFFAE6; }
.ci8 .cat-icon { background: #E6FFFA; }

/* ===== 两列布局 ===== */
.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

/* ===== 政策新闻列表 ===== */
.news-list {
  background: var(--c-white);
  border-radius: 10px;
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.news-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--c-text);
  transition: background .2s;
  gap: 12px;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: #FAFBFC; }
.news-item .title {
  font-size: 14px;
  color: var(--c-text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-item:hover .title { color: var(--c-orange); }
.news-item .meta {
  font-size: 12px;
  color: var(--c-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  margin-right: 8px;
  font-weight: 600;
}
.tag-new { background: var(--c-tag-new-bg); color: var(--c-tag-new-tx); }
.tag-hot { background: var(--c-tag-hot-bg); color: var(--c-tag-hot-tx); }
.tag-info { background: var(--c-tag-info-bg); color: var(--c-tag-info-tx); }
.tag-blue { background: var(--c-tag-blue-bg); color: var(--c-tag-blue-tx); }

/* ===== 地区网格 ===== */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.region-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  font-size: 14px;
  color: var(--c-navy);
  text-decoration: none;
  transition: all .2s;
  display: block;
  font-weight: 600;
}
.region-item:hover {
  border-color: var(--c-orange);
  color: var(--c-orange);
  background: var(--c-orange-soft);
}
.region-item .num {
  font-size: 11px;
  color: var(--c-muted);
  display: block;
  margin-top: 2px;
  font-weight: 400;
}

/* ===== 辅助入口（指南+法律检索） ===== */
.links-section {
  background: var(--c-white);
  padding: 30px 0;
  border-top: 1px solid var(--c-border);
}
.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--c-bg);
  border-radius: 10px;
  border: 1px solid var(--c-border);
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}
.link-card:hover {
  border-color: var(--c-orange);
  background: var(--c-white);
  box-shadow: 0 6px 16px rgba(11, 31, 51, 0.06);
}
.link-icon {
  width: 48px; height: 48px;
  background: var(--c-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.link-card h3 {
  font-size: 16px;
  color: var(--c-navy);
  margin: 0 0 2px;
  font-weight: 700;
}
.link-card p {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0;
}
.link-arrow {
  margin-left: auto;
  color: var(--c-orange);
  font-size: 18px;
  font-weight: 700;
}

/* ===== 页脚 ===== */
.site-footer,
footer.site-footer {
  background: var(--c-navy) !important;
  color: var(--c-white) !important;
  padding: 24px 0 16px !important;
  font-size: 13px;
}
.site-footer .container,
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: var(--c-orange-light); text-decoration: none; margin: 0 4px; }
.site-footer a:hover { color: var(--c-orange); text-decoration: underline; }
.footer-note { font-size: 11px; opacity: 0.6; margin-top: 4px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .links-grid { grid-template-columns: 1fr; }
  .search-box { display: none; }
  .header-inner { justify-content: center; }
  .hero h2 { font-size: 22px; }
  .hero p { font-size: 13px; }
  .stat-item .num { font-size: 22px; }
  .stats-bar { gap: 0; }
  .stat-item { min-width: 0; padding: 4px; }
}

/* ============================================
   首页 Hero 多维搜索框
   ============================================ */
.hero-search {
  display: inline-flex;
  max-width: 760px;
  width: 100%;
  background: var(--c-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.hero-sel {
  padding: 12px 10px;
  border: 0;
  background: var(--c-bg);
  font-size: 13px;
  font-family: inherit;
  color: var(--c-text);
  outline: none;
  cursor: pointer;
  min-width: 110px;
  border-right: 1px solid var(--c-border);
}
.hero-sel optgroup { font-weight: 700; color: var(--c-orange); }
.hero-q {
  flex: 1;
  padding: 12px 16px;
  border: 0;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  min-width: 120px;
}
.hero-search button {
  padding: 12px 28px;
  background: var(--c-orange);
  color: var(--c-white);
  border: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.hero-search button:hover { background: var(--c-orange-light); }
@media (max-width: 768px) {
  .hero-search { flex-wrap: wrap; }
  .hero-sel, .hero-q, .hero-search button { width: 100%; border-radius: 0; }
  .hero-q { padding: 14px; }
}

/* ===== 快捷标签 ===== */
.quick-tags {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.quick-tags.small { margin-top: 10px; justify-content: flex-start; }
.qt-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  margin-right: 4px;
  font-weight: 600;
}
.quick-tags.small .qt-label { color: var(--c-muted); }
.qt-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.quick-tags.small .qt-btn {
  background: var(--c-bg);
  color: var(--c-text-2);
  border-color: var(--c-border);
}
.qt-btn:hover {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-white);
}

/* ===== Hero 辅助行（已弃用：v8 删掉） ===== */

/* ===== 开关 toggle ===== */
.hero-toggle {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.toggle input { display: none; }
.toggle-track {
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  position: relative;
  transition: background .2s;
}
.toggle-dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--c-white);
  border-radius: 50%;
  transition: left .2s;
}
.toggle input:checked + .toggle-track {
  background: var(--c-orange);
}
.toggle input:checked + .toggle-track .toggle-dot {
  left: 20px;
}
.toggle-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
}

/* ===== 错误提示 ===== */
.form-error {
  margin-top: 10px;
  color: #FFB4A8;
  font-size: 13px;
  font-weight: 500;
  min-height: 18px;
  text-align: center;
  opacity: 0;
  transition: opacity .2s;
}
.form-error.show {
  opacity: 1;
  color: #FFD1C7;
  background: rgba(231, 76, 60, 0.18);
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
}
.hero-search.shake { animation: shake .3s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ============================================
   搜索页面样式 /search
   ============================================ */
.filter-section {
  background: var(--c-white);
  padding: 24px 0;
  border-bottom: 1px solid var(--c-border);
}
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}
.filter-group label {
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.filter-group select,
.filter-group input {
  padding: 10px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  background: var(--c-white);
  color: var(--c-text);
  font-family: inherit;
  transition: border-color .2s;
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--c-orange); }
.filter-reset {
  padding: 10px 18px;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  color: var(--c-text-2);
  font-family: inherit;
  margin-bottom: 1px;
  height: 42px;
}
.filter-reset:hover {
  background: var(--c-orange-soft);
  border-color: var(--c-orange);
  color: var(--c-orange);
}
.result-meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--c-muted);
}
.result-meta span { color: var(--c-orange); font-weight: 700; }
.results-section { padding: 30px 0; min-height: 400px; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.result-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-orange);
  border-radius: 8px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--c-text);
  transition: all .2s;
  display: block;
}
.result-card:hover {
  box-shadow: 0 6px 18px rgba(11, 31, 51, 0.08);
  border-left-color: var(--c-navy);
  transform: translateY(-2px);
}
.result-card .result-cat {
  display: inline-block;
  background: var(--c-orange-soft);
  color: var(--c-orange);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.result-card h3 {
  font-size: 16px;
  color: var(--c-navy);
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.4;
}
.result-card .result-excerpt {
  font-size: 13px;
  color: var(--c-text-3);
  line-height: 1.6;
  margin: 0 0 10px;
}
.result-card .result-date {
  font-size: 12px;
  color: var(--c-muted);
}
.result-card mark {
  background: #FFF3B0;
  color: var(--c-navy);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}
.loading {
  text-align: center;
  padding: 40px;
  color: var(--c-muted);
  font-size: 14px;
}
.no-result {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
}
.no-result h3 { color: var(--c-navy); margin: 0 0 8px; }
.no-result p { color: var(--c-muted); font-size: 14px; margin: 0 0 24px; }
.hot-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.hot-policy {
  display: inline-block;
  padding: 8px 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  color: var(--c-text-2);
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
}
.hot-policy:hover {
  background: var(--c-orange-soft);
  color: var(--c-orange);
  border-color: var(--c-orange);
}
@media (max-width: 768px) {
  .result-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-group { min-width: 0; }
  .filter-reset { width: 100%; margin-top: 4px; }
}
