/* 国际城市战略发展中心 - 公共样式 */
:root {
  --color-primary: #1a4f9c;
  --color-primary-dark: #0d2d5c;
  --color-primary-light: #3d7fc4;
  --color-accent: #e8f2fc;
  --color-accent-bar: #1a4f9c;
  --color-date: #c8462f;
  --color-text: #333333;
  --color-text-secondary: #666666;
  --color-text-light: #999999;
  --color-border: #e5e5e5;
  --color-footer-bg: #10193a;
  --container-width: 1200px;
  --header-height: 80px;
  --font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
  background: #fff;
  min-width: 0;
}

@media (min-width: 1200px) {
  body.page-pc-min {
    min-width: 1200px;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

ul,
ol {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== Header ========== */
.site-header {
  position: relative;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* 全站顶栏背景（与首页一致） */
.site-header--home {
  background: #fff url("../image/navigationBG.png") no-repeat center top;
  background-size: cover;
  box-shadow: none;
  border-bottom: none;
}

.site-header--home .header-inner {
  background: transparent;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 28px 18px;
  font-size: 15px;
  color: var(--color-text);
  white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li.active > a {
  color: var(--color-primary);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
  z-index: 100;
}

.nav-list > li.has-dropdown:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header-tools a.tool-search {
  display: flex;
  align-items: center;
  width: 22px;
  height: 22px;
  padding-right: 20px;
  margin-right: 0;
  border-right: 2px solid #a2a2a2;
  box-sizing: content-box;
}

.header-tools a.tool-search img {
  width: 22px;
  height: 22px;
}

.header-tools a.tool-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.header-tools a.tool-lang img {
  width: 18px;
  height: 18px;
}

/* 顶区：一级导航 + PC 悬浮二级（全站与首页一致） */
.home-top-zone {
  position: relative;
  z-index: 1000;
  background: #fff;
}

.nav-dropdown {
  display: none !important;
}

.nav-list > li.is-submenu-active > a {
  color: var(--color-primary);
}

.home-secondary {
  display: none;
  background: #fff;
  border-top: 4px solid #005984;
  border-bottom: 1px solid var(--color-border);
}

.home-secondary.is-visible {
  display: block;
}

.home-secondary[hidden] {
  display: none !important;
}

.home-secondary-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 160px;
}

.secondary-logo {
  position: relative;
  width: 320px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
}

.secondary-logo-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 413px;
  height: 228px;
  background: url("../image/logoBG.png") no-repeat center center;
  background-size: contain;
  pointer-events: none;
}

.secondary-logo-img {
  position: relative;
  z-index: 1;
  max-width: 220px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.secondary-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0 24px 20px;
  border-left: 1px solid var(--color-border);
  min-width: 0;
}

.secondary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 10px;
}

.secondary-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.secondary-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.secondary-links a::before {
  content: "";
  display: block;
  width: 16px;
  height: 12px;
  flex-shrink: 0;
  background: url("../image/right3.png") no-repeat center center;
  background-size: contain;
}

.secondary-links a:hover {
  color: var(--color-text-secondary);
}

.secondary-desc {
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
  max-width: 820px;
  color: #005984;
  border-top: solid 1px #005984;
  padding-top: 12px;
}

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary-dark);
  transition: 0.3s;
}

/* ========== Page Banner ========== */
.page-banner {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 80, 0.35);
}

.page-banner .banner-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 42px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 4px;
  z-index: 1;
  white-space: nowrap;
}

.page-banner .banner-breadcrumb {
  position: absolute;
  right: calc((100% - var(--container-width)) / 2 + 15px);
  bottom: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

@media (max-width: 1230px) {
  .page-banner .banner-breadcrumb {
    right: 15px;
  }
}

.page-banner .banner-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.page-banner .banner-breadcrumb a:hover {
  color: #fff;
}

/* ========== Inner Layout ========== */
.page-main {
  padding: 40px 0 60px;
  background: #fff;
}

.inner-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.inner-sidebar {
  width: 220px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  background: #fff;
}

.sidebar-title {
  display: flex;
  align-items: center;
  padding: 18px 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--color-accent-bar);
  margin-right: 10px;
  flex-shrink: 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-menu a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: var(--color-accent);
  color: var(--color-primary);
}

.sidebar-menu a.active::after {
  border-color: var(--color-primary);
}

.inner-content {
  flex: 1;
  min-width: 0;
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  font-size: 14px;
  list-style: none;
  padding: 0;
}

.pagination li {
  display: inline-flex;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  color: var(--color-text-secondary);
  border: solid 1px #eee;
  text-decoration: none;
}

.pagination a:hover {
  color: var(--color-primary);
}

.pagination .current,
.pagination .page-num.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--color-footer-bg);
  color: #fff;
}

.footer-main {
  padding: 52px 0 44px;
}

.footer-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  flex-shrink: 0;
}

.footer-logo {
  display: block;
  margin-bottom: 22px;
}

.footer-logo img {
  display: block;
  width: 160px;
  height: 78px;
}

.footer-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.footer-lang-btn:hover {
  border-color: #fff;
  opacity: 0.92;
}

.footer-lang-btn img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  align-items: flex-start;
  gap: 72px;
  padding-top: 6px;
}

.footer-nav-col {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-col li + li {
  margin-top: 22px;
}

.footer-nav-col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.footer-nav-col a::before {
  content: ">";
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.9;
}

.footer-nav-col a:hover {
  opacity: 0.8;
}

.footer-info {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 0 30px;
}

.footer-info .container {
  text-align: left;
}

.footer-contact,
.footer-legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.48);
}

.footer-legal {
  margin-top: 4px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.72);
}

.footer-legal-sep {
  margin: 0 10px;
  opacity: 0.6;
}

/* ========== Section title ========== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #DADADA;
}

.section-head-no {
  border-bottom: none;
}

.section-head .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.section-head .section-title img {
  width: 28px;
  height: 28px;
}

.section-head .more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #3DA1D2;
}

.section-head .more-link::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: url("../image/right2.png") no-repeat center center;
  background-size: contain;
  flex-shrink: 0;
}

.section-head .more-link:hover {
  color: var(--color-primary);
}

/* 级联二级面板默认隐藏，仅移动端菜单内展示 */
.nav-cascader-secondary {
  display: none;
}

/* PC 端：不显示级联二级与返回按钮 */
@media (min-width: 1200px) {
  .nav-cascader {
    display: block;
    width: auto;
    min-height: 0;
    max-height: none;
  }

  .nav-cascader-primary {
    flex: none;
    border-right: none;
    overflow: visible;
  }

  .nav-cascader-secondary,
  .nav-cascader-head,
  .nav-cascader-back {
    display: none !important;
  }
}

/* ========== Mobile ========== */
@media (max-width: 1199px) {
  .home-top-zone,
  .site-header,
  .site-header .header-inner {
    overflow: visible;
  }

  .home-top-zone .site-header--home {
    position: relative;
  }

  .home-secondary {
    display: none !important;
  }

  .home-secondary-inner {
    flex-direction: column;
    min-height: auto;
  }

  .secondary-logo {
    width: 100%;
    min-height: 100px;
    padding: 16px;
  }

  .secondary-logo-bg {
    max-width: 260px;
    height: 100px;
  }

  .secondary-logo-img {
    width: 172px;
    height: 84px;
  }

  .secondary-content {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: 14px 0 16px;
  }

  .secondary-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .secondary-links {
    flex-wrap: wrap;
    gap: 16px 20px;
    width: 100%;
  }

  .secondary-desc {
    font-size: 13px;
    line-height: 1.75;
  }

  .nav-toggle {
    display: flex;
    order: 2;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 15px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .header-tools {
    order: 3;
    flex-shrink: 0;
    gap: 12px;
  }

  .header-tools a.tool-search {
    padding-left: 16px;
    border-left: 2px solid #a2a2a2;
  }

  .header-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex: none;
    width: 100%;
    max-width: 100vw;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  body > .header-nav {
    z-index: 10050;
  }

  .header-nav.is-open {
    max-height: min(55dvh, 400px);
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  html.mobile-nav-open,
  body.mobile-nav-open {
    overflow: hidden;
    height: 100%;
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height);
    bottom: 0;
    z-index: 10040;
    background: rgba(0, 0, 0, 0.35);
    touch-action: none;
  }

  body.mobile-nav-open .nav-backdrop {
    display: block;
  }

  /* 级联选择器：左一级 / 右二级 */
  .nav-cascader {
    display: flex;
    width: 100%;
    min-height: 0;
    max-height: none;
    background: #fff;
  }

  .nav-cascader-primary {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid var(--color-border);
    transition: flex 0.25s ease;
  }

  .nav-cascader.has-secondary .nav-cascader-primary {
    flex: 0 0 42%;
    max-width: 42%;
  }

  .nav-cascader-secondary {
    flex: 1;
    min-width: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: #fafbfc;
  }

  .nav-cascader.has-secondary .nav-cascader-secondary {
    display: flex;
  }

  .nav-cascader-head {
    display: flex;
    /* align-items: center; */
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
    flex-shrink: 0;
  }

  .nav-cascader-back {
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    color: #005984;
    cursor: pointer;
    padding: 4px 0;
    flex-shrink: 0;
  }

  .nav-cascader-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
  }

  .nav-sub-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-sub-list a:hover {
    color: #005984;
    background: #f0f7fc;
  }

  .nav-sub-icon {
    display: block;
    width: 16px;
    height: 12px;
    flex-shrink: 0;
    background: url("../image/right3.png") no-repeat center;
    background-size: contain;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 89, 132, 0.12);
    cursor: pointer;
  }

  .nav-list > li.has-submenu-items {
    cursor: pointer;
  }

  .nav-list > li.has-submenu-items > a::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-right: 2px solid #999;
    border-top: 2px solid #999;
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  .nav-list > li.is-cascader-active > a {
    color: #005984;
    font-weight: 600;
    background: #f0f7fc;
  }

  .nav-dropdown {
    display: none !important;
  }

  .inner-layout {
    flex-direction: column;
  }

  .inner-sidebar {
    width: 100%;
  }

  .page-banner {
    height: 200px;
  }

  .page-banner .banner-title {
    font-size: 28px;
  }

  .footer-main-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 28px 40px;
    width: 100%;
  }

  .footer-nav-col li + li {
    margin-top: 16px;
  }
}
