/* MC-ADAO —— 首屏卡片散布在 3D 空间（照 apechain SectionSpotlight 做法）+ 星空背景 + 区块 + 网格 + 弹窗 */

:root {
  --fg: #FFFFFF;
  --fg-2: rgba(255, 255, 255, .70);
  --fg-3: rgba(255, 255, 255, .48);
  --fg-4: rgba(255, 255, 255, .32);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .16);

  --g1: #A281FF;
  --g2: #EB8280;
  --g3: #EBBF9A;
  --g4: #89D0FF;

  --header-h: 100px;
  --pad: 36px;
  --maxw: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--fg);
  background-color: #000;
  background-image:
    radial-gradient(1000px 620px at 8% -6%, rgba(162, 129, 255, .20), transparent 64%),
    radial-gradient(880px 560px at 94% 4%, rgba(235, 130, 128, .12), transparent 64%),
    radial-gradient(1000px 700px at 48% 104%, rgba(137, 208, 255, .11), transparent 62%),
    radial-gradient(700px 480px at 78% 48%, rgba(235, 191, 154, .055), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: ui-sans-serif, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 全局星空 */
body::before {
  content: "";
  position: fixed;
  inset: -60% -30%;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 25px 35px, rgba(255, 255, 255, .9), transparent),
    radial-gradient(1px 1px at 145px 95px, rgba(255, 255, 255, .62), transparent),
    radial-gradient(1.4px 1.4px at 215px 45px, rgba(198, 228, 255, .9), transparent),
    radial-gradient(1px 1px at 305px 170px, rgba(255, 255, 255, .58), transparent),
    radial-gradient(1px 1px at 65px 215px, rgba(255, 236, 220, .72), transparent),
    radial-gradient(1.3px 1.3px at 265px 265px, rgba(255, 255, 255, .75), transparent),
    radial-gradient(1px 1px at 165px 330px, rgba(214, 224, 255, .58), transparent),
    radial-gradient(1px 1px at 345px 305px, rgba(255, 255, 255, .52), transparent);
  background-size: 390px 390px;
  animation: starDrift 260s linear infinite;
  will-change: transform;
}

@keyframes starDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-390px, -390px, 0); }
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; }

/* hidden 属性优先于设了 display 的类（.price / .modal 等） */
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 99;
  height: 96px;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
}

.topbar-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 11px 17px;
  border: 1.5px solid #fff;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.brand:hover { background: #fff; color: #000; }

.nav { display: flex; gap: 32px; }

.nav a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  opacity: .8;
  transition: opacity .2s;
}

.nav a:hover { opacity: 1; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}

.btn-solid {
  background: #fff;
  color: #000;
  box-shadow: 0 14px 36px -14px rgba(255, 255, 255, .5);
}

.btn-solid::after { content: "→"; font-size: 15px; }

.btn-solid:hover { transform: translateY(-2px); }

.btn-ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }

.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

.btn:focus-visible { outline: 2px solid var(--g4); outline-offset: 3px; }

/* ---------- 分类标签 ---------- */

.pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- 价格 ---------- */

.price {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price--paid {
  background: #fff;
  color: #000;
  box-shadow: 0 8px 22px -10px rgba(255, 255, 255, .7);
}

.price--free {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-2);
  color: rgba(255, 255, 255, .58);
  font-weight: 600;
}

.price--lg { font-size: 15px; padding: 5px 15px; }

/* ---------- 首屏：卡片散布在 3D 空间，大标题叠在上面 ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 56px) 0 96px;
  perspective: 1000px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  transition: transform .6s ease-out;
}

.float-card {
  position: absolute;
  left: var(--lx, 50%);
  top: var(--ly, 50%);
  width: clamp(260px, 31vw, 480px);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  /* 卡片要看得见：太低会被下面的压暗层吞掉 */
  opacity: calc(var(--op, .3) * 2);
  background: #0A0A0C;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 36px 76px -34px rgba(0, 0, 0, .98);
  transform: translate(-50%, -50%) translate3d(0, 0, var(--z, -430px)) rotateY(var(--ry, -16deg));
  will-change: transform, opacity;
}

.float-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: perspective(800px) rotateX(7.5deg) rotateY(-15deg) rotateZ(2.5deg) scale(1.1);
  animation: cardDrift 13s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes cardDrift {
  0%, 100% { transform: perspective(800px) rotateX(7.5deg) rotateY(-15deg) rotateZ(2.5deg) scale(1.1) translateY(0); }
  50%      { transform: perspective(800px) rotateX(7.5deg) rotateY(-15deg) rotateZ(2.5deg) scale(1.1) translateY(-18px); }
}

/* 中心只做轻微压暗，保证标题可读又不吞掉卡片 */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(0, 0, 0, .34), rgba(0, 0, 0, .16) 42%, rgba(0, 0, 0, .62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 7px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .4);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g4);
  box-shadow: 0 0 12px var(--g4);
}

.hero-title {
  margin: 0 0 26px;
  font-size: clamp(46px, 8.6vw, 124px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 8px 50px rgba(0, 0, 0, .85);
}

.hero-sub {
  margin: 0 auto 44px;
  max-width: 44ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.85;
  color: var(--fg-2);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .9);
}

.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-4);
}

.hero-arrow { animation: bob 1.9s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- 产品高亮区块（图文交替） ---------- */

.feature { padding: 96px 0; }

.feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
}

.feature--flip .feature-media { order: 2; }
.feature--flip .feature-body { order: 1; }

.feature-media { position: relative; }

.feature-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #0A0A0C;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95);
}

.feature-frame {
  position: absolute;
  inset: -16px;
  padding: 2px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--g1) 10%, var(--g2) 33%, var(--g3) 66%, var(--g4) 90%);
  opacity: .4;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.feature-body { min-width: 0; }

.feature-body .pill { position: static; display: inline-block; }

.feature-title {
  margin: 18px 0 12px;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.feature-sub {
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--g4);
}

.feature-body .price { margin-bottom: 20px; }

.feature-desc {
  margin: 0 0 34px;
  max-width: 50ch;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--fg-2);
}

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

.section { padding: 88px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--fg-3);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}

.chip-num { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--fg-4); }

.chip:hover { border-color: rgba(255, 255, 255, .42); color: #fff; }

.chip.is-active { background: #fff; border-color: #fff; color: #000; font-weight: 700; }

.chip.is-active .chip-num { color: rgba(0, 0, 0, .5); }

/* ---------- 技能包网格 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 60px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: inherit;
  text-decoration: none;
}

.card:focus-visible { outline: 2px solid var(--g4); outline-offset: 6px; }

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #0A0A0C;
  border: 1px solid var(--line-2);
  transition: border-color .3s, box-shadow .3s;
}

.card:hover .card-media {
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .95);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .3, 1);
}

.card:hover .card-media img { transform: scale(1.05); }

.card-body { display: flex; flex-direction: column; gap: 8px; }

.card-titlerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-titlerow .card-title { min-width: 0; }

.card-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.card-sub {
  margin: 0;
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.55;
  text-transform: uppercase;
}

.card-frame {
  position: absolute;
  inset: -18px;
  padding: 2px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--g1) 10%, var(--g2) 33%, var(--g3) 66%, var(--g4) 90%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.card:hover .card-frame { opacity: .85; }

.empty {
  padding: 48px 0 64px;
  color: var(--fg-3);
  font-size: 14px;
}

/* ---------- 联系 ---------- */

.section--contact { border-top: 1px solid var(--line); }

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
}

.contact-text { max-width: 50ch; }

.contact-text h2 { margin: 0 0 16px; }

.contact-text p {
  margin: 0;
  color: var(--fg-3);
  font-size: 15px;
  line-height: 1.85;
}

.qr-box {
  width: 100%;
  max-width: 190px;
  padding: 11px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}

.qr-box img { display: block; width: 100%; height: auto; border-radius: 5px; }

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
  color: var(--fg-4);
  font-size: 12px;
  letter-spacing: .1em;
}

.footer p { margin: 0; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* 后台入口：刻意做低对比，访客不会注意，自己人找得到 */
.footer-admin {
  color: var(--fg-4);
  font-size: 12px;
  letter-spacing: .1em;
  text-decoration: none;
  transition: color .2s;
}

.footer-admin:hover { color: #fff; }

/* ---------- 弹窗 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  width: min(700px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #0B0B0D;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .98);
  animation: pop .28s cubic-bezier(.2, .8, .25, 1);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(0, 0, 0, .66);
  color: #fff;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s, color .2s;
}

.modal-close:hover { background: #fff; color: #000; }

.modal-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--line);
}

.modal-cover { display: block; width: 100%; height: 100%; object-fit: cover; }

.modal-media .pill { left: 18px; bottom: 18px; }

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 30px 32px 36px;
}

.modal-titlerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-titlerow h2 { min-width: 0; }

.modal-body h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.modal-desc {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.9;
}

.modal-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* 网盘分享：原样呈现话术 + 链接 + 一键复制 */
.share { display: flex; flex-direction: column; gap: 10px; width: 100%; }

.share-text { margin: 0; color: #fff; font-size: 14.5px; line-height: 1.85; }

.share-link {
  margin: 0;
  color: var(--fg-3);
  font-size: 13.5px;
  line-height: 1.7;
  word-break: break-all;
}

.share-link a { color: var(--g4); text-decoration: none; }

.share-link a:hover { text-decoration: underline; }

.copy-btn {
  appearance: none;
  margin-top: 6px;
  padding: 12px 22px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .18s, transform .12s;
}

.copy-btn:hover { opacity: .86; }

.copy-btn:active { transform: scale(.985); }

.copy-btn:focus-visible { outline: 2px solid var(--g4); outline-offset: 3px; }

/* 扫码 */
.qr-hold {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.qr-hold .qr-box { width: 250px; max-width: 100%; }

.qr-caption { margin: 0; color: var(--fg-3); font-size: 13.5px; }

.cta-note { margin: 0; color: var(--fg-3); font-size: 13px; line-height: 1.65; }

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

@media (min-width: 1024px) {
  .topbar { height: var(--header-h); }
}

@media (max-width: 1023px) {
  :root { --header-h: 96px; --pad: 28px; }

  .hero { min-height: auto; padding: calc(var(--header-h) + 72px) 0 84px; }

  .float-card { width: clamp(200px, 34vw, 320px); }

  .hero-scroll { bottom: 26px; }

  .feature { padding: 72px 0; }

  .feature-inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }

  .feature--flip .feature-media { order: 0; }
  .feature--flip .feature-body { order: 0; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; row-gap: 48px; }

  .section { padding: 68px 0; }
}

@media (max-width: 700px) {
  :root { --pad: 20px; }

  .topbar { height: 88px; }

  .nav { gap: 18px; }

  .nav a { font-size: 12.5px; letter-spacing: .06em; }

  .brand { padding: 9px 13px; font-size: 12px; }

  .hero { padding: calc(88px + 52px) 0 72px; }

  .float-card { width: clamp(120px, 40vw, 190px); }

  .hero-title { letter-spacing: -.03em; }

  .hero-sub { font-size: 14.5px; }

  .feature { padding: 52px 0; }

  .grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }

  .card-title { font-size: 18px; }

  .section { padding: 52px 0; }

  .contact-inner { gap: 32px; }

  .qr-box { max-width: 160px; }

  .modal { padding: 12px; }

  .modal-body { padding: 24px 20px 28px; }

  .modal-body h2 { font-size: 20px; }

  .qr-hold .qr-box { width: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-arrow,
  body::before,
  .float-card img { animation: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
