/* ==========================================================================
   环球启航 · 杂志式门户  portal.css v2
   与 siudz 的差异：全宽分区、无固定侧栏、横向卡片带、流程时间轴、要点摘要
   ========================================================================== */

:root {
  --hw-blue: #0b5cab;
  --hw-blue-d: #084275;
  --hw-blue-t: #eaf2fb;
  --hw-gold: #c9971f;
  --hw-gold-l: #fbf3dd;
  --hw-ink: #10171f;
  --hw-text: #1c2530;
  --hw-text2: #465366;
  --hw-muted: #74808f;
  --hw-line: #e6eaf0;
  --hw-bg: #ffffff;
  --hw-tint: #f6f8fb;
  --hw-card: #ffffff;
  --hw-r: 12px;
  --hw-shadow: 0 2px 12px rgba(16, 32, 56, .06);
  --hw-shadow-h: 0 8px 28px rgba(16, 32, 56, .12);
}

html[data-theme="dark"] {
  --hw-blue-t: #10263f;
  --hw-gold-l: #2a2313;
  --hw-ink: #eef3f9;
  --hw-text: #e3eaf3;
  --hw-text2: #b6c2d2;
  --hw-muted: #8b98a8;
  --hw-line: #232d3a;
  --hw-bg: #0d1219;
  --hw-tint: #131a24;
  --hw-card: #161e28;
  --hw-shadow: 0 2px 12px rgba(0, 0, 0, .5);
  --hw-shadow-h: 0 8px 28px rgba(0, 0, 0, .6);
}

* {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--hw-bg);
  color: var(--hw-text);
  font-size: 15.5px;
  line-height: 1.8;
  -webkit-text-size-adjust: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.hide {
  display: none !important;
}

/* ------------------------------ 阅读进度 ------------------------------ */
.hw-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--hw-blue), var(--hw-gold));
  transition: width .1s linear;
}

/* ------------------------------ 顶部栏 ------------------------------ */
.hw-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hw-line);
  transition: box-shadow .25s;
}

html[data-theme="dark"] .hw-top {
  background: rgba(13, 18, 25, .92);
}

.hw-top.scrolled {
  box-shadow: 0 4px 20px rgba(16, 32, 56, .09);
}

.hw-top-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.hw-brand-mark {
  width: 9px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--hw-blue), var(--hw-gold));
}

.hw-brand-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--hw-ink);
  white-space: nowrap;
}

.hw-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 10px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.hw-nav a {
  position: relative;
  font-size: 14.5px;
  color: var(--hw-text2);
  white-space: nowrap;
  padding: 6px 0;
  transition: color .2s;
}

.hw-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--hw-gold);
  transition: all .25s;
  transform: translateX(-50%);
  border-radius: 1px;
}

.hw-nav a:hover {
  color: var(--hw-blue);
}

.hw-nav a:hover::after {
  width: 100%;
}

.hw-search {
  display: flex;
  flex: 0 0 auto;
}

.hw-search input {
  width: 190px;
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  color: var(--hw-text);
  background: var(--hw-tint);
  border: 1px solid var(--hw-line);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  outline: none;
  transition: border-color .2s;
}

.hw-search input:focus {
  border-color: var(--hw-blue);
}

.hw-search button {
  height: 36px;
  padding: 0 16px;
  font-size: 13.5px;
  color: #fff;
  background: var(--hw-blue);
  border: 0;
  border-radius: 0 18px 18px 0;
  cursor: pointer;
  transition: background .2s;
}

.hw-search button:hover {
  background: var(--hw-blue-d);
}

.hw-theme {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--hw-text);
  background: var(--hw-tint);
  border: 1px solid var(--hw-line);
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s;
}

.hw-theme:hover {
  color: var(--hw-gold);
  border-color: var(--hw-gold);
}

.hw-menu-btn {
  display: none;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0 6px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hw-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--hw-text2);
  border-radius: 1px;
}

/* ------------------------------ 抽屉 ------------------------------ */
.hw-drawer {
  display: none;
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  z-index: 59;
  background: var(--hw-card);
  border-bottom: 1px solid var(--hw-line);
  padding: 16px 20px 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
  max-height: calc(100vh - 66px);
  overflow-y: auto;
}

.hw-drawer.open {
  display: block;
}

.hw-drawer-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.hw-drawer-search input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--hw-text);
  background: var(--hw-tint);
  border: 1px solid var(--hw-line);
  border-radius: 20px;
  outline: none;
}

.hw-drawer-search button {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  color: #fff;
  background: var(--hw-blue);
  border: 0;
  border-radius: 20px;
}

.hw-drawer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--hw-line);
}

.hw-drawer-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--hw-ink);
}

.hw-drawer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hw-drawer-cats a {
  font-size: 13px;
  color: var(--hw-text2);
  background: var(--hw-tint);
  border: 1px solid var(--hw-line);
  border-radius: 16px;
  padding: 5px 12px;
}

/* ------------------------------ HERO ------------------------------ */
.hw-hero {
  position: relative;
  overflow: hidden;
  background: #0a2340;
  color: #fff;
}

.hw-hero-bg {
  position: absolute;
  inset: 0;
}

.hw-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .55;
}

.hw-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6, 26, 48, .94) 0%, rgba(8, 40, 76, .82) 42%, rgba(10, 35, 64, .55) 100%);
}

.hw-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 66px 24px 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hw-hero-kicker {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 2px;
  color: var(--hw-gold);
  border-left: 3px solid var(--hw-gold);
  padding-left: 10px;
  margin-bottom: 18px;
}

.hw-hero-title {
  margin: 0 0 16px;
  font-size: 38px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #fff;
}

.hw-hero-title a:hover {
  color: var(--hw-gold);
}

.hw-hero-desc {
  margin: 0 0 26px;
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .78);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hw-btn {
  display: inline-block;
  padding: 11px 26px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 26px;
  transition: all .22s;
}

.hw-btn-gold {
  color: #2d2205;
  background: var(--hw-gold);
}

.hw-btn-gold:hover {
  background: #ddab26;
  transform: translateY(-1px);
}

.hw-btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
}

.hw-btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
}

.hw-hero-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hw-quick {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  transition: all .22s;
}

.hw-quick:hover {
  background: rgba(255, 255, 255, .14);
  border-color: var(--hw-gold);
  transform: translateX(4px);
}

.hw-quick-idx {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--hw-gold);
  font-family: Georgia, serif;
}

.hw-quick-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
}

.hw-quick-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .6);
}

/* ------------------------------ 分区带 ------------------------------ */
.hw-band {
  padding: 58px 0;
  background: var(--hw-bg);
}

.hw-band-alt {
  background: var(--hw-tint);
}

.hw-band-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.hw-band-head {
  margin-bottom: 30px;
}

.hw-band-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.hw-band-title {
  position: relative;
  margin: 0 0 8px;
  padding-left: 16px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--hw-ink);
}

.hw-band-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 22px;
  background: var(--hw-gold);
  border-radius: 2px;
}

.hw-band-sub {
  margin: 0;
  padding-left: 16px;
  font-size: 14px;
  color: var(--hw-muted);
}

.hw-band-more {
  font-size: 14px;
  color: var(--hw-blue);
  white-space: nowrap;
  transition: color .2s;
}

.hw-band-more:hover {
  color: var(--hw-gold);
}

/* ------------------------------ 大洲标签 ------------------------------ */
.hw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hw-tab {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hw-text2);
  background: var(--hw-card);
  border: 1px solid var(--hw-line);
  border-radius: 22px;
  cursor: pointer;
  transition: all .2s;
}

.hw-tab:hover {
  color: var(--hw-blue);
  border-color: var(--hw-blue);
}

.hw-tab.on {
  color: #fff;
  background: var(--hw-blue);
  border-color: var(--hw-blue);
}

.hw-tab .cnt {
  margin-left: 6px;
  font-size: 12px;
  opacity: .7;
}

/* ------------------------------ 国家矩阵 ------------------------------ */
.hw-country-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hw-country {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 15px 16px;
  background: var(--hw-card);
  border: 1px solid var(--hw-line);
  border-radius: 10px;
  transition: all .2s;
}

.hw-country:hover {
  border-color: var(--hw-blue);
  box-shadow: var(--hw-shadow-h);
  transform: translateY(-2px);
}

.hw-country-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hw-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hw-country:hover .hw-country-name {
  color: var(--hw-blue);
}

.hw-country-arrow {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--hw-muted);
  transition: all .2s;
}

.hw-country:hover .hw-country-arrow {
  color: var(--hw-gold);
  transform: translateX(3px);
}

/* ------------------------------ 三条路径 ------------------------------ */
.hw-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hw-path {
  display: block;
  padding: 28px 26px 24px;
  background: var(--hw-card);
  border-radius: 14px;
  box-shadow: var(--hw-shadow);
  transition: all .25s;
  border-top: 3px solid transparent;
}

.hw-path:hover {
  transform: translateY(-4px);
  box-shadow: var(--hw-shadow-h);
  border-top-color: var(--hw-gold);
}

.hw-path-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #2d2205;
  background: var(--hw-gold-l);
  border-radius: 4px;
  padding: 2px 9px;
  margin-bottom: 14px;
}

html[data-theme="dark"] .hw-path-tag {
  color: var(--hw-gold);
}

.hw-path-title {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--hw-ink);
}

.hw-path-desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--hw-muted);
}

.hw-path-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hw-blue);
}

.hw-path:hover .hw-path-link {
  color: var(--hw-gold);
}

/* ------------------------------ 横向卡片带 ------------------------------ */
.hw-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.hw-rail::-webkit-scrollbar {
  height: 6px;
}

.hw-rail::-webkit-scrollbar-thumb {
  background: var(--hw-line);
  border-radius: 3px;
}

.hw-rail-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--hw-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--hw-shadow);
  transition: all .25s;
}

.hw-rail-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hw-shadow-h);
}

.hw-rail-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hw-tint);
}

.hw-rail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s;
}

.hw-rail-card:hover .hw-rail-media img {
  transform: scale(1.05);
}

.hw-rail-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 17px 17px;
}

.hw-rail-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--hw-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-rail-card:hover .hw-rail-title {
  color: var(--hw-blue);
}

.hw-rail-meta {
  font-size: 12.5px;
  color: var(--hw-muted);
}

/* ------------------------------ 流程时间轴 ------------------------------ */
.hw-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  position: relative;
}

.hw-steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--hw-blue), var(--hw-gold));
  opacity: .3;
}

.hw-step {
  position: relative;
  padding: 0 14px;
  text-align: center;
}

.hw-step-no {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  font-size: 19px;
  font-weight: 800;
  color: var(--hw-blue);
  background: var(--hw-card);
  border: 2px solid var(--hw-line);
  border-radius: 50%;
  transition: all .25s;
}

.hw-step:hover .hw-step-no {
  color: #2d2205;
  background: var(--hw-gold);
  border-color: var(--hw-gold);
}

.hw-step-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--hw-ink);
}

.hw-step-desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--hw-muted);
}

.hw-step-link {
  font-size: 12.5px;
  color: var(--hw-blue);
}

.hw-step-link:hover {
  color: var(--hw-gold);
}

/* ------------------------------ 深度阅读 ------------------------------ */
.hw-deep {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.hw-deep-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--hw-card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--hw-shadow);
  transition: all .25s;
}

.hw-deep-item:hover {
  box-shadow: var(--hw-shadow-h);
  transform: translateY(-2px);
}

.hw-deep-media {
  flex: 0 0 auto;
  width: 132px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--hw-tint);
}

.hw-deep-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s;
}

.hw-deep-item:hover .hw-deep-media img {
  transform: scale(1.05);
}

.hw-deep-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hw-deep-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--hw-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-deep-item:hover .hw-deep-title {
  color: var(--hw-blue);
}

.hw-deep-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--hw-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-deep-meta {
  font-size: 12px;
  color: var(--hw-muted);
}

/* 首条大卡 */
.hw-deep-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hw-deep-lead .hw-deep-media {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 0;
}

.hw-deep-lead .hw-deep-body {
  padding: 26px 26px 26px 0;
  gap: 10px;
}

.hw-deep-lead .hw-deep-title {
  font-size: 24px;
  line-height: 1.4;
  -webkit-line-clamp: 3;
}

.hw-deep-lead .hw-deep-desc {
  font-size: 14px;
  -webkit-line-clamp: 3;
}

/* ------------------------------ 列表页 ------------------------------ */
.hw-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.hw-shell-article {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  padding-top: 18px;
  padding-bottom: 40px;
}

.hw-shell-article .hw-main {
  flex: 1 1 auto;
  min-width: 0;
}

.hw-aside {
  flex: 0 0 300px;
  width: 300px;
}

.hw-aside-sticky {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hw-page-head {
  padding: 40px 0 26px;
  border-bottom: 1px solid var(--hw-line);
  margin-bottom: 26px;
}

.hw-page-head h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--hw-ink);
}

.hw-page-head p {
  margin: 0;
  font-size: 14px;
  color: var(--hw-muted);
}

.hw-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hw-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--hw-line);
}

.hw-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.hw-item-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--hw-text);
}

.hw-item-title a:hover {
  color: var(--hw-blue);
}

.hw-item-desc {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--hw-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-item-meta {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: var(--hw-muted);
}

.hw-item-media {
  flex: 0 0 auto;
  width: 200px;
  height: 132px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--hw-tint);
}

.hw-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s;
}

.hw-item:hover .hw-item-media img {
  transform: scale(1.05);
}

/* ------------------------------ 分页 ------------------------------ */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.pager .page-link {
  display: inline-block;
  width: auto;
  min-width: 40px;
  height: 40px;
  line-height: 38px;
  text-align: center;
  padding: 0 14px;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--hw-text2);
  background: var(--hw-card);
  border: 1px solid var(--hw-line);
  border-radius: 20px;
  transition: all .2s;
}

.pager .page-link:hover {
  color: var(--hw-blue);
  border-color: var(--hw-blue);
}

.pager .page-link.current {
  color: #fff;
  background: var(--hw-blue);
  border-color: var(--hw-blue);
  font-weight: 700;
}

/* ------------------------------ 文章页 ------------------------------ */
.hw-crumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--hw-muted);
  margin-bottom: 18px;
}

.hw-crumb a:hover {
  color: var(--hw-blue);
}

.hw-article {
  padding-bottom: 8px;
}

.hw-art-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hw-line);
  margin-bottom: 24px;
}

.hw-art-cat {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hw-blue);
  background: var(--hw-blue-t);
  border-radius: 14px;
  padding: 3px 13px;
  margin-bottom: 14px;
}

.hw-art-cat:hover {
  color: #fff;
  background: var(--hw-blue);
}

.hw-art-title {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.6px;
  color: var(--hw-ink);
}

.hw-art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--hw-muted);
}

.hw-dot {
  color: var(--hw-line);
}

/* 要点摘要 */
.hw-keypoints {
  margin: 0 0 28px;
  padding: 20px 24px;
  background: var(--hw-tint);
  border-left: 4px solid var(--hw-gold);
  border-radius: 0 10px 10px 0;
}

.hw-keypoints-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hw-ink);
  margin-bottom: 12px;
}

.hw-keypoints-icon {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #2d2205;
  background: var(--hw-gold);
  border-radius: 3px;
  padding: 1px 7px;
}

.hw-keypoints-list {
  margin: 0;
  padding-left: 20px;
}

.hw-keypoints-list li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--hw-text2);
  margin-bottom: 4px;
}

/* 正文 */
.hw-content {
  font-size: 17px;
  line-height: 2.05;
  color: var(--hw-text);
  overflow-wrap: break-word;
  word-break: break-word;
}

.hw-content p {
  margin: 0 0 1.2em;
  max-width: 100%;
}

.hw-content h2 {
  position: relative;
  margin: 2em 0 .85em;
  padding-left: 15px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--hw-ink);
}

.hw-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4em;
  width: 5px;
  height: 1em;
  background: var(--hw-gold);
  border-radius: 2px;
}

.hw-content h3 {
  margin: 1.6em 0 .75em;
  font-size: 18.5px;
  font-weight: 700;
  color: var(--hw-ink);
}

.hw-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6em auto;
  border-radius: 8px;
  cursor: zoom-in;
}

.hw-content a {
  color: var(--hw-blue);
  border-bottom: 1px solid rgba(11, 92, 171, .3);
}

html[data-theme="dark"] .hw-content a {
  color: #6fb0f0;
}

.hw-content blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  background: var(--hw-tint);
  border-left: 4px solid var(--hw-gold);
  border-radius: 0 8px 8px 0;
  color: var(--hw-text2);
  font-size: 16px;
}

.hw-content ul,
.hw-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.6em;
}

.hw-content li {
  margin-bottom: .5em;
}

.hw-content code {
  background: var(--hw-tint);
  color: #b3261e;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.hw-content pre {
  background: #0c1622;
  color: #e6ebf2;
  padding: 16px 18px;
  border-radius: 8px;
  overflow-x: auto;
  max-width: 100%;
  font-size: 13.5px;
  line-height: 1.7;
}

.hw-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  white-space: pre;
}

.hw-content table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.hw-content table th,
.hw-content table td {
  border: 1px solid var(--hw-line);
  padding: 9px 13px;
  font-size: 14.5px;
  white-space: nowrap;
}

.hw-content table th {
  background: var(--hw-tint);
  font-weight: 700;
}

.hw-art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--hw-line);
}

.hw-art-tags a {
  font-size: 13px;
  color: var(--hw-text2);
  background: var(--hw-tint);
  border-radius: 16px;
  padding: 4px 13px;
}

.hw-art-tags a:hover {
  color: #fff;
  background: var(--hw-blue);
}

/* 上下篇 */
.hw-prevnext {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.hw-prevnext-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: var(--hw-card);
  border: 1px solid var(--hw-line);
  border-radius: 10px;
  transition: all .2s;
}

.hw-prevnext-link:hover {
  border-color: var(--hw-blue);
  box-shadow: var(--hw-shadow);
}

.hw-prevnext-label {
  font-size: 12px;
  color: var(--hw-muted);
}

.hw-prevnext-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--hw-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-prevnext-link:hover .hw-prevnext-title {
  color: var(--hw-blue);
}

.hw-prevnext-link.is-empty {
  border-style: dashed;
  background: transparent;
  cursor: default;
}

.hw-prevnext-link.is-empty .hw-prevnext-title {
  color: var(--hw-muted);
  font-weight: 400;
}

/* 相关推荐 */
.hw-band-inline {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--hw-line);
}

.hw-related {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hw-related-item {
  display: block;
  background: var(--hw-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--hw-shadow);
  transition: all .22s;
}

.hw-related-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--hw-shadow-h);
}

.hw-related-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hw-tint);
}

.hw-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hw-related-title {
  display: block;
  padding: 12px 14px 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--hw-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-related-item:hover .hw-related-title {
  color: var(--hw-blue);
}

/* 侧栏卡片 */
.hw-side-card {
  background: var(--hw-card);
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-r);
  padding: 18px;
}

.hw-side-title {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  padding-left: 11px;
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: var(--hw-ink);
}

.hw-side-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  background: var(--hw-gold);
  border-radius: 2px;
}

.hw-toc a {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--hw-text2);
  padding: 6px 0 6px 11px;
  border-left: 2px solid transparent;
  transition: all .2s;
}

.hw-toc a.lv3 {
  padding-left: 24px;
  font-size: 12.5px;
  color: var(--hw-muted);
}

.hw-toc a:hover {
  color: var(--hw-blue);
}

.hw-toc a.on {
  color: var(--hw-blue);
  border-left-color: var(--hw-gold);
  font-weight: 600;
}

.hw-rank {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hw-rank li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--hw-line);
}

.hw-rank li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hw-rank .no {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hw-muted);
  background: var(--hw-tint);
  border-radius: 4px;
  margin-top: 3px;
}

.hw-rank .no.hot {
  color: #2d2205;
  background: var(--hw-gold);
}

.hw-rank a {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--hw-text2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-rank a:hover {
  color: var(--hw-blue);
}

.hw-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hw-cats a {
  font-size: 12.5px;
  color: var(--hw-text2);
  background: var(--hw-tint);
  border-radius: 14px;
  padding: 4px 11px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all .2s;
}

.hw-cats a:hover {
  color: #fff;
  background: var(--hw-blue);
}

/* 图片灯箱 */
.hw-viewer {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 18, .92);
}

.hw-viewer.open {
  display: flex;
}

.hw-viewer img {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.hw-viewer .close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  font-size: 22px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* ------------------------------ 页脚 ------------------------------ */
.hw-foot {
  margin-top: 0;
  background: #071a2e;
  color: #93a8c0;
  padding-top: 48px;
}

html[data-theme="dark"] .hw-foot {
  background: #070b11;
}

.hw-foot-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.hw-foot-col h4 {
  margin: 0 0 14px;
  font-size: 15.5px;
  font-weight: 700;
  color: #eaf2fb;
}

.hw-foot-col p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: #8399b3;
}

.hw-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.hw-foot-links a {
  font-size: 13.5px;
  color: #8399b3;
  transition: color .2s;
}

.hw-foot-links a:hover {
  color: var(--hw-gold);
}

.hw-fl-more {
  margin-top: 14px;
  padding: 4px 13px;
  font-size: 12px;
  color: #7288a2;
  background: transparent;
  border: 1px solid #1b3450;
  border-radius: 14px;
  cursor: pointer;
  transition: all .2s;
}

.hw-fl-more:hover {
  color: var(--hw-gold);
  border-color: var(--hw-gold);
}

.hw-foot-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #647c98;
  border-top: 1px solid #122a42;
}

/* ------------------------------ 回到顶部 ------------------------------ */
.hw-totop {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 40;
  width: 44px;
  height: 44px;
  font-size: 18px;
  color: #fff;
  background: var(--hw-blue);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 6px 20px rgba(11, 92, 171, .35);
  transition: all .25s;
}

.hw-totop.show {
  opacity: 1;
  visibility: visible;
}

.hw-totop:hover {
  background: var(--hw-gold);
  box-shadow: 0 6px 20px rgba(201, 151, 31, .4);
}

/* ------------------------------ 留言板 ------------------------------ */
.guestbook-form {
  margin-top: 8px;
  max-width: 720px;
}

.guestbook-form .form-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.guestbook-form .form-label {
  flex: 0 0 90px;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hw-text2);
  text-align: right;
}

.guestbook-form .form-value {
  flex: 1 1 auto;
  min-width: 0;
}

.guestbook-form input[type="text"],
.guestbook-form input[type="number"],
.guestbook-form input[type="email"],
.guestbook-form input[type="file"],
.guestbook-form textarea,
.guestbook-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14.5px;
  color: var(--hw-text);
  background: var(--hw-card);
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus,
.guestbook-form select:focus {
  border-color: var(--hw-blue);
}

.guestbook-form textarea {
  resize: vertical;
  line-height: 1.75;
}

.guestbook-form .form-captcha {
  width: 116px;
  height: 42px;
  margin-left: 10px;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
}

.guestbook-form .form-control {
  padding-left: 106px;
  margin-top: 10px;
}

.guestbook-form .form-btn {
  min-width: 150px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--hw-blue);
  border: 0;
  border-radius: 22px;
  cursor: pointer;
  transition: background .2s;
}

.guestbook-form .form-btn:hover {
  background: var(--hw-gold);
}

.post-detail {
  padding: 8px 0 40px;
}

.post-detail .post-title {
  text-align: left;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--hw-ink);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media screen and (max-width: 1180px) {
  .hw-country-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hw-related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1000px) {
  .hw-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 46px 24px 42px;
  }

  .hw-hero-title {
    font-size: 29px;
  }

  .hw-hero-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .hw-quick {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 4px;
  }

  .hw-quick-idx {
    grid-row: auto;
  }

  .hw-path-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hw-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }

  .hw-steps::before {
    display: none;
  }

  .hw-deep {
    grid-template-columns: minmax(0, 1fr);
  }

  .hw-deep-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .hw-deep-lead .hw-deep-media {
    min-height: 200px;
  }

  .hw-deep-lead .hw-deep-body {
    padding: 0 20px 22px;
  }

  .hw-shell-article {
    flex-direction: column;
    gap: 24px;
  }

  .hw-aside {
    width: 100%;
    flex: 1 1 auto;
  }

  .hw-aside-sticky {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hw-foot-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
}

@media screen and (max-width: 760px) {
  .hw-country-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hw-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hw-band {
    padding: 40px 0;
  }

  .hw-band-title {
    font-size: 21px;
  }

  .hw-hero-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .hw-item-media {
    width: 130px;
    height: 92px;
  }

  .hw-item-title {
    font-size: 16.5px;
  }

  .hw-art-title {
    font-size: 24px;
  }

  .hw-content {
    font-size: 16.5px;
  }
}

@media screen and (max-width: 680px) {
  .hw-top-inner {
    height: 56px;
    padding: 0 14px;
    gap: 10px;
  }

  .hw-menu-btn {
    display: flex;
  }

  .hw-nav,
  .hw-search {
    display: none;
  }

  .hw-brand-text {
    font-size: 18px;
  }

  .hw-drawer {
    top: 56px;
  }

  .hw-theme {
    margin-left: auto;
    width: 34px;
    height: 34px;
  }

  .hw-band-inner,
  .hw-shell {
    padding: 0 14px;
  }

  .hw-hero-inner {
    padding: 34px 14px 32px;
  }

  .hw-hero-title {
    font-size: 24px;
  }

  .hw-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hw-deep-item {
    flex-direction: column;
  }

  .hw-deep-media {
    width: 100%;
    height: 170px;
  }

  .hw-rail-card {
    flex: 0 0 82%;
  }

  .hw-aside-sticky {
    grid-template-columns: minmax(0, 1fr);
  }

  .hw-item {
    flex-direction: column;
    gap: 12px;
  }

  .hw-item-media {
    order: -1;
    width: 100%;
    height: 180px;
  }

  .hw-prevnext {
    grid-template-columns: minmax(0, 1fr);
  }

  .hw-related {
    grid-template-columns: minmax(0, 1fr);
  }

  .hw-page-head {
    padding: 26px 0 18px;
  }

  .hw-page-head h1 {
    font-size: 24px;
  }

  .hw-content h2 {
    font-size: 19.5px;
  }

  .guestbook-form .form-item {
    flex-direction: column;
    gap: 6px;
  }

  .guestbook-form .form-label {
    flex: none;
    text-align: left;
    padding-top: 0;
  }

  .guestbook-form .form-control {
    padding-left: 0;
  }

  .hw-totop {
    right: 14px;
    bottom: 18px;
    width: 40px;
    height: 40px;
  }
}
