:root {
  --hw-green: #0F7A5F;
  --hw-green-dark: #0A5543;
  --hw-sky: #2F6FAD;
  --hw-ink: #1C2A28;
  --hw-muted: #6A7874;
  --hw-line: #D5E3DE;
  --hw-bg: #F3F7F5;
  --hw-white: #FFFFFF;
  --hw-wrap: 1160px;
  --hw-sans: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
  --hw-display: "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--hw-sans);
  color: var(--hw-ink);
  background: var(--hw-bg);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
a:hover { color: var(--hw-green-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  font-family: var(--hw-display);
}

.hw-wrap {
  width: min(100% - 32px, var(--hw-wrap));
  margin-inline: auto;
}

/* Topbar */
.hw-topbar {
  background: var(--hw-green-dark);
  color: #D7ECE5;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hw-topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
}

/* Header */
.hw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--hw-green);
}

.hw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.hw-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(52vw, 300px);
}

.hw-logo img { height: 42px; width: auto; }

.hw-logo-mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.hw-logo-cn {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--hw-green);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.hw-logo-en {
  position: absolute;
  right: -6px;
  bottom: -4px;
  background: var(--hw-sky);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  letter-spacing: 0.06em;
}

.hw-logo-mark-sm {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.hw-logo-text { min-width: 0; }
.hw-logo-text strong { display: block; font-size: 18px; }
.hw-logo-text em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--hw-muted);
  margin-top: 2px;
  letter-spacing: 0.06em;
}

.hw-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hw-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hw-nav > ul > li { position: relative; }

.hw-nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 6px;
}

.hw-nav > ul > li.is-active > a,
.hw-nav > ul > li > a:hover {
  color: var(--hw-green-dark);
  background: #E7F4EF;
}

.hw-subnav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  padding: 8px 0;
  background: var(--hw-white);
  border: 1px solid var(--hw-line);
  box-shadow: 0 12px 28px rgba(28, 42, 40, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .2s;
  z-index: 20;
}

.hw-nav > ul > li:hover > .hw-subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hw-subnav a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
}

.hw-subnav a:hover,
.hw-subnav .is-active a {
  background: #E7F4EF;
  color: var(--hw-green-dark);
}

.hw-search {
  display: flex;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  overflow: hidden;
  background: #F8FBFA;
}

.hw-search input {
  width: 130px;
  border: 0;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  background: transparent;
  outline: none;
}

.hw-search button {
  border: 0;
  border-left: 1px solid var(--hw-line);
  background: var(--hw-green);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}

.hw-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hw-line);
  background: var(--hw-white);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hw-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--hw-ink);
  transition: .2s;
}

.hw-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 40, 34, 0.4);
  z-index: 90;
}

body.nav-open .hw-nav-mask { display: block; }

/* Mast */
.hw-mast {
  padding: 42px 0 36px;
  background:
    linear-gradient(120deg, rgba(15, 122, 95, 0.12), transparent 45%),
    linear-gradient(300deg, rgba(47, 111, 173, 0.1), transparent 40%),
    #EAF4F0;
  border-bottom: 1px solid var(--hw-line);
  text-align: left;
}

.hw-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--hw-sky);
  font-weight: 700;
}

.hw-mast h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  max-width: 14em;
  margin-bottom: 12px;
}

.hw-mast-desc {
  margin: 0 0 22px;
  max-width: 36em;
  color: var(--hw-muted);
  font-size: 16px;
}

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

.hw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid transparent;
}

.hw-btn-primary {
  background: var(--hw-green);
  color: #fff;
}

.hw-btn-primary:hover {
  background: var(--hw-green-dark);
  color: #fff;
}

.hw-btn-ghost {
  border-color: var(--hw-sky);
  color: var(--hw-sky);
  background: transparent;
}

.hw-btn-ghost:hover {
  background: var(--hw-sky);
  color: #fff;
}

/* Three-column wire */
.hw-wire {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr 0.9fr;
  gap: 20px;
  padding: 28px 0 20px;
  align-items: start;
}

.hw-col {
  background: var(--hw-white);
  border: 1px solid var(--hw-line);
  padding: 18px;
  min-height: 100%;
}

.hw-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hw-green);
}

.hw-section-hd h2 { font-size: 18px; }
.hw-section-hd a,
.hw-section-hd span {
  font-size: 12px;
  color: var(--hw-muted);
}

.hw-flash li + li { border-top: 1px dashed var(--hw-line); }

.hw-flash a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 10px 0;
  align-items: baseline;
  font-size: 13px;
}

.hw-flash time {
  color: var(--hw-green);
  font-weight: 700;
  font-size: 12px;
}

.hw-lead {
  display: block;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hw-line);
}

.hw-lead img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 12px;
  background: #E7F0EC;
}

.hw-lead em {
  display: inline-block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #fff;
  background: var(--hw-sky);
  padding: 2px 8px;
  margin-bottom: 8px;
  font-weight: 700;
}

.hw-lead h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

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

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

.hw-lead-list li + li { border-top: 1px solid var(--hw-line); }

.hw-lead-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  align-items: baseline;
}

.hw-lead-list h4 { font-size: 15px; font-weight: 600; }
.hw-lead-list span { flex-shrink: 0; font-size: 12px; color: var(--hw-muted); }

.hw-col-brief {
  background: linear-gradient(180deg, #0F7A5F 0%, #0A5543 100%);
  border-color: transparent;
  color: #EAF7F2;
}

.hw-col-brief .hw-section-hd {
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.hw-col-brief .hw-section-hd h2 { color: #fff; }
.hw-col-brief .hw-section-hd a { color: #B7E4D5; }

.hw-brief li + li { border-top: 1px solid rgba(255, 255, 255, 0.12); }

.hw-brief a {
  display: block;
  padding: 12px 0;
  color: #EAF7F2;
}

.hw-brief strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 600;
}

.hw-brief p {
  margin: 0;
  font-size: 12px;
  color: #B7E4D5;
}

.hw-brief a:hover strong { color: #fff; }

/* Tech strip */
.hw-tech {
  padding: 12px 0 56px;
}

.hw-tech .hw-section-hd {
  border-bottom-color: var(--hw-sky);
  margin-bottom: 18px;
}

.hw-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hw-tech-card {
  display: flex;
  flex-direction: column;
  background: var(--hw-white);
  border: 1px solid var(--hw-line);
  overflow: hidden;
}

.hw-tech-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #E7F0EC;
}

.hw-tech-card > div { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.hw-tech-card h3 { font-size: 16px; margin-bottom: 8px; }
.hw-tech-card p { margin: 0 0 10px; font-size: 13px; color: var(--hw-muted); flex: 1; }
.hw-tech-card time { font-size: 12px; color: var(--hw-muted); }
.hw-tech-card:hover { border-color: var(--hw-green); }

/* Interior */
.hw-crumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--hw-muted);
  background: #EAF1EE;
  border-bottom: 1px solid var(--hw-line);
}

.hw-crumb span { margin: 0 6px; opacity: 0.5; }

.hw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 32px 0 56px;
  align-items: start;
}

.hw-panel {
  background: var(--hw-white);
  border: 1px solid var(--hw-line);
  padding: 20px;
  margin-bottom: 18px;
}

.hw-list-panel { padding: 26px; }

.hw-page-title {
  font-size: 26px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--hw-green);
}

.hw-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--hw-muted);
}

.hw-article-list li + li { border-top: 1px solid var(--hw-line); }

.hw-article-list a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 18px 0;
  align-items: start;
}

.hw-article-list a:not(:has(img)) { grid-template-columns: 1fr; }
.hw-article-list img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #E7F0EC;
}
.hw-article-list h2 { font-size: 18px; margin-bottom: 8px; }
.hw-article-list p { margin: 0 0 10px; font-size: 14px; color: var(--hw-muted); }

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

.hw-meta.center { justify-content: center; margin: 12px 0 24px; }

.hw-detail { padding: 32px 28px; }
.hw-detail > h1 {
  font-size: clamp(24px, 3vw, 34px);
  max-width: 18em;
}

.hw-richtext {
  font-size: 16px;
  line-height: 1.9;
  color: #243532;
}
.hw-richtext p { margin: 0 0 1.1em; }
.hw-richtext img { margin: 1em auto; }
.hw-richtext a { color: var(--hw-green-dark); text-decoration: underline; text-underline-offset: 3px; }

.hw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hw-tags a {
  padding: 4px 10px;
  border: 1px solid var(--hw-line);
  font-size: 12px;
  background: #EAF4F0;
  border-radius: 999px;
}

.hw-tags a:hover {
  border-color: var(--hw-green);
  color: var(--hw-green-dark);
}

.hw-pagerow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--hw-line);
  font-size: 14px;
}

.hw-pagination { margin-top: 24px; }

.hw-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hw-page a,
.hw-page .dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--hw-line);
  font-size: 13px;
  background: var(--hw-white);
  border-radius: 6px;
}

.hw-page .active a,
.hw-page a:hover {
  background: var(--hw-green);
  border-color: var(--hw-green);
  color: #fff;
}

.hw-side .hw-panel { margin-bottom: 16px; }
.hw-panel-hd {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hw-line);
}
.hw-panel-hd h3 { font-size: 15px; }

.hw-rank { counter-reset: hw-rank; }
.hw-rank li {
  counter-increment: hw-rank;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hw-line);
  font-size: 13px;
}
.hw-rank li::before {
  content: counter(hw-rank, decimal-leading-zero);
  color: var(--hw-green);
  font-weight: 700;
  flex-shrink: 0;
}

.hw-side-list li + li { border-top: 1px solid var(--hw-line); }
.hw-side-list a { display: block; padding: 10px 0; font-size: 13px; }
.hw-ad { font-size: 14px; color: var(--hw-muted); }

/* Footer */
.hw-footer {
  background: #12352D;
  color: #C9DED6;
  padding: 44px 0 24px;
}

.hw-footer a { color: #EAF7F2; }
.hw-footer a:hover { color: #8FDBBF; }

.hw-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.hw-foot-brand h3 {
  font-size: 20px;
  color: #8FDBBF;
  margin: 0 0 8px;
}

.hw-footer h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8FDBBF;
  margin-bottom: 12px;
}

.hw-footer p { margin: 0 0 8px; font-size: 14px; }
.hw-foot-links { display: flex; flex-direction: column; gap: 8px; }
.hw-foot-links a { font-size: 14px; }

.hw-friendlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(143, 219, 191, 0.2);
  font-size: 13px;
}

.hw-friendlinks span { color: #8FDBBF; }

.hw-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(143, 219, 191, 0.2);
  font-size: 12px;
  color: #8AA399;
}

@media (max-width: 980px) {
  .hw-wire { grid-template-columns: 1fr; }
  .hw-tech-grid { grid-template-columns: 1fr; }
  .hw-layout { grid-template-columns: 1fr; }
  .hw-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hw-nav-toggle { display: flex; }

  .hw-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100vh;
    background: var(--hw-white);
    border-left: 1px solid var(--hw-line);
    flex-direction: column;
    align-items: stretch;
    padding: 72px 20px 28px;
    gap: 18px;
    z-index: 110;
    transform: translateX(104%);
    transition: transform .28s ease;
    overflow-y: auto;
  }

  .hw-nav.is-open { transform: none; }

  .hw-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .hw-nav > ul > li > a {
    border-bottom: 1px solid var(--hw-line);
    border-radius: 0;
    padding: 14px 4px;
  }

  .hw-subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    display: none;
    background: transparent;
    padding: 0 0 8px 12px;
  }

  .hw-nav > ul > li.is-open > .hw-subnav { display: block; }

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

  body.nav-open .hw-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open .hw-nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .hw-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hw-article-list a { grid-template-columns: 1fr; }
  .hw-detail { padding: 22px 16px; }
  .hw-footer-grid { grid-template-columns: 1fr; }
  .hw-lead-list a { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .hw-mast-actions { flex-direction: column; }
  .hw-btn { width: 100%; }
}
