/* ==========================================================================
   Technology Hub · 技术知识中心（第 2 版重构样式）
   --------------------------------------------------------------------------
   设计目标
   1. 与全站同一套节奏：Banner 56/48、内容区 64/64、CTA 72/72，容器 1280
   2. 与全站同一套字阶：H1 36 / H2 32 / 卡片标题 19（特色卡 24）/ 正文 14.5
   3. 图片统一 16:10 容器 + object-fit: contain + mix-blend-mode: multiply
      —— 站内配图全是白底（PIL 实测四角亮度 251~255），multiply 可让白底
         直接融进浅灰面板，不再出现"白方块浮在卡片里"的割裂感
   4. 全部选择器以 .tech-hub 作用域前缀，绝不外溢污染其它页面
   ========================================================================== */

.tech-hub {
  --th-navy: #0A192F;
  --th-deep: #0F2444;
  --th-brand: #0072C6;
  --th-brand-soft: #EBF4FF;
  --th-cyan: #38BDF8;
  --th-line: #E2E8F0;
  --th-line-soft: #F1F5F9;
  --th-panel: #F8FAFC;
  --th-muted: #64748B;
  --th-body: #334155;
  --th-ink: #0F172A;
  background: #FFFFFF;
}

/* 深链兜底锚点：抵消固定头部高度，本身不可见 */
.tech-hub .th-anchor {
  display: block;
  position: relative;
  top: -90px;
  visibility: hidden;
}

/* ---------- 01 · Banner ---------- */
.tech-hub .th-hero {
  padding: 56px 0 48px;
  background: radial-gradient(circle at 80% 18%, #1E3A8A 0%, #0A192F 72%);
  border-bottom: 1px solid #1E293B;
  color: #FFFFFF;
}
.tech-hub .th-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.tech-hub .th-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .35);
  color: var(--th-cyan);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  padding: 6px 15px;
  border-radius: 999px;
}
.tech-hub .th-hero__badge svg { flex: 0 0 auto; }

.tech-hub .th-hero h1 {
  font-size: 36px;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -.4px;
  color: #FFFFFF;
  margin: 20px 0 14px;
}
.tech-hub .th-hero h1 span {
  display: block;
  color: var(--th-cyan);
}
.tech-hub .th-hero__lead {
  font-size: 15.5px;
  line-height: 1.72;
  color: #CBD5E1;
  max-width: 640px;
  margin: 0 auto 28px;
}

/* 搜索条：深色玻璃面板，宽度与 Banner 文案栏对齐 */
.tech-hub .th-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
  padding: 8px 8px 8px 16px;
  background: rgba(15, 36, 68, .85);
  border: 1px solid rgba(56, 189, 248, .30);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.tech-hub .th-search svg { flex: 0 0 auto; }
.tech-hub .th-search input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 14.5px;
  font-family: inherit;
}
.tech-hub .th-search input::placeholder { color: #94A3B8; }
.tech-hub .th-search .btn {
  flex: 0 0 auto;
  padding: 8px 20px;
  font-size: 13.5px;
}

/* ---------- 02 · 文章列表 ---------- */
.tech-hub .th-feed { background: #FFFFFF; padding: 64px 0; }

.tech-hub .th-feed__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tech-hub .th-feed__title h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--th-deep);
  letter-spacing: -.3px;
  margin-bottom: 6px;
}
.tech-hub .th-feed__title p {
  font-size: 14px;
  color: var(--th-muted);
  line-height: 1.6;
}
.tech-hub .th-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tech-hub .th-filter {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #475569;
  background: #FFFFFF;
  border: 1px solid var(--th-line);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.tech-hub .th-filter:hover {
  border-color: var(--th-brand);
  color: var(--th-brand);
}
.tech-hub .th-filter.is-active {
  background: var(--th-brand);
  border-color: var(--th-brand);
  color: #FFFFFF;
}

/* 特色文章：左图右文，图区固定 16:11，文字区自适应 */
.tech-hub .th-featured {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  background: #FFFFFF;
  border: 1px solid #BAE0FF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 114, 198, .08);
  margin-bottom: 24px;
  scroll-margin-top: 90px;
}
.tech-hub .th-featured__media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--th-panel);
  border-right: 1px solid var(--th-line-soft);
}
.tech-hub .th-featured__media img {
  position: absolute;
  inset: 30px;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.tech-hub .th-featured__body {
  display: flex;
  flex-direction: column;
  padding: 32px 34px;
  min-width: 0;
}
.tech-hub .th-featured h3 {
  font-size: 24px;
  line-height: 1.36;
  letter-spacing: -.2px;
  margin: 14px 0 12px;
}
.tech-hub .th-featured h3 a { color: var(--th-deep); }
.tech-hub .th-featured h3 a:hover { color: var(--th-brand); }
.tech-hub .th-featured__excerpt {
  font-size: 14.5px;
  line-height: 1.68;
  color: #475569;
  margin: 12px 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tech-hub .th-featured__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--th-line-soft);
}
.tech-hub .th-featured__foot .btn { padding: 9px 20px; font-size: 13.5px; }

/* 通用胶囊与元信息 */
.tech-hub .th-chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .01em;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--th-panel);
  color: #475569;
  white-space: nowrap;
}
.tech-hub .th-chip--brand { background: var(--th-brand-soft); color: var(--th-brand); }
.tech-hub .th-meta {
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.6;
}
.tech-hub .th-byline {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

/* 列表卡：左 320 图 + 右文，可随文章数量自然向下延伸 */
.tech-hub .th-list { display: grid; gap: 18px; }

.tech-hub .th-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: #FFFFFF;
  border: 1px solid var(--th-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tech-hub .th-card:hover {
  border-color: #BAE0FF;
  box-shadow: 0 10px 28px rgba(0, 114, 198, .10);
}
.tech-hub .th-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--th-panel);
  border-right: 1px solid var(--th-line-soft);
}
.tech-hub .th-card__media img {
  position: absolute;
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.tech-hub .th-card__body {
  display: flex;
  flex-direction: column;
  padding: 22px 26px;
  min-width: 0;
}
.tech-hub .th-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tech-hub .th-card h3 {
  font-size: 19px;
  line-height: 1.42;
  margin-bottom: 8px;
}
.tech-hub .th-card h3 a { color: var(--th-deep); }
.tech-hub .th-card h3 a:hover { color: var(--th-brand); }
.tech-hub .th-card__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--th-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tech-hub .th-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--th-line-soft);
}
.tech-hub .th-tags {
  font-size: 12px;
  font-weight: 700;
  color: var(--th-brand);
}
.tech-hub .th-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--th-brand);
  white-space: nowrap;
}
.tech-hub .th-more:hover { color: #005FA5; }

.tech-hub .th-empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--th-line);
  border-radius: 12px;
  color: var(--th-muted);
  font-size: 14.5px;
}

/* ---------- 03 · FAQ ---------- */
.tech-hub .th-faq { background: var(--th-panel); padding: 64px 0; }
.tech-hub .th-faq__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
}
.tech-hub .th-faq__intro h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--th-deep);
  letter-spacing: -.3px;
  margin-bottom: 12px;
}
.tech-hub .th-faq__intro p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--th-muted);
  margin-bottom: 20px;
}
.tech-hub .th-faq__intro .btn { padding: 9px 20px; font-size: 13.5px; }

.tech-hub .th-acc { border-top: 1px solid var(--th-line); }
.tech-hub .th-acc details { border-bottom: 1px solid var(--th-line); }
.tech-hub .th-acc summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--th-deep);
  cursor: pointer;
  list-style: none;
}
.tech-hub .th-acc summary::-webkit-details-marker { display: none; }
.tech-hub .th-acc summary::marker { content: ""; }
.tech-hub .th-acc summary:hover { color: var(--th-brand); }
.tech-hub .th-acc summary .th-acc__ico {
  flex: 0 0 auto;
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 4px;
}
.tech-hub .th-acc summary .th-acc__ico::before,
.tech-hub .th-acc summary .th-acc__ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--th-brand);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, opacity .2s ease;
}
.tech-hub .th-acc summary .th-acc__ico::before { width: 14px; height: 2px; }
.tech-hub .th-acc summary .th-acc__ico::after { width: 2px; height: 14px; }
.tech-hub .th-acc details[open] summary .th-acc__ico::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.tech-hub .th-acc details[open] summary { color: var(--th-brand); }
.tech-hub .th-acc__body {
  padding: 0 40px 20px 2px;
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
}

/* ---------- 04 · 资料中心 ---------- */
.tech-hub .th-res { background: #FFFFFF; padding: 64px 0; }

.tech-hub .th-catalog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px 32px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0A192F 0%, #1E3A8A 100%);
  box-shadow: 0 10px 24px rgba(10, 25, 47, .16);
  color: #FFFFFF;
}
.tech-hub .th-catalog__kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--th-cyan);
  margin-bottom: 6px;
}
.tech-hub .th-catalog h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.tech-hub .th-catalog p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #CBD5E1;
  max-width: 640px;
}
.tech-hub .th-catalog .btn { flex: 0 0 auto; padding: 11px 24px; font-size: 13.5px; }

.tech-hub .th-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tech-hub .th-spec {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--th-panel);
  border: 1px solid var(--th-line);
  border-radius: 10px;
  transition: border-color .2s ease, background .2s ease;
}
.tech-hub .th-spec:hover { border-color: #BAE0FF; background: #FFFFFF; }
.tech-hub .th-spec__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.tech-hub .th-spec h4 {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--th-deep);
  margin-bottom: 6px;
}
.tech-hub .th-spec p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--th-muted);
  margin-bottom: 16px;
}
.tech-hub .th-spec__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.tech-hub .th-spec__actions .btn {
  padding: 7px 0;
  font-size: 12px;
}
.tech-hub .th-spec__actions .btn:first-child { flex: 1 1 auto; }
.tech-hub .th-spec__actions .btn:last-child { flex: 0 0 auto; padding: 7px 12px; }

.tech-hub .th-res__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--th-line);
}
.tech-hub .th-res__col h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--th-deep);
  margin-bottom: 6px;
}
.tech-hub .th-res__col > p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--th-muted);
  margin-bottom: 16px;
}
.tech-hub .th-doclist { list-style: none; }
.tech-hub .th-doclist li { border-bottom: 1px dashed var(--th-line); }
.tech-hub .th-doclist li:last-child { border-bottom: 0; }
.tech-hub .th-doclist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--th-brand);
}
.tech-hub .th-doclist a:hover { color: #005FA5; }
.tech-hub .th-doclist a span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tech-hub .th-doclist .th-doclist__meta {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 500;
  color: #94A3B8;
}

.tech-hub .th-tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-hub .th-tagcloud span {
  font-size: 12.5px;
  line-height: 1.5;
  color: #475569;
  background: var(--th-panel);
  border: 1px solid var(--th-line);
  border-radius: 4px;
  padding: 5px 11px;
}
.tech-hub .th-tagcloud span:hover {
  color: var(--th-brand);
  border-color: #BAE0FF;
  background: var(--th-brand-soft);
}

/* ---------- 05 · 结尾 CTA ---------- */
.tech-hub .th-cta {
  padding: 72px 0;
  background: radial-gradient(circle at 50% 0%, #1E3A8A 0%, #0A192F 70%);
  text-align: center;
  color: #FFFFFF;
}
.tech-hub .th-cta__inner { max-width: 760px; margin: 0 auto; }
.tech-hub .th-cta h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.3px;
  color: #FFFFFF;
  margin-bottom: 14px;
}
.tech-hub .th-cta p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #CBD5E1;
  max-width: 620px;
  margin: 0 auto 32px;
}
.tech-hub .th-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.tech-hub .th-cta .btn {
  padding: 12px 28px;
  font-size: 14.5px;
  font-weight: 700;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .tech-hub .th-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-hub .th-faq__grid { grid-template-columns: 320px 1fr; gap: 40px; }
  .tech-hub .th-card { grid-template-columns: 260px 1fr; }
}

@media (max-width: 900px) {
  .tech-hub .th-hero { padding: 48px 0 40px; }
  .tech-hub .th-hero h1 { font-size: 29px; margin: 16px 0 12px; }
  .tech-hub .th-hero__lead { font-size: 14.5px; }
  .tech-hub .th-search { max-width: 100%; }

  .tech-hub .th-feed,
  .tech-hub .th-faq,
  .tech-hub .th-res { padding: 48px 0; }

  .tech-hub .th-feed__head { align-items: flex-start; }
  .tech-hub .th-feed__title h2 { font-size: 24px; }

  .tech-hub .th-featured { grid-template-columns: 1fr; }
  .tech-hub .th-featured__media {
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-bottom: 1px solid var(--th-line-soft);
  }
  .tech-hub .th-featured__media img { inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); }
  .tech-hub .th-featured__body { padding: 24px 22px; }
  .tech-hub .th-featured h3 { font-size: 20px; }

  .tech-hub .th-card { grid-template-columns: 1fr; }
  .tech-hub .th-card__media {
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--th-line-soft);
  }
  .tech-hub .th-card__media img { inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); }
  .tech-hub .th-card__body { padding: 20px; }

  .tech-hub .th-faq__grid { grid-template-columns: 1fr; gap: 28px; }
  .tech-hub .th-faq__intro h2 { font-size: 24px; }

  .tech-hub .th-catalog { padding: 22px 20px; }
  .tech-hub .th-catalog h3 { font-size: 17px; }
  .tech-hub .th-spec-grid { grid-template-columns: 1fr; }
  .tech-hub .th-res__foot { grid-template-columns: 1fr; gap: 28px; }

  .tech-hub .th-cta { padding: 56px 0; }
  .tech-hub .th-cta h2 { font-size: 24px; }
  .tech-hub .th-cta p { font-size: 14.5px; }
}

@media (max-width: 600px) {
  .tech-hub .th-hero h1 { font-size: 26px; }
  .tech-hub .th-feed__title h2,
  .tech-hub .th-faq__intro h2 { font-size: 22px; }
  .tech-hub .th-cta h2 { font-size: 22px; }
  .tech-hub .th-acc summary { font-size: 14.5px; }
  .tech-hub .th-acc__body { padding-right: 0; }
  .tech-hub .th-cta .btn { width: 100%; }
}


/* --- Refined Single-line Header & Search Toolbar --- */
.tech-hub .th-feed__head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #E2E8F0}
.tech-hub .th-feed__title h2{font-size:26px;font-weight:800;color:#0F2444;letter-spacing:-.3px;margin:0 0 6px}
.tech-hub .th-feed__title p{font-size:14px;color:#64748B;margin:0}
.tech-hub .th-search-inline{display:flex;align-items:center;background:#FFFFFF;border:1px solid #CBD5E1;border-radius:999px;padding:4px 6px 4px 14px;width:100%;max-width:380px;box-shadow:0 2px 6px rgba(15,36,68,0.04);transition:all .2s ease}
.tech-hub .th-search-inline:focus-within{border-color:#0072C6;box-shadow:0 0 0 3px rgba(0,114,198,0.12)}
.tech-hub .th-search-inline svg{flex-shrink:0;margin-right:8px}
.tech-hub .th-search-inline input{border:none;background:transparent;font-size:13.5px;color:#0F2444;width:100%;padding:6px 0;outline:none}
.tech-hub .th-search-inline input::placeholder{color:#94A3B8}
.tech-hub .th-search-inline .btn{border-radius:999px;padding:6px 16px;font-size:13px;font-weight:700;flex-shrink:0}
.tech-hub .th-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:28px}
.tech-hub .th-filter{font-family:inherit;font-size:13px;font-weight:600;color:#475569;background:#F1F5F9;border:1px solid transparent;border-radius:999px;padding:7px 16px;cursor:pointer;transition:all .18s ease}
.tech-hub .th-filter:hover{background:#E2E8F0;color:#0F2444}
.tech-hub .th-filter.is-active{background:#0072C6;color:#FFFFFF;border-color:#0072C6;box-shadow:0 2px 8px rgba(0,114,198,0.25)}
@media(max-width:768px){
  .tech-hub .th-feed__head{flex-direction:column;align-items:stretch}
  .tech-hub .th-search-inline{max-width:100%}
}
