:root {
  --ink: #0f1b28;
  --ink2: #33475b;
  --muted: #61748a;
  --faint: #93a2b4;
  --paper: #eef3f9;
  --purple: #13283e;
  --mint: #5eead4;
  --line: rgba(19, 40, 62, .13);
  --hairline: rgba(19, 40, 62, .08);
  --sh-sm: 0 1px 2px rgba(13,30,48,.05), 0 4px 14px rgba(13,30,48,.06);
  --sh-lg: 0 2px 6px rgba(13,30,48,.05), 0 26px 52px rgba(15,35,58,.12), 0 64px 128px rgba(15,35,58,.10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  /* 渐变收尾用同色透明，不要用 transparent —— transparent 是「透明的黑」，边缘会发灰 */
  background:
    radial-gradient(880px 600px at 16% 30%, rgba(255,255,255,.94), rgba(255,255,255,0) 60%),
    radial-gradient(680px 500px at 48% 74%, rgba(255,255,255,.88), rgba(255,255,255,0) 62%),
    radial-gradient(560px 420px at 92% 88%, rgba(255,255,255,.80), rgba(255,255,255,0) 64%),
    radial-gradient(520px 380px at 74% 34%, rgba(255,255,255,.42), rgba(255,255,255,0) 66%),
    radial-gradient(1500px 1040px at 72% -20%, rgba(99,148,208,.95), rgba(99,148,208,0) 62%),
    radial-gradient(1250px 920px at 6% -14%, rgba(136,178,223,.82), rgba(136,178,223,0) 60%),
    radial-gradient(960px 740px at 102% 42%, rgba(118,164,215,.68), rgba(118,164,215,0) 64%),
    linear-gradient(180deg, #d9e7f6 0%, #e7f0fa 44%, #f4f8fd 100%);
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 磨砂颗粒：两层，细 + 粗；只做质感，不吃颜色 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .30; mix-blend-mode: multiply;
  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='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 59; pointer-events: none;
  opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.35' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23m)' opacity='.5'/%3E%3C/svg%3E");
  background-size: 320px 320px;
}

a { text-decoration: none; color: inherit; }
s { text-decoration: none; }   /* <s> 默认是删除线，这里只当容器用 */
button, input { font: inherit; }
img { max-width: 100%; }
.portal-shell { width: min(1200px, calc(100% - 60px)); margin: 0 auto; }

/* ── 顶栏 ── */
.portal-header { height: 80px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 780; letter-spacing: -.024em; font-size: 17.5px; }
.brand-i { width: 17px; height: 27px; position: relative; display: inline-block; }
.brand-i i { position: absolute; top: 0; left: 5px; width: 8px; height: 8px; border-radius: 99px; background: var(--mint); }
.brand-i b { position: absolute; left: 5px; bottom: 0; width: 8px; height: 16px; border-radius: 5px 5px 2px 2px; background: var(--purple); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.header-login { color: var(--ink2); font-size: 14px; }
.header-login:hover { color: var(--ink); }
.cta {
  border: 0; border-radius: 999px; padding: 12px 22px; background: var(--purple); color: #fff;
  font-weight: 700; font-size: 14px; display: inline-block; cursor: pointer;
  box-shadow: 0 1px 2px rgba(8,22,38,.30), 0 10px 24px rgba(19,40,62,.26);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cta:hover { background: #0b1c2e; transform: translateY(-1px); }

/* ── 第一屏 ── */
.portal-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; padding: 40px 0 92px; }
h1 { margin: 0; font-size: clamp(46px, 5.4vw, 76px); line-height: 1.03; letter-spacing: -.058em; font-weight: 600; }
.hero-note { max-width: 500px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.76; }

/* 产品工作台示意（纯 CSS，非真实截图） */
.stage { position: relative; }
.ui { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgba(35,22,54,.10); box-shadow: var(--sh-lg); }
.ui-chrome { height: 28px; display: flex; align-items: center; gap: 5px; padding: 0 12px; background: #f7f6f9; border-bottom: 1px solid var(--hairline); }
.ui-chrome s { width: 7px; height: 7px; border-radius: 50%; background: #dcd8e3; }
.ui-top { height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border-bottom: 1px solid var(--hairline); }
.ui-brand { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 780; }
.ui-bi { width: 9px; height: 15px; position: relative; display: inline-block; }
.ui-bi i { position: absolute; top: 0; left: 2.5px; width: 4.5px; height: 4.5px; border-radius: 99px; background: var(--mint); }
.ui-bi b { position: absolute; left: 2.5px; bottom: 0; width: 4.5px; height: 9px; border-radius: 3px 3px 1px 1px; background: var(--purple); }
.ui-badge { padding: 3px 7px; border-radius: 99px; font-size: 8.5px; font-weight: 750; color: #13283e; background: linear-gradient(135deg, rgba(118,164,215,.30), rgba(19,40,62,.10)); }
.ui-who { color: var(--faint); font-size: 8.5px; }
.ui-pill { margin-left: auto; display: flex; gap: 2px; padding: 2.5px; border-radius: 99px; background: #f2f1f4; }
.ui-pill s { padding: 4px 8px; border-radius: 99px; font-size: 8.5px; color: var(--faint); }
.ui-pill s.on { background: var(--purple); color: #fff; font-weight: 700; }
.ui-new { padding: 5px 10px; border-radius: 99px; background: var(--purple); color: #fff; font-size: 8.5px; font-weight: 750; }
.ui-body { display: grid; grid-template-columns: 96px minmax(0, 1fr) 126px; min-height: 296px; }
.ui-rail { padding: 14px 9px; border-right: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 3px; }
.ui-rail s { padding: 7px 8px; border-radius: 7px; font-size: 9.5px; color: var(--muted); }
.ui-rail s.on { background: linear-gradient(145deg,#13283e,#2f5578); color: #eaf1f9; font-weight: 700; }
.ui-rail hr { border: 0; border-top: 1px solid var(--hairline); margin: 7px 2px; }
.ui-mid { padding: 15px 16px; display: flex; flex-direction: column; min-width: 0; }
.ui-eyebrow { color: var(--faint); font-size: 7.5px; font-weight: 800; letter-spacing: .16em; margin: 0; }
.ui-h { margin: 5px 0 14px; font-size: 15px; letter-spacing: -.03em; font-weight: 640; }
.bubble { max-width: 88%; padding: 8px 11px; border-radius: 12px; font-size: 9.5px; line-height: 1.62; margin-bottom: 7px; }
.bubble.a { background: #f5f3f8; color: var(--ink2); border-bottom-left-radius: 4px; }
.bubble.u { margin-left: auto; background: var(--purple); color: #fff; border-bottom-right-radius: 4px; }
.ui-comp { margin-top: auto; display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 99px; }
.ui-comp span { color: var(--faint); font-size: 9px; }
.ui-comp b { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 9px; display: grid; place-items: center; }
.ui-right { padding: 14px 11px; border-left: 1px solid var(--hairline); background: #fcfbfd; }
.ui-right > s { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px; margin-bottom: 4px; border: 1px solid var(--hairline); border-radius: 8px; background: #fff; font-size: 9px; color: var(--ink2); }
.ui-right > s em { font-style: normal; color: #4d7098; font-weight: 700; font-size: 8px; }
.ui-grid { margin-top: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ui-grid i { display: block; aspect-ratio: 3/4; border-radius: 5px; }
.cv-astra { background: linear-gradient(150deg, #0f1f33 0%, #1d3a57 58%, #2f5578 100%); }
.cv-warm { background: linear-gradient(155deg, #9fd8cd 0%, #5eead4 55%, #3bbfa8 100%); }
.cv-green { background: linear-gradient(150deg, #7fa4cf 0%, #a8c6e6 60%, #cfe0f2 100%); }
.cv-soft { background: linear-gradient(150deg, #e8f1fa, #c6d9ec); }
.float {
  position: absolute; left: -46px; bottom: -34px; width: 196px; padding: 13px 14px; border-radius: 14px; background: #fff;
  border: 1px solid rgba(35,22,54,.09); box-shadow: 0 2px 6px rgba(28,12,58,.06), 0 20px 44px rgba(38,16,80,.16);
}
.float p { margin: 0; font-size: 9px; color: var(--faint); letter-spacing: .06em; font-weight: 700; }
.float h4 { margin: 6px 0 10px; font-size: 12px; letter-spacing: -.02em; line-height: 1.4; font-weight: 680; }
.float .row { display: flex; gap: 5px; }
.float .row i { flex: 1; aspect-ratio: 3/4; border-radius: 5px; }

/* ── 登录 / 当前身份 ── */
.account-panel { min-height: 54px; display: flex; align-items: center; gap: 18px; color: var(--muted); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); scroll-margin-top: 24px; }
.account-panel p { margin: 0; }
.account-panel strong { color: var(--ink); }
.account-panel button, .login-form button { border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; background: var(--purple); color: #fff; font-weight: 700; }
.account-panel .logout { margin-left: auto; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.login-form { width: 100%; padding: 20px 0; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; }
.login-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.login-form input { min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; outline: none; }
.login-form input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(19,40,62,.10); }
.login-form button { align-self: end; height: 44px; }
.login-error { grid-column: 1 / -1; color: #ad2445; font-size: 13px; }

/* ── 第二屏 · 平台 ── */
.band { padding: 78px 0 96px; }
.band h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; font-weight: 600; line-height: 1.16; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 42px; align-items: stretch; }
.pcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: rgba(19,40,62,.26); }
.pv { height: 392px; position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline); background: #fff; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 18px 16px; }
.pv img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; border-radius: 6px; box-shadow: 0 2px 6px rgba(13,30,48,.07), 0 14px 30px rgba(15,35,58,.13); }
.pbody { padding: 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard .kind { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; }
.pcard h3 { margin: 8px 0 0; font-size: 27px; letter-spacing: -.038em; font-weight: 660; }
.plist { list-style: none; margin: 20px 0 0; padding: 0; }
.plist li { position: relative; padding: 9px 0 9px 16px; border-top: 1px solid var(--hairline); color: var(--ink2); font-size: 13.5px; line-height: 1.5; }
.plist li::before { content: ""; position: absolute; left: 0; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: #6fa2dc; }
.plist li:first-child { border-top: 0; }
.plist li:first-child::before { top: 7px; }
.enter { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 12px; color: var(--purple); font-weight: 760; font-size: 17.5px; letter-spacing: -.012em; }
.enter b {
  width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--purple); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 700;
  box-shadow: 0 1px 2px rgba(8,22,38,.24), 0 7px 18px rgba(19,40,62,.22);
  transition: transform .2s ease, background .2s ease;
}
.pcard:hover .enter b { transform: translate(3px, -3px); background: #0b1c2e; }

/* ── 第三屏 · 复利 ── */
.loop-band { padding: 86px 0 96px; border-top: 1px solid var(--hairline); }
.loop-band h2 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; font-weight: 600; line-height: 1.16; }
.loop-sub { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 640px; line-height: 1.72; }
.loop { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; }
.loop article { position: relative; padding-top: 20px; border-top: 1px solid var(--line); }
.loop h3 { margin: 0; font-size: 19px; letter-spacing: -.028em; line-height: 1.45; font-weight: 660; display: flex; align-items: center; gap: 10px; }
.loop h3 em { font-style: normal; padding: 3px 9px; border-radius: 999px; background: rgba(118,164,215,.26); color: #4d7098; font-size: 10.5px; font-weight: 750; }
.loop p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.closing { margin-top: 74px; text-align: center; }
.closing p { margin: 0; font-size: clamp(22px, 2.4vw, 31px); letter-spacing: -.038em; line-height: 1.5; font-weight: 600; color: var(--ink); }

.foot { border-top: 1px solid var(--hairline); padding: 46px 0 76px; display: flex; align-items: center; gap: 20px; }
.foot p { margin: 0; color: var(--faint); font-size: 12.5px; }
.foot .cta { margin-left: auto; }

@media (max-width: 820px) {
  .portal-shell { width: calc(100% - 32px); }
  .portal-hero { grid-template-columns: 1fr; gap: 44px; padding: 28px 0 64px; }
  .float { left: auto; right: 10px; bottom: -18px; width: 182px; }
  .platforms { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr; gap: 34px; }
  .login-form { grid-template-columns: 1fr; }
  .login-form button { width: 100%; }
  .foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot .cta { margin-left: 0; }
}

/* 真手机宽度下，工作台示意会被挤成一团，直接不显示；平板/窄窗口仍然保留 */
@media (max-width: 640px) {
  .stage { display: none; }
  .portal-hero { gap: 0; padding-bottom: 44px; }
  .pv { height: 300px; }
  .enter { font-size: 16px; }
}
