/* 空调设备网 (www.wonhope.cn) - Modern Engineering & HVAC Portal Stylesheet */
:root {
  --brand-navy: #0B3558;
  --brand-blue: #0E6EB8;
  --brand-sky: #0284C7;
  --brand-ice: #E0F2FE;
  --brand-orange: #EA580C;
  --brand-orange-soft: #FFF7ED;
  --brand-green: #15803D;
  --brand-green-soft: #F0FDF4;
  --ink-900: #0F172A;
  --ink-700: #334155;
  --ink-500: #64748B;
  --border: #E2E8F0;
  --surface: #F8FAFC;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --max-w: 1220px;
}

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

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
a:hover {
  color: var(--brand-orange);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

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

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

.brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-blue);
  background: #EFF6FF;
}

.nav-link.nav-valve {
  color: #C2410C;
}
.nav-link.nav-valve:hover,
.nav-link.nav-valve.is-active {
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
  width: 210px;
  flex-shrink: 0;
}

.header-search input {
  border: none;
  background: transparent;
  padding: 7px 12px;
  font-size: 13.5px;
  color: var(--ink-900);
  width: 100%;
  outline: none;
}

.header-search button {
  border: none;
  background: var(--brand-blue);
  color: var(--white);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.header-search button:hover {
  background: var(--brand-navy);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-900);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Mandatory Top Announcement Banner (Below Navigation) */
.announce-bar {
  background: linear-gradient(90deg, #0B3558 0%, #0E5A93 60%, #0C4A6E 100%);
  color: #F1F5F9;
  border-bottom: 2px solid var(--brand-orange);
  padding: 10px 0;
  font-size: 13.5px;
}

.announce-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.announce-badge {
  background: var(--brand-orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 1px;
}

.announce-text {
  margin: 0;
  line-height: 1.55;
  color: #F8FAFC;
  word-break: break-word;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #082640 0%, #0E4D7B 55%, #0C3B5E 100%);
  color: var(--white);
  padding: 44px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 32px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #BAE6FD;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  margin: 0 0 24px;
  color: #CBD5E1;
  font-size: 15.5px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--brand-orange);
  color: var(--white);
}
.btn-primary:hover {
  background: #C2410C;
  color: var(--white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.btn-blue {
  background: var(--brand-blue);
  color: var(--white);
}
.btn-blue:hover {
  background: var(--brand-navy);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.btn-outline:hover {
  background: #EFF6FF;
  color: var(--brand-navy);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-box {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.metric-num {
  font-size: 20px;
  font-weight: 800;
  color: #38BDF8;
  line-height: 1.2;
}

.metric-label {
  font-size: 12px;
  color: #CBD5E1;
  margin-top: 4px;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

/* Section layout */
.section {
  padding: 42px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-orange));
}

.section-desc {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 14px;
}

.more-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  white-space: nowrap;
}

/* Quick Tool Strip & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.card-accent-orange {
  border-top: 3px solid var(--brand-orange);
}
.card-accent-blue {
  border-top: 3px solid var(--brand-blue);
}
.card-accent-cyan {
  border-top: 3px solid var(--brand-sky);
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #EFF6FF;
  color: var(--brand-blue);
}

.tag-orange {
  background: var(--brand-orange-soft);
  color: #C2410C;
}

.tag-green {
  background: var(--brand-green-soft);
  color: var(--brand-green);
}

.tag-slate {
  background: #F1F5F9;
  color: var(--ink-700);
}

/* Product Cards */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product-thumb {
  background: #F1F5F9;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.product-thumb img {
  width: 100%;
  height: 155px;
  object-fit: contain;
}

.product-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  margin: 8px 0 6px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
}

.product-title a {
  color: var(--ink-900);
}
.product-title a:hover {
  color: var(--brand-blue);
}

.product-meta {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 10px;
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.spec-pill {
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--ink-700);
}

/* Article Cards & List */
.article-card-title {
  margin: 10px 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.article-card-title a {
  color: var(--ink-900);
}
.article-card-title a:hover {
  color: var(--brand-blue);
}

.article-summary {
  margin: 0 0 12px;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-500);
}

/* Filter Tabs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-700);
  font-size: 13.5px;
  font-weight: 600;
}

.filter-pill:hover,
.filter-pill.is-active {
  background: var(--brand-blue);
  color: var(--white);
  border-color: var(--brand-blue);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 14px;
}

table.data-table th,
table.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.data-table th {
  background: #F1F5F9;
  color: var(--ink-900);
  font-weight: 700;
  white-space: nowrap;
}

table.data-table tr:last-child td {
  border-bottom: none;
}

table.data-table tbody tr:hover {
  background: #F8FAFC;
}

/* Interactive Engineering Calculator UI */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink-900);
  background: var(--white);
}
.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(14, 110, 184, 0.14);
}

.calc-result-box {
  background: #0F172A;
  color: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 20px;
}

.calc-result-title {
  margin: 0 0 14px;
  font-size: 16px;
  color: #38BDF8;
  font-weight: 700;
}

.calc-kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 14px;
}

.calc-kv:last-child {
  border-bottom: none;
}

.calc-k {
  color: #94A3B8;
}
.calc-v {
  font-weight: 700;
  color: #FFFFFF;
  text-align: right;
}

.status-ok {
  color: #4ADE80 !important;
}
.status-warn {
  color: #FBBF24 !important;
}
.status-err {
  color: #F87171 !important;
}

/* Page Banner & Breadcrumb */
.page-banner {
  background: linear-gradient(120deg, #0B3558 0%, #0E5A93 100%);
  color: var(--white);
  padding: 32px 0;
}

.breadcrumb {
  font-size: 13px;
  color: #BAE6FD;
  margin-bottom: 10px;
}
.breadcrumb a {
  color: #E0F2FE;
}
.breadcrumb a:hover {
  color: #FFFFFF;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.3;
}

.page-banner p {
  margin: 0;
  color: #CBD5E1;
  font-size: 14.5px;
  max-width: 780px;
}

/* Article Detail Prose */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.article-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}

.prose h2 {
  font-size: 20px;
  color: var(--brand-navy);
  margin: 26px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: 17px;
  color: var(--ink-900);
  margin: 20px 0 8px;
}

.prose p {
  margin: 0 0 14px;
  color: var(--ink-700);
  line-height: 1.8;
}

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-700);
}

.prose li {
  margin-bottom: 7px;
}

.callout-box {
  background: var(--brand-orange-soft);
  border-left: 4px solid var(--brand-orange);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
  color: #7C2D12;
  font-size: 14px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-blue);
}

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

.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.sidebar-list li:last-child {
  border-bottom: none;
}

/* Footer */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 42px 0 26px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-title {
  color: var(--white);
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
  font-size: 13.5px;
}

.footer-links a {
  color: #94A3B8;
}
.footer-links a:hover {
  color: #38BDF8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  color: #94A3B8;
}

.footer-bottom a {
  color: #CBD5E1;
}
.footer-bottom a:hover {
  color: #FFFFFF;
}

/* Responsive Breakpoints (Tablet & 375px Mobile) */
@media (max-width: 1024px) {
  .hero-grid,
  .detail-layout,
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-search {
    display: none;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 4px;
  }
  .main-nav.is-open {
    display: flex;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 14px;
  }
  .brand-logo {
    height: 38px;
  }
  .hero-section {
    padding: 28px 0 32px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-box {
    padding: 18px 16px;
  }
  .section {
    padding: 30px 0;
  }
  .section-title {
    font-size: 20px;
  }
  .page-banner h1 {
    font-size: 22px;
  }
  .calc-kv {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .calc-v {
    text-align: left;
    word-break: break-word;
  }
}
