/* ===================== 帮助中心页面 ===================== */
/* 强调色与站点主题一致（红粉色系）；类名以 hc- 前缀独立命名 */
:root {
  --hc-accent-1: #ff5a7a;
  --hc-accent-2: #e0344e;
  --hc-accent: #e0344e;
  --hc-grad: linear-gradient(135deg, #ff5a7a, #e0344e);
  --hc-soft: #fff1f2;
  --hc-ring: rgba(224, 52, 78, 0.2);
  --hc-text: #2b3340;
  --hc-sub: #808b9a;
  --hc-line: #f3eff0;
}

.hc-main {
  width: var(--indexBaseWidth);
  margin: 0 auto;
  padding-bottom: 40px;
}

/* 面包屑 */
.hc-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  font-size: 13px;
  color: var(--hc-sub);
  animation: hc-fade-down 0.4s ease both;
}

.hc-crumb-link {
  color: var(--hc-sub);
  transition: color 0.2s;
}

.hc-crumb-link:hover {
  color: var(--hc-accent);
}

.hc-crumb-sep {
  width: 7px;
  height: 7px;
  border-right: 1.4px solid #c3cad6;
  border-top: 1.4px solid #c3cad6;
  transform: rotate(45deg);
}

.hc-crumb-cur {
  color: #3a4250;
  font-weight: 600;
}

/* 主面板 */
.hc-panel {
  display: flex;
  align-items: stretch;
  min-height: 620px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(150, 45, 60, 0.06);
  overflow: hidden;
  animation: hc-fade-up 0.5s ease both;
}

/* ===== 左侧目录 ===== */
.hc-side {
  flex-shrink: 0;
  width: 262px;
  padding: 14px 12px 24px;
  background: linear-gradient(180deg, #fffbfb, #fff);
  border-right: 1px solid var(--hc-line);
}

.hc-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  margin-bottom: 8px;
  color: #333c4a;
  font-size: 15px;
  font-weight: 700;
}

.hc-side-head svg {
  color: var(--hc-accent);
}

.hc-menu {
  display: flex;
  flex-direction: column;
}

/* 分组头 */
.hc-group + .hc-group {
  margin-top: 4px;
}

.hc-group-head {
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  padding: 0 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #3a4250;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.hc-group-head:hover {
  background: var(--hc-soft);
  color: var(--hc-accent);
}

.hc-group-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  color: var(--hc-accent);
  transition: transform 0.25s;
}

.hc-group.is-open .hc-group-ic,
.hc-group-head:hover .hc-group-ic {
  transform: scale(1.08);
}

.hc-group-name {
  flex: 1;
  text-align: left;
}

.hc-group-arrow {
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.hc-group.is-open .hc-group-arrow {
  transform: rotate(45deg);
  opacity: 1;
}

/* 分组内容（手风琴折叠） */
.hc-group-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.34s ease;
}

.hc-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0;
  padding: 9px 12px 9px 42px;
  color: var(--hc-sub);
  font-size: 13.5px;
  line-height: 1.4;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, padding 0.2s;
}

/* 左侧竖条指示 */
.hc-item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 2px;
  background: var(--hc-grad);
  transform: translateY(-50%);
  transition: height 0.22s ease;
}

.hc-item:hover {
  color: #3a4250;
  background: #fbf6f7;
  padding-left: 46px;
}

.hc-item-arrow {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.hc-item:hover .hc-item-arrow {
  opacity: 0.5;
  transform: rotate(45deg) translate(1px, -1px);
}

.hc-item.is-active {
  color: var(--hc-accent);
  background: var(--hc-soft);
  font-weight: 600;
}

.hc-item.is-active::before {
  height: 16px;
}

.hc-item.is-active .hc-item-arrow {
  opacity: 0.9;
}

/* ===== 右侧内容 ===== */
.hc-content {
  flex: 1;
  min-width: 0;
  padding: 26px 30px 30px;
}

.hc-content-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--hc-line);
}

.hc-content-title {
  font-size: 21px;
  font-weight: 700;
  color: #262e3a;
}

.hc-content-badge {
  padding: 3px 10px;
  font-size: 12px;
  color: var(--hc-accent);
  background: var(--hc-soft);
  border-radius: 20px;
}

/* 文章正文 */
.hc-article {
  margin-top: 20px;
  color: #4a5361;
  font-size: 14.5px;
  line-height: 1.9;
}

.hc-article p {
  margin-bottom: 14px;
}

.hc-article img {
  max-width: 100%;
  border-radius: 10px;
}

/* 进场动画 */
.hc-article.is-enter {
  animation: hc-article-in 0.4s ease both;
}

/* 步骤卡 */
.hc-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 22px;
}

.hc-step {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fff8f9, #fff);
  border: 1px solid var(--hc-line);
  border-radius: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hc-step:hover {
  transform: translateY(-3px);
  border-color: #ffd9de;
  box-shadow: 0 10px 22px rgba(224, 52, 78, 0.1);
}

.hc-step-no {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  background: var(--hc-grad);
  border-radius: 9px;
  box-shadow: 0 6px 14px var(--hc-ring);
}

.hc-step-txt h4 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #2c3542;
}

.hc-step-txt p {
  margin: 0;
  font-size: 13.5px;
  color: var(--hc-sub);
  line-height: 1.7;
}

/* 提示条 */
.hc-tip {
  position: relative;
  padding: 14px 16px 14px 18px;
  font-size: 13.5px;
  color: #6a5b2e;
  background: linear-gradient(90deg, #fff9ec, #fffdf7);
  border: 1px solid #ffe6b8;
  border-radius: 10px;
  overflow: hidden;
}

.hc-tip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ffcf6b, #ffb020);
}

.hc-tip strong {
  color: #d9932a;
}

/* ===== 没有解决问题 ===== */
.hc-help {
  margin-top: 40px;
}

.hc-help-sep {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hc-help-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e6eaf1, transparent);
}

.hc-help-text {
  flex-shrink: 0;
  font-size: 14px;
  font-style: normal;
  color: var(--hc-sub);
}

.hc-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.hc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hc-btn svg {
  transition: transform 0.25s ease;
}

.hc-btn:hover svg {
  transform: scale(1.12);
}

.hc-btn--primary {
  color: #fff;
  background: var(--hc-grad);
  border: none;
  box-shadow: 0 10px 22px var(--hc-ring);
}

.hc-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(224, 52, 78, 0.35);
}

.hc-btn--ghost {
  color: var(--hc-accent);
  background: #fff;
  border: 1.5px solid #ffd0d7;
}

.hc-btn--ghost:hover {
  transform: translateY(-2px);
  background: var(--hc-soft);
  box-shadow: 0 10px 22px rgba(224, 52, 78, 0.12);
}

/* ===== 动画关键帧 ===== */
@keyframes hc-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hc-fade-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hc-article-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
