/* 晴雨官网：浅色为主，大字、柔和渐变、跟着滚动和鼠标动起来的交互。 */
:root {
  --bg: #f4f3f7;
  --surface: #ffffff;
  --surface2: #ecebf1;
  --ink: #0b0b10;
  --ink2: #6b6a76;
  --line: rgba(11, 11, 16, .08);
  --pink: #ff6fb5;
  --violet: #9d5cff;
  --blue: #5b7cff;
  --cyan: #5ce1e6;
  --sun: #ffb86b;
  --lime: #7cffb2;
  --grad: linear-gradient(120deg, #ff6fb5, #b57cff 35%, #5b7cff 65%, #5ce1e6);
  --radius: 32px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink); overflow-x: hidden;
  font-family: "MiSans", "HarmonyOS Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: #b57cff; color: #fff; }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }

/* 顶部滚动进度条 */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50; transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px)); display: flex; align-items: center; gap: 20px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 8px 40px rgba(20, 10, 60, .08);
  transition: transform .5s var(--ease), background .3s;
}
.nav.hide { transform: translate(-50%, -120%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 11px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink2); transition: background .25s, color .25s; }
.nav-links a:hover { background: var(--surface2); color: var(--ink); }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 0;
  padding: 12px 14px 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px;
  background: var(--ink); color: #fff; transition: transform .35s var(--ease), box-shadow .35s;
  will-change: transform;
}
.btn .dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ink); transition: transform .4s var(--ease); }
.btn:hover { box-shadow: 0 14px 40px rgba(91, 60, 255, .35); }
.btn:hover .dot { transform: rotate(-45deg); }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 6px 24px rgba(20, 10, 60, .08); }
.btn.light .dot { background: var(--ink); color: #fff; }
.btn.small { padding: 8px 8px 8px 16px; font-size: 14px; }
.btn.small .dot { width: 26px; height: 26px; }

/* ---------- 首屏 ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 60px; overflow: hidden; }
.blobs { position: absolute; inset: -20%; z-index: 0; filter: blur(70px) saturate(1.3); opacity: .85; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: drift 18s ease-in-out infinite alternate; }
.blob.b1 { width: 46vw; height: 46vw; left: 48%; top: 8%; background: #ffb3dc; }
.blob.b2 { width: 40vw; height: 40vw; left: 62%; top: 38%; background: #c9b0ff; animation-duration: 22s; }
.blob.b3 { width: 36vw; height: 36vw; left: 30%; top: 46%; background: #a9e9ff; animation-duration: 26s; }
.blob.b4 { width: 26vw; height: 26vw; left: 8%; top: 4%; background: #ffe2a8; animation-duration: 20s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 8%) scale(1.12); } 100% { transform: translate(5%, -4%) scale(.94); } }
.grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .07; 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .8); font-size: 13px; font-weight: 600; backdrop-filter: blur(10px); }
.eyebrow b { padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; }
h1.display { font-size: clamp(46px, 8.4vw, 112px); line-height: .98; letter-spacing: -.045em; font-weight: 900; margin: 22px 0 22px; }
.display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.display .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.loaded .display .line > span { transform: none; }
.display .line:nth-child(2) > span { transition-delay: .08s; }
.display .line:nth-child(3) > span { transition-delay: .16s; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% 0; } }
.lead { max-width: 560px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; }
.stat b { display: block; font-size: 34px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.stat span { font-size: 13px; color: var(--ink2); }

/* 手机外框 */
.phone {
  position: relative; width: min(330px, 78vw); aspect-ratio: 720 / 1123; margin: 0 auto;
  border-radius: 46px; padding: 10px; background: #0d0d12;
  box-shadow: 0 50px 100px -20px rgba(40, 20, 90, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transform-style: preserve-3d; will-change: transform; transition: transform .6s var(--ease);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #f2f2f4; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.phone .screen img.off { opacity: 0; transform: scale(1.04); }
.phone::after { content: ""; position: absolute; inset: 10px; border-radius: 37px; pointer-events: none; background: linear-gradient(130deg, rgba(255, 255, 255, .22), transparent 38%); }
.hero-visual { position: relative; perspective: 1400px; }
.mascot { position: absolute; width: 46%; right: -6%; bottom: -6%; filter: drop-shadow(0 20px 40px rgba(120, 60, 200, .35)); animation: float 6s ease-in-out infinite; pointer-events: none; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }
.chip-float { position: absolute; padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); font-size: 13px; font-weight: 700; box-shadow: 0 14px 30px rgba(30, 10, 80, .12); animation: float 7s ease-in-out infinite; white-space: nowrap; }
.chip-float i { font-style: normal; margin-right: 6px; }
.chip-float.c1 { left: -12%; top: 16%; }
.chip-float.c2 { left: -4%; bottom: 18%; animation-delay: -2s; }
.chip-float.c3 { right: -10%; top: 6%; animation-delay: -4s; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%); font-size: 12px; color: var(--ink2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--ink2), transparent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 跑马灯 ---------- */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: #fff; }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .tag { padding: 10px 18px; border-radius: 999px; background: var(--surface2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.marquee .tag.g { background: var(--ink); color: #fff; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 通用段落 ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 12vw, 150px) 0; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
h2.big { font-size: clamp(36px, 6vw, 76px); line-height: 1.02; letter-spacing: -.04em; font-weight: 900; margin: 14px 0 18px; }
.sub { font-size: 17px; color: var(--ink2); max-width: 620px; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- 智能体：滚动讲故事 ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.story-steps .step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .6s var(--ease); }
.story-steps .step.on { opacity: 1; }
.step .num { font-size: 13px; font-weight: 800; color: var(--ink2); }
.step h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 10px 0 14px; font-weight: 900; }
.step p { color: var(--ink2); font-size: 16px; max-width: 460px; }
.step .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.step .pills span { padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
.story-stick { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.glow-ring { position: absolute; inset: -18px; border-radius: 60px; background: conic-gradient(from var(--a, 0deg), #ff6fb5, #ffb86b, #fff27a, #7cffb2, #5ce1e6, #6f8cff, #b57cff, #ff6fb5); filter: blur(22px); opacity: 0; transition: opacity .8s var(--ease); animation: spin 4s linear infinite; z-index: -1; }
.glow-on .glow-ring { opacity: .9; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }

/* ---------- 功能卡片（便当格） ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 50px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); padding: 28px;
  border: 1px solid var(--line); min-height: 260px; transition: transform .5s var(--ease), box-shadow .5s;
  transform-style: preserve-3d; will-change: transform;
}
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(181, 124, 255, .16), transparent 60%); }
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: 0 30px 60px -20px rgba(40, 20, 90, .25); }
.card h3 { font-size: 24px; letter-spacing: -.02em; font-weight: 900; line-height: 1.2; }
.card p { color: var(--ink2); font-size: 15px; margin-top: 8px; max-width: 420px; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px; color: #fff; }
.card.c-6 { grid-column: span 6; } .card.c-4 { grid-column: span 4; } .card.c-3 { grid-column: span 3; } .card.c-2 { grid-column: span 2; }
.card.dark { background: #0d0d12; color: #fff; border-color: transparent; }
.card.dark p { color: rgba(255, 255, 255, .7); }
.card.grad { background: var(--grad); color: #fff; border: 0; }
.card.grad p { color: rgba(255, 255, 255, .88); }
.card .shot { position: absolute; width: 46%; right: 4%; bottom: -26%; border-radius: 24px; box-shadow: 0 30px 60px rgba(30, 10, 80, .25); transition: transform .8s var(--ease); }
.card:hover .shot { transform: translateY(-14px) rotate(-2deg); }
.card .shot.two { right: 28%; bottom: -34%; transform: rotate(-6deg); }
.card:hover .shot.two { transform: translateY(-10px) rotate(-8deg); }
.card.tall { min-height: 440px; }
/* 宽卡片：字在左半边，截图放右半边，别盖住字 */
.card.c-4 p, .card.c-6 p { max-width: 46%; }
.card.c-4 .shot { width: 26%; right: 5%; bottom: -14%; }
.card.c-4 .shot.two { right: 33%; bottom: -22%; }
.list { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.list li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--grad); }
.card.dark .list li { color: rgba(255, 255, 255, .85); }

/* ---------- 截图长廊（可拖动） ---------- */
.gallery { margin-top: 50px; overflow-x: auto; scrollbar-width: none; cursor: grab; padding: 10px 0 40px; }
.gallery::-webkit-scrollbar { display: none; }
.gallery.drag { cursor: grabbing; }
.gallery .row { display: flex; gap: 22px; width: max-content; padding: 0 max(20px, calc((100vw - 1200px) / 2)); }
.gallery figure { width: 250px; flex: none; user-select: none; }
.gallery figure .phone { width: 250px; border-radius: 36px; padding: 8px; transition: transform .5s var(--ease); }
.gallery figure .phone .screen { border-radius: 29px; }
.gallery figure .phone::after { inset: 8px; border-radius: 29px; }
.gallery figure:hover .phone { transform: translateY(-10px); }
.gallery figcaption { margin-top: 14px; font-weight: 700; font-size: 15px; }
.gallery figcaption span { display: block; font-weight: 500; font-size: 13px; color: var(--ink2); }
.gallery img { pointer-events: none; }

/* ---------- 安全（深色） ---------- */
.dark-sec { background: #0b0b10; color: #fff; border-radius: 48px; margin: 0 12px; overflow: hidden; }
.dark-sec .sub { color: rgba(255, 255, 255, .65); }
.dark-sec .kicker { color: var(--cyan); }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.rule { padding: 26px; border-radius: 28px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: background .4s, transform .5s var(--ease); }
.rule:hover { background: rgba(255, 255, 255, .09); transform: translateY(-6px); }
.rule .t { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--pink); }
.rule h4 { font-size: 20px; margin: 8px 0 8px; }
.rule p { color: rgba(255, 255, 255, .65); font-size: 14px; }
.ring-bg { position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; border-radius: 50%; background: conic-gradient(from 0deg, #ff6fb5, #b57cff, #5ce1e6, #ff6fb5); filter: blur(120px); opacity: .25; animation: spin2 20s linear infinite; pointer-events: none; }
@keyframes spin2 { to { transform: rotate(360deg); } }

/* ---------- 结尾 ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(46px, 9vw, 130px); line-height: .95; letter-spacing: -.05em; font-weight: 900; }
.cta .hero-cta { justify-content: center; }
footer { padding: 50px 0 40px; color: var(--ink2); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 26px; }

/* ---------- 下载页 ---------- */
.dl-hero { padding: 150px 0 40px; position: relative; overflow: hidden; }
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.dl-card { position: relative; overflow: hidden; border-radius: 34px; padding: 30px; background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.dl-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(40, 20, 90, .25); }
.dl-card.main { background: #0d0d12; color: #fff; border: 0; }
.dl-card.main .muted { color: rgba(255, 255, 255, .65); }
.dl-card .badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--grad); color: #fff; }
.dl-card h3 { font-size: 30px; letter-spacing: -.03em; margin: 14px 0 6px; font-weight: 900; }
.muted { color: var(--ink2); font-size: 14px; }
.archs { display: grid; gap: 10px; margin-top: 22px; }
.arch { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 20px; background: var(--surface2); }
.dl-card.main .arch { background: rgba(255, 255, 255, .08); }
.arch .name { font-weight: 800; }
.arch .meta { font-size: 12px; opacity: .7; }
.arch .grow { flex: 1; min-width: 0; }
.pwd { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(181, 124, 255, .18); cursor: pointer; border: 0; color: inherit; font-family: inherit; }
.soon { font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .06); white-space: nowrap; }
.dl-card.main .soon { background: rgba(255, 255, 255, .1); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.steps3 .s { padding: 26px; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.steps3 .s b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--ink); color: #fff; margin-bottom: 14px; }
.faq { margin-top: 40px; display: grid; gap: 10px; }
.faq details { border-radius: 24px; background: #fff; border: 1px solid var(--line); padding: 18px 22px; transition: background .3s; }
.faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink2); margin-top: 10px; font-size: 15px; }
.log { margin-top: 30px; padding: 26px 28px; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.log h4 { font-size: 18px; } .log ul { margin: 12px 0 0 18px; color: var(--ink2); font-size: 15px; display: grid; gap: 6px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 140%); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; z-index: 80; transition: transform .5s var(--ease); }
.toast.show { transform: translate(-50%, 0); }

/* ---------- 手机 / 窄屏 ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .story { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero-visual { margin-top: 30px; }
  .chip-float.c1 { left: 0; } .chip-float.c3 { right: 0; } .chip-float.c2 { left: 2%; }
  .story-stick { display: none; }
  .story-steps .step { min-height: auto; padding: 40px 0; opacity: 1; }
  .story-steps .step .inline-shot { display: block; }
  .bento { grid-template-columns: 1fr; }
  .card.c-6, .card.c-4, .card.c-3, .card.c-2 { grid-column: auto; }
  .card.c-4 p, .card.c-6 p { max-width: none; }
  .card.c-4 .shot, .card .shot[style] { width: 70% !important; right: auto !important; bottom: auto !important; }
  .card .shot { position: relative; width: 70%; right: auto; bottom: auto; margin: 24px auto -60px; }
  .card .shot.two { display: none; }
  .rules, .steps3, .dl-grid { grid-template-columns: 1fr; }
  .dark-sec { border-radius: 32px; margin: 0 8px; }
}
.inline-shot { display: none; width: min(260px, 70vw); margin: 24px auto 0; border-radius: 28px; box-shadow: 0 30px 60px rgba(30, 10, 80, .2); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .display .line > span { opacity: 1; transform: none; }
}
