/* 帮助中心统一设计规范样式
   严格沿用全站纯蓝(#2563ff / #eef4ff)、纯白(#ffffff)、墨黑(#172b4d)配色与按钮 6px 圆角。 */

body[data-page="help"] {
  background: #f8fafd;
  color: #172b4d;
}

/* ---------- 横幅图片由后台轮播维护，遮罩保障居中文字可读性 ---------- */
body[data-page="help"] .help-hero {
  padding: 76px 0 68px;
}

body[data-page="help"] .help-hero > .container {
  text-align: center;
}

body[data-page="help"] .help-hero-subtitle {
  margin: 0 auto;
  max-width: 720px;
  width: 100%;
  text-align: center !important;
}

body[data-page="help"] .help-hot-tags,
body[data-page="help"] .help-hero-stats {
  justify-content: center;
}

body[data-page="help"] .help-hero .ydm-hero-banner::after {
  background: linear-gradient(90deg, rgba(18, 43, 83, .58) 0%, rgba(18, 43, 83, .58) 58%, rgba(18, 43, 83, .18) 100%);
}

body[data-page="help"] .help-hero p {
  margin: 14px auto 0;
  max-width: 720px;
}

.hc-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 16px auto 0;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.hc-search:focus-within {
  border-color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24), 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.hc-search svg {
  width: 20px;
  height: 20px;
  color: #64748b;
  flex: none;
}

.hc-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: #172b4d;
  padding: 10px 0;
}

.hc-search input::placeholder {
  color: #94a3b8;
}

.hc-search button {
  border: 0;
  border-radius: 6px;
  background: #2563ff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 26px;
  cursor: pointer;
  transition: background 0.16s ease;
  flex: none;
}

.hc-search button:hover {
  background: #1b4fe0;
}

/* ---------- 通用区块布局 ---------- */
.hc-overview-sec {
  padding: 56px 0 64px;
  background: #f8fafd;
}

.hc-block + .hc-block {
  margin-top: 44px;
}

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

.hc-section-head h2 {
  font-size: 24px;
  color: #172b4d;
  margin: 0;
  font-weight: 700;
}

.hc-section-head h2 em {
  font-style: normal;
  color: #2563ff;
}

.hc-section-head p {
  font-size: 13.5px;
  color: #64748b;
  margin: 4px 0 0;
}

/* ---------- 新手入门 ---------- */
.hc-starter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hc-starter {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  gap: 18px; width: 100%; text-align: left; text-decoration: none; font: inherit;
  background: radial-gradient(ellipse at 100% 0%, #dce9ff 0%, transparent 62%), linear-gradient(145deg,#fff,#f5f8ff);
  border: 1px solid #dce6f8; border-radius: 16px; padding: 26px; cursor: pointer;
  box-shadow: 0 5px 20px #1e4fa206; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hc-starter:nth-child(2) {background: radial-gradient(ellipse at 100% 0%,#d5f0f5,transparent 62%),linear-gradient(145deg,#fff,#f5fbfc)}
.hc-starter:nth-child(3) {background: radial-gradient(ellipse at 100% 0%,#e8e1ff,transparent 62%),linear-gradient(145deg,#fff,#f9f7ff)}
.hc-starter:hover {border-color:#8babff;transform:translateY(-4px);box-shadow:0 14px 32px #254c9e13}
.hc-starter:focus-visible {outline:2px solid #2563ff;outline-offset:4px}
.hc-starter-icon {display:grid;place-items:center;width:48px;height:48px;border:1px solid #fff;background:#ffffffc9;border-radius:14px;color:#2563ff;box-shadow:0 5px 12px #2563ff0c}
.hc-starter-icon svg {width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.hc-starter-body {display:block;min-width:0;flex:1}
.hc-starter-body b {display:block;font-size:18px;color:#172b4d;margin-bottom:8px;font-weight:600}
.hc-starter-body small {display:block;font-size:13px;line-height:1.7;color:#60718c}
.hc-starter-action {display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:2px;padding-top:15px;border-top:1px solid #2d60b514;font-size:13px;font-weight:600;color:#2563ff}
.hc-starter:hover @media(prefers-reduced-motion:reduce){.hc-starter{transition:none;transform:none!important}}


/* ---------- 按功能查找：分类宫格 ---------- */
.hc-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hc-cat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hc-cat:hover {
  border-color: #2563ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 255, 0.08);
}

.hc-cat-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hc-cat-body b {
  display: block;
  font-size: 15.5px;
  color: #172b4d;
  margin-bottom: 6px;
}

.hc-cat-body small {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: #64748b;
  min-height: 42px;
  flex: 1;
}

.hc-cat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.hc-cat-foot em {
  font-style: normal;
  font-size: 12px;
  color: #64748b;
}

.hc-cat-foot i {
  font-style: normal;
  color: #2563ff;
  font-size: 18px;
  font-weight: 600;
}

/* ---------- 精选资源与工单入口 ---------- */
.hc-res-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hc-res-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.hc-res-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: #172b4d;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.hc-res-support {
  background: #f8fbff;
  border-color: #dbe7ff;
}

.hc-res-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  padding: 11px 0;
  cursor: pointer;
}

.hc-res-item:last-child {
  border-bottom: 0;
}

.hc-res-item b {
  font-size: 13.5px;
  color: #172b4d;
  font-weight: 500;
  line-height: 1.5;
}

.hc-res-item:hover b {
  color: #2563ff;
}

.hc-res-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #2563ff;
  background: #eef4ff;
  border-radius: 6px;
  padding: 2px 7px;
  margin-right: 8px;
}

.hc-res-type--faq {
  color: #172b4d;
  background: #f1f5f9;
}

.hc-res-item small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.hc-res-empty {
  font-size: 13px;
  color: #64748b;
}

.hc-res-more-link {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #2563ff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 0 0;
  cursor: pointer;
}

.hc-res-more-link:hover {
  text-decoration: underline;
}

.hc-res-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 18px;
}

.hc-res-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hc-res-actions .btn {
  width: 100%;
  font-size: 13.5px;
  padding: 10px 16px;
}

.hc-res-note {
  margin-top: auto;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid #dbe7ff;
  padding-top: 14px;
}

/* ---------- 全部文档知识库工作区 ---------- */
.hc-doc-section {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 56px 0 72px;
}

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

.hc-doc-head .service-tabs {
  margin-bottom: 0;
  justify-content: flex-end;
}

@media (max-width: 1000px) {
  .hc-starter-grid,
  .hc-cat-grid,
  .hc-res-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-page="help"] .help-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  body[data-page="help"] .help-hero {
    padding: 52px 0 48px;
  }
  .hc-search button {
    padding: 10px 18px;
  }
  .hc-starter-grid,
  .hc-cat-grid,
  .hc-res-grid {
    grid-template-columns: 1fr;
  }
  .hc-res-card {
    min-height: 0;
  }
  .hc-doc-head {
    align-items: flex-start;
  }
  .hc-doc-head .service-tabs {
    justify-content: flex-start;
  }
}
