body {
  font-family: "Noto Sans SC", sans-serif;
  background: linear-gradient(135deg, #fff5f5 0%, #fffbf2 48%, #f4f7ff 100%);
  color: #4b5563;
}

.font-mono {
  font-family: "JetBrains Mono", monospace;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.04);
}

@keyframes blue-breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
    box-shadow: 0 0 4px rgba(34, 211, 238, 0.4);
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  }
}

.breathe-dot {
  background-color: #22d3ee;
  animation: blue-breathe 2s infinite ease-in-out;
}

.app-grid {
  display: grid;
  grid-template-columns: 168px 1fr;
  height: 100vh;
  padding: 16px;
  gap: 16px;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.settings-page-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-page-eyebrow,
.settings-eyebrow {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f97316;
}

.settings-page-desc,
.settings-panel-desc {
  max-width: 760px;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
}

.settings-panel-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.settings-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 2px 2px;
}

.tab-btn {
  position: relative;
  min-width: 104px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  color: #64748b;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
  border-color: #fdba74;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.08);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.95), rgba(255, 255, 255, 0.96));
  border-color: rgba(251, 146, 60, 0.9);
  color: #9a3412;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.1);
}

.tab-btn__title {
  display: block;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.tab-btn__desc {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.tab-btn.active .tab-btn__desc {
  color: #fb923c;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.service-grid {
  display: grid;
  gap: 10px;
}

.service-grid--ticket,
.service-grid--voice {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.service-grid--invite {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
}

.service-aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.service-card--soft {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.92), rgba(255, 255, 255, 0.92));
}

.service-card--gradient {
  background: linear-gradient(135deg, #ff8a34 0%, #f97316 54%, #ea580c 100%);
  border-color: rgba(251, 146, 60, 0.45);
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.28);
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.service-card-title {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.service-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.service-stat-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.service-stat-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 237, 213, 0.95);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.95));
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.service-stat-card--light {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.service-stat-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.service-stat-card--light .service-stat-label {
  color: rgba(255, 255, 255, 0.78);
}

.service-stat-value {
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.service-stat-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.service-stat-card--light .service-stat-value {
  color: #fff;
}

.service-stat-desc {
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
}

.service-stat-card--light .service-stat-desc {
  color: rgba(255, 247, 237, 0.92);
}

.service-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-list-wrap,
.service-kv-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-list-wrap--orders .service-list,
.service-list--orders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.service-list-wrap--orders .service-empty-state,
.service-list--orders .service-empty-state {
  grid-column: 1 / -1;
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.service-list-main {
  min-width: 0;
  flex: 1;
}

.service-list-title {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
}

.service-list-meta {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.service-list-desc {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
}

.service-list-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.service-empty-state {
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(203, 213, 225, 0.95);
  background: rgba(248, 250, 252, 0.7);
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-align: center;
}

.service-load-more {
  margin-top: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-align: center;
  cursor: pointer;
}

.service-load-more.is-loading,
.service-load-more.is-ended {
  cursor: default;
}

.service-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.98);
  border: 1px solid rgba(254, 215, 170, 0.96);
  color: #c2410c;
  font-size: 10px;
  font-weight: 900;
}

.service-tip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-tip-list--compact {
  margin-top: 8px;
}

.service-tip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-tip-item strong {
  font-size: 11px;
  line-height: 1.45;
  font-weight: 900;
  color: #0f172a;
}

.service-tip-item span {
  font-size: 11px;
  line-height: 1.55;
  color: #64748b;
}

.service-link-box {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.service-link-text {
  min-height: 40px;
  flex: 1;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.88);
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
  word-break: break-all;
}

.settings-primary-btn,
.settings-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  max-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.settings-primary-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 18px 28px rgba(249, 115, 22, 0.22);
}

.settings-primary-btn:hover,
.settings-secondary-btn:hover {
  transform: translateY(-1px);
}

.settings-primary-btn:active,
.settings-secondary-btn:active {
  transform: scale(0.98);
}

.settings-secondary-btn {
  background: rgba(255, 255, 255, 0.88);
  color: #c2410c;
  border: 1px solid rgba(254, 215, 170, 0.94);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.08);
}

.voice-setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.voice-setting-card {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(248, 250, 252, 0.82);
}

.voice-setting-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}

.voice-setting-select {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  outline: none;
}

.voice-setting-select:focus {
  border-color: rgba(251, 146, 60, 0.96);
  box-shadow: 0 0 0 3px rgba(254, 215, 170, 0.55);
}

.voice-setting-hint,
.voice-save-notice {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
}

.voice-save-notice {
  margin-top: 8px;
  font-weight: 800;
}

.service-kv-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
}

.service-kv-item:last-child {
  border-bottom: none;
}

.service-kv-key {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.service-kv-value {
  text-align: right;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
  color: #0f172a;
}

.account-hero-card {
  padding: 12px;
}

.account-hero-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-hero-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-hero-avatar span {
  font-size: 16px;
  font-weight: 900;
  color: #f97316;
}

.account-hero-base {
  min-width: 0;
  flex: 1;
}

.account-hero-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.account-hero-name {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
  color: #0f172a;
}

.account-hero-phone {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
  font-weight: 800;
}

.account-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.account-hero-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.8);
  min-width: 0;
}

.account-hero-item span {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  color: #94a3b8;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.account-hero-item strong {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: #0f172a;
  font-weight: 800;
  word-break: break-word;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pending {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
}

.status-processing {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.status-resolved,
.status-vip {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
}

.status-closed,
.status-muted {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.settings-ticket-card {
  text-decoration: none;
}

.settings-ticket-card:hover .settings-ticket-title {
  color: #ea580c;
}

.settings-ticket-main {
  min-width: 0;
}

.settings-ticket-content {
  min-width: 0;
  flex: 1;
}

.settings-ticket-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f8fafc;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.settings-ticket-title {
  transition: color 0.2s ease;
}

.settings-ticket-meta {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.03em;
  line-height: 1.45;
  word-break: break-all;
}

.settings-ticket-preview {
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.settings-ticket-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.modal-active {
  display: flex !important;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1280px) {
  .service-grid--ticket,
  .service-grid--voice,
  .service-grid--invite,
  .service-dual-grid {
    grid-template-columns: 1fr;
  }

  .service-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voice-setting-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .app-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  body {
    overflow: auto;
  }

  .settings-panel-title {
    font-size: 14px;
  }

  .service-link-box,
  .service-card-head,
  .service-kv-item,
  .service-list-item {
    flex-direction: column;
    align-items: stretch;
  }

  .service-list-side,
  .service-kv-value {
    align-items: flex-start;
    text-align: left;
  }

  .service-list-wrap--orders .service-list,
  .service-list--orders {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-grid {
    padding: 12px;
    gap: 12px;
  }

  .service-card,
  .tab-btn {
    padding: 10px;
  }

  .service-stat-grid,
  .service-stat-grid--compact {
    grid-template-columns: 1fr;
  }

  .account-hero-head,
  .account-hero-name-row {
    align-items: flex-start;
  }

  .account-hero-grid {
    grid-template-columns: 1fr;
  }

  .settings-page-desc,
  .settings-panel-desc,
  .service-tip-item span,
  .voice-setting-hint,
  .voice-save-notice {
    font-size: 12px;
  }

  .settings-panel-title {
    font-size: 14px;
  }
}

/* 邀请有礼：标题内补充说明 */
.settings-invite-title-note {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

/* 邀请有礼：H5 / PC 双链接 + 二维码（与 common 顶栏手机版弹窗一致） */
.settings-invite-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.settings-invite-action-btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.settings-invite-action-hint {
  margin: 10px 2px 0;
  font-size: 11px;
  line-height: 1.5;
  color: #94a3b8;
  font-weight: 800;
}

.settings-invite-url-block {
  width: 100%;
}

.settings-invite-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.settings-invite-url-label {
  margin: 0 0 6px 2px;
  font-size: 10px;
  font-weight: 900;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.settings-invite-url-flex {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.settings-invite-url-input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  background: rgba(248, 250, 252, 0.92);
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  line-height: 1.35;
  word-break: break-all;
  outline: none;
}

.settings-invite-url-input::placeholder {
  color: #94a3b8;
  font-weight: 700;
}

.settings-invite-copy-btn {
  flex-shrink: 0;
  min-width: 52px;
}

.settings-invite-qr-btn {
  flex-shrink: 0;
  min-width: 52px;
  color: #ea580c !important;
  border-color: rgba(251, 146, 60, 0.55) !important;
}

.settings-invite-qr-btn:disabled,
.settings-invite-copy-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

@media (max-width: 640px) {
  .settings-invite-actions {
    grid-template-columns: 1fr;
  }
}
