/* 演示页:深松绿的桌面上摆两部手机和一个员工群。 */
:root {
  --pine: #0E3B2C; --pine-2: #0A2C21; --pine-3: #174E3B; --paper: #F4EFE4; --card: #FFFDF8; --ink: #1D1A15; --mint: #CFE3D6; --mint-2: #9CC4AE; --muted: #A9BFB2;
  --sans: "Hiragino Sans", "PingFang SC", "Hiragino Kaku Gothic ProN", "Noto Sans CJK SC", "Noto Sans CJK JP", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --ph: min(800px, calc(100svh - 168px));
}
:lang(ja) { --serif: "Hiragino Mincho ProN", "Noto Serif CJK JP", "Yu Mincho", serif; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100svh; font: 15px/1.6 var(--sans); letter-spacing: .02em; color: var(--paper); background: radial-gradient(1200px 600px at 50% -10%, #1B5641 0%, var(--pine) 45%, var(--pine-2) 100%) fixed; -webkit-font-smoothing: antialiased; }
::selection { background: var(--mint); color: var(--pine); }
:focus-visible { outline: 3px solid var(--mint-2); outline-offset: 2px; border-radius: 10px; }
button { font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }

/* 顶部:品牌 + 步骤提示 + 工具 */
.top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 16px 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; } .brand b { font-size: 19px; } .brand span { padding-left: 12px; margin-left: 2px; border-left: 1px solid rgb(255 255 255 / .2); color: var(--muted); font-size: 14px; }
.guide { justify-self: center; display: flex; align-items: center; gap: 14px; max-width: 760px; min-height: 56px; padding: 8px 10px 8px 10px; border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 18px 40px -20px rgb(0 0 0 / .6); }
.g-no { flex: none; min-width: 48px; height: 38px; padding: 0 10px; display: grid; place-items: center; border-radius: 12px; background: var(--pine); color: var(--mint); font: 700 15px var(--serif); }
.guide p { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.g-btn { flex: none; min-height: 40px; padding: 0 16px; border-radius: 12px; border: 0; background: #1C6A4B; color: #fff; font-weight: 700; white-space: nowrap; }
.g-btn:hover { background: #155A3F; }
.tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 4px; border-radius: 12px; background: rgb(255 255 255 / .08); }
.lang button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; }
.lang button.on { background: var(--paper); color: var(--pine); }
.reset { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .22); background: transparent; color: var(--paper); font-weight: 700; }
.reset:hover { background: rgb(255 255 255 / .08); }

/* 三栏 */
.tabs { display: none; }
.stage { display: grid; grid-template-columns: auto minmax(300px, 360px) auto; justify-content: center; align-items: start; gap: clamp(20px, 3vw, 44px); padding: 4px 28px 20px; }
.col { display: grid; justify-items: center; gap: 12px; transition: filter .3s; }
.col-title { margin: 0; display: grid; justify-items: center; gap: 2px; font: 700 16px var(--serif); letter-spacing: .08em; color: var(--paper); }
.col-title small { font: 400 12px var(--sans); color: var(--muted); letter-spacing: .02em; }
.col.hot .col-title span { color: #fff; }
.col.hot .col-title span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #7FD3A6; box-shadow: 0 0 0 4px rgb(127 211 166 / .25); vertical-align: .15em; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 8px rgb(127 211 166 / .05); } }
.phone { width: calc(var(--ph) * .49); height: var(--ph); min-width: 330px; padding: 10px; border-radius: 48px; background: #070C0A; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 40px 80px -30px rgb(0 0 0 / .8); transition: box-shadow .3s; }
.col.hot .phone { box-shadow: 0 0 0 2px #7FD3A6, 0 40px 80px -30px rgb(0 0 0 / .8); }
.phone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 38px; background: var(--paper); }
.col.flash .phone { animation: flash .8s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 6px #7FD3A6; } 100% { box-shadow: 0 0 0 2px #7FD3A6; } }

/* 员工群(模拟) */
.chat { width: 100%; height: var(--ph); display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: #E3EAE5; color: var(--ink); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7); transition: box-shadow .3s; }
.col.hot .chat { box-shadow: 0 0 0 2px #7FD3A6, 0 40px 80px -30px rgb(0 0 0 / .7); }
.chat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 18px; background: #fff; border-bottom: 1px solid #D5DED8; }
.chat-head b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chat-head small { color: #6B756F; flex: none; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.sys { align-self: center; max-width: 90%; margin: 0; padding: 6px 12px; border-radius: 99px; background: rgb(29 26 21 / .08); color: #4E5A53; font-size: 12.5px; text-align: center; }
.msg { display: flex; align-items: flex-end; gap: 6px; }
.msg.me { flex-direction: row-reverse; align-self: flex-end; max-width: 92%; }
.time { font-size: 11px; color: #6B756F; flex: none; }
.bubble { display: grid; gap: 8px; padding: 10px 12px; border-radius: 18px 4px 18px 18px; background: #C9EBB8; font-size: 14px; line-height: 1.6; }
.bubble p { margin: 0; white-space: normal; word-break: break-word; }
.card-link { display: grid; gap: 4px; width: 100%; padding: 0 0 10px; border-radius: 14px; overflow: hidden; border: 0; background: #fff; text-align: left; color: var(--ink); box-shadow: 0 1px 0 rgb(0 0 0 / .05); }
.card-link:hover { box-shadow: 0 0 0 2px #1C6A4B; }
.cl-top { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--pine); color: #E8EFE9; font-size: 12px; font-weight: 700; }
.cl-top svg { width: 16px; height: 16px; }
.card-link b { padding: 4px 12px 0; font: 700 15px var(--serif); }
.card-link em { padding: 0 12px; font-style: normal; font-size: 13px; font-weight: 700; color: #1C6A4B; }
.chat-input { padding: 12px 14px; background: #fff; border-top: 1px solid #D5DED8; } .chat-input span { display: block; height: 36px; border-radius: 99px; background: #EEF2EF; }
.foot-note { margin: 0; padding: 6px 28px 24px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* 窄屏:一次看一栏,用页签切 */
@media (max-width: 1179px) {
  :root { --ph: min(760px, calc(100svh - 250px)); }
  .top { grid-template-columns: 1fr auto; gap: 12px; padding: 12px 16px; }
  .brand span { display: none; }
  .guide { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; max-width: none; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 16px 12px; padding: 4px; border-radius: 14px; background: rgb(255 255 255 / .08); }
  .tabs button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; }
  .tabs button.on { background: var(--paper); color: var(--pine); }
  .stage { display: block; padding: 0 16px 16px; }
  .col { display: none; }
  body[data-tab="mgr"] #col-mgr, body[data-tab="chat"] #col-chat, body[data-tab="staff"] #col-staff { display: grid; }
  .col-title { display: none; }
  .chat { max-width: 420px; }
}
@media (max-width: 520px) {
  :root { --ph: calc(100svh - 230px); }
  .phone { width: 100%; min-width: 0; padding: 0; border-radius: 22px; background: transparent; box-shadow: none; }
  .phone iframe { border-radius: 22px; }
  .col.hot .phone { box-shadow: none; }
  .guide { padding: 8px; gap: 10px; } .guide p { font-size: 14px; }
  .lang button { padding: 0 8px; } .reset { padding: 0 10px; }
  .foot-note { padding: 4px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
