/* 各页区块与组件 */

/* —— Hero —— */
.hero {
  padding: clamp(56px, 8vw, 88px) 0 clamp(72px, 10vw, 112px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -15%;
  width: 75%;
  height: 110%;
  background: radial-gradient(
    ellipse,
    rgb(108 92 231 / 0.14) 0%,
    rgb(167 139 250 / 0.08) 42%,
    transparent 68%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  cursor: default;
  border: 1px solid rgb(108 92 231 / 0.2);
}

.hero h1 {
  font-size: clamp(2.125rem, 5.2vw, 3.375rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.1;
  margin: 0 0 22px;
  color: var(--text);
}

.hero-lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--text-muted);
  line-height: 1.68;
  margin: 0 0 34px;
  max-width: 32em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-soft);
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid rgb(108 92 231 / 0.14);
  box-shadow: var(--shadow), 0 0 0 1px rgb(255 255 255 / 0.6) inset;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual:has(.hero-screenshot) {
  align-items: stretch;
  justify-content: stretch;
}

.hero-visual-inner {
  width: 88%;
  height: 78%;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    165deg,
    #f5f3ff 0%,
    #ede9fe 50%,
    #e4dff9 100%
  );
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  text-align: center;
  padding: 28px;
  line-height: 1.55;
}

/* —— Live cut spotlight —— */
.spotlight {
  background: linear-gradient(
    165deg,
    var(--dark) 0%,
    #1a0f28 40%,
    var(--dark-mid) 100%
  );
  color: #fff;
  padding: var(--space-section) 0;
  position: relative;
  overflow: hidden;
}

.spotlight::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(
    ellipse,
    rgb(108 92 231 / 0.28) 0%,
    rgb(167 139 250 / 0.12) 48%,
    transparent 72%
  );
  pointer-events: none;
}

.spotlight .container {
  position: relative;
  z-index: 1;
}

.spotlight .section-label {
  color: #7dd3fc;
}

.spotlight .section-title {
  color: #f8fafc;
}

.spotlight .section-desc {
  color: var(--dark-muted);
  max-width: 40em;
}

.spotlight-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 22px);
  margin-top: 52px;
}

@media (max-width: 768px) {
  .spotlight-steps {
    grid-template-columns: 1fr 1fr;
  }
}

.spotlight-step {
  padding: 26px 22px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(196 181 253 / 0.18);
  border-radius: var(--radius-sm);
  transition: background 0.25s var(--ease), border-color 0.25s,
    transform 0.25s var(--ease);
  cursor: default;
}

.spotlight-step:hover {
  background: rgb(255 255 255 / 0.07);
  border-color: rgb(125 211 252 / 0.35);
  transform: translateY(-2px);
}

.spotlight-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a78bfa;
  margin-bottom: 12px;
}

.spotlight-step h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.spotlight-step p {
  font-size: 14px;
  color: var(--dark-muted);
  margin: 0;
  line-height: 1.58;
}

/* Hero 产品截图 */
.hero-screenshot {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  padding: clamp(10px, 2vw, 16px);
  box-sizing: border-box;
  border-radius: calc(var(--radius-sm) - 2px);
}

/* Spotlight 内双栏界面图 */
.spotlight-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 28px);
  margin-top: clamp(40px, 6vw, 56px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid rgb(196 181 253 / 0.2);
}

@media (max-width: 900px) {
  .spotlight-shots {
    grid-template-columns: 1fr;
  }
}

.spotlight-shot {
  margin: 0;
}

.spotlight-shot-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgb(250 245 255 / 0.06);
  border: 1px solid rgb(196 181 253 / 0.25);
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.35);
}

.spotlight-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.spotlight-shot figcaption {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-muted);
  text-align: center;
  line-height: 1.45;
}

/* —— Feature grid —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 26px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.22s var(--ease);
  cursor: default;
}

.feature-card:hover {
  border-color: rgb(108 92 231 / 0.3);
  box-shadow: 0 16px 48px rgb(108 92 231 / 0.12);
  transform: translateY(-3px);
}

.feature-card.is-featured {
  border-color: rgb(108 92 231 / 0.38);
  background: linear-gradient(
    180deg,
    #fff 0%,
    rgb(245 243 255 / 0.92) 100%
  );
  box-shadow: 0 8px 32px rgb(108 92 231 / 0.1);
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: linear-gradient(165deg, var(--accent) 0%, #5b4fd6 100%);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.62;
}

.feature-cta-wrap {
  text-align: center;
  margin-top: 48px;
}

/* —— Accordion FAQ —— */
.faq-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 40px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.accordion {
  max-width: 100%;
  margin: 0;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: color 0.2s;
}

.accordion-trigger:hover {
  color: var(--accent);
}

.accordion-trigger .chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft-2);
  color: var(--accent);
  font-size: 10px;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease);
}

.accordion-item.is-open .accordion-trigger .chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.accordion-panel-inner {
  padding-bottom: 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.accordion-panel-inner a {
  color: var(--accent);
  text-decoration: underline;
}

.accordion-panel-inner a:hover {
  color: var(--accent-hover);
}

/* —— CTA bar —— */
.cta-bar {
  text-align: center;
  padding: clamp(48px, 7vw, 72px) clamp(24px, 5vw, 48px);
  background: linear-gradient(
    145deg,
    rgb(245 243 255 / 0.98) 0%,
    var(--bg-elevated) 38%,
    rgb(237 233 254 / 0.65) 100%
  );
  border-radius: var(--radius);
  border: 1px solid rgb(108 92 231 / 0.14);
  box-shadow: var(--shadow-sm);
  margin: clamp(32px, 5vw, 56px) 0;
  position: relative;
  overflow: hidden;
}

.cta-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 90%);
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--accent-glow),
    transparent
  );
  border-radius: 0 0 4px 4px;
  opacity: 0.85;
}

.cta-bar h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  position: relative;
}

.cta-bar p {
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* —— Download page: tabs —— */
.os-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.os-tab {
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}

.os-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}

.os-tab[aria-selected="true"] {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.os-panel {
  display: none;
  animation: fadeIn 0.35s var(--ease);
}

.os-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.download-card {
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
}

.download-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.download-card .ver {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.copy-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.copy-row input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: var(--bg);
}

.copy-row .btn {
  flex-shrink: 0;
}

.download-copy-block {
  display: block;
  margin-top: 16px;
}

.download-copy-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.download-card-note {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.download-card-note a {
  color: var(--accent);
  text-decoration: underline;
}

.download-card-note a:hover {
  color: var(--accent-hover);
}

.changelog {
  margin-top: 48px;
  max-width: 640px;
}

.changelog h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.changelog ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* —— Features page: category tabs —— */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 50;
  padding: 12px 0;
  background: linear-gradient(
    to bottom,
    var(--bg) 60%,
    transparent
  );
}

.cat-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.cat-tab:hover {
  color: var(--text);
  border-color: rgb(108 92 231 / 0.35);
}

.cat-tab[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: rgb(108 92 231 / 0.38);
}

.cat-panel {
  display: none;
}

.cat-panel.is-active {
  display: block;
  animation: fadeIn 0.4s var(--ease);
}

.module-list {
  display: grid;
  gap: 16px;
}

.module-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: start;
  transition: border-color 0.2s;
}

.module-row:hover {
  border-color: rgb(108 92 231 / 0.25);
}

@media (max-width: 640px) {
  .module-row {
    grid-template-columns: 1fr;
  }
}

.module-row h3 {
  margin: 0;
  font-size: 17px;
}

.module-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* —— Support layout —— */
.support-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .support-layout {
    grid-template-columns: 1fr;
  }
}

/* —— Support: form —— */
.support-form {
  max-width: 480px;
  display: grid;
  gap: 16px;
}

.support-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.support-form input,
.support-form textarea,
.support-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-elevated);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.support-form input:focus,
.support-form textarea:focus,
.support-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.support-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-msg {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  display: none;
}

.form-msg.is-success {
  display: block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.form-msg.is-error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* —— About stats counter —— */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 640px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

.stat-box {
  padding: 28px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.stat-box .num {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-box .label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}
