:root {
  color: #172b42;
  background: #f4f7fb;
  font: 16px/1.55 "Microsoft YaHei", system-ui, sans-serif;
  --blue: #214fd3;
  --line: #dbe4f1;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid #285bdf; outline-offset: 3px; }
.topbar, main, footer { width: min(1300px, 92%); margin-inline: auto; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand, nav { display: flex; align-items: center; gap: .8rem; }
.brand { font-weight: 750; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; }
.brand-mark::after { content: ""; width: 13px; height: 10px; border: 2px solid #fff; border-radius: 5px 5px 5px 0; }
nav a { text-decoration: none; font-size: .9rem; }
.login { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .5rem .8rem; }
.intro { display: grid; grid-template-columns: .83fr 1.5fr; align-items: center; gap: clamp(1.15rem, 4vw, 4rem); padding: clamp(2rem, 7vw, 6.1rem) 0; }
.category { color: var(--blue); font-weight: 750; margin: 0 0 1rem; }
h1 { font-size: clamp(2.15rem, 3.55vw, 3.6rem); line-height: 1.2; letter-spacing: -.06em; margin: 0; }
.description { color: #465d78; max-width: 34ch; margin: 1.2rem 0 1.45rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; font-size: .9rem; }
.primary, .reply-form button { background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: .6rem .85rem; text-decoration: none; cursor: pointer; }
.workspace { overflow: hidden; border: 1px solid #cbd8ec; border-radius: 16px; box-shadow: 0 16px 48px #13305c20; background: #fff; scroll-margin-top: 1rem; min-width: 0; }
.workspace-header { background: #162c49; color: white; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; }
.workspace-header span { color: #d1e0f7; font-size: .73rem; }
.workspace-grid { display: grid; grid-template-columns: minmax(150px, 35%) minmax(0, 1fr); }
.inbox { background: #f3f6fb; border-right: 1px solid var(--line); min-width: 0; }
h2 { font-size: 1rem; margin: 0; }
.inbox h2 { padding: .85rem .7rem; }
#unread-total { display: block; color: #b82041; font-size: .73rem; min-height: 1em; }
.queue-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .15rem .25rem; text-align: left; width: 100%; cursor: pointer; padding: .65rem .7rem; border: 0; border-left: 3px solid transparent; background: transparent; color: inherit; }
.queue-item strong { font-size: .8rem; }
.queue-item[aria-pressed=true] { background: #e3ecff; border-left-color: var(--blue); }
.queue-item:focus-visible, .thread:focus-visible { outline-offset: -2px; }
.queue-preview { grid-row: 2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #455e7a; font-size: .73rem; }
.count { grid-column: 2; grid-row: 1 / span 2; align-self: center; border-radius: 99px; background: #bd2548; color: white; min-width: 18px; text-align: center; font-size: .68rem; }
.dialogue { min-width: 0; }
.dialogue-header { display: flex; justify-content: space-between; align-items: center; gap: .4rem; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
#thread-status { font-size: .7rem; color: #455e7a; white-space: nowrap; }
.thread { height: 254px; overflow: auto; padding: .75rem .9rem; background: #fbfcff; }
.message { display: grid; justify-items: start; margin-bottom: .5rem; }
.message span { color: #455e7a; font-size: .7rem; }
.message p { padding: .45rem .55rem; margin: .1rem 0 0; border-radius: 8px; font-size: .8rem; background: #e9eff7; overflow-wrap: anywhere; max-width: 94%; }
.message.agent { justify-items: end; }
.message.agent p { background: var(--blue); color: white; }
.reply-form { display: flex; gap: .45rem; padding: .65rem .7rem; border-top: 1px solid var(--line); }
.reply-form input { border: 1px solid #cbd8ec; border-radius: 7px; min-width: 0; width: 100%; padding: .35rem .45rem; font-size: .82rem; }
.reply-form button { white-space: nowrap; font-size: .8rem; }
.workflow h2 { font-size: 1.42rem; margin-bottom: .85rem; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }
.steps article { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 1rem; }
.steps h3, .steps p { margin: 0; }
.steps h3 { font-size: 1rem; }
.steps p { color: #465d78; font-size: .9rem; margin-top: .3rem; }
footer { display: flex; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--line); margin-top: 2rem; padding: 1rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .topbar { flex-direction: column; align-items: flex-start; padding: .65rem 0; gap: .45rem; }
  nav { flex-wrap: wrap; }
  .workspace-grid { grid-template-columns: minmax(115px,36%) minmax(0,1fr); }
  .inbox h2, .dialogue-header h2 { font-size: .82rem; }
  .dialogue-header { flex-wrap: wrap; }
  .steps { grid-template-columns: 1fr; }
}
/* Service 24 */
:root { color: #111f3c; background: #f3f6fc; --blue: #265bdb; --line: #d9e3f2; }
body { background: radial-gradient(ellipse at 92% 16%, #ddeaff 0, transparent 42%), #f3f6fc; }
.topbar, main, footer { width: min(1220px, calc(100% - 48px)); }
.topbar { min-height: 84px; }
.brand { gap: .65rem; line-height: 1.1; font-size: 1.15rem; }
.brand-mark { display: block; width: 44px; height: 44px; flex: 0 0 44px; background: none; }
.brand small { display: block; margin-top: .25rem; color: #425879; font-weight: 650; font-size: .67rem; }
nav { gap: clamp(.65rem, 2vw, 1.65rem); }
nav a:hover, footer > a:hover { text-decoration: underline; }
.login, .secondary { border: 1px solid #aebfdb; color: #111f3c; background: #ffffffb8; border-radius: 99px; padding: .7rem 1rem; text-decoration: none; }
.intro { grid-template-columns: minmax(250px,.9fr) minmax(0,1.22fr); padding: clamp(3rem,7.5vw,7rem) 0; }
.category { color: #2454c6; }
h1 { font-size: clamp(2.65rem,5vw,5.1rem); line-height: 1.05; letter-spacing: -.055em; text-wrap: balance; }
.description { color: #425575; line-height: 1.8; }
.primary { background: #111f3c; border-radius: 99px; padding: .75rem 1.05rem; font-weight: 700; }
.primary:disabled { opacity: .55; cursor: wait; }
.primary:hover:not(:disabled) { background: #265bdb; }
.workspace { border-color: #b7c8e6; border-radius: 24px; box-shadow: 0 24px 65px #111f3c26; }
.workspace-header { background: #111f3c; padding: .75rem 1rem; }
.workspace-header strong { display: flex; align-items: center; gap: .55rem; }
.workspace-header span { color: #ccddff; }
.inbox { background: #f0f4fb; }
.queue-item[aria-pressed=true] { background: #e0eaff; }
.thread { background: #f9fbff; }
.message p { background: #e8effa; }
.workflow { padding-block: 2rem 2.6rem; border-top: 1px solid var(--line); }
.workflow h2 { font-size: clamp(1.65rem,3vw,2.5rem); margin-bottom: 1.35rem; }
.steps { gap: 1rem; }
.steps article { border-radius: 18px; padding: 1.3rem; }
.feature-icon { display: grid; place-items: center; margin-bottom: .8rem; width: 38px; height: 38px; border-radius: 12px; color: #111f3c; background: #deebff; font-size: 1.25rem; font-weight: bold; }
footer .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
footer { align-items: center; margin-top: 0; padding-bottom: 2rem; }
@media (max-width: 900px) { .intro { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 540px) {
  .topbar, main, footer { width: calc(100% - 32px); }
  .topbar { gap: .9rem; }
  .intro { padding-top: 3rem; }
  .workspace-header { gap: .5rem; }
  .workspace-grid { grid-template-columns: minmax(0,1fr); }
  .inbox { border-right: 0; border-bottom: 1px solid var(--line); }
  #queue { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .queue-item { padding: .55rem .35rem; min-height: 52px; }
  .queue-item strong { font-size: .71rem; }
}


/* Brand theme */
body { background: #f3f6fc; }
.intro { position: relative; isolation: isolate; }
.intro::before {
  position: absolute; z-index: -1; inset: 24px 0; content: '';
  background: radial-gradient(ellipse at 78% 32%, #d5e5ff 0, transparent 65%);
  pointer-events: none;
}
.workspace-header { background: linear-gradient(105deg,#101d37,#233c70); }
.category { color: #2454c6; }
.primary { background: #2454c6; }
.primary:hover:not(:disabled) { background: #1e43a3; }


.channel-status {
  display: grid;
  gap: .2rem;
  margin: -.35rem 0 1.35rem;
  max-width: 32rem;
  color: #425575;
  font-size: .9rem;
  line-height: 1.55;
}
.channel-status strong { color: #132a47; font-weight: 750; }
