/* 定制专属版：模板页 tab + 全站悬浮对话入口 */
.acq-tabs { display: flex; gap: 4px; margin: -6px -6px 16px; padding: 4px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--border-muted); }
.acq-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 8px; white-space: nowrap; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.acq-tabs button:hover { color: var(--fg); }
.acq-tabs button[aria-selected="true"] { color: var(--fg); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--border), 0 4px 14px -6px rgba(0,0,0,.8); }
.acq-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.acq-tabs .tag { height: 18px; padding: 0 7px; font-size: 11px; }
.acq-tabs .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.cchat [hidden] { display: none !important; }
.cchat { --av: 30px; position: relative; display: flex; flex-direction: column; min-height: 0; color: var(--fg); }
.cchat-inline { height: clamp(625px, 85vh, 850px); }
.cchat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-muted); }
.cchat-avatars { display: flex; }
.cchat-avatars .cchat-av { width: 24px; height: 24px; font-size: 11px; margin-left: -6px; box-shadow: 0 0 0 2px var(--bg-1); }
.cchat-avatars .cchat-av:first-child { margin-left: 0; }
.cchat-title { display: grid; min-width: 0; line-height: 1.3; }
.cchat-title b { font-size: 15px; }
.cchat-title small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cchat-steps { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--subtle); }
.cchat-steps li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cchat-steps li + li::before { content: ""; width: 14px; height: 1px; background: var(--border, rgba(127,127,127,.35)); margin-right: 1px; }
.cchat-steps i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 10px; box-shadow: inset 0 0 0 1px currentColor; }
.cchat-steps li.on { color: var(--fg); font-weight: 600; }
.cchat-steps li.on i { color: #fff; background: var(--blue); box-shadow: none; }
.cchat-steps li.done i { color: var(--blue); }
.cchat-steps .link { margin-left: auto; white-space: nowrap; }
.cchat-after { list-style: none; padding-left: 0 !important; }
.cchat-after li::before { content: "✓ "; color: var(--blue); }

.cchat-av { display: inline-grid; place-items: center; flex: 0 0 auto; width: var(--av); height: var(--av); border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--bg-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.t-blue { --c: #79c0ff; } .t-purple { --c: #d2a8ff; } .t-pink { --c: #ff9bce; } .t-green { --c: #7ee787; } .t-yellow { --c: #e3b341; } .t-neutral { --c: var(--fg-2); } .t-orange { --c: #ffa657; }
.cchat-av-sp { flex: 0 0 var(--av); }

.cchat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 2px 8px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.cchat-log:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 8px; }
.cchat-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 100%; animation: cchat-in .22s var(--ease) both; }
.cchat-msg.cont { margin-top: -6px; }
.cchat-msg.me { justify-content: flex-end; }
.cchat-col { display: grid; gap: 4px; min-width: 0; max-width: calc(100% - var(--av) - 8px); }
.cchat-msg.me .cchat-col { max-width: 86%; justify-items: end; }
.cchat-name { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cchat-staff { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px; color: #7ee787; background: var(--success-bg, rgba(46,160,67,.15)); }
.cchat-bubble { padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--border-muted); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.cchat-msg.me .cchat-bubble { border-radius: 14px 4px 14px 14px; background: #1f6feb; box-shadow: none; color: #fff; }
.cchat-msg.temp .cchat-bubble { opacity: .65; }
.cchat-msg.failed .cchat-bubble { background: var(--danger-bg, rgba(248,81,73,.15)); color: var(--fg); box-shadow: inset 0 0 0 1px var(--red); }
.cchat-img { display: block; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.cchat-img img { display: block; max-width: 200px; max-height: 200px; object-fit: cover; }
.cchat-status { display: grid; gap: 2px; margin: 4px auto; padding: 8px 12px; max-width: 92%; border-radius: 10px; text-align: center; font-size: 12.5px; color: var(--fg-2); background: color-mix(in srgb, var(--blue) 8%, var(--bg-1)); box-shadow: inset 0 0 0 1px var(--accent-bd, rgba(56,139,253,.4)); }
.cchat-status b { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.cchat-typing .cchat-bubble { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.cchat-typing .cchat-bubble i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: cchat-dot 1s infinite ease-in-out; }
.cchat-typing .cchat-bubble i:nth-of-type(2) { animation-delay: .15s; } .cchat-typing .cchat-bubble i:nth-of-type(3) { animation-delay: .3s; }
.cchat-name-inline { margin-right: 4px; }
@keyframes cchat-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes cchat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cchat-card { width: 100%; padding: 14px; border-radius: 4px 14px 14px 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--border), 0 12px 30px -18px rgba(0,0,0,.9); font-size: 13px; }
.cchat-card.stale { opacity: .55; }
.cchat-card h4 { margin: 0 0 8px; font-size: 14px; }
.cchat-card dl { display: grid; gap: 6px; margin: 0 0 10px; }
.cchat-card dl div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; }
.cchat-card dt { color: var(--muted); }
.cchat-card dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cchat-offer { padding-top: 10px; border-top: 1px dashed var(--border); }
.cchat-inc { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.cchat-card ul { margin: 4px 0 12px; padding-left: 18px; color: var(--fg-2); }
.cchat-actions { display: grid; gap: 8px; }
.cchat-actions > .tag { justify-self: start; }
.cchat-actions .btn-block { white-space: normal; height: auto; min-height: 38px; padding-top: 8px; padding-bottom: 8px; line-height: 1.35; }
.cchat-note { margin: 0; font-size: 12px; color: var(--muted); }
.cchat-use { display: flex; gap: 6px; align-items: center; color: var(--fg-2); cursor: pointer; }
.cchat-note.warn { color: #e3b341; }
.cchat-pay { display: grid; justify-items: center; gap: 6px; padding: 12px; border-radius: 12px; background: var(--bg-2); text-align: center; }
.cchat-pay img { border-radius: 10px; background: #fff; }
.cchat-pay small { font-size: 11.5px; line-height: 1.5; }

.cchat-briefbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 6px; padding: 7px 12px 9px; border: 0; border-radius: 10px; background: var(--bg-2); color: var(--fg-2); font: inherit; font-size: 12.5px; cursor: pointer; overflow: hidden; }
.cchat-briefbar span { color: var(--muted); }
.cchat-briefbar:hover { color: var(--fg); }
.cchat-briefbar[aria-expanded="true"] { border-radius: 10px 10px 0 0; }
.cchat-meter { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p, 0%); background: var(--grad); transition: width .4s var(--ease); }
.cchat-brief { display: grid; gap: 8px; max-height: 46%; overflow-y: auto; padding: 10px 12px; border-radius: 0 0 10px 10px; background: var(--bg-2); }
.cchat-slot { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.cchat-slot textarea { width: 100%; resize: vertical; min-height: 32px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-1); color: var(--fg); font: inherit; font-size: 13px; }
.cchat-slot textarea:disabled { opacity: .7; }
.cchat-brief-acts { display: flex; gap: 8px; justify-content: space-between; align-items: center; }

.cchat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.cchat-quick::-webkit-scrollbar { display: none; }
.cchat-chip { flex: 0 0 auto; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-1); color: var(--fg-2); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.cchat-chip:hover { border-color: var(--blue); color: var(--fg); }

.cchat-composer { display: flex; align-items: flex-end; gap: 6px; margin-top: 8px; padding: 6px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--border); }
.cchat-composer:focus-within { box-shadow: inset 0 0 0 1px var(--blue); }
.cchat-composer textarea { flex: 1; min-width: 0; resize: none; max-height: 140px; padding: 7px 4px; border: 0; outline: 0; background: none; color: var(--fg); font: inherit; font-size: 14px; line-height: 1.5; }
.cchat-attach, .cchat-send { display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.cchat-attach:hover { color: var(--fg); background: var(--bg-3); }
.cchat-attach:focus-within { outline: 2px solid var(--blue); }
.cchat-send { background: var(--fg); color: #0d1117; }
.cchat-send:disabled { opacity: .45; cursor: progress; }
.cchat-attach svg, .cchat-send svg { width: 16px; height: 16px; }
.cchat-login { display: grid; gap: 6px; margin-top: 10px; text-align: center; }
.cchat-toast { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); max-width: 90%; padding: 8px 14px; border-radius: 10px; background: var(--bg-3); box-shadow: 0 10px 30px -10px #000, inset 0 0 0 1px var(--border); font-size: 13px; z-index: 2; }

/* 全站定制对话框：右下角唤起按钮 + 两栏对话框（列表 / 对话），手机全屏两级。 */
.cinbox { --cin-w: min(860px, calc(100vw - 40px)); --cin-h: min(680px, calc(100vh - 112px)); }
.cinbox-launcher { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 61; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: linear-gradient(145deg, #2f81f7, #1f6feb); box-shadow: 0 10px 28px -8px rgba(31,111,235,.65), 0 0 0 1px rgba(255,255,255,.08) inset; transition: transform .18s var(--ease, ease), box-shadow .18s; -webkit-tap-highlight-color: transparent; }
.cinbox-launcher[hidden] { display: none; }
.cinbox-launcher:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 32px -8px rgba(31,111,235,.75), 0 0 0 1px rgba(255,255,255,.1) inset; }
.cinbox-launcher:active { transform: scale(.94); }
.cinbox-launcher:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.cinbox-launcher svg { width: 24px; height: 24px; transition: transform .2s var(--ease, ease), opacity .2s; }
.cinbox-launcher-icon { display: grid; }
.cinbox-launcher-x { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.6); }
.cinbox.open .cinbox-launcher-icon svg { opacity: 0; transform: rotate(90deg) scale(.6); }
.cinbox.open .cinbox-launcher-x { opacity: 1; transform: none; }
.cinbox-badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red, #f85149); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--bg); animation: cinbox-pop .3s var(--ease, ease); }
.cinbox-badge[hidden] { display: none; }
.cinbox.open .cinbox-badge { display: none; }
@keyframes cinbox-pop { from { transform: scale(.4); } to { transform: scale(1); } }

.cinbox-dialog { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(max(20px, env(safe-area-inset-bottom)) + 66px); z-index: 60; display: grid; grid-template-columns: 272px 1fr; width: var(--cin-w); height: var(--cin-h); border-radius: 18px; overflow: hidden; background: var(--bg-1); box-shadow: 0 0 0 1px var(--border), 0 30px 80px -20px rgba(0,0,0,.85); transform-origin: calc(100% - 27px) calc(100% + 39px); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .18s var(--ease, ease), transform .2s var(--ease, ease); }
.cinbox-dialog[hidden] { display: none; }
.cinbox-dialog.in { opacity: 1; transform: none; }
.cinbox-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border-muted, var(--border)); background: var(--bg); }
.cinbox-side-head, .cinbox-head { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 10px 12px; border-bottom: 1px solid var(--border-muted, var(--border)); }
.cinbox-side-head b { flex: 1; font-size: 15px; }
.cinbox-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.cinbox-icon:hover { color: var(--fg); background: var(--bg-3); }
.cinbox-icon:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.cinbox-icon svg { width: 18px; height: 18px; }
.cinbox-side-head [data-cinbox-close] { display: none; }
.cinbox-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; scrollbar-width: thin; }
.cinbox-item { position: relative; display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; transition: background .12s; }
.cinbox-item:hover { background: var(--bg-2); }
.cinbox-item[aria-current="true"] { background: color-mix(in srgb, var(--blue) 14%, var(--bg-2)); }
.cinbox-item:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.cinbox-thumb { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--bg-3); color: var(--fg-2); font-weight: 700; box-shadow: inset 0 0 0 1px var(--border); }
.cinbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cinbox-item-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.cinbox-item-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.cinbox-item-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.cinbox-item-top time { flex: 0 0 auto; font-size: 11px; color: var(--subtle); }
.cinbox-item-sub, .cinbox-item-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.cinbox-item-last { color: var(--subtle); }
.cinbox-tag { flex: 0 0 auto; padding: 0 6px; border-radius: 999px; font-style: normal; font-size: 10.5px; line-height: 17px; color: #d2a8ff; background: rgba(163,113,247,.16); }
.cinbox-dot { position: absolute; right: 10px; bottom: 11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; }
.cinbox-empty { margin: 16px; font-size: 13px; }

.cinbox-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cinbox-head .cinbox-thumb { width: 36px; height: 36px; border-radius: 9px; }
.cinbox-cover:empty { display: none; }
.cinbox-meta { display: grid; flex: 1; min-width: 0; }
.cinbox-meta b, .cinbox-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cinbox-meta b { font-size: 14px; }
.cinbox-meta small { font-size: 12px; color: var(--muted); }
.cinbox-links { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; font-size: 12.5px; }
.cinbox-back { display: none; }
.cinbox-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 14px 12px; }
.cinbox-body.busy::after { content: ""; position: absolute; top: 40%; left: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--blue); animation: cinbox-spin .7s linear infinite; }
@keyframes cinbox-spin { to { transform: rotate(360deg); } }
.cinbox-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cinbox-pane[hidden] { display: none; }
.cinbox-pane .cchat { flex: 1; }
.cinbox-pane .cchat-head { display: none; }
.cinbox-retry { align-self: center; margin-top: 40%; }
.cinbox-dialog:not(.show-chat) .cinbox-head > :not(.cinbox-close-main) { visibility: hidden; }

@media (max-width: 640px) {
  .cinbox-dialog { inset: 0; width: auto; height: auto; border-radius: 0; grid-template-columns: 1fr; transform-origin: 50% 100%; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
  .cinbox-side, .cinbox-main { grid-area: 1 / 1; }
  .cinbox-main { background: var(--bg-1); transform: translateX(100%); transition: transform .24s var(--ease, ease); visibility: hidden; }
  .cinbox-dialog.show-chat .cinbox-main { transform: none; visibility: visible; }
  .cinbox-side-head [data-cinbox-close] { display: inline-grid; }
  .cinbox-back { display: inline-grid; }
  .cinbox-links { display: none; }
  .cinbox.open .cinbox-launcher { display: none; }
  .cinbox-body { padding: 0 10px 8px; }
}
html.cinbox-lock, html.cinbox-lock body { overflow: hidden; overscroll-behavior: none; }
@media (prefers-reduced-motion: reduce) { .cinbox-dialog, .cinbox-main, .cinbox-launcher, .cinbox-launcher svg { transition: none; } .cinbox-badge, .cinbox-body.busy::after { animation: none; } }

/* 模板页“定制专属版”卡片 */
.cstart { display: grid; gap: 14px; padding: 16px; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--border); }
.cstart-who { display: flex; align-items: center; gap: 6px; --av: 34px; }
.cstart-who > div { display: grid; margin-left: 6px; min-width: 0; }
.cstart-who b { font-size: 14.5px; }
.cstart-who small { font-size: 12.5px; }
.cstart-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--fg-2); }
.cstart-steps li { display: flex; align-items: center; gap: 8px; }
.cstart-steps i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 700; color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); }
.cstart .btn { position: relative; gap: 8px; }
.cstart-unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #fff; color: #1f6feb; font-size: 11px; font-weight: 700; line-height: 18px; }
.cstart-note { margin: 0; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .cchat-msg { animation: none; } .cchat-typing .cchat-bubble i { animation: none; } }

/* 交付卡 */
.cchat-files { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 6px; }
.cchat-files li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; overflow-wrap: anywhere; }
.cchat-files .btn svg, .corder-ver .btn svg { width: 14px; height: 14px; }
.cchat-delivery { box-shadow: inset 0 0 0 1px var(--success-bd, rgba(46,160,67,.4)), 0 12px 30px -18px rgba(0,0,0,.9); }
.cchat-terms { display: inline-block; margin-top: 10px; font-size: 12px; }
.cchat-gone { color: var(--muted); font-style: italic; }

/* 订单页 */
.cchat-page { height: clamp(560px, 74vh, 820px); }
.corder-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.corder-steps li { position: relative; display: grid; gap: 2px; padding: 12px 0 0; border-top: 3px solid var(--border-muted); font-size: 13px; color: var(--muted); }
.corder-steps li b { font-weight: 600; }
.corder-steps li small { font-size: 11.5px; color: var(--subtle); font-family: var(--mono); }
.corder-steps li.done { border-top-color: var(--green); color: var(--fg-2); }
.corder-steps li.current { border-top-color: var(--blue); color: var(--fg); }
.corder-steps li.closed { opacity: .5; }
.corder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 18px; align-items: start; }
.corder-chat { padding: 14px 16px; }
.corder-side { display: grid; gap: 14px; }
.corder-side > .box { padding: 16px 18px; }
.corder-side h2 { margin: 0 0 10px; font-size: 15px; }
.corder-kv { display: grid; gap: 8px; margin: 0 0 8px; font-size: 13px; }
.corder-kv div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; }
.corder-kv dt { color: var(--muted); }
.corder-kv dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.corder-ver { padding: 10px 0; border-top: 1px solid var(--border-muted); font-size: 13px; }
.corder-ver:first-of-type { border-top: 0; padding-top: 0; }
.corder-ver p { margin: 6px 0; color: var(--fg-2); white-space: pre-wrap; }
.corder-ver ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.corder-ver li { display: grid; gap: 4px; justify-items: start; overflow-wrap: anywhere; }
.corder-ver video, .corder-ver img { width: 100%; max-height: 200px; border-radius: 8px; background: #000; object-fit: contain; }
.corder-accept { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.corder-accept p { margin: 0 0 8px; font-size: 13px; color: var(--fg-2); }
.corder-row { display: grid; gap: 4px; margin: 10px 0; padding: 14px 18px; color: inherit; text-decoration: none; transition: box-shadow .2s; }
.corder-row:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
@media (max-width: 960px) { .corder { grid-template-columns: minmax(0, 1fr); } .corder-side { order: -1; } }
@media (max-width: 560px) { .corder-steps { grid-template-columns: repeat(5, minmax(56px, 1fr)); overflow-x: auto; } .corder-steps li small { display: none; } .cchat-page { height: min(80vh, 640px); } }

/* 服务说明页 */
.cservice { max-width: 980px; padding-top: clamp(36px, 5vw, 72px); padding-bottom: 72px; display: grid; gap: 20px; }
.cservice-hero { display: grid; gap: 14px; justify-items: start; margin-bottom: 12px; }
.cservice-hero .kicker { display: inline-flex; gap: 6px; align-items: center; color: #d2a8ff; font-size: 13px; font-weight: 600; }
.cservice-hero h1 { margin: 0; font-size: clamp(30px, 2vw + 20px, 52px); line-height: 1.15; }
.cservice-price { margin: 4px 0 0; font-size: 16px; font-weight: 600; color: var(--fg-2); }
.cservice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cservice .box { padding: 20px 22px; }
.cservice h2 { margin: 0 0 12px; font-size: 18px; }
.cservice-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cservice-check li { display: flex; gap: 8px; align-items: flex-start; color: var(--fg-2); }
.cservice-check svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 4px; color: var(--green); }
.cservice-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.cservice-steps p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.cservice-faq { padding: 12px 0; border-top: 1px solid var(--border-muted); }
.cservice-faq summary { cursor: pointer; font-weight: 600; }
.cservice-faq p { margin: 8px 0 0; color: var(--fg-2); }
@media (max-width: 760px) { .cservice-grid { grid-template-columns: 1fr; } }

.cchat-agent { color: #d2a8ff; background: var(--done-bg, rgba(163,113,247,.15)); }
.cservice-tpls { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cservice-tpls li { display: grid; grid-template-columns: 128px 1fr auto; gap: 2px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border-muted); }
.cservice-thumb { grid-column: 1; grid-row: 1 / span 2; display: block; }
.cservice-thumb .th { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bg-2, #111); box-shadow: 0 0 0 1px var(--hair); }
.cservice-thumb .th .motion-art { aspect-ratio: 16 / 9; }
.cservice-thumb .th .art-micro, .cservice-thumb .th .art-bottom { display: none; }
.cservice-tpls li .link, .cservice-tpls li small { grid-column: 2; min-width: 0; }
.cservice-tpls li small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cservice-tpls li .btn { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 640px) { .cservice-tpls li { grid-template-columns: 96px 1fr; } .cservice-tpls li .btn { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 6px; } }

.cchat-lead { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 0 0 2px var(--bg-1); }
.cchat-lead-name { margin-right: 6px; color: var(--fg-2); font-weight: 600; }
.cchat-lead-name::after { content: " ·"; color: var(--muted); font-weight: 400; }
.cchat-inline-ask { display: grid; gap: 6px; margin-top: 6px; }
.cchat-inline-ask textarea { width: 100%; resize: vertical; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-1); color: var(--fg); font: inherit; font-size: 13px; }
.cchat-actions .btn-sm + .cchat-inline-ask + .btn-sm, .cchat-brief-acts .btn-sm { margin-top: 4px; }
.cchat-av.t-purple { font-size: 11px; }

/* 确认卡、交付卡占满对话宽度；价格说明紧凑排列。 */
.cchat-msg[data-kind="brief"] > .cchat-av, .cchat-msg[data-kind="brief"] > .cchat-av-sp,
.cchat-msg[data-kind="delivery"] > .cchat-av, .cchat-msg[data-kind="delivery"] > .cchat-av-sp { display: none; }
.cchat-msg[data-kind="brief"] .cchat-col, .cchat-msg[data-kind="delivery"] .cchat-col { max-width: 100%; width: 100%; }
.cchat-card .cchat-hint { margin: -4px 0 10px; }
.cchat-card ul:not(.cchat-files) { font-size: 12.5px; line-height: 1.55; margin-bottom: 10px; }
.cchat-offer div:first-child dd { font-weight: 600; color: var(--fg); }
.cchat-card .cchat-files { padding-left: 0; }
.cchat-thumb { display: block; flex-basis: 100%; }
.cchat-thumb img, video.cchat-thumb { display: block; max-width: 100%; max-height: 220px; border-radius: 10px; background: #000; box-shadow: inset 0 0 0 1px var(--border); }
.cchat-page .cchat-steps { display: none; }

.cchat-media { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; background: #000; }
.cchat-msg.me .cchat-media { margin-left: auto; }
.cchat-intro .cchat-col { flex: 1; min-width: 0; }
.cchat-intro-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 6px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.cchat-intro-play video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cchat-play-ico { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(0, 0, 0, .55); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); transition: transform .15s, background .15s; }
.cchat-play-ico::after { content: ''; position: absolute; left: 24px; top: 19px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.cchat-intro-play:hover .cchat-play-ico, .cchat-intro-play:focus-visible .cchat-play-ico { transform: scale(1.08); background: rgba(0, 0, 0, .7); }
.cchat-player { width: min(1200px, 92vw); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 14px; background: #000; overflow: visible; }
.cchat-player::backdrop { background: rgba(0, 0, 0, .82); }
.cchat-player video { display: block; width: 100%; max-height: 86vh; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; }
.cchat-player-close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; line-height: 36px; cursor: pointer; }
.cchat-player-close:hover, .cchat-player-close:focus-visible { background: rgba(255, 255, 255, .26); }
html.cchat-player-open { overflow: hidden; }
@media (max-width: 640px) {
  .cchat-player { width: 100vw; border-radius: 0; }
  .cchat-player video { border-radius: 0; }
  .cchat-player-close { top: -48px; right: 8px; }
}
.cchat-audio { display: grid; gap: 6px; }
.cchat-audio audio { width: 240px; max-width: 100%; }
.cchat-value { margin: -4px 0 10px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; color: var(--fg); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.cchat-card > .cchat-note.warn { margin-bottom: 10px; }
