/* ==========================================================================
   七立方 · 个人开发者站
   配色参照 QQ 官网：白底 + 顶部淡蓝天光 + 品牌蓝 #09f
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #09f;
  --blue-deep: #0080cc;
  --blue-soft: #28b7ff;
  --blue-wash: #eaf6ff;
  --logo-w: #e8382f;   /* LOGO 里那笔 W 的颜色，改回蓝色就写 var(--blue) */

  --ink: #1a1a1a;
  --ink-2: #3d4450;
  --ink-3: #6b7480;
  --ink-4: #9aa3ad;

  --line: #e9eef4;
  --line-2: #f1f5f9;
  --bg: #fff;
  --bg-soft: #f6f8fa;

  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow-s: 0 1px 2px rgba(16, 42, 67, .05), 0 4px 12px rgba(16, 42, 67, .04);
  --shadow-m: 0 2px 6px rgba(16, 42, 67, .05), 0 14px 40px -12px rgba(16, 42, 67, .14);
  --shadow-l: 0 4px 10px rgba(16, 42, 67, .06), 0 28px 70px -20px rgba(16, 42, 67, .22);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;

  --wrap: 1120px;
  --pad: 24px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

/* height 必须显式 auto：标签上的 height 属性会压过 max-width，把截图拉长 */
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.015em;
}

p { margin: 0; }

::selection { background: rgba(0, 153, 255, .18); }

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

/* ---------- 通用小标签 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
  opacity: .55;
}

/* ==========================================================================
   导航
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}

.nav.solid {
  height: 64px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(16, 42, 67, .07);
}

.nav-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  flex: none;
}

/* LOGO：正三角 + 内折线（W 形＝WJY 三个首字母的笔画） */
.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
  display: block;
  color: var(--blue);
  transition: color .2s;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.brand:hover .brand-mark { color: var(--blue-deep); }

/* 三角是蓝的，中间那笔 W 单独上色（不跟随 hover 变色） */
.brand-mark .mark-w { stroke: var(--logo-w); }

.brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--ink-4);
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.nav-links a:hover { background: rgba(0, 153, 255, .08); color: var(--blue-deep); }
.nav-links a.on { color: var(--ink); font-weight: 600; }

.nav-cta {
  padding: 9px 18px !important;
  border-radius: 999px;
  background: var(--ink) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500;
  margin-left: 8px;
  transition: transform .2s, background .2s !important;
}
.nav-cta:hover { background: #000 !important; transform: translateY(-1px); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 104px 0 0;
  overflow: hidden;
  isolation: isolate;
}

/* 天光：顶部蓝 → 白 */
.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  z-index: -2;
  background:
    radial-gradient(60% 46% at 50% -8%, #c9e4ff 0%, rgba(201, 228, 255, 0) 74%),
    radial-gradient(38% 32% at 8% 14%, #e8f5ff 0%, rgba(232, 245, 255, 0) 72%),
    radial-gradient(44% 36% at 92% 6%, #e9f6ff 0%, rgba(233, 246, 255, 0) 70%),
    linear-gradient(180deg, #edf6ff 0%, #f9fcff 48%, #fff 76%);
}

/* 飘云：两团柔和亮斑缓慢横移 */
.cloud {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .85;
  will-change: transform;
}

.cloud-1 {
  width: 460px;
  height: 150px;
  left: -8%;
  top: 130px;
  background: radial-gradient(closest-side, #fff 0%, rgba(255, 255, 255, 0) 100%);
  animation: drift1 46s ease-in-out infinite alternate;
}

.cloud-2 {
  width: 620px;
  height: 180px;
  right: -14%;
  top: 70px;
  background: radial-gradient(closest-side, #fff 0%, rgba(255, 255, 255, 0) 100%);
  animation: drift2 58s ease-in-out infinite alternate;
}

.cloud-3 {
  width: 380px;
  height: 120px;
  left: 42%;
  top: 300px;
  background: radial-gradient(closest-side, #f0f8ff 0%, rgba(240, 248, 255, 0) 100%);
  animation: drift1 72s ease-in-out infinite alternate-reverse;
}

@keyframes drift1 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(70px, 14px, 0); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-90px, 10px, 0); } }

.hero-copy {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(32px, 5.6vw, 56px);
  letter-spacing: -.03em;
  line-height: 1.14;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-lead {
  margin: 22px auto 0;
  max-width: 496px;
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.85;
}

.hero-acts {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s, border-color .18s;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(0, 153, 255, .55);
}

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(0, 153, 255, .6);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
  box-shadow: var(--shadow-s);
}

.btn-ghost:hover {
  border-color: #d3e2ef;
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}

.btn svg { flex: none; }

/* ---------- Hero 手机 ---------- */

.hero-stage {
  position: relative;
  margin: 28px auto 0;
  height: 372px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  max-width: 720px;
}

.hero-stage::after {
  content: "";
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 74%;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 82, 140, .13), transparent);
  filter: blur(14px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 30px;
  padding: 6px;
  box-shadow: var(--shadow-l);
  border: 1px solid rgba(16, 42, 67, .07);
  overflow: hidden;
}

/* 宣传海报：本身就是 9:16，直接裁个圆角，不再套手机边框 */
.poster {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(16, 42, 67, .08), 0 24px 60px -18px rgba(16, 42, 67, .32);
  border: 1px solid rgba(16, 42, 67, .10);
  background: #fff;
}

.poster img { width: 100%; }

.phone img {
  border-radius: 25px;
  width: 100%;
}

.hero-stage .poster {
  width: 188px;
  margin: 0 -8px;
}

.hero-stage .poster:nth-child(1) {
  transform: rotate(-3.5deg) translateY(12px);
  animation: floatA 7s ease-in-out infinite alternate;
}

.hero-stage .poster:nth-child(2) {
  transform: rotate(3deg) translateY(-6px);
  z-index: 2;
  animation: floatB 8.5s ease-in-out infinite alternate;
}

@keyframes floatA {
  from { transform: rotate(-3.5deg) translateY(12px); }
  to { transform: rotate(-3.5deg) translateY(2px); }
}

@keyframes floatB {
  from { transform: rotate(3deg) translateY(-6px); }
  to { transform: rotate(3deg) translateY(-16px); }
}

/* 鼠标悬停：海报放大一点。
   浮动动画用的是 transform，这里改用独立的 scale / translate 属性，
   两者互不覆盖，放大时那点轻微摇摆还能继续，看着是活的。 */
@media (hover: hover) and (pointer: fine) {
  .hero-stage .poster {
    transform-origin: 50% 100%;
    transition:
      scale .55s cubic-bezier(.22, .61, .36, 1),
      translate .55s cubic-bezier(.22, .61, .36, 1),
      box-shadow .55s ease;
  }

  .hero-stage .poster:hover {
    scale: 1.07;
    translate: 0 -6px;
    z-index: 6;
    box-shadow:
      0 4px 10px rgba(16, 42, 67, .10),
      0 36px 74px -20px rgba(16, 42, 67, .40);
  }
}

/* 底部一层白，遮住天光，形成自然收口 */
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 78%);
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   区块骨架
   ========================================================================== */

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

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

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(25px, 3.4vw, 34px);
  letter-spacing: -.02em;
}

.section-note {
  max-width: 300px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.8;
  padding-bottom: 4px;
}

.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ==========================================================================
   应用卡片
   ========================================================================== */

.app-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 44px;
  align-items: center;
  box-shadow: var(--shadow-s);
  transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease;
}

.app-card + .app-card { margin-top: 26px; }

.app-card:hover {
  box-shadow: var(--shadow-m);
  border-color: #dae8f4;
  transform: translateY(-2px);
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.app-icon {
  width: 62px;
  height: 62px;
  border-radius: 17px;
  flex: none;
  box-shadow: 0 4px 12px rgba(16, 42, 67, .14);
  overflow: hidden;
  background: #f2f6fa;
}

.app-icon img { width: 100%; height: 100%; object-fit: cover; }

.app-title {
  font-size: 25px;
  letter-spacing: -.02em;
}

.app-sub {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 5px;
}

.app-desc {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.88;
}

.app-desc + .app-desc { margin-top: 12px; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-3);
  border: 1px solid var(--line);
}

.app-acts {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--blue-deep);
  padding: 8px 4px;
}

.link-more svg { transition: transform .22s ease; }
.link-more:hover svg { transform: translateX(4px); }

.pill-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #f2f8fd;
  color: var(--blue-deep);
  border: 1px solid #dcecf8;
}

.pill-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill-state.warn {
  background: #fff8ec;
  color: #a8681a;
  border-color: #f5e4c8;
}

.pill-state.gray {
  background: var(--bg-soft);
  color: var(--ink-3);
  border-color: var(--line);
}

/* 截图画廊 */
.fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 6px 0 12px;
}

.fan .phone,
.fan .poster {
  width: 164px;
  margin: 0 -14px;
  transition: transform .4s cubic-bezier(.2, .7, .3, 1);
}

/* 164px 的小卡片用 24px 圆角太圆，收一点 */
.fan .poster { border-radius: 18px; }

.fan .phone:nth-child(1),
.fan .poster:nth-child(1) { transform: rotate(-6deg) translateY(14px); }
.fan .phone:nth-child(2),
.fan .poster:nth-child(2) { transform: translateY(-6px); z-index: 3; }
.fan .phone:nth-child(3),
.fan .poster:nth-child(3) { transform: rotate(6deg) translateY(14px); }

.app-card:hover .fan .phone:nth-child(1),
.app-card:hover .fan .poster:nth-child(1) { transform: rotate(-8deg) translateY(8px) translateX(-8px); }
.app-card:hover .fan .phone:nth-child(2),
.app-card:hover .fan .poster:nth-child(2) { transform: translateY(-14px); }
.app-card:hover .fan .phone:nth-child(3),
.app-card:hover .fan .poster:nth-child(3) { transform: rotate(8deg) translateY(8px) translateX(8px); }

/* ---------- 下载下拉 ---------- */

.dl { position: relative; display: inline-block; }

.dl-menu {
  position: absolute;
  left: -6px;
  top: calc(100% + 12px);
  transform: translateY(-8px);
  width: 268px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-l);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 20;
}

.dl-menu::after {
  content: "";
  position: absolute;
  left: 34px;
  top: -6px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.dl:hover .dl-menu,
.dl:focus-within .dl-menu,
.dl.open .dl-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* 鼠标放到整张卡片上也能看到下载方式（延迟 0.2s，划过时不闪） */
.app-card:has(.dl):hover .dl-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: .2s;
}

.dl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  transition: background .18s;
}

.dl-item:hover { background: var(--bg-soft); }

.dl-item .os {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f2f8fd;
  color: var(--blue-deep);
  flex: none;
}

.dl-item.off .os { background: var(--bg-soft); color: var(--ink-4); }

.dl-item .txt { display: flex; flex-direction: column; line-height: 1.35; }

.dl-item .nm { font-size: 14px; font-weight: 500; }

.dl-item .sm {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--ink-4);
  margin-top: 2px;
}

.dl-item.off { cursor: default; opacity: .72; }
.dl-item.off:hover { background: transparent; }

/* ==========================================================================
   在做的东西
   ========================================================================== */

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

.mk-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 22px;
  align-items: baseline;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line-2);
  transition: padding-left .28s ease;
}

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

.mk-idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: .04em;
}

.mk-name {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.mk-note {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.7;
}

.mk-state {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-4);
  white-space: nowrap;
  text-align: right;
}

/* ==========================================================================
   关于
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}

.about-body p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.95;
}

.about-body p + p { margin-top: 18px; }

.about-body strong { color: var(--ink); font-weight: 600; }

/* 名片 */
.card-id {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-s);
  position: relative;
  overflow: hidden;
}

.card-id::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 84px;
  background: linear-gradient(180deg, #f2f9ff, rgba(242, 249, 255, 0));
  z-index: 0;
}

.id-row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.id-row:last-child { border-bottom: 0; padding-bottom: 0; }

.id-k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  width: 70px;
  flex: none;
}

.id-v { color: var(--ink-2); word-break: break-all; }

/* ==========================================================================
   页脚
   ========================================================================== */

.foot {
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
  background: #fcfdfe;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.foot-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 2.1;
  color: var(--ink-4);
  letter-spacing: .03em;
  text-align: right;
}

.foot-meta a { color: var(--ink-3); border-bottom: 1px solid var(--line); }
.foot-meta a:hover { color: var(--blue-deep); border-color: var(--blue); }

/* ==========================================================================
   详情页
   ========================================================================== */

.detail-hero {
  position: relative;
  padding: 132px 0 56px;
  overflow: hidden;
  isolation: isolate;
}

.detail-hero .sky { height: 500px; }

.dh-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: start;
}

.dh-grid .dh-icon { margin-top: 6px; }

.dh-grid .app-acts { margin-top: 26px; }

.dh-icon {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 30px -8px rgba(16, 42, 67, .3);
  flex: none;
}

.dh-icon img { width: 100%; height: 100%; object-fit: cover; }

.dh-name {
  font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: -.03em;
}

.dh-line {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 480px;
  line-height: 1.8;
}

.dh-spec {
  display: flex;
  gap: 0;
  margin-top: 22px;
  flex-wrap: wrap;
}

.dh-spec div {
  padding: 0 20px;
  border-left: 1px solid var(--line);
  line-height: 1.5;
}

.dh-spec div:first-child { padding-left: 0; border-left: 0; }

.dh-spec dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.dh-spec dd {
  margin: 5px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
}

.detail-body { padding: 26px 0 96px; }

.shots {
  display: flex;
  justify-content: center;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 4px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: #dde6ee; border-radius: 99px; }

.shots .phone,
.shots .poster {
  width: 200px;
  flex: none;
  scroll-snap-align: center;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
  padding: 52px 0;
  border-top: 1px solid var(--line-2);
}

/* 左右交替靠显式 .rev，不靠 nth-child —— 页面里夹了纯文字区块，序号会错 */
.feature.rev .f-copy { order: 2; }

.f-copy h3 {
  font-size: 21px;
  letter-spacing: -.015em;
}

.f-copy p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.9;
}

.f-visual {
  display: flex;
  justify-content: center;
}

.f-visual .phone,
.f-visual .poster { width: 208px; }

/* 纯文字区块：不放图，留一口气 */
.feature.solo {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 0;
}

.quote {
  margin: 24px 0 0;
  padding: 18px 22px;
  border-left: 2px solid var(--blue);
  background: linear-gradient(90deg, rgba(0, 153, 255, .045), rgba(0, 153, 255, 0));
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.8;
}

.quote-from {
  margin-top: 10px !important;
  font-family: var(--mono);
  font-size: 11.5px !important;
  letter-spacing: .04em;
  color: var(--ink-4) !important;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 26px;
}

.back-link:hover { color: var(--blue-deep); }

/* ==========================================================================
   入场动效
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

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

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 960px) {
  .app-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 24px;
  }

  .app-card .fan { order: 2; }

  .about-grid { grid-template-columns: 1fr; gap: 34px; }

  .dh-grid { grid-template-columns: auto 1fr; gap: 22px; }
  .dh-grid > .app-acts { grid-column: 1 / -1; margin-top: 6px; }

  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-note { max-width: none; }

  .feature { grid-template-columns: 1fr; gap: 26px; padding: 40px 0; }
  .feature:nth-child(even) .f-copy { order: 0; }
}

@media (max-width: 680px) {
  :root { --pad: 18px; }

  .hero { padding-top: 118px; }
  .hero-stage { height: 306px; margin-top: 34px; }
  .hero-stage .poster { width: 168px; margin: 0 -12px; }

  .nav-links a { padding: 8px 10px; font-size: 13.5px; }
  .brand-sub { display: none; }
  .nav-cta { display: none; }

  .fan .phone,
  .fan .poster { width: 118px; margin: 0 -16px; }

  /* 窄屏 flex 会把「账号」那格挤到换行又缩进，改成 2×2 网格 */
  .dh-spec {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 14px 26px;
  }
  .dh-spec div { padding: 0; border-left: 0; }

  .mk-row { grid-template-columns: 30px 1fr; gap: 14px; }
  .mk-state { grid-column: 2; text-align: left; }

  .foot-inner { flex-direction: column; }
  .foot-meta { text-align: left; }

  .dh-icon { width: 78px; height: 78px; border-radius: 20px; }
  .shots { justify-content: flex-start; }
  .shots .phone,
  .shots .poster { width: 158px; }
  .f-visual .phone,
  .f-visual .poster { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .hero-stage .poster { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   开场片头：一根线把 LOGO 画出来，名字浮上来，然后退场
   ========================================================================== */

html.preloading,
html.preloading body { overflow: hidden; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  /* 和首屏天光同一套渐变，淡出时不会从纯白跳到淡蓝 */
  background:
    radial-gradient(60% 46% at 50% -8%, #c9e4ff 0%, rgba(201, 228, 255, 0) 74%),
    linear-gradient(180deg, #edf6ff 0%, #f9fcff 48%, #fff 76%);
  animation: introOut .48s cubic-bezier(.4, 0, .2, 1) 1.36s forwards;
}

.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: introLift .48s cubic-bezier(.4, 0, .2, 1) 1.36s forwards;
}

.intro-mark {
  width: 132px;
  height: 132px;
  overflow: visible;
}

/* pathLength="100" 归一化，所以不用去算每条线的真实长度 */
.intro-mark path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.it-tri {
  stroke: var(--blue);
  animation: drawLine .64s cubic-bezier(.45, .05, .25, 1) .08s forwards;
}

.it-w {
  stroke: var(--logo-w);
  animation: drawLine .58s cubic-bezier(.45, .05, .25, 1) .52s forwards;
}

.intro-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .18em;
  text-indent: .18em;
  color: var(--ink);
  opacity: 0;
  animation: nameIn .44s ease .86s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes nameIn {
  from { opacity: 0; letter-spacing: .44em; text-indent: .44em; transform: translateY(5px); }
  to   { opacity: 1; letter-spacing: .18em; text-indent: .18em; transform: translateY(0); }
}

@keyframes introOut {
  to { opacity: 0; visibility: hidden; }
}

@keyframes introLift {
  to { opacity: 0; transform: translateY(-12px) scale(1.03); }
}

/* 同一次浏览里已经播过，就不再挡第二次 */
.skip-intro .intro { display: none; }

@media (max-width: 680px) {
  .intro-mark { width: 96px; height: 96px; }
  .intro-name { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  html.preloading, html.preloading body { overflow: auto; }
}

/* ==========================================================================
   毛玻璃卡片：鼠标划过时，卡片变半透明玻璃，背后的色斑被糊开
   —— 白底上直接 blur 是白 blur，所以先在区块背后铺一层很淡的色斑
   ========================================================================== */

#apps,
#about { position: relative; }

#apps::before,
#about::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: blur(8px);
}

#apps::before {
  inset: 8% 2% 4%;
  opacity: .82;
  background:
    radial-gradient(40% 36% at 10% 26%, rgba(0, 153, 255, .20), transparent 68%),
    radial-gradient(34% 30% at 90% 66%, rgba(232, 56, 47, .09), transparent 72%),
    radial-gradient(28% 24% at 56% 4%, rgba(40, 183, 255, .15), transparent 74%);
}

#about::before {
  inset: 14% 4% 0;
  opacity: .85;
  background:
    radial-gradient(40% 40% at 18% 40%, rgba(0, 153, 255, .16), transparent 70%),
    radial-gradient(34% 32% at 84% 76%, rgba(40, 183, 255, .13), transparent 72%);
}

#apps > .wrap,
#about > .wrap { position: relative; z-index: 1; }

@media (hover: hover) and (pointer: fine) {

  /* 卡片本体：变玻璃 */
  .app-card {
    transition:
      background .38s ease,
      box-shadow .38s ease,
      border-color .38s ease,
      transform .38s ease;
  }

  .app-card:hover,
  .card-id:hover {
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border-color: rgba(255, 255, 255, .92);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .95),
      0 26px 70px -26px rgba(16, 42, 67, .34);
    transform: translateY(-4px);
  }

  .card-id { transition: background .38s ease, box-shadow .38s ease, border-color .38s ease, transform .38s ease; }
  .card-id:hover { transform: translateY(-3px); }

  /* 卡片里跟着鼠标走的一团光，玻璃才有厚度感 */
  .app-card::after,
  .card-id::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease;
    background: radial-gradient(
      280px circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 255, 255, .75),
      rgba(255, 255, 255, .28) 38%,
      transparent 66%
    );
  }

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

  /* 内容压在高光上面 */
  .app-card > *,
  .card-id > * { position: relative; z-index: 1; }

  /* 「在做」几行给一点轻的，不做 blur，免得满屏都在糊 */
  .mk-row { transition: padding-left .28s ease, background .3s ease; }
  .mk-row:hover {
    background: linear-gradient(90deg, rgba(0, 153, 255, .05), rgba(0, 153, 255, 0) 72%);
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-card, .card-id, .mk-row { transition: none; }
}

/* ==========================================================================
   首屏背景板：淡蓝细网格 + 斜向宽光带 + 跟着鼠标走的柔光
   原来的 6 色彩虹竖条纹太跳，换成同色系低饱和的一层：
   深色文字照样读得清，白色发光圆章也能从底上浮出来
   ========================================================================== */

.stripes {
  position: absolute;
  top: -16%;
  left: -12%;
  width: 124%;
  height: 118%;
  z-index: -1;
  pointer-events: none;
  background:
    /* 34px 细网格，淡到只当一层纸纹 */
    repeating-linear-gradient(0deg, rgba(0, 105, 180, .045) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(0, 105, 180, .045) 0 1px, transparent 1px 34px),
    /* 一道斜向的蓝 → 青宽光带 */
    linear-gradient(104deg,
      rgba(0, 153, 255, 0)   8%,
      rgba(0, 153, 255, .11) 26%,
      rgba(0, 196, 205, .09) 42%,
      rgba(0, 153, 255, 0)   62%),
    radial-gradient(46% 52% at 16% 28%, rgba(125, 205, 255, .20), transparent 72%),
    radial-gradient(40% 48% at 86% 20%, rgba(86, 202, 218, .16), transparent 74%);
  will-change: transform;
  animation: stripeDrift 46s ease-in-out infinite alternate;
}

@keyframes stripeDrift {
  from { transform: translate3d(-12px, 6px, 0) scale(1); }
  to   { transform: translate3d(14px, -10px, 0) scale(1.025); }
}

/* 光球：和 QQ 那边同一个思路，80px 的圆 + 大半径模糊，靠 transform 追鼠标 */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity .55s ease;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, .95) 0%,
    rgba(255, 255, 255, .55) 30%,
    rgba(126, 222, 255, .60) 56%,
    rgba(126, 222, 255, 0) 80%
  );
  filter: blur(46px);
  transform: translate3d(-999px, -999px, 0);
  will-change: transform, opacity;
}

body.glow-on .cursor-glow { opacity: 1; }

/* ==========================================================================
   首屏彩蛋：鼠标停留时「偶尔」浮出一枚发光圆章
   参考 im.qq.com 首页那个会冒出来的白色 Ai 环，里头换成七立方标记
   ========================================================================== */

.spark-badge {
  position: fixed;
  top: 0;
  left: 0;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  z-index: 5;
  pointer-events: none;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, .98);
  background: radial-gradient(circle at 50% 42%,
              rgba(255, 255, 255, .74) 0%,
              rgba(226, 243, 255, .54) 58%,
              rgba(160, 216, 255, .32) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 132, 224, .16),
    0 0 20px 5px rgba(255, 255, 255, .85),
    0 0 44px 14px rgba(110, 200, 255, .38),
    inset 0 0 20px rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(4px) saturate(1.2);
  backdrop-filter: blur(4px) saturate(1.2);
  opacity: 0;
  transform: scale(.45);
  animation: sparkFloat 2s cubic-bezier(.2, .72, .25, 1) forwards;
  will-change: transform, opacity;
}

.spark-badge svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 1px 2px rgba(0, 92, 160, .28));
}

@keyframes sparkFloat {
  0%   { opacity: 0; transform: scale(.45) rotate(-14deg); }
  16%  { opacity: 1; transform: scale(1.07) rotate(0deg); }
  27%  { opacity: 1; transform: scale(1) rotate(0deg); }
  68%  { opacity: 1; transform: scale(1) translateY(-8px); }
  100% { opacity: 0; transform: scale(1.1) translateY(-30px); }
}

@media (hover: none), (pointer: coarse) {
  .spark-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .spark-badge { display: none; }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stripes { animation: none; }
  .cursor-glow { display: none; }
}

/* ==========================================================================
   隐私政策：长文排版，和站点同一套纸色 / 细线 / 字重
   ========================================================================== */

.legal { max-width: 780px; margin: 0 auto; padding: 0 0 40px; }
.legal h1 {
  font-family: var(--serif, inherit);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}
.legal .meta {
  margin-top: 10px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-3, #9aa3ad);
}
.legal h2 {
  margin: 40px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule, #e6ebf0);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.legal h3 { margin: 24px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.legal p, .legal li { font-size: 14px; line-height: 1.95; color: var(--ink-2, #3d4450); }
.legal p { margin: 10px 0; }
.legal ul { margin: 10px 0 10px 18px; }
.legal li { margin: 4px 0; }
.legal code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 153, 255, .08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: #0074c2;
}
.legal table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 13px; }
.legal th, .legal td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule, #e6ebf0);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
  color: var(--ink-2, #3d4450);
}
.legal th { font-weight: 600; color: var(--ink); background: rgba(0, 153, 255, .04); }
.legal .back { display: inline-block; margin-top: 36px; font-size: 13px; color: var(--blue); }

/* 隐私政策：窄屏表格要能折行，权限名是一长串英文 */
.legal td, .legal th { word-break: break-word; }
.legal code { word-break: break-all; }
@media (max-width: 680px) {
  .legal table { font-size: 12.5px; }
  .legal th, .legal td { padding: 8px 9px; }
  .legal table, .legal thead, .legal tbody, .legal tr { display: block; }
  .legal thead { display: none; }
  .legal tr { padding: 10px 0; border-bottom: 1px solid var(--rule, #e6ebf0); }
  .legal td { display: block; padding: 2px 0; border: none; }
  .legal td:first-child { font-weight: 600; color: var(--ink); }
}
.legal td code { font-size: 11.8px; }
