/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* ============ 浅色主题 · 温暖纸感 ============ */

:root {
  /* 背景层级：从浅到深，全部带暖色调，不用纯白 */
  --bg-0: #faf7f2; /* 页面底色 — 暖米白 */
  --bg-1: #ffffff; /* 卡片 / 气泡 */
  --bg-2: #f4efe6; /* 次级容器 — 微暖灰 */
  --bg-3: #ebe3d5; /* 强调容器 / 表头 */

  /* 描边：低对比暖灰，不用纯黑 */
  --line: #e8e0d2;
  --line-strong: #d8cdb9;

  /* 文字层级：深暖灰而非纯黑 */
  --text-0: #2b2620; /* 主文字 */
  --text-1: #5c5348; /* 次要文字 */
  --text-2: #928876; /* 弱化文字 / 标签 */

  /* 主色：朱红 → 橙红渐变 */
  --accent: #d94a2b;
  --accent-2: #e8703f;
  --accent-soft: #fdf0eb;
  --accent-line: #f2c4b5;

  /* 功能色 */
  --gold: #b8862b;
  --gold-soft: #fdf6e3;
  --teal: #2a8f83;
  --teal-soft: #e8f6f3;
  --violet: #7159c4;
  --violet-soft: #f0ecfb;
  --red: #c9382f;
  --red-soft: #fdeceb;
  --green: #3d8b52;
  --green-soft: #edf7ef;

  /* 阴影：暖色投影，不用纯黑 */
  --shadow-sm: 0 1px 2px rgba(80, 60, 40, 0.05);
  --shadow-md: 0 2px 8px rgba(80, 60, 40, 0.07), 0 1px 2px rgba(80, 60, 40, 0.04);
  --shadow-lg: 0 8px 28px rgba(80, 60, 40, 0.1), 0 2px 6px rgba(80, 60, 40, 0.05);

  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-image:
    radial-gradient(ellipse 70% 45% at 12% -8%, rgba(217, 74, 43, 0.07), transparent 70%),
    radial-gradient(ellipse 55% 40% at 92% 4%, rgba(184, 134, 43, 0.06), transparent 70%),
    radial-gradient(ellipse 60% 45% at 50% 105%, rgba(42, 143, 131, 0.05), transparent 70%);
  background-attachment: fixed;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(140, 120, 95, 0.22);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(140, 120, 95, 0.38);
  background-clip: content-box;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

textarea,
input {
  font-family: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background: rgba(217, 74, 43, 0.16);
  color: var(--text-0);
}

/*!*******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/chat/chat.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************/
/* ============ 布局 ============ */

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

/* ============ 顶栏 ============ */

.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
          backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--shadow-sm);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.5px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 74, 43, 0.28);
}

.brand-title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-0);
}

.brand-sub {
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 1px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.data-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-1);
  padding: 6px 13px;
  border-radius: 100px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 139, 82, 0.15);
}

.sync-btn {
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 17px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  transition: all 0.18s ease;
}

.sync-btn:hover:not(:disabled) {
  background: #fce4dc;
  border-color: #e8a893;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(217, 74, 43, 0.14);
}

.sync-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sync-btn.syncing {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ============ 消息区 ============ */

.chat-scroll {
  flex: 1 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.chat-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 30px 26px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.msg-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: msgIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-user {
  flex-direction: row;
  justify-content: flex-end;
}

.msg-body {
  min-width: 0;
  max-width: calc(100% - 52px);
}

.body-user {
  max-width: 76%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(217, 74, 43, 0.2);
  border-radius: var(--radius) var(--radius) 5px var(--radius);
  padding: 11px 17px;
  color: #fff;
  box-shadow: 0 3px 12px rgba(217, 74, 43, 0.18);
}

.body-user .msg-text {
  color: #fff;
}

.body-user .msg-text strong {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.body-bot {
  flex: 1 1;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) var(--radius) 5px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
}

.avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
  border: 1px solid rgba(217, 74, 43, 0.22);
  color: #fff;
  letter-spacing: -0.3px;
  box-shadow: 0 2px 8px rgba(217, 74, 43, 0.2);
}

.avatar-user {
  background: var(--bg-3);
  border-color: var(--line-strong);
  color: var(--text-1);
  box-shadow: none;
  font-size: 12.5px;
}

.msg-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-0);
  overflow-wrap: break-word;
  word-break: break-word;
}

.msg-text .md-p {
  margin: 0 0 9px;
}
.msg-text .md-p:last-child {
  margin-bottom: 0;
}

.md-h {
  font-weight: 700;
  margin: 15px 0 8px;
  color: var(--text-0);
  letter-spacing: 0.2px;
}
.md-h:first-child {
  margin-top: 0;
}
.md-h1, .md-h2 {
  font-size: 15.5px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
}
.md-h3 {
  font-size: 14.5px;
}
.md-h4 {
  font-size: 13.5px;
  color: var(--text-1);
}

.md-ul {
  margin: 7px 0 11px;
  padding-left: 19px;
  list-style: none;
}

.md-ul li {
  position: relative;
  margin-bottom: 5px;
  color: var(--text-1);
}

.md-ul li::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.md-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.md-table {
  font-size: 12.5px;
  min-width: 100%;
}

.md-table th {
  background: var(--bg-2);
  padding: 9px 13px;
  text-align: left;
  font-weight: 650;
  color: var(--text-1);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
}

.md-table td {
  padding: 8px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--text-0);
}

.md-table tr:last-child td {
  border-bottom: none;
}

.md-table tbody tr:hover {
  background: var(--accent-soft);
}

.msg-text strong {
  color: var(--accent);
  font-weight: 700;
}

.msg-text code {
  background: var(--bg-2);
  padding: 1.5px 6px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--teal);
  font-family: 'SF Mono', Consolas, monospace;
  border: 1px solid var(--line);
}

.msg-error {
  margin-top: 11px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  border: 1px solid #f0c4c1;
  color: var(--red);
  font-size: 12.5px;
}

.error-hint {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--text-2);
}

/* ============ 打字指示 ============ */

.typing-row {
  display: flex;
  gap: 5px;
  padding: 5px 0 5px 46px;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: bounce 1.3s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.18s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.28;
  }
  30% {
    transform: translateY(-6px);
    opacity: 0.85;
  }
}

/* ============ 输入区 ============ */

.composer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
          backdrop-filter: blur(16px) saturate(180%);
  padding: 13px 28px 15px;
  box-shadow: 0 -2px 16px rgba(80, 60, 40, 0.05);
}

.quick-row {
  max-width: 920px;
  margin: 0 auto 11px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.quick-row::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  padding: 6.5px 14px;
  border-radius: 100px;
  background: var(--bg-1);
  color: var(--text-1);
  border: 1px solid var(--line);
  transition: all 0.17s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.quick-chip:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(217, 74, 43, 0.12);
}

.quick-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.input-row {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.input {
  flex: 1 1;
  min-height: 46px;
  max-height: 150px;
  padding: 12px 17px;
  border-radius: var(--radius);
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  font-size: 13.5px;
  line-height: 1.6;
  resize: none;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(217, 74, 43, 0.1);
}

.input::placeholder {
  color: var(--text-2);
}

.input:disabled {
  opacity: 0.6;
  background: var(--bg-2);
}

.send-btn {
  flex-shrink: 0;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.3px;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(217, 74, 43, 0.26);
}

.send-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 74, 43, 0.34);
}

.send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.composer-hint {
  max-width: 920px;
  margin: 9px auto 0;
  font-size: 11px;
  color: var(--text-2);
  text-align: center;
}

/* ============ 手气不错 ============ */

.lucky-wrap {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.lucky-btn {
  flex-shrink: 0;
  height: 46px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold-soft), #fdf3e2);
  color: var(--gold);
  border: 1px solid #e8d49a;
  transition: all 0.17s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lucky-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(184, 134, 43, 0.2);
  border-color: var(--gold);
}

/* 面板打开时的按钮激活态 */
.lucky-btn-active {
  background: linear-gradient(135deg, #fdf0dc, var(--gold-soft));
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 43, 0.12);
}

.lucky-caret {
  font-size: 9px;
  opacity: 0.7;
  margin-left: 1px;
}

.lucky-icon {
  font-size: 13px;
  line-height: 1;
}

.lucky-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 15px 17px;
  box-shadow: var(--shadow-lg);
  z-index: 40;
  animation: luckyIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes luckyIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.lucky-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
}

.lucky-actions {
  display: flex;
  gap: 6px;
}

.lucky-act {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-2);
  color: var(--text-1);
  border: 1px solid var(--line);
  transition: all 0.15s ease;
}

.lucky-act:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
}

/* 关闭按钮 */
.lucky-act-close {
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  color: var(--text-2);
}

.lucky-act-close:hover {
  background: var(--red-soft);
  color: var(--red);
  border-color: #f0c4c1;
}

.lucky-balls {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lucky-note {
  margin-top: 11px;
  font-size: 10.5px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.lucky-warn {
  margin-left: auto;
  font-size: 10px;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 1.5px 7px;
  border-radius: 100px;
  border: 1px solid #e8d49a;
}

@media (max-width: 480px) {
  .lucky-panel {
    width: calc(100vw - 44px);
    right: -8px;
  }
}

/* ============ 号码球 ============ */

.ball-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  vertical-align: middle;
}

.ball {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ball-sm {
  width: 27px;
  height: 27px;
  font-size: 11px;
}

.ball-md {
  width: 34px;
  height: 34px;
  font-size: 12.5px;
}

.ball-default {
  background: var(--bg-1);
  color: var(--text-1);
  border: 1px solid var(--line-strong);
}

.ball-hot {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}

.ball-cold {
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid #b8ddd7;
}

.ball-warm {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid #e8d49a;
}

.ball-pick {
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
  color: #fff;
  border: 1px solid rgba(217, 74, 43, 0.3);
  box-shadow: 0 3px 10px rgba(217, 74, 43, 0.22);
}

.ball-pick:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 5px 14px rgba(217, 74, 43, 0.3);
}

.ball-empty {
  color: var(--text-2);
  font-size: 12px;
}

/* ============ 工具结果容器 ============ */

.tool-results {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 13px;
}

.tool-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.tool-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.head-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-2);
}

.tool-summary {
  font-size: 12.5px;
  color: var(--text-1);
  white-space: pre-wrap;
  font-family: 'SF Mono', Consolas, monospace;
  line-height: 1.8;
  background: var(--bg-2);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

/* ============ 预测卡片 ============ */

.pred-card {
  background: linear-gradient(155deg, var(--accent-soft), #fffdfb 45%, var(--bg-1));
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(217, 74, 43, 0.09);
}

.pred-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
}

.pred-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 12px;
}

.pred-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pred-issue {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.pred-date {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
}

.conf-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}

.conf-high {
  background: var(--green-soft);
  border-color: #bfe0c6;
}
.conf-high .conf-value { color: var(--green); }

.conf-mid {
  background: var(--gold-soft);
  border-color: #e8d49a;
}
.conf-mid .conf-value { color: var(--gold); }

.conf-low {
  background: var(--bg-2);
  border-color: var(--line-strong);
}
.conf-low .conf-value { color: var(--text-1); }

.conf-value {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.conf-label {
  font-size: 10px;
  color: var(--text-2);
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.pred-numbers {
  margin-bottom: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--accent-line);
  border-bottom: 1px solid var(--accent-line);
}

.pred-strategy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-1);
}

.strategy-icon {
  color: var(--accent);
  font-size: 11px;
}

.pred-details {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--accent-line);
}

.pred-details summary {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: color 0.16s;
}

.pred-details summary:hover {
  color: var(--accent);
}

.score-grid {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.score-row {
  display: grid;
  grid-template-columns: 29px 1fr 44px;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
}

.score-num {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-1);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.score-bar-wrap {
  height: 7px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-val {
  font-size: 11px;
  color: var(--text-2);
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* ============ 总览卡片 ============ */

.overview-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.ov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 10px;
  flex-wrap: wrap;
}

.ov-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--violet);
  background: var(--violet-soft);
  border: 1px solid #d8cef2;
  padding: 4px 11px;
  border-radius: 100px;
}

.ov-issue {
  font-size: 11.5px;
  color: var(--text-2);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.ov-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 620px) {
  .ov-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kpi {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: all 0.18s ease;
}

.kpi:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.kpi-label {
  font-size: 10.5px;
  color: var(--text-2);
  letter-spacing: 0.4px;
  margin-bottom: 5px;
}

.kpi-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-0);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.kpi-sep {
  color: var(--text-2);
  font-weight: 400;
  margin: 0 1px;
}

.kpi-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-2);
  margin-left: 5px;
}

.ov-block {
  margin-bottom: 13px;
}

.ov-block-title {
  margin-bottom: 8px;
}

.tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 100px;
}

.tag-hot {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.tag-cold {
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid #b8ddd7;
}

.tag-warm {
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid #e8d49a;
}

.ov-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 13px;
  gap: 13px;
  margin-top: 15px;
}

@media (max-width: 740px) {
  .ov-charts {
    grid-template-columns: 1fr;
  }
}

/* ============ 图表 ============ */

.chart-box {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 9px 5px;
  box-shadow: var(--shadow-sm);
}

.chart-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 9px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-2);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 7px;
}

.dot-hot { background: var(--accent); }
.dot-cold { background: var(--teal); }

/* ============ 相同号码 ============ */

.same-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.same-item {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 9px 12px;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transition: all 0.16s ease;
}

.same-item:hover {
  background: var(--bg-1);
  border-color: var(--line-strong);
}

.same-issue {
  font-size: 11.5px;
  color: var(--text-1);
  font-weight: 500;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.same-vs {
  font-size: 10px;
  color: var(--text-2);
}

.same-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

/* ============ 爬取数据表 ============ */

.scrape-empty {
  font-size: 12px;
  color: var(--text-2);
  padding: 10px 0;
  text-align: center;
}

.scrape-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.scrape-row {
  display: grid;
  grid-template-columns: 76px 88px 1fr 46px;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  background: var(--bg-1);
  font-size: 11.5px;
}

.scrape-row-head {
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.scrape-issue {
  color: var(--text-0);
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.scrape-date {
  color: var(--text-2);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.scrape-nums {
  overflow: hidden;
}

.scrape-count {
  text-align: right;
  color: var(--gold);
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* ============ 响应式 ============ */

@media (max-width: 640px) {
  .topbar {
    padding: 11px 15px;
  }
  .brand-sub {
    display: none;
  }
  .data-status {
    display: none;
  }
  .chat-inner {
    padding: 20px 15px 30px;
  }
  .composer {
    padding: 11px 15px 13px;
  }
  .body-user {
    max-width: 86%;
  }
  .scrape-row {
    grid-template-columns: 68px 1fr 38px;
  }
  .scrape-date {
    display: none;
  }

  /* 窄屏：手气不错按钮收成图标，避免挤压输入框 */
  .lucky-btn {
    padding: 0 14px;
    font-size: 0;
    gap: 0;
  }
  .lucky-btn .lucky-icon {
    font-size: 17px;
  }

  .send-btn {
    padding: 0 18px;
    font-size: 12.5px;
  }

  .input {
    padding: 12px 14px;
    font-size: 13px;
  }

  .lucky-panel {
    width: calc(100vw - 30px);
    right: 0;
  }
}

