/*
 * Skills 商用页面样式
 *
 * 视觉主线：能力目录 + 调用轨道 + 支付回执。
 * 沿用官网蓝色品牌体系，但偏工程化、可信开发者产品；
 * 无玻璃拟态、无无意义渐变、无虚构客户 Logo / 指标 / 评价。
 */

:root {
  color-scheme: dark;
  --sk-navy: #07162c;
  --sk-ink: #0b1730;
  --sk-blue: #0757f5;
  --sk-blue-2: #1e90ff;
  --sk-cyan: #00ff85;
  --sk-line: #dbe1ea;
  --sk-line-dark: rgba(255, 255, 255, 0.12);
  --sk-surface: #fff;
  --sk-surface-dark: #111a2e;
  --sk-muted: #667085;
  --sk-muted-light: #94a3b8;
  --sk-success: #087f4f;
  --sk-danger: #b42318;
  --sk-radius: 12px;
  --sk-tap: 44px;
}

html {
  background: #0b0d14;
}

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(30, 144, 255, 0.24);
}

[id] {
  scroll-margin-top: 110px;
}

/* 页面容器，与官网 container 对齐但可更宽 */
.sk-container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

/* 顶部让位固定导航 */
#skills-hero {
  padding-top: 140px;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(0, 255, 133, 0.08), transparent 55%),
    radial-gradient(ellipse at 82% 12%, rgba(30, 144, 255, 0.08), transparent 55%),
    #0b0d14;
  border-bottom: 1px solid var(--sk-line-dark);
}
.sk-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(0, 255, 133, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sk-cyan);
  margin-bottom: 18px;
}
#skills-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 16px;
  max-width: 18ch;
  text-wrap: balance;
}
#skills-hero p {
  color: var(--sk-muted-light);
  font-size: clamp(1rem, 2vw, 1.12rem);
  max-width: 64ch;
  line-height: 1.75;
}
.sk-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.sk-hero-points span {
  border: 1px solid var(--sk-line-dark);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.86rem;
  color: #d6deea;
}

/* 通用 section 标题 */
.sk-section {
  padding: 76px 0;
}
.sk-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.sk-section .sk-sub {
  color: var(--sk-muted-light);
  margin: 0 0 40px;
  max-width: 60ch;
  line-height: 1.7;
}
#skills-audience,
#skills-flow,
#skills-catalog {
  background: #0b0d14;
  border-top: 1px solid var(--sk-line-dark);
}

/* 三类使用者 */
.sk-audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.sk-audience {
  background: var(--sk-surface-dark);
  border: 1px solid var(--sk-line-dark);
  border-radius: var(--sk-radius);
  padding: 26px;
}
.sk-audience .sk-ico {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(7, 87, 245, 0.16);
  color: var(--sk-blue-2);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.sk-audience h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 10px;
}
.sk-audience p {
  color: var(--sk-muted-light);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* 接入流程步骤 */
.sk-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  counter-reset: flow;
}
.sk-flow-step {
  position: relative;
  background: var(--sk-surface-dark);
  border: 1px solid var(--sk-line-dark);
  border-radius: var(--sk-radius);
  padding: 24px 22px 22px;
}
.sk-flow-step::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  top: -14px;
  left: 22px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--sk-blue);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.sk-flow-step h3 {
  color: #fff;
  font-size: 1.02rem;
  margin: 8px 0 8px;
}
.sk-flow-step p {
  color: var(--sk-muted-light);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* 能力目录网格 */
.sk-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.sk-card {
  background: var(--sk-surface-dark);
  border: 1px solid var(--sk-line-dark);
  border-radius: var(--sk-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.sk-card:hover {
  border-color: rgba(30, 144, 255, 0.5);
  transform: translateY(-4px);
}
.sk-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.sk-card-head h3 {
  color: #fff;
  font-size: 1.18rem;
  margin: 0;
}
.sk-card-head .sk-ver {
  font-size: 0.78rem;
  color: var(--sk-muted-light);
  white-space: nowrap;
}
.sk-card p {
  color: #c7d0dd;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}
.sk-card .sk-outputs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 4px 0 0;
}
.sk-card .sk-outputs li {
  font-size: 0.8rem;
  color: #d6deea;
  border: 1px solid var(--sk-line-dark);
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 10px;
  border-radius: 8px;
}
.sk-card .sk-price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--sk-line-dark);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.sk-card .sk-price b {
  font-size: 1.4rem;
  color: var(--sk-cyan);
}

.sk-card .sk-price b,
.sk-price-row b,
.sk-state.payment .sk-pay-amt,
.sk-receipt dd {
  font-variant-numeric: tabular-nums;
}
.sk-card .sk-price small {
  color: var(--sk-muted-light);
  font-size: 0.82rem;
  font-weight: 500;
}

/* 交互调用区 */
#skills-console {
  background: #080a10;
  border-top: 1px solid var(--sk-line-dark);
}
.sk-console {
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: start;
}
.sk-panel {
  background: var(--sk-surface-dark);
  border: 1px solid var(--sk-line-dark);
  border-radius: var(--sk-radius);
  padding: 22px;
  min-height: 640px;
}
.sk-panel h3 {
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 16px;
}
.sk-skill-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.sk-skill-btn {
  appearance: none;
  text-align: left;
  background: #0e1424;
  border: 1px solid var(--sk-line-dark);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  color: #e7ecf4;
  cursor: pointer;
  min-height: var(--sk-tap);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sk-skill-btn:hover {
  border-color: rgba(30, 144, 255, 0.55);
}
.sk-skill-btn:focus-visible {
  outline: 3px solid rgba(7, 87, 245, 0.4);
  outline-offset: 2px;
}
.sk-skill-btn[aria-pressed="true"] {
  border-color: var(--sk-blue);
  box-shadow: inset 3px 0 0 var(--sk-blue);
  background: #111a2e;
}
.sk-skill-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(7, 87, 245, 0.16);
  color: var(--sk-blue-2);
  font-weight: 800;
}
.sk-skill-btn b {
  display: block;
  font-size: 0.98rem;
}
.sk-skill-btn small {
  display: block;
  color: var(--sk-muted-light);
  font-size: 0.8rem;
  margin-top: 3px;
  line-height: 1.4;
  font-weight: 400;
}
.sk-skill-btn i {
  font-style: normal;
  color: var(--sk-cyan);
  font-size: 0.9rem;
  white-space: nowrap;
}
.sk-detail {
  margin: -6px 0 22px;
  padding: 16px 18px;
  background: rgba(7, 87, 245, 0.08);
  border-left: 3px solid var(--sk-blue);
  border-radius: 0 10px 10px 0;
}
.sk-detail > span {
  color: var(--sk-blue-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.sk-detail p {
  margin: 8px 0 10px;
  color: #d6deea;
  line-height: 1.6;
  font-size: 0.92rem;
}
.sk-detail ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.sk-detail li {
  font-size: 0.82rem;
  color: #c7d0dd;
  border: 1px solid var(--sk-line-dark);
  background: #0e1424;
  padding: 5px 10px;
  border-radius: 8px;
}
.sk-field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 9px;
}
.sk-field textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid #3a455c;
  border-radius: 9px;
  padding: 14px;
  font: inherit;
  line-height: 1.6;
  color: #e7ecf4;
  background: #0e1424;
}
.sk-field textarea:focus-visible {
  outline: 3px solid rgba(7, 87, 245, 0.4);
  outline-offset: 2px;
}
.sk-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--sk-line-dark);
  margin-top: 20px;
  padding: 18px 4px;
}
.sk-price-row b {
  font-size: 1.5rem;
  color: var(--sk-cyan);
}
.sk-price-row small {
  color: var(--sk-muted-light);
  font-size: 0.85rem;
  font-weight: 500;
}
.sk-btn {
  border: 0;
  border-radius: 9px;
  min-height: var(--sk-tap);
  font: 700 0.95rem inherit;
  cursor: pointer;
  touch-action: manipulation;
  width: 100%;
  background: var(--sk-blue);
  color: #fff;
  transition: background 0.15s ease;
}
.sk-btn:hover {
  background: #0049dc;
}
.sk-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.sk-btn:focus-visible {
  outline: 3px solid rgba(7, 87, 245, 0.4);
  outline-offset: 2px;
}
.sk-btn.secondary {
  background: transparent;
  color: var(--sk-blue-2);
  border: 1px solid var(--sk-blue);
  padding: 0 20px;
  width: auto;
  min-width: 180px;
}
.sk-btn.secondary:hover {
  background: rgba(7, 87, 245, 0.1);
}

/* 右侧状态面板 */
.sk-status {
  display: flex;
  flex-direction: column;
}
.sk-state {
  border: 1px solid var(--sk-line-dark);
  border-radius: 12px;
  padding: 22px;
}
.sk-state.empty {
  margin: auto 0;
  text-align: center;
}
.sk-state.empty b {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.sk-state.empty p {
  color: var(--sk-muted-light);
  margin: 0;
}
.sk-state h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 14px;
}
.sk-state.payment {
  text-align: center;
}
.sk-state.payment .sk-pay-amt {
  font-size: 1.6rem;
  color: var(--sk-cyan);
  font-weight: 800;
}
.sk-state.payment .sk-pay-amt small {
  font-size: 0.85rem;
  color: var(--sk-muted-light);
  font-weight: 500;
}
.sk-qr {
  width: min(260px, 80%);
  display: block;
  margin: 18px auto 12px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}
.sk-state.payment p {
  color: var(--sk-muted-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 6px 0;
}
.sk-demo-note {
  margin: 14px auto;
  max-width: 340px;
  border: 1px solid #f0b45d;
  color: #f0b45d;
  background: rgba(240, 180, 93, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
}
.sk-mode-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #536175;
  color: #8793a4;
}
.sk-mode-badge.live {
  border-color: #70c79e;
  color: var(--sk-success);
}
.sk-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #2a3550;
  border-top-color: var(--sk-blue-2);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: sk-spin 0.8s linear infinite;
}
.sk-error {
  background: rgba(180, 35, 24, 0.12);
  color: #ff9d92;
  border: 1px solid rgba(180, 35, 24, 0.4);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* 成功回执视图 */
.sk-success {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(380px, 1.2fr);
  gap: 18px;
  align-items: stretch;
}
.sk-success-card {
  background: var(--sk-surface-dark);
  border: 1px solid var(--sk-line-dark);
  border-radius: var(--sk-radius);
  padding: 30px;
}
.sk-success-confirm {
  border-top: 4px solid #20a875;
}
.sk-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(32, 168, 117, 0.16);
  color: var(--sk-cyan);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
}
.sk-success-kicker {
  margin: 22px 0 8px;
  color: var(--sk-success);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.sk-success-confirm h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin: 0 0 14px;
  max-width: 12ch;
}
.sk-success-confirm > p {
  color: var(--sk-muted-light);
  line-height: 1.65;
  margin: 0;
}
.sk-receipt {
  margin: 30px 0 0;
  border-top: 1px solid var(--sk-line-dark);
}
.sk-receipt div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--sk-line-dark);
}
.sk-receipt dt {
  color: var(--sk-muted-light);
  margin: 0;
  font-size: 0.9rem;
}
.sk-receipt dd {
  margin: 0;
  color: #e7ecf4;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.sk-receipt .sk-ok {
  color: var(--sk-cyan);
}
.sk-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.sk-result-head span {
  color: var(--sk-blue-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.sk-result-head h3 {
  margin: 5px 0 0;
  font-size: 1.2rem;
  color: #fff;
}
.sk-result-pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #0e1424;
  border: 1px solid var(--sk-line-dark);
  border-radius: 8px;
  padding: 16px;
  line-height: 1.65;
  min-height: 320px;
  font-size: 0.88rem;
  color: #d6deea;
  margin: 0;
}
.sk-success-reset {
  grid-column: 1 / -1;
  justify-self: start;
  width: auto;
  min-width: 220px;
  padding: 0 24px;
}
.sk-console-foot {
  font-size: 0.82rem;
  color: var(--sk-muted-light);
  padding: 18px 4px 0;
  line-height: 1.6;
}
.sk-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sk-skip:focus-visible {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  left: 16px;
  top: 92px;
  background: #07162c;
  color: #fff;
  padding: 10px 14px;
  z-index: 30;
  border-radius: 8px;
  border: 1px solid var(--sk-blue);
}

@keyframes sk-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .sk-console,
  .sk-success {
    grid-template-columns: 1fr;
  }
  .sk-panel {
    min-height: auto;
  }
  .sk-success-pre {
    min-height: 240px;
  }
  .sk-success-reset {
    width: 100%;
  }
}

@media (max-width: 700px) {
  nav {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: calc(10px + env(safe-area-inset-top)) 16px 8px;
  }
  nav .logo img {
    height: 34px;
  }
  nav .logo .brand-name {
    font-size: 1.35rem;
  }
  nav ul {
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: thin;
  }
  nav ul li {
    flex: 0 0 auto;
  }
  nav ul li a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    white-space: nowrap;
    font-size: 0.82rem;
  }
  #skills-hero {
    padding-top: 156px;
  }
  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

@media (max-width: 520px) {
  .sk-skill-btn {
    grid-template-columns: 36px 1fr;
  }
  .sk-skill-btn i {
    grid-column: 2;
  }
  .sk-result-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
