:root {
  --bg: #0b0e17;
  --panel: #131826;
  --panel-2: #1a2033;
  --line: #262e45;
  --text: #e8ecf6;
  --muted: #8b94ad;
  --brand: #7c5cff;
  --brand-2: #00d4ff;
  --green: #2fd6a3;
  --orange: #ffb020;
  --red: #ff5c7a;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}
a { color: var(--brand-2); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* 顶栏 */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 32px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(11,14,23,.94);
  backdrop-filter: blur(10px); z-index: 10;
}
.logo { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.logo em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.top-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn {
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  padding: 9px 18px; border-radius: 10px; font-size: 14px; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); }
.btn.primary { background: linear-gradient(135deg, var(--brand), #5b3df0); border: none; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 12px; font-size: 12px; border-radius: 8px; }
.btn.danger { color: var(--red); border-color: rgba(255,92,122,.4); }
.btn.warn { color: var(--orange); border-color: rgba(255,176,32,.4); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.full { width: 100%; padding: 13px; font-size: 15px; }

/* 首屏 */
.hero { text-align: center; padding: 52px 20px 30px; }
.hero h1 { font-size: clamp(24px, 4.4vw, 38px); letter-spacing: 2px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin-top: 14px; font-size: 15px; }
.hero .tags { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero .tags i { font-style: normal; font-size: 12px; color: var(--brand-2); border: 1px solid rgba(0,212,255,.25); padding: 4px 12px; border-radius: 99px; }

/* 轮播 */
.banner-wrap { position: relative; max-width: 1120px; margin: 0 auto 10px; padding: 0 24px; }
.banner-track { display: flex; transition: transform .5s ease; border-radius: var(--radius); overflow: hidden; }
.banner-slide { flex: 0 0 100%; display: block; aspect-ratio: 16/6; background: var(--panel); }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-text { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; background: linear-gradient(135deg, rgba(124,92,255,.3), rgba(0,212,255,.15)); }
.banner-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.banner-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); cursor: pointer; transition: .2s; }
.banner-dots span.active { background: var(--brand); width: 22px; border-radius: 99px; }

/* 公告 */
.notice { max-width: 1120px; margin: 0 auto 8px; padding: 0 24px; display: flex; gap: 12px; align-items: flex-start; }
.notice-label { flex-shrink: 0; font-size: 12px; color: var(--orange); border: 1px solid rgba(255,176,32,.35); padding: 2px 10px; border-radius: 99px; margin-top: 2px; }
.notice-body { color: var(--muted); font-size: 13px; }
.notice-body div { padding: 1px 0; }

/* 打手 */
.section { max-width: 1180px; margin: 0 auto; padding: 0 24px 40px; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 20px; flex-wrap: wrap; }
.section-title h2 { font-size: 21px; }
.section-title span { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(318px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; transition: .2s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(124,92,255,.14); }
.card .head { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 800; color: #fff; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.card .name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card .title { color: var(--muted); font-size: 12px; margin-top: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.online { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.busy { background: var(--orange); }
.dot.rest { background: var(--muted); }
.card .stats { display: flex; gap: 8px; margin: 16px 0 12px; }
.card .stats div { flex: 1; background: var(--panel-2); border-radius: 10px; padding: 9px 4px; text-align: center; min-width: 0; }
.card .stats b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .stats span { color: var(--muted); font-size: 11px; }
.card .intro { color: var(--muted); font-size: 13px; line-height: 1.7; min-height: 44px; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.price { color: var(--orange); font-size: 25px; font-weight: 800; }
.price small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 2px; }

/* 流程 / 优势 */
.block { padding-top: 10px; }
.block-title { font-size: 20px; text-align: center; margin-bottom: 22px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; gap: 12px; }
.step-no { width: 26px; height: 26px; border-radius: 8px; background: rgba(124,92,255,.18); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.step b { font-size: 14px; display: block; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 12px; margin: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feature b { display: block; margin-bottom: 8px; color: var(--brand-2); }
.feature p { color: var(--muted); font-size: 13px; margin: 0; }

.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 26px 20px 36px; border-top: 1px solid var(--line); }
.footer-copy { margin-top: 8px; opacity: .8; }
.footer-links { margin-top: 10px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.footer-links a { font-size: 12px; }

/* 弹窗 */
.mask { position: fixed; inset: 0; background: rgba(4,6,12,.78); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.mask.show { display: flex; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; width: 100%; max-width: 470px; max-height: 90vh; overflow-y: auto; padding: 24px; }
.modal h3 { font-size: 18px; margin-bottom: 4px; }
.modal .tip { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.modal .close { float: right; background: none; border: none; color: var(--muted); font-size: 24px; line-height: 1; margin-top: -6px; }
.modal .close:hover { color: var(--text); }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field label b { color: var(--red); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 62px; }
.field .row { display: flex; gap: 10px; }
.field .row > div { flex: 1; min-width: 0; }
.modal .summary { background: var(--panel-2); border-radius: 12px; padding: 13px 16px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); margin: 4px 0 14px; line-height: 1.6; }
.agree input { margin-top: 3px; flex-shrink: 0; }
.msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }

/* 订单查询 */
.order-result { margin-top: 16px; }
.order-result .line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.order-result .line span:first-child { color: var(--muted); flex-shrink: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; white-space: nowrap; }
.badge.pending { background: rgba(255,176,32,.15); color: var(--orange); }
.badge.paid { background: rgba(0,212,255,.15); color: var(--brand-2); }
.badge.progress { background: rgba(124,92,255,.18); color: var(--brand); }
.badge.done { background: rgba(47,214,163,.15); color: var(--green); }
.badge.cancelled { background: rgba(139,148,173,.15); color: var(--muted); }
.timeline { margin-top: 12px; }
.timeline div { font-size: 12px; color: var(--muted); padding: 6px 0 6px 14px; border-left: 2px solid var(--line); }
.timeline div:last-child { border-color: var(--brand); color: var(--text); }

/* ============ 后台 ============ */
.admin-wrap { display: flex; min-height: 100vh; }
.side { width: 216px; background: var(--panel); border-right: 1px solid var(--line); padding: 22px 12px; flex-shrink: 0; display: flex; flex-direction: column; }
.side .logo { font-size: 16px; margin-bottom: 22px; padding-left: 10px; }
.side button { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--muted); padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 3px; transition: .15s; }
.side button.active, .side button:hover { background: var(--panel-2); color: var(--text); }
.side .side-gap { flex: 1; }
.main { flex: 1; padding: 26px 30px 60px; overflow-x: auto; min-width: 0; }
.main h2 { font-size: 20px; margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-grid .card { padding: 16px; }
.stat-grid b { font-size: 25px; display: block; margin-top: 4px; }
.stat-grid span { color: var(--muted); font-size: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 400; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,.02); }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.toolbar select, .toolbar input { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.table-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px 14px; overflow-x: auto; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 10px 0; color: var(--text); cursor: pointer; }
.login-box { max-width: 360px; margin: 12vh auto; }

/* 配置表单 */
.set-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.set-card h3 { font-size: 15px; margin-bottom: 14px; color: var(--brand-2); }
.set-row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: center; margin-bottom: 10px; }
.set-row label { font-size: 13px; color: var(--muted); }
.set-row input, .set-row textarea, .set-row select { width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 13px; outline: none; }
.set-row input:focus, .set-row textarea:focus { border-color: var(--brand); }
.set-row textarea { min-height: 60px; resize: vertical; }
.set-row.wide { grid-template-columns: 1fr; gap: 6px; }
.set-row.full { grid-template-columns: 180px 1fr; }
.banner-item { display: flex; gap: 12px; align-items: center; background: var(--panel-2); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.banner-item img { width: 120px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--line); flex-shrink: 0; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
/* ============ 在线客服 ============ */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--brand), #5b3df0);
  color: #fff; border: none; border-radius: 999px;
  padding: 13px 20px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(124,92,255,.45); transition: .2s;
}
.chat-fab:hover { transform: translateY(-2px); filter: brightness(1.1); }
.chat-fab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chat-panel {
  position: fixed; right: 22px; bottom: 82px; z-index: 61;
  width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 120px);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.chat-panel.show { display: flex; }
.chat-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; background: var(--panel-2); }
.chat-head b { font-size: 15px; }
.chat-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.chat-close { background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1; }
.chat-meta { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.chat-meta input { flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 8px; font-size: 12px; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg.from-user { align-self: flex-end; align-items: flex-end; }
.chat-msg.from-admin { align-self: flex-start; align-items: flex-start; }
.chat-msg .bubble {
  padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.6;
  background: var(--panel-2); word-break: break-word;
}
.chat-msg.from-user .bubble { background: linear-gradient(135deg, var(--brand), #5b3df0); color: #fff; }
.chat-msg.system .bubble { background: rgba(0,212,255,.1); color: var(--brand-2); font-size: 12px; }
.chat-time { font-size: 10px; color: var(--muted); margin-top: 3px; }
.chat-img { max-width: 160px; border-radius: 8px; margin-top: 6px; display: block; }
.chat-input { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: center; }
.chat-input input#chatInput { flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 9px 11px; font-size: 13px; outline: none; }
.chat-input input#chatInput:focus { border-color: var(--brand); }
.chat-ico { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font-size: 17px; line-height: 1; flex-shrink: 0; }
.chat-images { display: flex; gap: 6px; padding: 0 12px; }
.chat-images:not(:empty) { padding: 8px 12px 0; }

/* 退款 */
.upload-hint { font-size: 11px; color: var(--muted); margin-top: 6px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { position: relative; display: inline-block; }
.thumb img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.thumb i {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
  background: var(--red); color: #fff; border-radius: 50%; font-size: 12px;
  font-style: normal; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.refund-box:not(:empty) { margin-top: 14px; }
.refund-state { background: rgba(124,92,255,.08); border: 1px solid rgba(124,92,255,.25); border-radius: 12px; padding: 12px 14px; }
.refund-state-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 8px; }
.refund-state-body { font-size: 12px; color: var(--muted); line-height: 1.9; }

/* 后台客服工作台 */
.kf-wrap { display: flex; gap: 14px; height: calc(100vh - 190px); min-height: 460px; }
.kf-list { width: 280px; flex-shrink: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow-y: auto; }
.kf-item { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.kf-item:hover, .kf-item.active { background: var(--panel-2); }
.kf-item .n { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.kf-item .t { font-size: 11px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-dot { background: var(--red); color: #fff; border-radius: 99px; font-size: 10px; padding: 1px 6px; flex-shrink: 0; }
.kf-main { flex: 1; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; }
.kf-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kf-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.kf-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.kf-input input[type="text"] { flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 13px; outline: none; }
.kf-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }

.mock-badge {
  display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 99px;
  background: rgba(255, 176, 32, .12); color: #ffb020;
  border: 1px solid rgba(255, 176, 32, .35); margin-bottom: 10px;
}

.kf-badge {
  display: none; background: var(--red); color: #fff;
  font-size: 10px; border-radius: 99px; padding: 1px 6px;
  margin-left: 5px; vertical-align: middle;
}

@media (max-width: 720px) {
  .chat-panel { right: 10px; left: 10px; width: auto; bottom: 76px; height: 70vh; }
  .chat-fab { right: 14px; bottom: 14px; padding: 11px 16px; }
  .kf-wrap { flex-direction: column; height: auto; }
  .kf-list { width: 100%; max-height: 200px; }
  .kf-main { height: 60vh; }
}

