/* ==========================================================================
   服务支持页面（html/support.html）
   仅在 style.css 之后加载，复用站点头部与尾部
   设计语言：白色底、1px 细线、4px 小圆角、橙色 --sc-orange 作唯一强调色
   ========================================================================== */

:root {
  --sc-ink: #222222;
  --sc-body: #4d4d4d;
  --sc-muted: #949494;
  --sc-line: #e8e8e8;
  --sc-orange: #fbb03f;
  --sc-surface: #fafafa;
}

/* --------------------------------------------------------------------------
   页头
   -------------------------------------------------------------------------- */

.support-head {
  padding-top: clamp(40px, 3.6vw, 66px);
  padding-bottom: clamp(34px, 3.2vw, 56px);
  background: linear-gradient(180deg, #f7f7f8 0%, #ffffff 100%);
  border-bottom: 1px solid #f1f1f1;
}

.support-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(16px, 1.5vw, 24px);
  font-size: clamp(12px, 0.8vw, 14px);
  color: var(--sc-muted);
}

.support-crumb a {
  color: var(--sc-muted);
  transition: color 0.2s var(--ease);
}

.support-crumb a:hover {
  color: var(--sc-orange);
}

.support-crumb [aria-current="page"] {
  color: #767676;
}

.support-head__title {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 44px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--sc-ink);
}

.support-head__desc {
  max-width: 52em;
  margin: clamp(14px, 1.2vw, 20px) 0 0;
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.9;
  color: var(--sc-body);
}

/* 锚点跳转时给吸顶头部留出空间，避免区块标题被压住 */
.support-section[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* --------------------------------------------------------------------------
   区块通用
   -------------------------------------------------------------------------- */

.support-section {
  padding-top: clamp(44px, 4.2vw, 76px);
}

.support-section__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: clamp(22px, 2.2vw, 34px);
}

.support-section__title {
  margin: 0;
  font-size: clamp(20px, 1.7vw, 30px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--sc-ink);
}

/* 标题右上角的小折角装饰（与产品页 .prod-section__mark 同款） */
.support-section__mark {
  position: relative;
  display: block;
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: -0.2em;
  color: var(--sc-orange);
}

.support-section__mark::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.support-section__mark::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: currentColor;
}

.support-section__lead {
  max-width: 54em;
  margin: calc(clamp(22px, 2.2vw, 34px) * -1 + 8px) 0 clamp(22px, 2.2vw, 34px);
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.9;
  color: var(--sc-muted);
}

/* --------------------------------------------------------------------------
   1. 服务能力卡片
   -------------------------------------------------------------------------- */

.support-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 24px);
}

.support-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2vw, 32px) clamp(18px, 1.7vw, 26px);
  border: 1px solid var(--sc-line);
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.support-card:hover {
  border-color: #dedede;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.055);
  transform: translateY(-2px);
}

.support-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: clamp(14px, 1.3vw, 20px);
  border-radius: 50%;
  color: var(--sc-orange);
  background: rgba(251, 176, 63, 0.1);
}

.support-card__icon svg {
  width: 22px;
  height: 22px;
}

.support-card__title {
  margin: 0 0 10px;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 500;
  color: var(--sc-ink);
}

.support-card__desc {
  margin: 0;
  font-size: clamp(12.5px, 0.84vw, 14px);
  line-height: 1.85;
  color: var(--sc-muted);
}

/* 卡片底部条目 */
.support-card__list {
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #f2f2f2;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.support-card__list li {
  position: relative;
  padding-left: 12px;
  font-size: clamp(12px, 0.8vw, 13.5px);
  line-height: 1.7;
  color: #6d6d6d;
}

.support-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sc-orange);
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   2. 服务流程
   -------------------------------------------------------------------------- */

.support-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--sc-line);
  border-bottom: 1px solid var(--sc-line);
}

.support-step {
  position: relative;
  padding: clamp(24px, 2.4vw, 38px) clamp(14px, 1.4vw, 24px);
  border-left: 1px solid var(--sc-line);
  background: #fff;
  transition: background-color 0.28s var(--ease);
}

.support-step:first-child {
  border-left: 0;
}

.support-step:hover {
  background: #fcfcfc;
}

.support-step__num {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(11px, 0.78vw, 13px);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sc-orange);
  font-variant-numeric: tabular-nums;
}

.support-step__title {
  margin: 0 0 8px;
  font-size: clamp(14px, 0.98vw, 16.5px);
  font-weight: 500;
  color: var(--sc-ink);
}

.support-step__desc {
  margin: 0;
  font-size: clamp(12px, 0.8vw, 13.5px);
  line-height: 1.8;
  color: var(--sc-muted);
}

/* --------------------------------------------------------------------------
   3. 常见问题（原生 details 折叠）
   -------------------------------------------------------------------------- */

.support-faq {
  border-top: 1px solid var(--sc-line);
}

.support-faq__item {
  border-bottom: 1px solid var(--sc-line);
}

.support-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 1.7vw, 26px) 2px;
  font-size: clamp(14px, 0.98vw, 16.5px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--sc-ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.22s var(--ease), padding-left 0.28s var(--ease);
}

/* 去掉 Safari 的默认三角 */
.support-faq__q::-webkit-details-marker {
  display: none;
}

.support-faq__q:hover {
  color: var(--sc-orange);
  padding-left: 8px;
}

/* 右侧加号，展开时旋转成减号 */
.support-faq__sign {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.support-faq__sign::before,
.support-faq__sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}

.support-faq__sign::before {
  width: 14px;
  height: 1.6px;
  transform: translate(-50%, -50%);
}

.support-faq__sign::after {
  width: 1.6px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.support-faq__item[open] .support-faq__sign::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.support-faq__item[open] .support-faq__q {
  color: var(--sc-orange);
}

.support-faq__a {
  margin: 0;
  padding: 0 2px clamp(20px, 1.9vw, 28px);
  max-width: 62em;
  font-size: clamp(13px, 0.88vw, 15px);
  line-height: 1.95;
  color: var(--sc-body);
}

/* --------------------------------------------------------------------------
   4. 支持入口（深色块，与站尾同色系）
   -------------------------------------------------------------------------- */

.support-cta {
  margin-top: clamp(48px, 4.6vw, 84px);
  padding: clamp(36px, 3.6vw, 60px) clamp(24px, 3vw, 52px);
  border-radius: 4px;
  background: #28292a;
  color: #fff;
}

.support-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 56px);
}

.support-cta__title {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 28px);
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}

.support-cta__text {
  margin: 10px 0 0;
  font-size: clamp(12.5px, 0.88vw, 14.5px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.62);
}

.support-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: clamp(13px, 0.88vw, 15px);
  color: #fff;
  background: var(--sc-orange);
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.support-btn:hover {
  background: #f5a423;
}

.support-btn--ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.support-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* 页尾留白，与站尾的负边距箭头错开 */
.support-bottom-space {
  padding-bottom: clamp(56px, 5.4vw, 96px);
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .support-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .support-step:nth-child(4) {
    border-left: 0;
  }

  .support-step:nth-child(n + 4) {
    border-top: 1px solid var(--sc-line);
  }
}

@media (max-width: 860px) {
  .support-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .support-cta__actions {
    width: 100%;
  }

  .support-cta__actions .support-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 640px) {
  .support-services {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-step {
    border-left: 0;
  }

  .support-step + .support-step {
    border-top: 1px solid var(--sc-line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-card,
  .support-card__icon,
  .support-step,
  .support-faq__q,
  .support-faq__sign::before,
  .support-faq__sign::after {
    transition-duration: 0.01ms !important;
  }
}
