/* CCMax 下载站样式 · 首屏(文案、主下载按钮、「其他平台」菜单、客户端示意图)
   整体方向:杂志式的克制排版——衬线大标题、无衬线正文、等宽的版本号与哈希;纸色底 + 松绿单一强调色 + 琥珀点缀。
   拆成几份(令牌 / 基础 / 首屏 / 平台卡片 / 其余区块 / 协议页),每份只管自己的区块与对应的响应式规则。 */

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 1.5rem + 5vw, 6.5rem) 0 clamp(3.5rem, 2rem + 5vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

/* 背景:细网格,向四周淡出 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 62% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 62% 40%, #000 30%, transparent 78%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  align-items: center;
}

.hero-copy > * + * {
  margin-top: var(--sp-6);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.app-icon {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 20px;
  background: linear-gradient(155deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  flex: none;
}

.app-icon svg {
  width: 2.6rem;
  height: 2.6rem;
}

.app-icon .mark-arc {
  stroke: var(--brand-ink);
}

.hero-meta-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-pill);
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.hero-version {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: var(--sp-8);
}

.h1-soft {
  color: var(--accent-text);
  white-space: nowrap; /* 「走你自己的线路。」不拆行(390 宽下也放得下) */
}

.lede {
  font-size: var(--fs-lg);
  color: var(--ink-2);
  max-width: 34em;
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: stretch;
}

.more {
  position: relative;
}

.more > .btn {
  height: 100%;
}

.more-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 10;
  width: min(22rem, calc(100vw - 2 * var(--gutter)));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  padding: var(--sp-2);
  animation: pop var(--dur) var(--ease-out);
}

.more-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.more-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
}

.more-item:hover {
  background: var(--paper-2);
}

.more-item.is-off {
  color: var(--ink-3);
}

.more-name {
  font-weight: 600;
}

.more-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.more-all {
  display: block;
  margin-top: var(--sp-1);
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  text-decoration: none;
}

.hint {
  font-size: var(--fs-sm);
  color: var(--amber-ink);
  background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.8rem;
  max-width: 36em;
}

.hero-copy > .hint {
  margin-top: var(--sp-3);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.trust .dot {
  color: var(--line-strong);
}

.notes {
  max-width: 36em;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.notes summary,
.fold summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  width: fit-content;
}

.notes p {
  margin-top: var(--sp-2);
  white-space: pre-line;
}

.supported {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  max-width: 36em;
}

.supported .eyebrow {
  margin: 0;
  color: var(--ink-3);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
}

.chips .chip-muted {
  border-style: dashed;
  background: transparent;
  color: var(--ink-3);
}

/* 示意图:窗口 + 叠出窗外的终端卡,背后一团柔光 */
.hero-art {
  position: relative;
  margin: 0;
}

/* 宽屏:示意图往右多伸出一点,打破网格的边 */
@media (min-width: 1100px) {
  .hero-art {
    margin-right: calc(-1 * var(--gutter));
  }
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4% 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  filter: blur(20px);
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible; /* 阴影伸出画布边也照常画,不被裁成直边 */
  font-family: var(--font-sans);
}

.a-shadow {
  flood-color: #17281f;
  flood-opacity: 0.16;
}

.a-shadow-term {
  flood-color: #0a1411;
  flood-opacity: 0.3;
}

@media (prefers-color-scheme: dark) {
  .a-shadow {
    flood-color: #000;
    flood-opacity: 0.55;
  }

  .a-shadow-term {
    flood-color: #000;
    flood-opacity: 0.6;
  }
}

.a-frame {
  fill: var(--surface);
}

.a-bar {
  fill: var(--surface-2);
}

.a-side {
  fill: var(--paper-2);
}

.a-hair,
.a-edge {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.a-light {
  fill: var(--line-strong);
}

.a-light-1 {
  fill: #e5766a;
}

.a-light-2 {
  fill: #e9bd5b;
}

.a-light-3 {
  fill: #74b88a;
}

.a-pill {
  fill: var(--surface);
  stroke: var(--line);
}

.a-text {
  fill: var(--ink-2);
}

.a-strong {
  fill: var(--ink);
  font-weight: 600;
}

.a-muted {
  fill: var(--ink-3);
}

.a-title {
  fill: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}

.a-xs {
  font-size: 11.5px;
}

.a-sm {
  font-size: 13px;
}

.a-md {
  font-size: 16px;
}

.a-avatar {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 1;
}

.a-card {
  fill: var(--surface-2);
  stroke: var(--line);
}

.a-card-ok {
  fill: color-mix(in srgb, var(--ok) 9%, var(--surface));
  stroke: color-mix(in srgb, var(--ok) 35%, var(--line));
}

.a-ok {
  fill: var(--ok);
}

.a-ok-text {
  fill: var(--ok);
  font-weight: 600;
}

.a-ghost {
  fill: var(--surface);
  stroke: var(--line-strong);
}





.a-term {
  fill: var(--term);
  stroke: var(--term-edge);
}

.a-term-dot {
  fill: #3a4a45;
}

.a-term-text {
  fill: var(--term-ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.a-term-ok {
  fill: #7fdcb0;
  font-family: var(--font-mono);
  font-size: 13px;
}

.a-cursor {
  fill: var(--term-ink);
  animation: blink 1.1s steps(1) infinite;
}

/* ---------- 首屏动效 ---------- */
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-copy > *,
.hero-art {
  animation: rise 700ms var(--ease-out) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 60ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 120ms;
}

.hero-copy > :nth-child(n + 4) {
  animation-delay: 180ms;
}

.hero-art {
  animation-delay: 160ms;
  animation-duration: 900ms;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    max-width: 36rem;
  }
}

@media (max-width: 720px) {
  .cta-row > .btn,
  .cta-row > .more {
    flex: 1 1 100%;
  }

  .more > .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hero-meta {
    gap: var(--sp-3);
  }

  .app-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 16px;
  }
}
