/* ==========================================================================
   KOXHUB 官网样式
   品牌色：紫色主色 #863bff，辅助色 #47bfff
   ========================================================================== */

:root {
  --brand: #863bff;
  --brand-dark: #6c22e0;
  --brand-light: #ede6ff;
  --accent: #47bfff;
  --text: #16182b;
  --text-sub: #5b607a;
  --text-weak: #8a90a8;
  --bg: #ffffff;
  --bg-soft: #f7f6fd;
  --border: #e8e7f2;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(22, 24, 43, 0.05);
  --shadow: 0 12px 32px rgba(22, 24, 43, 0.08);
  --shadow-brand: 0 14px 30px rgba(134, 59, 255, 0.28);
  --max-width: 1160px;
  --header-h: 66px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica,
    Arial, "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 88px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
}

.section-desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-sub);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.26);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo img {
  width: 26px;
  height: 26px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  margin: 3px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 92px;
  background: radial-gradient(
      900px 420px at 12% -10%,
      rgba(134, 59, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(
      760px 380px at 92% 8%,
      rgba(71, 191, 255, 0.16),
      transparent 62%
    ),
    var(--bg-soft);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(96deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-sub);
  max-width: 560px;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-weak);
}

.hero__stats {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
}

.stat__value {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand);
}

.stat__label {
  font-size: 13px;
  color: var(--text-weak);
}

/* Hero 视觉：模拟工作台 */
.mockup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fbfaff;
}

.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dcdae8;
}

.mockup__title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-weak);
}

.mockup__body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.mock-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.mock-row:nth-child(odd) {
  background: #fbfaff;
}

.mock-row__name {
  font-size: 14px;
  font-weight: 600;
}

.mock-row__meta {
  font-size: 12px;
  color: var(--text-weak);
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.tag--green {
  color: #0f9160;
  background: #e5f8f0;
}

.tag--blue {
  color: #1a72d8;
  background: #e8f2ff;
}

.tag--orange {
  color: #c8721a;
  background: #fff2e2;
}

.tag--gray {
  color: #6d7288;
  background: #f0f0f5;
}

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(134, 59, 255, 0.32);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-light);
  color: var(--brand);
  margin-bottom: 16px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: 18px;
  font-weight: 700;
}

.card__desc {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text-sub);
}

.card__list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-sub);
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- 图文交替区块 ---------- */
.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
}

/* 栅格子项默认 min-width:auto 会被宽表格撑开，统一收敛 */
.feature > *,
.hero__grid > *,
.grid > * {
  min-width: 0;
}

.feature + .feature {
  margin-top: 84px;
}

.feature--reverse .feature__media {
  order: -1;
}

.feature__title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  margin-top: 8px;
}

.feature__desc {
  margin-top: 14px;
  color: var(--text-sub);
}

.check-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--text-sub);
}

.check-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--brand);
  margin-top: 2px;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 16px;
}

.panel__head h4 {
  font-size: 15px;
}

.kv {
  display: grid;
  gap: 12px;
}

.kv__item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.kv__key {
  color: var(--text-weak);
}

.kv__val {
  font-weight: 600;
}

.timeline {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}

.timeline__item {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--text-sub);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: #fff;
}

.timeline__time {
  display: block;
  font-size: 12px;
  color: var(--text-weak);
}

/* ---------- 步骤 ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  opacity: 0.55;
  margin-bottom: 10px;
}

.step__title {
  font-size: 16.5px;
  font-weight: 700;
}

.step__desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-sub);
}

/* ---------- 下载卡片 ---------- */
.download-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.download-card--featured {
  border-color: rgba(134, 59, 255, 0.4);
  box-shadow: var(--shadow);
}

.download-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.download-card__logo {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--brand), #a271ff);
  color: #fff;
  flex: none;
}

.download-card__logo svg {
  width: 28px;
  height: 28px;
}

.download-card__name {
  font-size: 20px;
  font-weight: 700;
}

.download-card__platform {
  font-size: 13px;
  color: var(--text-weak);
}

.download-card__desc {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-sub);
}

.download-card__meta {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 13.5px;
}

.download-card__meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-sub);
}

.download-card__meta strong {
  color: var(--text);
  font-weight: 600;
}

.download-card__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-card__hint {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-weak);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand);
  flex: none;
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-sub);
}

/* ---------- CTA ---------- */
.cta {
  padding: 76px 0;
}

.cta__inner {
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  color: #fff;
  background: linear-gradient(126deg, #6c22e0, #863bff 46%, #47bfff);
  box-shadow: var(--shadow-brand);
}

.cta__title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}

.cta__desc {
  margin-top: 14px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
}

.cta__actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cta .btn--primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.cta .btn--primary:hover {
  background: #f6f2ff;
}

/* ---------- 关于页 ---------- */
.about-hero {
  padding: 76px 0 60px;
  background: var(--bg-soft);
}

.value-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.milestones {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.milestone {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--border);
}

.milestone:last-child {
  border-bottom: none;
}

.milestone__when {
  font-weight: 700;
  color: var(--brand);
}

.milestone__what h4 {
  font-size: 16.5px;
}

.milestone__what p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--text-sub);
}

.contact-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}

.contact-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-sub);
  word-break: break-all;
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
}

td {
  color: var(--text-sub);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #14152a;
  color: #b9bdd4;
  padding: 62px 0 26px;
}

.footer a {
  color: #b9bdd4;
  font-size: 14.5px;
}

.footer a:hover {
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}

.footer .logo {
  color: #fff;
}

.footer__desc {
  margin-top: 14px;
  font-size: 14px;
  max-width: 320px;
  color: #8f95b2;
}

.footer__col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}

.footer__col li + li {
  margin-top: 10px;
}

.footer__bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 13px;
  color: #797f9c;
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--4,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3,
  .value-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__grid,
  .feature {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 62px 0;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 18px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }

  .nav__link.is-active::after {
    display: none;
  }

  .header__actions {
    margin-left: auto;
  }

  .header__actions .btn {
    padding: 9px 16px;
    font-size: 14px;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero__grid,
  .feature,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature__media {
    order: 0;
  }

  .feature + .feature {
    margin-top: 54px;
  }

  .cta__inner {
    padding: 40px 24px;
  }

  .milestone {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }

  .grid--3,
  .grid--4,
  .steps,
  .value-grid,
  .contact-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__actions .btn,
  .download-card__actions .btn {
    width: 100%;
  }

  .logo {
    font-size: 17px;
  }
}
