/* =========================================================
   浔念工作室 · XUNIAN STUDIO
   赛博朋克暗黑主题 / Cyber Noir
   近黑底 · 青霓虹 · 等宽 HUD · 玻璃面板
   ========================================================= */

:root {
  /* 底色 */
  --void: #04070A;
  --void-2: #070C11;
  --panel: #0A1117;
  --panel-2: #0C141A;
  --panel-3: #101A21;

  /* 文字 */
  --ink: #E9F6F7;
  --ink-2: #B4C9CE;
  --muted: #7A9098;

  /* 霓虹 */
  --cyan: #3BE8E0;
  --cyan-soft: #8FF2EC;
  --cyan-deep: #12868C;
  --magenta: #FF3D8B;
  --violet: #8E7DFF;
  --amber: #FFC24B;

  /* 线与光 */
  --line: rgba(110, 225, 235, 0.12);
  --line-2: rgba(110, 225, 235, 0.26);
  --line-3: rgba(110, 225, 235, 0.42);
  --glow-cyan: 0 0 24px rgba(59, 232, 224, 0.35);
  --glow-soft: 0 20px 60px -34px rgba(59, 232, 224, 0.55);

  /* 兼容旧内联变量 */
  --bg: #070C11;
  --bg-2: #0A1117;
  --white: #0C141A;
  --accent: #3BE8E0;
  --accent-2: #8FF2EC;
  --wash: rgba(59, 232, 224, 0.08);
  --dark: #04070A;
  --dark-line: rgba(110, 225, 235, 0.14);

  --radius: 6px;
  --max: 1180px;

  --display: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: var(--display);
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--void);
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  position: relative;
}

/* 全局氛围：极淡网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(110, 225, 235, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 225, 235, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
}

/* 顶部霓虹光晕 */
body::after {
  content: "";
  position: fixed;
  top: -260px;
  left: 50%;
  width: 1180px;
  height: 660px;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 58% at 50% 52%, rgba(59, 232, 224, 0.13), transparent 66%),
    radial-gradient(ellipse 34% 50% at 16% 64%, rgba(142, 125, 255, 0.12), transparent 62%),
    radial-gradient(ellipse 30% 46% at 86% 42%, rgba(255, 61, 139, 0.10), transparent 60%);
  filter: blur(28px);
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--cyan);
  color: #04070A;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #05090C;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 232, 224, 0.26);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 232, 224, 0.45);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: #04070A;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ---------------- 阅读进度 ---------------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--magenta));
  box-shadow: 0 0 12px rgba(59, 232, 224, 0.75);
  z-index: 90;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(4, 7, 10, 0.62);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(4, 7, 10, 0.88);
  box-shadow: 0 14px 40px -30px rgba(0, 0, 0, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  background: var(--panel-2);
  border: 1px solid rgba(59, 232, 224, 0.5);
  box-shadow:
    0 0 0 3px rgba(59, 232, 224, 0.08),
    0 0 18px rgba(59, 232, 224, 0.28);
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}

.brand:hover .brand-avatar {
  transform: scale(1.06);
  box-shadow:
    0 0 0 3px rgba(59, 232, 224, 0.16),
    0 0 26px rgba(59, 232, 224, 0.5);
}

.brand-name {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.14em;
  font-weight: 700;
  line-height: 1;
  padding-top: 2px;
  white-space: nowrap;
  background: linear-gradient(180deg, #FFFFFF, #BFEFF0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--cyan-deep);
  text-transform: uppercase;
  margin-left: 2px;
  padding-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  padding: 8px 15px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(59, 232, 224, 0.06);
}

.nav-link.is-active {
  color: var(--cyan);
  font-weight: 600;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 1.5px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: translateX(-50%);
}

.nav-login {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: rgba(59, 232, 224, 0.04);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(59, 232, 224, 0.7);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 26px;
  border-radius: 4px;
  font-size: 14.5px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s,
    border-color 0.25s, box-shadow 0.3s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #4FF3EA 0%, #2AC8CC 52%, #1CA3AE 100%);
  color: #03181A;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 34px -16px rgba(59, 232, 224, 0.9);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7BFFF8 0%, #3BE8E0 50%, #22B8C4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 1px rgba(59, 232, 224, 0.6),
    0 16px 44px -18px rgba(59, 232, 224, 1);
}

.btn-line {
  border-color: var(--line-2);
  color: var(--ink);
  background: rgba(10, 17, 23, 0.5);
}

.btn-line:hover {
  border-color: var(--line-3);
  background: rgba(59, 232, 224, 0.08);
  color: var(--cyan-soft);
}

.btn-ghost {
  height: 38px;
  padding: 0 18px;
  font-size: 13.5px;
  background: rgba(59, 232, 224, 0.08);
  border-color: rgba(59, 232, 224, 0.22);
  color: var(--cyan-soft);
}

.btn-ghost:hover {
  background: rgba(59, 232, 224, 0.16);
}

.btn-sm {
  height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn .arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
  transform: translate(2px, -2px);
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.btn[disabled]:hover {
  background: linear-gradient(135deg, #4FF3EA 0%, #2AC8CC 52%, #1CA3AE 100%);
  box-shadow: none;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 76px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 68%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(59, 232, 224, 0.6), transparent);
  z-index: 1;
}

/* 透视网格地面 */
.hero::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -40px;
  height: 250px;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(59, 232, 224, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 232, 224, 0.16) 1px, transparent 1px);
  background-size: 52px 26px;
  transform: perspective(320px) rotateX(62deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.35) 42%, transparent 78%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.35) 42%, transparent 78%);
  opacity: 0.55;
}

.hero-water {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* 雷达同心环 */
.ring {
  position: absolute;
  top: 46%;
  border: 1px solid rgba(59, 232, 224, 0.16);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: ringPulse 12s ease-in-out infinite;
}

.ring.r1 {
  width: 300px;
  height: 300px;
  right: 40px;
}

.ring.r2 {
  width: 480px;
  height: 480px;
  right: -40px;
  animation-delay: 1.2s;
  border-color: rgba(59, 232, 224, 0.12);
}

.ring.r3 {
  width: 680px;
  height: 680px;
  right: -140px;
  animation-delay: 2.4s;
  border-color: rgba(142, 125, 255, 0.12);
}

.ring.r4 {
  width: 900px;
  height: 900px;
  right: -250px;
  animation-delay: 3.6s;
  border-color: rgba(255, 61, 139, 0.1);
}

/* 扫描扇形 */
.hero-water::after {
  content: "";
  position: absolute;
  top: 46%;
  right: -120px;
  width: 760px;
  height: 760px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(59, 232, 224, 0.10) 24deg,
    transparent 52deg
  );
  animation: sweep 22s linear infinite;
  opacity: 0.75;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.95; }
}

@keyframes sweep {
  to { transform: translateY(-50%) rotate(360deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0 0 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  flex-shrink: 0;
  animation: blink 2.6s steps(1) infinite;
}

.hero-meta span:nth-child(2)::before {
  animation-delay: 0.6s;
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
}

.hero-meta span:nth-child(3)::before {
  animation-delay: 1.2s;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
}

@keyframes blink {
  0%, 88%, 100% { opacity: 1; }
  92% { opacity: 0.25; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.85;
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}

.hero-identity img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(59, 232, 224, 0.55);
  box-shadow:
    0 0 0 4px rgba(59, 232, 224, 0.07),
    0 0 26px rgba(59, 232, 224, 0.3);
}

.hero-identity strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.hero-identity span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cyan-deep);
  letter-spacing: 0.14em;
  margin-top: 4px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 26px;
  background: linear-gradient(178deg, #FFFFFF 0%, #E2FAFA 42%, #8FCFD4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 40px rgba(59, 232, 224, 0.16));
}

.hero h1 .hl {
  background: linear-gradient(96deg, #FFFFFF 0%, #A8F7F1 24%, #45EBE3 50%, #9B8CFF 74%, #FF7AB0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero-lead {
  font-size: clamp(15.5px, 1.35vw, 17.5px);
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 38px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin: 60px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-stats > div {
  min-width: 0;
  flex: 1 1 0;
  padding: 26px 26px 30px 0;
  border-right: 1px solid var(--line);
  position: relative;
}

.hero-stats > div::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(59, 232, 224, 0.8);
}

.hero-stats > div:nth-child(2)::after {
  background: var(--violet);
  box-shadow: 0 0 10px rgba(142, 125, 255, 0.8);
}

.hero-stats > div:nth-child(3)::after {
  background: var(--magenta);
  box-shadow: 0 0 10px rgba(255, 61, 139, 0.8);
}

.hero-stats > div:last-child {
  border-right: none;
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(21px, 2.6vw, 29px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.hero-stats dd small {
  font-size: 11.5px;
  color: var(--cyan-deep);
  font-family: var(--mono);
  font-weight: 400;
  margin-left: 5px;
  letter-spacing: 0.08em;
}

/* ---------------- Section ---------------- */

.section {
  padding: 104px 0;
  position: relative;
}

.section.tight {
  padding: 76px 0;
}

.section.alt {
  background:
    radial-gradient(ellipse 60% 90% at 12% 0%, rgba(142, 125, 255, 0.06), transparent 66%),
    linear-gradient(180deg, rgba(10, 17, 23, 0.5), rgba(7, 12, 17, 0.2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.dark {
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(59, 232, 224, 0.07), transparent 70%),
    #05090D;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.dark .section-head h2 {
  color: var(--ink);
}

.section.dark .section-head p {
  color: var(--muted);
}

.section.dark .eyebrow {
  color: var(--cyan);
}

.section.dark .eyebrow::before {
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-head {
  max-width: 660px;
  margin-bottom: 54px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(27px, 3.3vw, 40px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-foot {
  margin-top: 46px;
  display: flex;
  justify-content: center;
}

/* ---------------- 作品索引（首页） ---------------- */

.index-list {
  border-top: 1px solid var(--line-2);
  scroll-margin-top: 92px;
}

.index-row {
  display: grid;
  grid-template-columns: 52px 54px 1fr auto 24px;
  align-items: center;
  gap: 22px;
  padding: 26px 14px 26px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: padding 0.35s var(--ease), background 0.35s;
}

.index-row::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(142, 125, 255, 0.55));
  opacity: 0;
  box-shadow: 0 0 14px rgba(59, 232, 224, 0.85);
  transition: opacity 0.3s var(--ease);
}

.index-row:hover::after,
.index-row:focus-visible::after,
.index-row:active::after {
  opacity: 1;
}

.index-row::before {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 6px;
  bottom: 6px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(59, 232, 224, 0.1), rgba(59, 232, 224, 0) 72%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 0;
}

.index-row:hover::before,
.index-row:focus-visible::before,
.index-row:active::before {
  opacity: 1;
}

.index-row:hover {
  padding-left: 26px;
}

.index-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan-deep);
  font-variant-numeric: tabular-nums;
}

.index-row:hover .index-num {
  color: var(--cyan);
}

.index-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 10px 26px -14px rgba(59, 232, 224, 0.85);
  position: relative;
  overflow: hidden;
}

.index-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.26), transparent 46%);
}

.index-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.index-name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.index-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.index-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--cyan-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.index-arrow {
  font-size: 15px;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.35s;
}

.index-row:hover .index-arrow {
  transform: translate(3px, -3px);
  color: var(--cyan);
}

/* ---------------- 深色原则区 ---------------- */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principle {
  position: relative;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(16, 26, 33, 0.9), rgba(8, 13, 18, 0.75));
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}

.principle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 232, 224, 0.55), transparent);
  opacity: 0.5;
  transition: opacity 0.4s;
}

.principle:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 28px 60px -42px rgba(59, 232, 224, 0.8);
}

.principle:hover::before {
  opacity: 1;
}

.principle .pnum {
  font-family: var(--mono);
  font-size: 34px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59, 232, 224, 0.42);
  margin-bottom: 20px;
}

.principle h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------------- App cards ---------------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(168deg, rgba(14, 23, 30, 0.92), rgba(7, 12, 17, 0.86));
  border: 1px solid rgba(110, 225, 235, 0.16);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.3s;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 232, 224, 0.6), transparent);
  opacity: 0.4;
  transition: opacity 0.4s;
}

.app-card::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
  opacity: 0;
  transition: opacity 0.4s;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 34px 70px -50px rgba(59, 232, 224, 0.9);
}

.app-card:hover::before,
.app-card:hover::after {
  opacity: 1;
}

.app-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.app-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 12px 30px -16px rgba(59, 232, 224, 0.9);
}

.app-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.26), transparent 46%);
}

.app-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--cyan-soft);
  background: rgba(59, 232, 224, 0.09);
  border: 1px solid rgba(59, 232, 224, 0.26);
  border-radius: 3px;
  padding: 4px 9px;
  white-space: nowrap;
  text-transform: uppercase;
}

.app-card h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.app-tagline {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 22px;
  line-height: 1.7;
}

.app-meta {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 6px 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: auto;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.app-actions {
  display: flex;
  gap: 8px;
}

.app-actions .btn {
  flex: 1;
}

/* 未开放的下载入口：明确退后，不与「详情」争主位 */
.app-actions .btn-line[data-download] {
  color: var(--muted);
  border-color: rgba(110, 225, 235, 0.13);
  background: rgba(4, 7, 10, 0.4);
  font-weight: 500;
}

.app-actions .btn-line[data-download]:hover {
  color: var(--ink-2);
  border-color: rgba(110, 225, 235, 0.22);
  background: rgba(59, 232, 224, 0.05);
}

.detail-actions .btn-line[data-download] {
  color: var(--muted);
  border-color: rgba(110, 225, 235, 0.16);
}

/* ---------------- Filters ---------------- */

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  align-items: center;
}

.chip {
  height: 40px;
  padding: 0 18px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: rgba(10, 17, 23, 0.5);
  color: var(--ink-2);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.chip:hover {
  border-color: var(--line-2);
  background: rgba(59, 232, 224, 0.06);
  color: var(--ink);
}

.chip.is-active {
  background: var(--cyan);
  color: #04171A;
  border-color: var(--cyan);
  font-weight: 600;
  box-shadow: 0 0 22px -6px rgba(59, 232, 224, 0.9);
}

.filter-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(59, 232, 224, 0.68);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* ---------------- Value grid ---------------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 14px;
}

.value {
  background:
    linear-gradient(168deg, rgba(59, 232, 224, 0.05), transparent 46%),
    linear-gradient(168deg, rgba(14, 23, 30, 0.86), rgba(7, 12, 17, 0.7));
  border: 1px solid rgba(110, 225, 235, 0.14);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}

.value:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.value .num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: rgba(59, 232, 224, 0.8);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.value .num::before {
  content: "[ ";
  opacity: 0.5;
}

.value .num::after {
  content: " ]";
  opacity: 0.5;
}

.value h3 {
  font-family: var(--display);
  font-size: 17.5px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ---------------- Page hero ---------------- */

.page-hero {
  position: relative;
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(59, 232, 224, 0.07) 0%, transparent 38%),
    linear-gradient(292deg, rgba(142, 125, 255, 0.07) 0%, transparent 34%);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(59, 232, 224, 0.12);
  box-shadow: inset 0 0 80px rgba(59, 232, 224, 0.05);
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.16;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  background: linear-gradient(176deg, #FFFFFF 0%, #DDF6F6 46%, #8FC9CE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 26px rgba(59, 232, 224, 0.14));
}

.page-hero p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
  position: relative;
  z-index: 1;
}

.page-hero .wrap {
  position: relative;
}

.page-hero-meta {
  position: absolute;
  right: 32px;
  bottom: 2px;
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  line-height: 2;
  z-index: 1;
}

.page-hero-meta span {
  display: block;
}

/* ---------------- Prose ---------------- */

.prose p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.95;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .lead {
  font-family: var(--display);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.7;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 26px;
  letter-spacing: -0.01em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 76px;
  align-items: start;
}

.split .sticky {
  position: sticky;
  top: 110px;
}

/* ---------------- Timeline ---------------- */

.timeline {
  border-left: 1px solid var(--line-2);
  padding-left: 32px;
  display: grid;
  gap: 38px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(59, 232, 224, 0.9);
}

.timeline-year {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.timeline-item h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ---------------- Contact ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 30px;
}

.contact-item {
  background: rgba(10, 17, 23, 0.92);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
  transition: background 0.3s;
}

.contact-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-item:hover {
  background: rgba(16, 26, 33, 0.95);
}

.contact-item:hover::before {
  opacity: 1;
}

.contact-item dt {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
}

.contact-item dd {
  margin: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.contact-item dd a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}

.contact-item dd a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.copy-btn {
  border: 1px solid var(--line);
  background: rgba(59, 232, 224, 0.05);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(59, 232, 224, 0.14);
  border-color: var(--line-2);
  color: var(--cyan-soft);
}

.form-card {
  background: linear-gradient(168deg, rgba(14, 23, 30, 0.92), rgba(7, 12, 17, 0.82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(142, 125, 255, 0.5), transparent);
  opacity: 0.8;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background-color: rgba(4, 7, 10, 0.7);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%233BE8E0' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field textarea {
  resize: vertical;
  min-height: 118px;
  line-height: 1.7;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background-color: rgba(6, 12, 16, 0.95);
  border-color: rgba(59, 232, 224, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 232, 224, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #4E6168;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.7;
}

/* 沟通前准备清单 */
.checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checklist li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ck-num {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(59, 232, 224, 0.72);
  padding-top: 3px;
}

.checklist strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.checklist em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.notice {
  display: none;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 3px;
  background: rgba(59, 232, 224, 0.07);
  border: 1px solid rgba(59, 232, 224, 0.24);
  border-left: 2px solid var(--cyan);
  color: var(--cyan-soft);
  font-size: 13px;
  line-height: 1.7;
}

.notice.is-show {
  display: block;
}

/* ---------------- FAQ ---------------- */

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

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--ink);
  transition: color 0.2s;
}

.faq summary:hover {
  color: var(--cyan-soft);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--cyan);
  font-weight: 300;
  transition: transform 0.3s var(--ease);
  line-height: 1;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 700px;
  line-height: 1.85;
}

/* ---------------- CTA band ---------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(ellipse 60% 120% at 88% 50%, rgba(59, 232, 224, 0.16), transparent 62%),
    linear-gradient(150deg, #0B141A, #060A0E);
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 62px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(59, 232, 224, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 232, 224, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 90% 50%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 100% at 90% 50%, #000, transparent 70%);
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(59, 232, 224, 0.18);
  pointer-events: none;
}

.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.26;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 1;
  background: linear-gradient(170deg, #FFFFFF, #B9E9EB);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.cta-band .btn {
  position: relative;
  z-index: 1;
  background: var(--cyan);
  color: #03181A;
  border-color: var(--cyan);
}

.cta-band .btn:hover {
  background: #7BFFF8;
  box-shadow: 0 0 30px -4px rgba(59, 232, 224, 0.8);
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #05090D, #04070A);
  padding: 72px 0 30px;
  overflow: hidden;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 232, 224, 0.35), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr;
  gap: 52px;
  margin-bottom: 52px;
}

.footer-brand p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 320px;
  line-height: 1.85;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(59, 232, 224, 0.66);
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13.5px;
  transition: color 0.2s;
  word-break: break-all;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-col li {
  color: var(--ink-2);
  font-size: 13.5px;
}

.footer-wordmark {
  font-family: var(--display);
  font-size: clamp(52px, 12vw, 148px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59, 232, 224, 0.24);
  user-select: none;
  margin: 0 0 20px -0.02em;
  white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---------------- Back to top ---------------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: rgba(6, 12, 16, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--cyan);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 70;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    background 0.2s, box-shadow 0.3s;
}

.to-top.is-show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: rgba(59, 232, 224, 0.12);
  box-shadow: 0 0 24px -8px rgba(59, 232, 224, 0.9);
}

/* ---------------- Modal ---------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 4, 6, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal.is-open {
  display: flex;
  animation: fadeIn 0.24s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 90dvh;
  overflow-y: auto;
  background: linear-gradient(168deg, #0C151B, #070C11);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 38px 34px 30px;
  box-shadow:
    0 60px 120px -60px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(59, 232, 224, 0.06),
    0 0 70px -40px rgba(59, 232, 224, 0.7);
  animation: popIn 0.3s var(--ease);
}

.modal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.7;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: rgba(4, 7, 10, 0.9);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.modal-close:hover {
  background: rgba(59, 232, 224, 0.14);
  border-color: var(--line-2);
  color: var(--cyan);
}

.modal-card h3 {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.modal-card .modal-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 24px;
  line-height: 1.75;
}

.modal-card .field input {
  background: rgba(4, 7, 10, 0.8);
}

.modal-card .field input:disabled {
  color: #4E6168;
  cursor: not-allowed;
}

.modal-alt {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.modal-alt a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 232, 224, 0.3);
}

/* ---------------- 作品详情弹层 ---------------- */

.modal-card.is-wide {
  max-width: 660px;
  max-height: 88dvh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 38px 38px 30px;
  -webkit-overflow-scrolling: touch;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  padding-right: 34px;
}

.detail-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 14px 34px -16px rgba(59, 232, 224, 0.9);
}

.detail-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.26), transparent 46%);
}

.detail-title {
  min-width: 0;
}

.detail-cat {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--cyan-soft);
  background: rgba(59, 232, 224, 0.09);
  border: 1px solid rgba(59, 232, 224, 0.26);
  border-radius: 3px;
  padding: 3px 9px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.detail-title h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.detail-tag {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.detail-desc p {
  margin: 0 0 13px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.9;
}

.detail-desc p:last-child {
  margin-bottom: 0;
}

.detail-desc .preview-note {
  padding: 11px 13px;
  background: rgba(59, 232, 224, 0.07);
  border: 1px solid rgba(59, 232, 224, 0.2);
  border-left: 2px solid var(--cyan);
  border-radius: 3px;
  color: var(--cyan-soft);
  font-size: 12px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 24px 0;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-meta > div {
  background: #0A1117;
  padding: 14px 12px 14px 0;
}

.detail-meta > div:not(:nth-child(3n + 1)) {
  padding-left: 14px;
}

.detail-meta dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.detail-meta dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.detail-block {
  margin-top: 24px;
}

.detail-block h4 {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--cyan-deep);
  text-transform: uppercase;
  margin: 0 0 13px;
  font-weight: 500;
}

.changelog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.changelog li {
  display: grid;
  grid-template-columns: 58px 84px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.7;
}

.cl-v {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--cyan);
  font-size: 11.5px;
}

.cl-date {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.cl-note {
  color: var(--ink-2);
}

.perms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.perms li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.75;
}

.perms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(59, 232, 224, 0.8);
  opacity: 0.85;
}

.detail-actions {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 120;
  max-width: min(520px, calc(100vw - 40px));
  background: rgba(8, 15, 20, 0.96);
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--cyan);
  color: var(--ink);
  padding: 13px 22px;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.9),
    0 0 40px -24px rgba(59, 232, 224, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- Reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1020px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .split .sticky {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cta-band {
    padding: 52px 36px;
  }

  .page-hero-meta {
    position: static;
    text-align: left;
    margin-top: 24px;
    letter-spacing: 0.14em;
  }

  .page-hero-meta span {
    display: inline-block;
    margin-right: 18px;
  }

  .principle {
    padding: 28px 24px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 24px 24px;
    background: rgba(5, 9, 13, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-link {
    padding: 13px 10px;
    border-radius: 3px;
    font-size: 15.5px;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-login {
    margin: 10px 0 0;
    height: 46px;
    width: 100%;
  }

  .principle-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---- 手机优先：720px 以下为核心目标尺寸 ---- */
@media (max-width: 720px) {
  body::before {
    background-size: 44px 44px;
    opacity: 0.7;
  }

  body::after {
    top: -180px;
    width: 620px;
    height: 420px;
    opacity: 0.75;
  }

  .wrap {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .header-inner {
    height: 62px;
    gap: 12px;
  }

  .brand-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .brand-name {
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .brand-sub {
    display: none;
  }

  .nav {
    top: 62px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero-meta {
    gap: 6px 14px;
    margin-bottom: 26px;
    padding-bottom: 14px;
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }

  .hero::after {
    display: none;
  }

  .hero-identity {
    margin-bottom: 22px;
  }

  .hero-identity img {
    width: 44px;
    height: 44px;
  }

  .hero h1 {
    font-size: clamp(33px, 10.2vw, 46px);
    line-height: 1.14;
    margin-bottom: 18px;
    letter-spacing: -0.015em;
  }

  .hero-lead {
    font-size: 14.5px;
    line-height: 1.82;
    margin-bottom: 26px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-actions .btn {
    min-width: 0;
    width: 100%;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 34px;
  }

  .hero-stats > div {
    padding: 18px 12px 20px 0;
    border-right: none;
    border-top: 1px solid var(--line);
  }

  .hero-stats > div::after {
    display: none;
  }

  .hero-stats > div:nth-child(odd) {
    border-right: 1px solid var(--line);
    padding-right: 14px;
  }

  .hero-stats > div:nth-child(even) {
    padding-left: 14px;
  }

  .hero-stats dt {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .hero-stats dd {
    font-size: 20px;
    margin-top: 6px;
  }

  .hero-stats dd small {
    font-size: 10.5px;
  }

  .ring.r2,
  .ring.r3,
  .ring.r4,
  .hero-water::after {
    display: none;
  }

  .ring.r1 {
    right: -140px;
    top: 24%;
    opacity: 0.5;
    width: 260px;
    height: 260px;
  }

  .section {
    padding: 58px 0;
  }

  .section.tight {
    padding: 46px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head h2 {
    font-size: 24px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
  }

  .section-head p {
    font-size: 14px;
  }

  .section-foot {
    margin-top: 28px;
  }

  .page-hero {
    padding: 44px 0 38px;
  }

  .page-hero h1 {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .page-hero p {
    font-size: 14.5px;
  }

  .index-row {
    grid-template-columns: 44px 1fr 18px;
    gap: 0 14px;
    row-gap: 8px;
    padding: 18px 0 18px 12px;
  }

  .index-row:hover {
    padding-left: 12px;
  }

  .index-num {
    display: none;
  }

  .index-icon {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 19px;
    align-self: center;
  }

  .index-body {
    grid-column: 2;
    grid-row: 1;
  }

  .index-name {
    font-size: 16.5px;
  }

  .index-desc {
    font-size: 12.5px;
    line-height: 1.55;
  }

  .index-meta {
    grid-column: 2;
    grid-row: 2;
    font-size: 9.5px;
    white-space: normal;
  }

  .index-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 13px;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .app-card {
    padding: 20px;
  }

  .app-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
    border-radius: 10px;
  }

  .app-card h3 {
    font-size: 18px;
  }

  .app-tagline {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .app-meta {
    gap: 5px 16px;
    font-size: 9.5px;
    padding-top: 14px;
    margin-bottom: 16px;
  }

  .app-actions .btn {
    height: 40px;
    font-size: 12.5px;
    padding: 0 10px;
  }

  .filters {
    gap: 7px;
    margin-bottom: 24px;
  }

  .chip {
    height: 38px;
    padding: 0 14px;
    font-size: 11.5px;
  }

  .filter-count {
    margin-left: 0;
    width: 100%;
    font-size: 9.5px;
  }

  .principle {
    padding: 24px 20px;
  }

  .principle .pnum {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .principle h3 {
    font-size: 16.5px;
  }

  .principle p {
    font-size: 13px;
  }

  .value {
    padding: 24px 20px;
  }

  .value h3 {
    font-size: 16px;
  }

  .value p {
    font-size: 13px;
  }

  .form-card {
    padding: 22px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cta-band {
    padding: 36px 22px;
    border-radius: 6px;
    gap: 22px;
  }

  .cta-band .btn {
    width: auto;
    min-width: 190px;
    align-self: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 34px;
  }

  .site-footer {
    padding: 44px 0 24px;
  }

  .footer-brand p {
    font-size: 13px;
  }

  .footer-wordmark {
    font-size: 38px;
    margin-bottom: 14px;
    /* 手机端字体渲染描边会出现多重轮廓，改为极淡实心字 */
    -webkit-text-stroke: 0;
    color: rgba(59, 232, 224, 0.09);
    letter-spacing: 0.04em;
  }

  .footer-bottom {
    font-size: 9.5px;
    gap: 8px;
    letter-spacing: 0.04em;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 18px;
  }

  .contact-item dd {
    text-align: left;
    width: 100%;
    padding-right: 54px;
    font-size: 13.5px;
  }

  .copy-btn {
    align-self: flex-end;
    margin-top: -34px;
    min-height: 34px;
  }

  .modal {
    padding: 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .modal-card {
    padding: 30px 20px 24px;
    border-radius: 5px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .modal-card h3 {
    font-size: 20px;
  }

  .modal-card.is-wide {
    max-height: 90dvh;
  }

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

  .detail-head {
    gap: 13px;
    padding-right: 40px;
    margin-bottom: 18px;
  }

  .detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    font-size: 21px;
  }

  .detail-title h3 {
    font-size: 19px;
  }

  .detail-tag {
    font-size: 12px;
  }

  .detail-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-meta > div:not(:nth-child(3n + 1)) {
    padding-left: 0;
  }

  .detail-meta > div:nth-child(even) {
    padding-left: 12px;
  }

  .detail-meta > div {
    padding: 12px 10px 12px 0;
  }

  .changelog li {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "v date"
      "note note";
    row-gap: 4px;
    column-gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }

  .changelog li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .cl-v {
    grid-area: v;
  }

  .cl-date {
    grid-area: date;
    text-align: right;
  }

  .cl-note {
    grid-area: note;
  }

  .toast {
    bottom: 82px;
    font-size: 12.5px;
    border-radius: 3px;
    padding: 11px 16px;
  }

  .to-top {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
}

/* ---- 小屏兜底（iPhone SE / 旧机型）---- */
@media (max-width: 380px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .brand-name {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-stats dd {
    font-size: 18px;
  }

  .app-card {
    padding: 16px;
  }

  .app-actions {
    flex-direction: column;
  }

  .app-actions .btn {
    width: 100%;
  }
}

/* 真实应用图标 */
.index-icon.has-img,
.app-icon.has-img,
.detail-icon.has-img {
  background: rgba(4, 7, 10, 0.6);
  padding: 0;
  overflow: hidden;
}

.index-icon.has-img img,
.app-icon.has-img img,
.detail-icon.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  position: relative;
  z-index: 1;
  display: block;
}

/* 真实图标自带高光，去掉叠加层 */
.index-icon.has-img::after,
.app-icon.has-img::after,
.detail-icon.has-img::after {
  display: none;
}

/* =========================================================
   圆角体系：按钮胶囊化 · 面板柔和化
   ========================================================= */

:root {
  --radius: 14px;
}

.btn {
  border-radius: 999px;
  padding: 0 30px;
}

.btn-sm,
.btn-ghost {
  padding: 0 20px;
}

.chip {
  border-radius: 999px;
  padding: 0 18px;
}

.copy-btn {
  border-radius: 999px;
  padding: 6px 12px;
}

.modal-close,
.to-top {
  border-radius: 50%;
}

.modal-card {
  border-radius: 20px;
}

.cta-band {
  border-radius: 20px;
}

.index-icon,
.app-icon,
.detail-icon {
  border-radius: 14px;
}

.hero-identity img {
  border-radius: 16px;
}

.brand-avatar {
  border-radius: 12px;
}

.field input,
.field textarea,
.field select {
  border-radius: 12px;
}

.notice,
.detail-desc .preview-note,
.toast {
  border-radius: 12px;
}

.app-badge,
.detail-cat {
  border-radius: 999px;
}

.empty-state {
  border-radius: 14px;
}

@media (max-width: 720px) {
  .brand-avatar {
    border-radius: 10px;
  }

  .hero-identity img {
    border-radius: 14px;
  }

  .index-icon {
    border-radius: 12px;
  }

  .modal-card,
  .modal-card.is-wide {
    border-radius: 18px;
  }

  .cta-band {
    border-radius: 16px;
  }

  .toast {
    border-radius: 14px;
  }
}

/* =========================================================
   细节打磨：暗色原生控件 · 图标质感 · 常驻下载栏
   ========================================================= */

html {
  color-scheme: dark;
}

.field input,
.field textarea,
.field select {
  color-scheme: dark;
}

/* 图标更饱满，带一圈极细的发光边 */
.index-icon {
  width: 60px;
  height: 60px;
  font-size: 25px;
}

.index-row {
  grid-template-columns: 52px 60px 1fr auto 24px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.index-icon.has-img {
  border: 1px solid rgba(110, 225, 235, 0.16);
  box-shadow:
    0 12px 28px -16px rgba(59, 232, 224, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* 详情弹层：下载栏固定在卡片底部，内容留出等高的滚动余量 */
.detail-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 16px 38px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 21, 27, 0.88), rgba(12, 21, 27, 0.99) 42%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -18px 26px -22px rgba(0, 0, 0, 0.95);
}

.detail-body {
  padding-bottom: 112px;
}

/* 程序聚焦时不要用太抢眼的焦点环，键盘操作时仍有 */
.modal-close:focus-visible {
  outline: 2px solid rgba(59, 232, 224, 0.45);
  outline-offset: 2px;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-actions .btn-block {
  flex: 1;
}

.copy-link {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--cyan-soft);
}

.copy-link:hover {
  color: var(--cyan);
  border-color: var(--line-3);
  background: rgba(59, 232, 224, 0.12);
}

.btn.is-downloading {
  pointer-events: none;
}

.btn.is-downloading::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 7px;
  vertical-align: -1px;
}

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

@media (max-width: 720px) {
  .index-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .index-row {
    grid-template-columns: 48px 1fr 18px;
    padding: 20px 0 20px 12px;
  }

  .detail-actions {
    padding: 14px 20px 16px;
  }

  .detail-body {
    padding-bottom: 104px;
  }
}

/* =========================================================
   交互反馈与动效增强
   ========================================================= */

/* 涟漪载体 */
.btn,
.chip,
.copy-btn {
  position: relative;
}

.btn,
.chip,
.copy-btn,
.to-top,
.modal-close {
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
}

.ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 64%);
  transform: scale(0);
  animation: rippleOut 0.55s var(--ease) forwards;
}

@keyframes rippleOut {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* 按下反馈 */
.btn:active {
  transform: translateY(1px) scale(0.975);
}

.btn-primary:active {
  background: linear-gradient(135deg, #7BFFF8 0%, #4FF3EA 50%, #2AC8CC 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 1px rgba(59, 232, 224, 0.7),
    0 6px 20px -12px rgba(59, 232, 224, 1);
}

.btn-line:active,
.btn-ghost:active {
  background: rgba(59, 232, 224, 0.18);
  border-color: var(--line-3);
  color: var(--cyan-soft);
}

.chip:active {
  transform: scale(0.955);
}

.copy-btn:active,
.modal-close:active {
  transform: scale(0.93);
}

.to-top:active {
  transform: scale(0.92);
  background: rgba(59, 232, 224, 0.2);
}

.index-row:active {
  padding-left: 24px;
}

.nav-link:active {
  background: rgba(59, 232, 224, 0.14);
  color: var(--cyan-soft);
}

.faq summary:active {
  color: var(--cyan);
}

/* 列表图标与箭头的轻交互 */
.index-icon,
.index-arrow,
.index-name {
  transition: transform 0.35s var(--ease), color 0.3s;
}

.index-row:hover .index-icon,
.index-row:active .index-icon {
  transform: scale(1.06) rotate(-2deg);
}

.index-row:hover .index-name,
.index-row:active .index-name {
  color: var(--cyan-soft);
}

/* 首屏编排入场 */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-meta {
  animation: riseIn 0.7s var(--ease) 0.04s both;
}

.hero-identity {
  animation: riseIn 0.7s var(--ease) 0.12s both;
}

.hero h1 {
  animation: riseIn 0.85s var(--ease) 0.2s both;
}

.hero-lead {
  animation: riseIn 0.8s var(--ease) 0.3s both;
}

.hero-actions {
  animation: riseIn 0.8s var(--ease) 0.4s both;
}

.site-header {
  animation: dropIn 0.6s var(--ease) both;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 项目列表逐行入场（仅当脚本确认可观察时才隐藏，避免无 JS 时空白） */
.index-list.is-ready .index-row {
  opacity: 0;
}

.index-list.is-in .index-row {
  animation: rowIn 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 当前导航下划线展开 */
@keyframes navLine {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 16px;
    opacity: 1;
  }
}

.nav-link.is-active::after {
  animation: navLine 0.5s var(--ease) 0.15s both;
}

/* 移动端菜单逐项淡入 */
.nav.is-open .nav-link,
.nav.is-open .nav-login {
  animation: riseIn 0.32s var(--ease) both;
}

.nav.is-open .nav-link:nth-child(1) {
  animation-delay: 0.04s;
}

.nav.is-open .nav-link:nth-child(2) {
  animation-delay: 0.08s;
}

.nav.is-open .nav-login {
  animation-delay: 0.12s;
}

/* 复制成功态 */
.copy-btn.is-copied {
  color: var(--cyan);
  border-color: rgba(59, 232, 224, 0.62);
  background: rgba(59, 232, 224, 0.18);
  animation: copyPulse 0.45s var(--ease);
}

@keyframes copyPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* CTA 光晕呼吸 */
.cta-band::after {
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

/* 触摸设备：用 active 替代 hover 的提示 */
@media (hover: none) {
  .index-row:hover .index-icon,
  .index-row:hover .index-name {
    transform: none;
    color: inherit;
  }

  .index-row:active .index-icon {
    transform: scale(1.06) rotate(-2deg);
  }

  .index-row:active .index-name {
    color: var(--cyan-soft);
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: translateY(1px) scale(0.975);
  }

  .btn:hover .arrow {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-list.is-ready .index-row {
    opacity: 1;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
