/* ============================================================
   盛京心晴 演示 Demo · 公共基础样式 / 演示门户
   纯静态，离线可用，无任何外部依赖
   ============================================================ */

:root {
  --mint: #2fd08f;
  --mint-deep: #16b47c;
  --mint-soft: #e8fbf2;
  --mint-line: #b9edcf;
  --cyan: #7ee8e0;
  --ink: #1d2c31;
  --ink-2: #4b5c62;
  --muted: #93a1a6;
  --line: #edf1f2;
  --page: #f6f8f9;
  --card: #ffffff;
  --orange: #ff8a3d;
  --red: #ff6b6b;
  --yellow: #fff0b8;
  --shadow: 0 8px 24px rgba(30, 90, 75, .06);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }

/* ---------- 演示门户 ---------- */
body.portal {
  min-height: 100vh;
  color: #eaf5f2;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(47, 208, 143, .20), transparent 62%),
    radial-gradient(760px 520px at 92% 8%, rgba(110, 190, 255, .16), transparent 60%),
    radial-gradient(700px 500px at 50% 105%, rgba(47, 208, 143, .10), transparent 65%),
    linear-gradient(150deg, #08191c 0%, #0b2023 48%, #071417 100%);
  background-attachment: fixed;
}
.portal-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px 64px; }

.p-topbar {
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.p-brand { display: flex; align-items: center; gap: 12px; }
.p-brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, #a6f5bf, #23c98a);
  box-shadow: 0 6px 18px rgba(47, 208, 143, .35); color: #08352a;
  font-weight: 800; font-size: 17px;
}
.p-brand-name { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.p-brand-sub { font-size: 11px; color: #8fb3ab; margin-top: 2px; letter-spacing: 1.6px; }
.p-topright { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #9fbdb5; }
.p-badge {
  padding: 6px 12px; border-radius: 999px; font-size: 11px; letter-spacing: 1px;
  border: 1px solid rgba(126, 232, 224, .35); color: #9de9d7; background: rgba(126, 232, 224, .07);
}

.p-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; padding: 68px 0 58px; }
.p-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 2px;
  color: #8fe3bd; margin-bottom: 20px;
}
.p-kicker::before { content: ""; width: 22px; height: 1px; background: #4ad3a0; }
.p-hero h1 { font-size: 46px; line-height: 1.25; margin: 0 0 18px; font-weight: 800; letter-spacing: -.5px; }
.p-hero h1 em { font-style: normal; background: linear-gradient(90deg, #8ff0bb, #7ee8e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-hero p { font-size: 15px; line-height: 1.9; color: #a9c4bd; margin: 0 0 26px; max-width: 540px; }
.p-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.p-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 700; transition: transform .2s, box-shadow .2s;
}
.p-btn:hover { transform: translateY(-2px); }
.p-btn.primary { background: linear-gradient(100deg, #9df2b6, #2fd08f); color: #073328; box-shadow: 0 12px 26px rgba(47, 208, 143, .25); }
.p-btn.ghost { border: 1px solid rgba(255, 255, 255, .18); color: #dcefe9; background: rgba(255, 255, 255, .04); }
.p-stats { display: flex; gap: 34px; margin-top: 38px; }
.p-stat b { display: block; font-size: 25px; font-weight: 800; color: #eafff6; }
.p-stat span { font-size: 12px; color: #89aaa2; }

/* Hero 右侧：悬浮的手机缩略预览 */
.p-hero-visual { position: relative; display: flex; justify-content: center; }
.p-glow { position: absolute; inset: -30px; background: radial-gradient(circle at 50% 45%, rgba(47, 208, 143, .22), transparent 65%); filter: blur(12px); }
.miniphone {
  position: relative; width: 218px; height: 440px; border-radius: 32px; padding: 9px;
  background: linear-gradient(160deg, #3a4a50, #101b1e 45%, #2c3c41);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .14);
  transform: rotate(-5deg);
}
.miniphone-screen { height: 100%; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #ddf8f1, #f6f8f9 34%); position: relative; }
.mini-notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 62px; height: 13px; border-radius: 9px; background: #101b1e; z-index: 3; }
.mini-status { display: flex; justify-content: space-between; padding: 9px 14px 2px; font-size: 8px; font-weight: 700; color: #1d2c31; }
.mini-banner { padding: 10px 12px 6px; display: flex; align-items: center; justify-content: space-between; }
.mini-banner .m-logo { font-size: 15px; font-weight: 900; font-style: italic; color: #0e9b83; letter-spacing: 1px; }
.mini-cloud { width: 58px; opacity: .95; }
.mini-hi { margin: 2px 12px 0; border-radius: 12px; padding: 10px; background: linear-gradient(100deg, #8bedaa, #35d292); box-shadow: 0 6px 14px rgba(47, 208, 143, .28); }
.mini-hi span { font-size: 9px; font-weight: 700; color: #10402e; }
.mini-duo { display: flex; gap: 6px; margin-top: 8px; }
.mini-duo div { flex: 1; background: #fff; border-radius: 7px; padding: 6px 7px; font-size: 7px; color: #6b7d80; }
.mini-duo b { display: block; font-size: 10px; color: #1d2c31; }
.mini-trio { display: flex; gap: 6px; margin: 10px 12px 0; }
.mini-trio div { flex: 1; height: 62px; border-radius: 10px; display: grid; place-items: center; font-size: 8px; color: #47706a; text-align: center; line-height: 1.5; }
.mini-trio div:nth-child(1) { background: #dcf7ec; }
.mini-trio div:nth-child(2) { background: #edf9d8; }
.mini-trio div:nth-child(3) { background: #fdeaf2; }
.mini-tbanner { margin: 9px 12px 0; border-radius: 8px; overflow: hidden; }
.mini-feed { margin: 9px 12px 0; background: #fff; border-radius: 10px; padding: 6px; }
.mini-feed img { border-radius: 6px; width: 100%; height: 54px; object-fit: cover; }
.mini-tabs { position: absolute; bottom: 0; left: 0; right: 0; height: 34px; background: #fff; display: flex; justify-content: space-around; align-items: center; font-size: 7px; color: #9aa9ac; border-top: 1px solid #f0f3f3; }
.mini-tabs b { color: #2fd08f; }

.p-float-card {
  position: absolute; right: -14px; top: 76px; width: 152px; padding: 12px 14px; border-radius: 14px;
  background: rgba(18, 42, 44, .92); border: 1px solid rgba(126, 232, 224, .22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4); backdrop-filter: blur(8px); transform: rotate(4deg);
}
.p-float-card .fc-title { font-size: 11px; font-weight: 700; color: #b9f5d5; margin-bottom: 9px; }
.p-float-card .fc-row { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #a8c6be; margin-bottom: 7px; }
.p-float-card .fc-bar { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin-top: 3px; }
.p-float-card .fc-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8ff0bb, #2fd08f); }

/* 区块通用 */
.p-section { margin-top: 26px; }
.p-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.p-section-head h2 { font-size: 21px; margin: 0 0 6px; font-weight: 750; }
.p-section-head p { margin: 0; font-size: 12.5px; color: #87a9a1; }
.p-eyebrow { font-size: 11px; letter-spacing: 2px; color: #6fd5a8; text-transform: uppercase; margin-bottom: 9px; }

/* 两个入口卡片 */
.p-entries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.p-entry {
  position: relative; display: block; padding: 22px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .11);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.p-entry:hover { transform: translateY(-5px); border-color: rgba(126, 232, 224, .5); box-shadow: 0 22px 48px rgba(0, 0, 0, .3); }
.p-entry-tag { position: absolute; top: 20px; right: 20px; font-size: 10px; letter-spacing: 1px; padding: 5px 10px; border-radius: 999px; background: rgba(47, 208, 143, .15); color: #8ce8bb; border: 1px solid rgba(47, 208, 143, .3); }
.p-entry-visual { height: 186px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); display: grid; place-items: center; overflow: hidden; margin-bottom: 20px; }
.p-entry h3 { font-size: 20px; margin: 0 0 8px; font-weight: 750; display: flex; align-items: center; gap: 9px; }
.p-entry p { font-size: 13px; color: #9dbab3; line-height: 1.8; margin: 0 0 16px; }
.p-entry-go { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #8ff0bb; }
.p-entry:hover .p-entry-go { gap: 12px; }

/* 迷你后台窗口 */
.minidesk { width: 88%; border-radius: 9px; overflow: hidden; background: #fff; box-shadow: 0 14px 32px rgba(0, 0, 0, .35); }
.minidesk-bar { height: 20px; background: #eef2f3; display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.minidesk-bar i { width: 5px; height: 5px; border-radius: 50%; background: #cfd9da; }
.minidesk-body { display: flex; height: 128px; }
.minidesk-side { width: 62px; background: #10292b; padding: 12px 7px; }
.minidesk-side i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); margin-bottom: 9px; }
.minidesk-side i:first-child { background: #37d399; width: 80%; }
.minidesk-main { flex: 1; padding: 10px; background: #f6f9f9; }
.minidesk-cards { display: flex; gap: 6px; }
.minidesk-cards span { flex: 1; height: 30px; border-radius: 5px; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .05); }
.minidesk-chart { margin-top: 8px; height: 46px; border-radius: 5px; background: #fff; padding: 6px; }
.minidesk-chart svg { width: 100%; height: 100%; }
.minidesk-table { margin-top: 7px; background: #fff; border-radius: 5px; padding: 5px 7px; }
.minidesk-table i { display: block; height: 4px; border-radius: 2px; background: #e7eeee; margin: 5px 0; }
.minidesk-table i:first-child { background: #cdeee0; }

/* 功能地图 */
.p-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.p-map-card { padding: 18px; border-radius: 15px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); }
.p-map-card .pm-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(47, 208, 143, .14); color: #83e9b6; margin-bottom: 14px; }
.p-map-card h4 { margin: 0 0 10px; font-size: 14px; }
.p-map-card ul { list-style: none; margin: 0; padding: 0; }
.p-map-card li { font-size: 12px; color: #96b3ac; line-height: 2; padding-left: 12px; position: relative; }
.p-map-card li::before { content: ""; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: #45c994; }

/* 新增板块说明 */
.p-new {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: center;
  padding: 28px; border-radius: 20px;
  background: linear-gradient(115deg, rgba(47, 208, 143, .13), rgba(110, 190, 255, .06));
  border: 1px solid rgba(126, 232, 224, .24);
}
.p-new h2 { font-size: 24px; margin: 10px 0 12px; }
.p-new p { font-size: 13px; line-height: 1.9; color: #aac7bf; margin: 0 0 16px; }
.p-new-points { display: flex; flex-wrap: wrap; gap: 8px; }
.p-new-points span { font-size: 11px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #d5eee5; }
.p-flow { display: flex; align-items: stretch; gap: 8px; }
.p-flow-step { flex: 1; padding: 14px 10px; border-radius: 13px; background: rgba(8, 26, 27, .55); border: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.p-flow-step b { display: block; font-size: 12px; color: #e6fff4; margin: 8px 0 5px; }
.p-flow-step span { font-size: 10.5px; color: #86a8a0; line-height: 1.6; }
.p-flow-step i { font-style: normal; font-size: 11px; color: #2fd08f; font-weight: 800; }
.p-flow-arrow { align-self: center; color: #4fbf90; font-size: 15px; }

.p-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.p-note div { padding: 16px 18px; border-radius: 13px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: #9dbab3; line-height: 1.8; }
.p-note b { display: block; color: #dff5ec; font-size: 13px; margin-bottom: 5px; }
.p-foot { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; font-size: 11.5px; color: #6f948b; }

/* 入口卡片内的预览布局 */
.p-entry-visual { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px; flex-wrap: wrap; }
.p-visual-phone { width: 92px; height: 166px; position: relative; overflow: hidden; flex: none; }
.p-visual-phone .miniphone { position: absolute; left: 5px; top: 4px; transform: scale(.36) rotate(-6deg); transform-origin: top left; }
.p-visual-notes { flex: 1; min-width: 170px; font-size: 11.5px; color: #a9c9c0; line-height: 1.8; }
.p-visual-notes div { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.p-visual-notes svg { color: #7fe0ad; flex: none; }
.p-visual-desk { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.p-visual-desk .minidesk { width: 88%; }
.p-desk-badge { font-size: 10px; color: #8fd9b6; border: 1px dashed rgba(126, 232, 224, .32); padding: 4px 12px; border-radius: 999px; }

@media (max-width: 960px) {
  .p-hero { grid-template-columns: 1fr; gap: 30px; padding: 46px 0 36px; }
  .p-hero-visual { display: none; }
  .p-entries, .p-new { grid-template-columns: 1fr; }
  .p-map { grid-template-columns: repeat(2, 1fr); }
  .p-note { grid-template-columns: 1fr; }
  .p-hero h1 { font-size: 34px; }
}

/* ============ 《其他测评》独立问卷 · 门户扫码区 ============ */
.p-other { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; padding: 28px; border-radius: 20px;
  background: linear-gradient(115deg, rgba(91, 142, 224, .16), rgba(47, 208, 143, .09)); border: 1px solid rgba(126, 180, 240, .28); }
.p-other h2 { font-size: 24px; margin: 10px 0 12px; }
.p-other p { font-size: 13px; line-height: 1.9; color: #aac7bf; margin: 0 0 16px; }
.p-other .p-new-points { margin-bottom: 18px; }
.p-other-links { display: flex; gap: 9px; flex-wrap: wrap; }
.p-other-links .p-btn { padding: 10px 15px; font-size: 12px; }
.qr-empty { font-size: 10px; color: #8fa7a2; text-align: center; line-height: 1.7; padding: 8px; }
@media (max-width: 960px) { .p-other { grid-template-columns: 1fr; } }
.qr-actions { flex-wrap: wrap; }

/* ============ 《其他测评》专区 · 装饰性问卷示意（替代原二维码卡） ============ */
.po-art { position: relative; min-height: 326px; padding: 18px 18px 16px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(150deg, rgba(18, 88, 88, .72), rgba(9, 40, 52, .88)); border: 1px solid rgba(126, 200, 220, .22);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .22); }
.poa-glow { position: absolute; right: -60px; top: -70px; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 220, 190, .22), transparent 68%); pointer-events: none; }
.poa-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.poa-kicker { font-size: 9px; letter-spacing: 1.6px; color: #8fd8c4; font-weight: 700; }
.poa-badge { font-size: 9px; color: #cdeee4; border: 1px solid rgba(160, 230, 210, .35); border-radius: 999px; padding: 3px 8px; }
.poa-sheet { position: relative; max-width: 268px; margin: 16px auto 0; background: #fff; border-radius: 13px; padding: 13px 14px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3); transform: rotate(-1.6deg); }
.poa-sheet-head { display: flex; align-items: center; gap: 9px; }
.poa-mark { width: 27px; height: 27px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #073328;
  background: linear-gradient(135deg, #a6f5bf, #2fd08f); }
.poa-sheet-title b { display: block; font-size: 11.5px; color: #1d3a37; line-height: 1.4; }
.poa-sheet-title small { display: block; font-size: 8.5px; color: #8ba29d; margin-top: 3px; }
.poa-rule { height: 3px; border-radius: 3px; margin: 11px 0 12px; background: linear-gradient(90deg, #2fd08f, #8fd8f0 70%, transparent); }
.poa-q { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.poa-q i { width: 17px; height: 17px; border-radius: 5px; background: #eaf7f3; color: #169e78; font-size: 8px; font-style: normal; font-weight: 800; display: grid; place-items: center; flex: none; }
.poa-line { height: 6px; border-radius: 4px; background: #e7edef; display: block; }
.poa-line.w70 { width: 70%; } .poa-line.w85 { width: 85%; } .poa-line.w60 { width: 58%; }
.poa-opts { display: flex; gap: 6px; margin: 0 0 11px 24px; }
.poa-opts em { flex: 1; height: 13px; border-radius: 999px; border: 1px solid #e5ecec; background: #fafcfc; display: grid; place-items: center; }
.poa-opts em.on { border-color: #8ce6bb; background: #edfbf4; color: #14a878; }
.poa-opts em svg { width: 9px; height: 9px; }
.poa-done { width: 108px; margin: 2px auto 0; border-radius: 999px; padding: 6px 0; font-size: 9.5px; font-weight: 700; color: #fff;
  background: linear-gradient(100deg, #8ce9b6, #2fd08f); display: flex; align-items: center; justify-content: center; gap: 5px; }
.poa-tags { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.poa-tags span { font-size: 9px; color: #c6e9de; border: 1px solid rgba(160, 230, 210, .3); background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 3px 9px; }
.poa-flow { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 9.5px; color: #9dc9bd; }
.poa-flow b { color: #4fd0a0; font-weight: 700; }
@media (max-width: 960px) { .po-art { min-height: 300px; } }

