:root {
  --paper: #f5f1ea;
  --paper-2: #ece6db;
  --ink: #17150f;
  --ink-2: #5d574c;
  --ink-3: #8f877a;
  --line: rgba(23, 21, 15, .12);
  --accent: #3d7bf0;
  --card: #fffdf9;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0d0b; --paper-2: #1a1814; --ink: #f1ebe0; --ink-2: #b4ab9c; --ink-3: #7c7466;
    --line: rgba(241, 235, 224, .12); --card: #171511; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* 纸张颗粒 */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(3) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-3%)} }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: .02em; text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: conic-gradient(from 200deg, #3d7bf0, #7a5cff, #ff6a4d, #12a37f, #3d7bf0);
  box-shadow: inset 0 0 0 4px var(--paper);
}
.nav nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 14px; }
.nav nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }

/* ---------- 通用 ---------- */
.eyebrow { font-size: 13px; letter-spacing: .18em; color: var(--ink-3); margin: 0 0 18px; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 550;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:hover span { transform: translateX(4px); }
.btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.section-title {
  display: flex; align-items: baseline; gap: 16px; margin: 0 0 clamp(40px, 6vw, 80px);
  font: 400 clamp(14px, 1.2vw, 16px)/1 var(--sans); letter-spacing: .3em; color: var(--ink-3); text-transform: uppercase;
}
.section-title span { font: 600 clamp(40px, 7vw, 88px)/1 var(--serif); letter-spacing: 0; color: var(--ink); text-transform: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .grain, .marquee div, .isle-grid i, .card.c1, .typing i, .vf-arrow { animation: none !important; }
}

/* ---------- 首页 Hero ---------- */
.hero { padding: clamp(56px, 10vw, 140px) clamp(16px, 6vw, 96px) 40px; position: relative; }
.hero h1 {
  font: 600 clamp(36px, 8.6vw, 128px)/1.08 var(--serif); letter-spacing: -.01em; margin: 0 0 28px; max-width: 11em;
}
.hero-phones {
  position: relative; height: clamp(360px, 46vw, 560px); margin-top: clamp(32px, 6vw, 72px);
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 2vw, 28px);
}
.hp { position: relative; text-decoration: none; transition: transform .6s var(--ease); will-change: transform; }
.hp0 { transform: translateY(40px) rotate(-6deg); }
.hp1 { transform: translateY(0) rotate(-2deg); z-index: 2; }
.hp2 { transform: translateY(16px) rotate(3deg); z-index: 1; }
.hp3 { transform: translateY(56px) rotate(7deg); }
.hp:hover { transform: translateY(-10px) rotate(0) !important; z-index: 5; }
.hp-label {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); font-size: 13px; color: var(--ink-2);
  white-space: nowrap; opacity: 0; transition: opacity .3s;
}
.hp:hover .hp-label { opacity: 1; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); margin-top: 80px; padding: 18px 0; }
.marquee div { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; font: 500 clamp(20px, 3vw, 34px)/1 var(--serif); white-space: nowrap; }
.marquee span:nth-child(even) { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 手机外壳 ---------- */
.phone {
  --w: 260px; position: relative; width: var(--w); aspect-ratio: 9 / 19.2; border-radius: calc(var(--w) * .16);
  background: #0b0b0c; padding: calc(var(--w) * .035);
  box-shadow: 0 1px 0 1px rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(20, 16, 8, .45), 0 18px 30px -18px rgba(20,16,8,.4);
  flex: none;
}
.phone.sm { --w: clamp(130px, 17vw, 220px); }
.phone.lg { --w: clamp(240px, 26vw, 320px); }
.phone-notch {
  position: absolute; top: calc(var(--w) * .06); left: 50%; transform: translateX(-50%); z-index: 3;
  width: 28%; height: calc(var(--w) * .07); border-radius: 99px; background: #0b0b0c;
}
.scr {
  position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .13); overflow: hidden;
  background: #fbfaf7; color: #1b1a17; font-size: calc(var(--w) * .052);
  container-type: inline-size;
}
.scr-top { display: flex; justify-content: space-between; align-items: baseline; padding: 22% 9% 5%; }
.scr-top b { font: 700 1.5em/1 var(--serif); }
.scr-top span { font-size: .78em; color: #8a8478; }

/* 时光岛屿 */
.scr-isles { background: linear-gradient(180deg, #eaf3ff 0%, #fbfaf7 46%); }
.isle-map { margin: 0 6%; border-radius: 1em; background: #d9ebff; overflow: hidden; }
.isle-map svg { display: block; width: 100%; }
.coast { fill: #f7efd9; stroke: #c9b78f; stroke-width: 1.2; }
.coast.c2 { fill: #eef6e3; }
.route { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 4; animation: dash 3s linear infinite; }
.pin { fill: #fff; stroke: var(--accent); stroke-width: 2.4; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.isle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 7% 6% 0; }
.isle-grid i { aspect-ratio: 1; border-radius: 4px; background: var(--c); animation: pop 4s var(--ease) var(--d) infinite; }
@keyframes pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(.92); } }
.isle-chip {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); white-space: nowrap;
  padding: .55em 1em; border-radius: 99px; background: #1b1a17; color: #fff; font-size: .78em;
}

/* 取景 */
.scr-camera { background: #0c0c0e; color: #fff; display: flex; flex-direction: column; }
.vf { position: relative; flex: 1; margin-top: 18%; overflow: hidden; }
.vf-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #2b2f6e, #f08a5d 70%, #f9c784); }
.vf-sun { position: absolute; width: 28%; aspect-ratio: 1; border-radius: 50%; background: #ffe7a8; left: 56%; top: 46%; filter: blur(1px); box-shadow: 0 0 40px 10px rgba(255, 210, 140, .6); }
.vf-hill { position: absolute; left: -10%; right: -10%; bottom: 0; height: 32%; background: #1f1b2e; border-radius: 50% 50% 0 0 / 40% 40% 0 0; }
.vf-subject { position: absolute; width: 9%; height: 22%; left: 46%; bottom: 26%; background: #14111f; border-radius: 40% 40% 10% 10%; animation: slide 5s var(--ease) infinite; }
@keyframes slide { 0%, 20% { left: 46%; } 55%, 100% { left: 30%; } }
.vf-grid { position: absolute; inset: 0; }
.vf-grid i { position: absolute; background: rgba(255,255,255,.35); }
.vf-grid i:nth-child(1) { left: 33.3%; top: 0; bottom: 0; width: 1px; }
.vf-grid i:nth-child(2) { left: 66.6%; top: 0; bottom: 0; width: 1px; }
.vf-grid i:nth-child(3) { top: 33.3%; left: 0; right: 0; height: 1px; }
.vf-grid i:nth-child(4) { top: 66.6%; left: 0; right: 0; height: 1px; }
.vf-target { position: absolute; left: calc(33.3% - 9%); top: calc(66.6% - 9%); width: 18%; aspect-ratio: 1; border: 1.5px solid #ffd95e; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,217,94,.18); }
.vf-arrow { position: absolute; top: 10%; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: .5em 1em; border-radius: 99px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); font-size: .82em; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(calc(-50% - 6px)); } }
.vf-level { position: absolute; left: 30%; right: 30%; top: 50%; height: 1px; background: rgba(255,255,255,.5); }
.vf-level span { position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: #9effa8; }
.cam-bar { display: flex; justify-content: space-around; align-items: center; padding: 8% 0 14%; font-size: .78em; color: #bbb; }
.shutter { width: 22%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #0c0c0e, 0 0 0 6px #fff; }

/* 轻划 */
.scr-swipe { background: linear-gradient(180deg, #fff4ef, #fbfaf7 60%); }
.stack { position: relative; height: 58%; margin: 2% 10% 0; }
.card { position: absolute; inset: 0; border-radius: 1.1em; background: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.25); }
.card.c3 { transform: translateY(14px) scale(.9); background: #f3ede6; }
.card.c2 { transform: translateY(7px) scale(.95); background: #f8f4ef; }
.card.c1 { overflow: hidden; animation: swipeup 3.6s var(--ease) infinite; }
.card-photo { position: absolute; inset: 6%; border-radius: .8em; background: linear-gradient(160deg, #ffd3b6, #ff8b6a 50%, #7a4b94); }
.card-photo::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 14%; height: 30%; border-radius: 50% 50% 0 0; background: rgba(40, 20, 50, .55); }
.stamp { position: absolute; top: 10%; left: 50%; transform: translateX(-50%) rotate(-8deg); padding: .2em .7em; border: 2px solid currentColor; border-radius: .4em; font-weight: 800; letter-spacing: .1em; opacity: 0; animation: stamp 3.6s var(--ease) infinite; }
.stamp.del { color: #ff4d3a; background: rgba(255,255,255,.85); }
@keyframes swipeup { 0%, 35% { transform: none; opacity: 1; } 70% { transform: translateY(-120%) rotate(-6deg); opacity: 0; } 71% { transform: translateY(10px) scale(.95); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes stamp { 0%, 20% { opacity: 0; } 35%, 60% { opacity: 1; } 70%, 100% { opacity: 0; } }
.swipe-hint { display: flex; justify-content: space-between; margin: 9% 12% 0; font-size: .8em; color: #8a8478; }

/* 专注搜索 */
.scr-search { padding: 26% 8% 0; background: linear-gradient(180deg, #eafaf3, #fbfaf7 55%); }
.fs-field { display: flex; align-items: center; gap: .7em; padding: .9em 1em; margin-bottom: .6em; border-radius: .9em; background: #fff; box-shadow: 0 6px 16px -10px rgba(0,0,0,.25); }
.fs-field small { color: #9a9387; }
.fs-field b { font-weight: 650; }
.fs-field.q { outline: 2px solid var(--accent); outline-offset: -2px; }
.typing { position: relative; }
.typing i { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fs-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; margin: 12% 2% 0; }
.fs-apps span { aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center; color: #fff; font-weight: 700; background: var(--c); box-shadow: 0 6px 14px -8px var(--c); }
.fs-go { position: absolute; left: 8%; right: 8%; bottom: 9%; text-align: center; padding: .9em; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 650; font-size: .9em; }

/* ---------- 作品列表 ---------- */
.works, .principles { padding: clamp(80px, 12vw, 160px) clamp(16px, 6vw, 96px) 0; }
.work {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 6vw, 96px);
  padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line);
}
.work.flip .work-text { order: 2; }
.work-index { display: flex; align-items: center; gap: 14px; font: 500 14px/1 var(--sans); color: var(--accent); letter-spacing: .1em; }
.work-index span { padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 12px; letter-spacing: .05em; }
.work h3 { font: 600 clamp(40px, 6vw, 80px)/1.05 var(--serif); margin: 18px 0 10px; }
.work-tag { font-size: clamp(18px, 2vw, 24px); margin: 0 0 18px; color: var(--ink); }
.work-desc { color: var(--ink-2); max-width: 32em; margin: 0 0 24px; }
.work-hl { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 32px; list-style: none; }
.work-hl li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; color: var(--ink-2); }
.work-stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.blob {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 55%, #fff), var(--accent));
  opacity: .22; filter: blur(2px); animation: morph 14s ease-in-out infinite;
}
.blob.big { width: 92%; }
@keyframes morph { 50% { border-radius: 58% 42% 45% 55% / 42% 58% 42% 58%; transform: rotate(20deg) scale(1.04); } }
.work-stage .phone { transform: rotate(-3deg); transition: transform .8s var(--ease); }
.work:hover .work-stage .phone { transform: rotate(0) translateY(-8px); }

/* ---------- 理念 ---------- */
.pr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.pr { background: var(--paper); padding: clamp(24px, 3vw, 40px); min-height: 300px; display: flex; flex-direction: column; transition: background .4s; }
.pr:hover { background: var(--card); }
.pr b { font: 500 14px/1 var(--sans); color: var(--ink-3); }
.pr h4 { font: 600 clamp(24px, 2.4vw, 30px)/1.2 var(--serif); margin: auto 0 12px; padding-top: 60px; }
.pr p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 页脚 ---------- */
.foot { padding: clamp(100px, 14vw, 180px) clamp(16px, 6vw, 96px) 40px; }
.foot-big { font: 600 clamp(32px, 5vw, 64px)/1.2 var(--serif); margin-bottom: 28px; }
.foot-mail { display: inline-block; font-size: clamp(20px, 2.6vw, 30px); color: var(--accent); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.foot-row a { color: inherit; text-decoration: none; }
.foot-row a:hover { color: var(--ink); }

/* ---------- 产品页 ---------- */
.p-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 80px); padding: clamp(48px, 8vw, 120px) clamp(16px, 6vw, 96px); min-height: 86vh; }
.p-hero h1 { font: 600 clamp(56px, 10vw, 140px)/1 var(--serif); margin: 0 0 18px; color: var(--ink); }
.p-tag { font-size: clamp(20px, 2.4vw, 30px); margin: 0 0 24px; color: var(--accent); font-weight: 550; }
.p-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.soon { display: inline-block; padding: 12px 20px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 550; }
.p-stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.p-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 0 clamp(16px, 6vw, 96px); }
.pf { padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.pf:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.pf span { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .1em; }
.pf h3 { font: 600 24px/1.3 var(--serif); margin: 40px 0 10px; }
.pf p { margin: 0; color: var(--ink-2); font-size: 15px; }
.p-net { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 80px clamp(16px, 6vw, 96px) 0; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--ink); color: var(--paper); }
.p-net h2 { font: 600 28px/1.2 var(--serif); margin: 0 0 10px; }
.p-net p { margin: 0; max-width: 40em; opacity: .8; }
.p-net a { color: var(--paper); font-weight: 550; text-decoration: none; border-bottom: 1px solid; }
.p-log { padding: 100px clamp(16px, 6vw, 96px) 0; max-width: 900px; }
.p-log h2 { font: 600 36px/1.2 var(--serif); margin: 0 0 24px; }
.log { display: grid; grid-template-columns: 120px 120px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.log time { color: var(--ink-3); font-size: 14px; }
.log p { margin: 0; color: var(--ink-2); }
.p-legal { display: flex; gap: 24px; padding: 80px clamp(16px, 6vw, 96px) 0; font-size: 14px; }
.p-legal a { color: var(--ink-2); }

/* ---------- 隐私政策 ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 20px 0; }
.legal-back { font-size: 14px; color: var(--ink-3); text-decoration: none; }
.legal article { margin-top: 24px; }
.legal h1 { font: 600 clamp(32px, 5vw, 48px)/1.2 var(--serif); margin: 0 0 24px; }
.legal h2 { font: 600 24px/1.4 var(--serif); margin: 48px 0 12px; }
.legal h3 { font-size: 18px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); }
.legal .table { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.legal code { background: var(--paper-2); padding: 2px 6px; border-radius: 4px; }
.legal blockquote { margin: 16px 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--paper-2); border-radius: 0 12px 12px 0; }

.nf { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 40px 16px; }
.nf h1 { font: 600 clamp(100px, 20vw, 220px)/1 var(--serif); margin: 0; background: linear-gradient(120deg, #3d7bf0, #7a5cff, #ff6a4d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { color: var(--ink-2); margin: 8px 0 32px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .work, .p-hero { grid-template-columns: 1fr; }
  .work.flip .work-text { order: 0; }
  .work-stage, .p-stage { min-height: 460px; }
  .pr-grid { grid-template-columns: 1fr 1fr; }
  .p-hero { min-height: 0; }
}
@media (max-width: 600px) {
  .hero-phones { height: 300px; gap: 0; }
  .hero-phones .hp { margin: 0 -18px; }
  .hp3 { display: none; }
  .pr-grid { grid-template-columns: 1fr; }
  .pr { min-height: 220px; }
  .log { grid-template-columns: 1fr; gap: 4px; }
  .nav nav a:nth-child(2) { display: none; }
}
