/* ============================================================
 * AI校园易 · 校园二手交易平台
 * 视觉主题：洛天依配色
 *   天依蓝 #66CCFF（标志色） / 青玉绿 #4FD1B1（瞳孔色系）
 *   冰羽白 #F2F9FF（发色系） / 深海墨 #0B2239（舞台暗色）
 * ============================================================ */

:root {
  /* 主题色 */
  --ty-blue:      #66ccff;
  --ty-blue-deep: #2fa8e8;
  --ty-cyan:      #7fe6f5;
  --ty-green:     #4fd1b1;
  --ty-green-deep:#2bb894;
  --ty-violet:    #8f9dff;

  /* 中性色 */
  --ink:    #0b2239;
  --ink-2:  #16304d;
  --ink-3:  #52718f;
  --ink-4:  #8aa4bd;
  --paper:  #f2f9ff;
  --white:  #ffffff;
  --line:   rgba(102, 204, 255, 0.28);
  --line-2: rgba(11, 34, 57, 0.08);

  /* 渐变 */
  --grad:      linear-gradient(135deg, #66ccff 0%, #4fd1b1 100%);
  --grad-soft: linear-gradient(135deg, #eaf7ff 0%, #e6fbf6 100%);
  --grad-deep: linear-gradient(150deg, #0b2239 0%, #143b5c 55%, #1d6b8a 100%);

  /* 阴影 */
  --shadow-sm: 0 4px 14px rgba(24, 82, 122, 0.08);
  --shadow:    0 12px 32px rgba(24, 82, 122, 0.12);
  --shadow-lg: 0 22px 50px rgba(24, 82, 122, 0.18);
  --glow:      0 8px 24px rgba(102, 204, 255, 0.42);

  --radius:    18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
               "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fcff 0%, #eef8ff 40%, #f4fffb 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[v-cloak] { display: none; }

a { color: inherit; text-decoration: none; }

/* 背景光晕（天依蓝舞台光） */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-aurora::before,
.bg-aurora::after {
  content: "";
  position: absolute;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg-aurora::before {
  background: radial-gradient(circle, rgba(102, 204, 255, 0.55), transparent 68%);
  top: -14vw;
  left: -10vw;
  animation: floatA 18s ease-in-out infinite;
}
.bg-aurora::after {
  background: radial-gradient(circle, rgba(79, 209, 177, 0.42), transparent 68%);
  bottom: -18vw;
  right: -12vw;
  animation: floatB 22s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(4vw, 3vw) scale(1.12); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-4vw, -3vw) scale(1.1); }
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--white);
  background: var(--grad);
  box-shadow: var(--glow);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(79, 209, 177, 0.45); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.86);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--ty-blue); color: var(--ty-blue-deep); }

.btn-lg   { padding: 14px 30px; font-size: 15px; }
.btn-sm   { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ===================== 顶部导航 ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.logo-note {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--white);
  font-size: 16px;
  background: var(--grad);
  box-shadow: var(--glow);
}
.logo-text { font-size: 19px; letter-spacing: 0.5px; }
.logo-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--ty-green-deep);
  background: rgba(79, 209, 177, 0.14);
  padding: 2px 8px;
  border-radius: 999px;
}

.nav-links { display: flex; gap: 6px; margin-right: auto; }
.nav-links a {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  transition: all 0.18s ease;
}
.nav-links a:hover { color: var(--ty-blue-deep); background: rgba(102, 204, 255, 0.12); }
.nav-links a.active { color: var(--white); background: var(--grad); box-shadow: var(--glow); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.uname { font-size: 14px; font-weight: 600; color: var(--ink-2); }

.bell { position: relative; font-size: 17px; }
.bell .dot {
  position: absolute;
  top: -6px; right: -10px;
  min-width: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff6b8a;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
  line-height: 17px;
  box-shadow: 0 4px 10px rgba(255, 107, 138, 0.5);
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  background: var(--grad);
  box-shadow: var(--shadow-sm);
  flex: none;
}
.avatar-lg { width: 62px; height: 62px; font-size: 24px; }

/* ===================== 首页 Hero ===================== */
.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 34px;
  align-items: center;
  margin: 34px 0 30px;
  padding: 42px;
  border-radius: 26px;
  background: var(--grad-deep);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  right: -150px; top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 204, 255, 0.5), transparent 66%);
}
.hero-main { position: relative; z-index: 1; }
.hero-kicker {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ty-cyan);
}
.hero h1 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.25;
  color: var(--white);
  letter-spacing: 1px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  margin: 0 0 26px;
  max-width: 520px;
  font-size: 14.5px;
  color: rgba(233, 246, 255, 0.82);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.32); color: #eaf7ff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; border-color: var(--ty-cyan); }

.hero-stats { display: flex; gap: 34px; margin-top: 32px; }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 26px; color: var(--ty-cyan); line-height: 1.2; }
.stat span { font-size: 12.5px; color: rgba(233, 246, 255, 0.6); }

.hero-wave { position: relative; z-index: 1; }
.wave-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 120px;
  padding: 0 6px;
}
.wave-bars span {
  width: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ty-cyan), var(--ty-green));
  opacity: 0.85;
  animation: wave 1.5s ease-in-out infinite alternate;
}
@keyframes wave {
  from { transform: scaleY(0.42); opacity: 0.5; }
  to   { transform: scaleY(1.06); opacity: 1; }
}
.wave-caption {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: rgba(233, 246, 255, 0.62);
}

/* ===================== 搜索 / 筛选 ===================== */
.toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.search-box { position: relative; flex: 1; min-width: 260px; }
.search-box input {
  width: 100%;
  padding: 14px 46px 14px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search-box input:focus { border-color: var(--ty-blue); box-shadow: var(--glow); }
.search-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 15px; }

.filters { display: flex; align-items: center; gap: 12px; }
.filters select {
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  outline: none;
  cursor: pointer;
}

.sort-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.sort-tabs button {
  padding: 7px 15px;
  border: none;
  border-radius: 999px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 600;
  color: var(--ink-3);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.sort-tabs button.on { color: var(--white); background: var(--grad); }

.category-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.category-chips button {
  padding: 9px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: all 0.18s ease;
}
.category-chips button:hover { border-color: var(--ty-blue); color: var(--ty-blue-deep); transform: translateY(-2px); }
.category-chips button.on { color: var(--white); background: var(--grad); border-color: transparent; box-shadow: var(--glow); }

/* ===================== 商品卡片 ===================== */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 22px;
}
.goods-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.goods-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ty-blue);
}
.goods-card.static:hover { transform: none; }

.card-media {
  position: relative;
  height: 176px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-emoji { font-size: 52px; opacity: 0.9; }
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hue-1 { background: linear-gradient(140deg, #d9f1ff, #c6e9ff); }
.hue-2 { background: linear-gradient(140deg, #d5f7eee0, #c2f0e3); }
.hue-3 { background: linear-gradient(140deg, #e2ecff, #d0e0ff); }
.hue-4 { background: linear-gradient(140deg, #fdf0d9, #fbe3bd); }
.hue-5 { background: linear-gradient(140deg, #ffe6ee, #ffd6e4); }
.hue-0 { background: linear-gradient(140deg, #e6fbff, #d3f4ff); }

.tag-condition, .tag-level {
  position: absolute;
  top: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--white);
  background: rgba(11, 34, 57, 0.62);
  backdrop-filter: blur(4px);
}
.tag-condition { left: 12px; }
.tag-level { right: 12px; }
.lv-good { background: rgba(43, 184, 148, 0.94) !important; }
.lv-fair { background: rgba(47, 168, 232, 0.94) !important; }
.lv-high { background: rgba(255, 122, 89, 0.94) !important; }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 45px;
}
.card-meta { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.floor-price-line { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.floor-price-line b { color: var(--ty-blue-deep); }
.floor-icon { font-size: 12px; }

.card-price-row { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.price { font-size: 21px; font-weight: 800; color: var(--ty-blue-deep); }
.ai-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ty-green-deep);
  background: rgba(79, 209, 177, 0.15);
}
.card-foot {
  margin: 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-4);
}
.card-actions { display: flex; gap: 8px; }

.load-more { display: flex; justify-content: center; margin: 34px 0 10px; }

/* ===================== 商品详情 ===================== */
.page-detail { padding-top: 26px; }
.back-link { display: inline-block; margin-bottom: 18px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.back-link:hover { color: var(--ty-blue-deep); }

/* ===================== 他人主页 ===================== */
.page-user { padding-top: 26px; }
.user-hero {
  display: flex; align-items: center; gap: 18px;
  padding: 24px 26px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(61,142,255,.10), rgba(61,142,255,.02));
  border: 1px solid var(--line);
}
.uh-main h2 { margin: 0 0 6px; font-size: 21px; }
.profile-bio { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }
.seller-link, .seller-row.clickable { cursor: pointer; }
.seller-link:hover { color: var(--ty-blue-deep); }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
  padding: 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.detail-media { display: flex; flex-direction: column; gap: 14px; }
.media-main {
  position: relative;
  height: 340px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.media-emoji { font-size: 96px; opacity: 0.85; }
.media-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.media-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.media-thumbs button {
  width: 66px; height: 66px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: var(--grad-soft);
  transition: border-color 0.18s ease;
}
.media-thumbs button.on { border-color: var(--ty-blue); }
.media-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.media-tip { margin: 0; font-size: 12.5px; color: var(--ink-4); }
.sale-0 { color: var(--ty-green-deep); font-weight: 700; }
.sale-1 { color: var(--ink-4); font-weight: 700; }
.sale-2 { color: #ff7a59; font-weight: 700; }

.detail-info h1 { margin: 0 0 10px; font-size: 25px; line-height: 1.35; }
.meta-line { margin: 0 0 16px; font-size: 13px; color: var(--ink-3); }

.floor-price-block {
  margin: -6px 0 14px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f3f8ff 0%, #e9f7f2 100%);
  border: 1px dashed #a6cfff;
  border-radius: 10px;
  font-size: 13px;
  color: #345;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.floor-price-block b { color: var(--ty-blue-deep); font-size: 16px; }
.floor-price-block .hint { color: #88a; font-size: 12px; }

.big-price {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 32px;
  font-weight: 800;
  color: var(--ty-blue-deep);
  margin-bottom: 14px;
}
.deviation {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
.desc { margin: 0 0 20px; font-size: 14px; color: var(--ink-2); }

.ai-report {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.ai-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.model-ver {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--white);
  background: var(--grad);
}
.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.report-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
}
.r-label { font-size: 11.5px; color: var(--ink-3); }
.r-value { font-size: 16px; color: var(--ink); }
.report-basis { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.report-loading { margin: 0; font-size: 13px; color: var(--ink-3); }

.seller-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 20px;
}
.seller-row b { font-size: 15px; }
.seller-row p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }

.action-row { display: flex; gap: 12px; flex-wrap: wrap; }

.order-box {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(102, 204, 255, 0.1);
  border: 1px dashed var(--ty-blue);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.order-box label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.order-box input {
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  outline: none;
}
.order-box input:focus { border-color: var(--ty-blue); }
.order-box-actions { display: flex; gap: 10px; }

/* ===================== 留言区 ===================== */
.comment-section {
  margin: 30px 0 40px;
  padding: 28px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.comment-section h2 { margin: 0 0 20px; font-size: 18px; }
.comment-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.comment-item b { font-size: 14px; }
.comment-item p { margin: 4px 0; font-size: 14px; color: var(--ink-2); }
.c-time { font-size: 11.5px; color: var(--ink-4); }
.comment-input { display: flex; gap: 12px; margin-top: 20px; }
.comment-input input {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  outline: none;
}
.comment-input input:focus { border-color: var(--ty-blue); box-shadow: var(--glow); }
.hint-line { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-4); }

/* ===================== 发布页 ===================== */
.page-title { margin: 30px 0 8px; font-size: 26px; }
.page-sub { margin: 0 0 24px; font-size: 13.5px; color: var(--ink-3); }

.publish-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 26px;
  align-items: start;
  margin-bottom: 50px;
}
.publish-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.publish-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.publish-form input,
.publish-form select,
.publish-form textarea {
  padding: 11px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  resize: vertical;
}
.publish-form input:focus,
.publish-form select:focus,
.publish-form textarea:focus { border-color: var(--ty-blue); box-shadow: var(--glow); }
.publish-form input[type="file"] { padding: 9px; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: 12px; font-weight: 500; color: var(--ink-4); }

.upload-preview { display: flex; gap: 10px; flex-wrap: wrap; }
.upload-item { position: relative; width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; }
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-del {
  position: absolute;
  top: 2px; right: 2px;
  width: 22px; height: 22px;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: rgba(11, 34, 57, 0.68);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.ai-live-panel {
  padding: 28px;
  border-radius: 24px;
  background: var(--grad-deep);
  box-shadow: var(--shadow-lg);
  color: #eaf7ff;
  position: sticky;
  top: 90px;
}
.ai-live-panel h3 { margin: 0 0 20px; font-size: 16px; color: #fff; }
.live-price { font-size: 44px; font-weight: 800; color: var(--ty-cyan); line-height: 1.1; }
.live-range { margin-top: 8px; font-size: 13px; color: rgba(233, 246, 255, 0.7); }
.live-vs { margin: 18px 0 0; font-size: 14px; color: rgba(233, 246, 255, 0.86); }
.live-vs b { padding: 3px 10px; border-radius: 999px; color: #fff; }
.live-basis { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.live-basis li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
  color: rgba(233, 246, 255, 0.72);
}
.live-basis b { color: var(--ty-cyan); }
.live-tip { margin: 18px 0 0; font-size: 12px; line-height: 1.7; color: rgba(233, 246, 255, 0.6); }
.live-wait { margin: 0; font-size: 13px; line-height: 1.8; color: rgba(233, 246, 255, 0.65); }

/* ---------- 发布页 AI 面板：Tab 切换 ---------- */
.ai-panel-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}
.ai-panel-tabs button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: rgba(233, 246, 255, 0.72);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.ai-panel-tabs button:hover { color: #fff; }
.ai-panel-tabs button.on {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 6px 16px rgba(4, 26, 48, 0.28);
}
.ai-panel-tabs .dot {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6b8a, #ff8f6b);
}

/* ---------- 发布页 AI 实况问答 ---------- */
.ai-chat-intro {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(233, 246, 255, 0.68);
}
.ai-chat-mode {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 11.5px;
  color: rgba(233, 246, 255, 0.55);
  word-break: break-all;
}
.ai-chat-mode .acm-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb347;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.2);
}
.ai-chat-mode.live .acm-dot {
  background: var(--ty-green);
  box-shadow: 0 0 0 3px rgba(79, 209, 177, 0.22);
}

.ai-chat-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 330px;
  padding: 14px;
  overflow-y: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ai-chat-scroll::-webkit-scrollbar { width: 6px; }
.ai-chat-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255, 255, 255, 0.22); }

.ai-bubble-row { display: flex; }
.ai-bubble-row.user { justify-content: flex-end; }
.ai-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  color: #eaf7ff;
  background: rgba(255, 255, 255, 0.14);
  border-top-left-radius: 5px;
}
.ai-bubble-row.user .ai-bubble {
  color: #06202f;
  font-weight: 500;
  background: linear-gradient(135deg, #9fe3ff, #7fe6d3);
  border-top-left-radius: 16px;
  border-top-right-radius: 5px;
}
.ai-typing { display: inline-flex; gap: 4px; padding: 3px 0; }
.ai-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(233, 246, 255, 0.75);
  animation: aiTyping 1.1s infinite ease-in-out;
}
.ai-typing i:nth-child(2) { animation-delay: 0.16s; }
.ai-typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes aiTyping {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-4px); }
}

.ai-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ai-quick-chips button {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(233, 246, 255, 0.88);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.ai-quick-chips button:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(127, 230, 245, 0.55);
}

.ai-chat-input {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-top: 12px;
}
.ai-chat-input textarea {
  flex: 1;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.ai-chat-input textarea::placeholder { color: rgba(233, 246, 255, 0.4); }
.ai-chat-input textarea:focus {
  border-color: rgba(127, 230, 245, 0.7);
  background: rgba(255, 255, 255, 0.14);
}
.ai-chat-hint { margin: 6px 0 0; font-size: 11px; color: rgba(233, 246, 255, 0.42); }

.ai-chat-result {
  margin-top: 16px;
  padding: 16px 17px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(127, 230, 245, 0.34);
  box-shadow: 0 12px 28px rgba(4, 26, 48, 0.22);
}
.acr-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.acr-top span { font-size: 12.5px; color: rgba(233, 246, 255, 0.7); }
.acr-top b { font-size: 26px; font-weight: 800; color: var(--ty-cyan); line-height: 1.1; }
.acr-line { margin: 8px 0 0; font-size: 12px; line-height: 1.8; color: rgba(233, 246, 255, 0.68); }
.acr-line b.down { color: var(--ty-green); font-weight: 700; }
.acr-line b.up   { color: #ff9d6b; font-weight: 700; }
.acr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.acr-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #cdf3ff;
  background: rgba(102, 204, 255, 0.18);
  border: 1px solid rgba(127, 230, 245, 0.28);
}
.acr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.acr-actions .btn { flex: none; }
.acr-actions .btn-ghost {
  color: #eaf7ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.acr-foot { margin: 12px 0 0; font-size: 11.5px; color: rgba(233, 246, 255, 0.45); }
.ai-jump-chat { width: 100%; margin-top: 20px; color: #eaf7ff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); }

/* ===================== 我的 ===================== */
.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 24px;
  background: var(--grad-deep);
  box-shadow: var(--shadow-lg);
  margin-bottom: 22px;
}
.profile-card h2 { margin: 0 0 4px; font-size: 20px; color: #fff; display: flex; align-items: center; gap: 10px; }
.profile-card p { margin: 0; font-size: 13px; color: rgba(233, 246, 255, 0.7); }
.profile-card .btn { margin-left: auto; }
.badge-student {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #04353a;
  background: linear-gradient(135deg, var(--ty-cyan), var(--ty-green));
}

.edit-box {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.edit-box label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.edit-box input {
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.edit-box input:focus { border-color: var(--ty-blue); }

.me-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.me-tabs button {
  padding: 9px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.18s ease;
}
.me-tabs button.on { color: var(--white); background: var(--grad); border-color: transparent; box-shadow: var(--glow); }

.order-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
}
.order-table th {
  padding: 13px 16px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: rgba(102, 204, 255, 0.13);
  white-space: nowrap;
}
.order-table td { padding: 13px 16px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.order-table tr:hover td { background: rgba(102, 204, 255, 0.05); }
.order-table a { color: var(--ty-blue-deep); font-weight: 600; }
.order-banner {
  padding: 12px 18px;
  border-radius: var(--radius);
  margin: 0 0 14px;
  font-size: 13.5px;
  border: 1px solid transparent;
}
.order-banner.warn { background: linear-gradient(135deg, rgba(255, 140, 66, 0.12), rgba(255, 179, 71, 0.18)); border-color: rgba(255, 140, 66, 0.35); color: #b85a14; }
.order-banner.info { background: linear-gradient(135deg, rgba(102, 204, 255, 0.12), rgba(79, 209, 177, 0.18)); border-color: rgba(102, 204, 255, 0.35); color: #1f6f8b; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--ink-3); }
.muted { color: var(--ink-4); }

.order-status { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.st-0 { color: #9a6b00; background: rgba(255, 205, 102, 0.28); }
.st-1 { color: var(--ty-green-deep); background: rgba(79, 209, 177, 0.2); }
.st-2 { color: var(--ink-3); background: rgba(138, 164, 189, 0.2); }
.order-actions { display: flex; gap: 8px; align-items: center; }

.section-title { margin: 34px 0 16px; font-size: 19px; }

/* ===================== 管理后台 ===================== */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card b {
  font-size: 30px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.stat-card span { font-size: 12.5px; color: var(--ink-3); }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.panel h3 { margin: 0 0 16px; font-size: 15.5px; }
.dist-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.dist-label { width: 96px; color: var(--ink-3); flex: none; }
.dist-bar { flex: 1; height: 12px; border-radius: 999px; background: rgba(102, 204, 255, 0.16); overflow: hidden; }
.dist-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.dist-count { width: 34px; text-align: right; font-weight: 700; color: var(--ty-blue-deep); }

/* ===================== 空状态 / 页脚 ===================== */
.empty-tip {
  padding: 46px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed var(--line);
  margin: 10px 0 30px;
}
.empty-tip.small { padding: 20px; margin: 14px 0 0; }
.empty-tip.big { padding: 80px 20px; margin: 40px 0; }
.empty-tip a { color: var(--ty-blue-deep); font-weight: 600; }

.footer {
  margin-top: 50px;
  padding: 28px 20px 34px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-4);
  border-top: 1px solid var(--line);
}
.footer span { display: block; margin-top: 6px; }

/* ===================== 弹窗 ===================== */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 34, 57, 0.45);
  backdrop-filter: blur(4px);
}
.modal {
  width: min(400px, 100%);
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal h3 { margin: 0 0 6px; font-size: 20px; }
.modal label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.modal input {
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.modal input:focus { border-color: var(--ty-blue); box-shadow: var(--glow); }
.modal-tip { margin: 0; font-size: 12px; color: var(--ink-4); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* ===================== 轻提示 ===================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-lg);
  max-width: min(560px, calc(100% - 40px));
  text-align: center;
}
.toast-success { background: linear-gradient(135deg, #2bb894, #4fd1b1); }
.toast-error   { background: linear-gradient(135deg, #ff6b8a, #ff8f6b); }
.toast-info    { background: linear-gradient(135deg, #2fa8e8, #66ccff); }

.toast-enter-active, .toast-leave-active { transition: opacity 0.28s ease, transform 0.28s ease; }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translate(-50%, 14px); }

/* ===================== 响应式 ===================== */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding: 32px; }
  .hero-wave { display: none; }
  .detail-layout, .publish-layout, .admin-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .ai-live-panel { position: static; }
}
@media (max-width: 720px) {
  .navbar-inner { gap: 12px; flex-wrap: wrap; height: auto; padding: 12px 0; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; }
  .logo-sub { display: none; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 22px; }
  .goods-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .detail-layout, .comment-section, .publish-form, .ai-live-panel { padding: 20px; }
  .order-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ===================== 私聊消息 ===================== */
.page-chat { padding-top: 20px; }
.chat-layout {
  display: grid;
  grid-template-columns: 306px 1fr;
  gap: 16px;
  min-height: 580px;
}
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  max-height: 640px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.chat-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 10px;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}
.chat-list-head .muted { font-weight: 500; font-size: 12px; color: var(--ink-4); }
.chat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 14px;
  transition: background 0.16s ease, transform 0.16s ease;
}
.chat-item:hover { background: rgba(102, 204, 255, 0.12); transform: translateX(2px); }
.chat-item.on {
  background: linear-gradient(135deg, rgba(102, 204, 255, 0.26), rgba(79, 209, 177, 0.16));
  box-shadow: inset 0 0 0 1px var(--line);
}
.ci-main { flex: 1; min-width: 0; }
.ci-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ci-top b { font-size: 13.5px; }
.ci-time { font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.ci-last {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ci-dot {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6b8a, #ff8f6b);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(255, 107, 138, 0.4);
}

.chat-window {
  display: flex;
  flex-direction: column;
  min-height: 580px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(102, 204, 255, 0.16), rgba(79, 209, 177, 0.08));
  border-bottom: 1px solid var(--line);
}
.ch-main { flex: 1; min-width: 0; }
.ch-main b { font-size: 15px; }
.ch-main p { margin: 2px 0 0; font-size: 12px; color: var(--ink-4); }
.chat-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 470px;
  padding: 20px 18px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 12% 8%, rgba(102, 204, 255, 0.10), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(79, 209, 177, 0.10), transparent 46%);
}
.chat-hint { margin: 26px 0; font-size: 13px; text-align: center; color: var(--ink-4); }
.bubble-row { display: flex; align-items: flex-end; gap: 8px; }
.bubble-row.me { flex-direction: row-reverse; }
.bubble {
  max-width: min(68%, 460px);
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow-sm);
}
.bubble-row.me .bubble {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  border-radius: 16px 16px 4px 16px;
  box-shadow: var(--glow);
}
.b-text { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.b-time { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-4); }
.bubble-row.me .b-time { color: rgba(255, 255, 255, 0.85); }

.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(242, 249, 255, 0.92);
  border-top: 1px solid var(--line);
}
.chat-input input {
  flex: 1;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.chat-input input:focus { border-color: var(--ty-blue); box-shadow: var(--glow); }
.chat-tip { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }
.chat-placeholder {
  flex: 1;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--ink-3);
  background:
    radial-gradient(circle at 20% 20%, rgba(102, 204, 255, 0.14), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(79, 209, 177, 0.12), transparent 48%);
}
.cp-mark { margin: 0; font-size: 46px; color: var(--ty-blue); text-shadow: 0 8px 20px rgba(102, 204, 255, 0.5); }
.chat-guest {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 70px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.chat-guest h3 { margin: 0; font-size: 19px; }
.chat-guest .muted { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.cg-mark { margin: 0; font-size: 44px; color: var(--ty-blue); }

.chat-entry { white-space: nowrap; }
.seller-main { flex: 1; min-width: 0; }
.uh-main { flex: 1; min-width: 0; }
.nav-msg { display: inline-flex; align-items: center; gap: 5px; }
.nav-msg .dot {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6b8a, #ff8f6b);
  border-radius: 999px;
}
.nav-me { display: inline-flex; align-items: center; gap: 5px; }
.nav-me .dot-warn {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff8c42, #ffb347);
  border-radius: 999px;
  cursor: help;
}
@media (max-width: 1000px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-list { max-height: 250px; }
  .chat-scroll { max-height: 360px; }
}

/* ============================================================
 * 洛天依视觉强化层
 *   星尘底纹 · 顶栏光带 · 标题音符徽标
 *   （放在文件末尾，对同优先级的旧规则生效）
 * ============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(102, 204, 255, 0.30) 1.2px, transparent 1.4px),
    radial-gradient(rgba(79, 209, 177, 0.22) 1px, transparent 1.2px);
  background-size: 44px 44px, 76px 76px;
  background-position: 0 0, 22px 28px;
}

.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ty-blue), var(--ty-green), transparent);
  opacity: 0.85;
}

.section-title { display: flex; align-items: center; gap: 9px; }
.section-title::before {
  content: "♪";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  color: #fff;
  background: var(--grad);
  border-radius: 9px;
  box-shadow: var(--glow);
}

.page-title { display: flex; align-items: center; gap: 10px; }
.page-title::before {
  content: "";
  width: 5px;
  height: 24px;
  background: var(--grad);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(102, 204, 255, 0.75);
}

/* 实心按钮：更饱和的天依蓝 → 青玉绿渐变 */
.btn:not(.btn-ghost) {
  background: linear-gradient(135deg, #4fb6ff 0%, #66ccff 45%, #4fd1b1 100%);
  box-shadow: 0 8px 20px rgba(102, 204, 255, 0.38);
}
.btn:not(.btn-ghost):hover:not(:disabled) {
  box-shadow: 0 14px 32px rgba(102, 204, 255, 0.52);
}

/* 商品卡片：悬浮时泛起天依蓝光晕 */
.goods-card:hover {
  box-shadow: 0 20px 44px rgba(24, 82, 122, 0.16),
              0 0 0 1px rgba(102, 204, 255, 0.40),
              0 0 34px rgba(102, 204, 255, 0.30);
}

/* 头像：加一圈天依蓝光环 */
.avatar { box-shadow: 0 0 0 2px rgba(102, 204, 255, 0.30), var(--shadow-sm); }

/* ============================================================
 * 洛天依主题 UI 重设计：Hero 玻璃态 AI 卡片 + 漂浮音符 + 光球
 * ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(102, 204, 255, 0.22), transparent 40%),
    radial-gradient(circle at 82% 80%, rgba(79, 209, 177, 0.18), transparent 45%),
    linear-gradient(135deg, #0b2239 0%, #143b5c 45%, #1d6b8a 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.4px 1.4px at 8% 12%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 22% 38%, rgba(102,204,255,.55), transparent),
    radial-gradient(1.2px 1.2px at 72% 18%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 88% 62%, rgba(127,230,245,.5), transparent),
    radial-gradient(1.3px 1.3px at 55% 82%, rgba(79,209,177,.45), transparent);
  opacity: .75;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.orb-a { width: 320px; height: 320px; right: -80px; top: -120px; background: rgba(102, 204, 255, 0.45); animation: floatOrb 10s ease-in-out infinite alternate; }
.orb-b { width: 220px; height: 220px; left: -60px; bottom: -70px; background: rgba(79, 209, 177, 0.38); animation: floatOrb 14s ease-in-out infinite alternate-reverse; }
.orb-c { width: 140px; height: 140px; right: 34%; top: 60%; background: rgba(143, 157, 255, 0.28); animation: floatOrb 18s ease-in-out infinite alternate; }
@keyframes floatOrb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -24px) scale(1.08); }
}

.hero-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  font-size: 22px;
  color: rgba(233, 246, 255, 0.18);
}
.hero-notes span { position: absolute; animation: floatNote 5s ease-in-out infinite; }
.hero-notes span:nth-child(1) { left: 8%; top: 16%; animation-delay: 0s; }
.hero-notes span:nth-child(2) { left: 24%; top: 74%; animation-delay: 1.2s; font-size: 16px; }
.hero-notes span:nth-child(3) { left: 62%; top: 12%; animation-delay: 2.4s; font-size: 18px; }
.hero-notes span:nth-child(4) { left: 78%; top: 56%; animation-delay: 3.1s; }
.hero-notes span:nth-child(5) { left: 44%; top: 84%; animation-delay: 4.3s; font-size: 15px; }
@keyframes floatNote {
  0%, 100% { transform: translateY(0) rotate(-6deg); opacity: .15; }
  50% { transform: translateY(-16px) rotate(6deg); opacity: .35; }
}

.hero-glass {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 44px rgba(11, 34, 57, 0.28), inset 0 0 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
}
.hg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hg-icon { font-size: 20px; }
.hg-title { flex: 1; margin: 0; font-size: 14.5px; font-weight: 700; color: #eaf7ff; }
.hg-model {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(102, 204, 255, 0.85);
  border-radius: 999px;
}
.hg-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 8px 0 12px;
}
.hg-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.hg-thumb {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 22px rgba(11, 34, 57, 0.22);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hg-thumb:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11, 34, 57, 0.30); }
.hg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  text-align: left;
}
.hg-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease;
}
.hg-name:hover { color: var(--ty-cyan); }
.hg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hg-tag {
  padding: 3px 10px;
  font-size: 11.5px;
  color: rgba(233, 246, 255, 0.88);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.hg-original {
  margin: 0;
  font-size: 12.5px;
  color: rgba(233, 246, 255, 0.55);
  text-decoration: line-through;
}
.hg-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 0;
}
.hg-price {
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #66ccff, #7fe6f5, #4fd1b1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 22px rgba(102, 204, 255, 0.35);
}
.hg-range { margin: 6px 0 0; font-size: 12.5px; color: rgba(233, 246, 255, 0.82); }
.hg-samples { margin: 8px 0 0; font-size: 12px; color: rgba(233, 246, 255, 0.55); }
.hg-status { margin: 0; font-size: 14px; color: rgba(233, 246, 255, 0.72); text-align: center; grid-column: 1 / -1; }
.hg-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; grid-column: 1 / -1; }
.hg-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ty-cyan);
  animation: dotPulse 1.2s ease-in-out infinite;
}
.hg-dots span:nth-child(2) { animation-delay: .2s; }
.hg-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotPulse {
  0%, 100% { opacity: .35; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 10px var(--ty-cyan); }
}
.hg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  color: rgba(233, 246, 255, 0.55);
}
.hg-foot code {
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--ty-cyan);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 5px;
}
@media (max-width: 1100px) {
  .hg-body { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .hg-item { justify-content: center; }
  .hg-info { text-align: center; }
  .hg-name { white-space: normal; }
  .hg-price-box { align-items: center; text-align: center; }
}

/* 音乐均衡器：从底部向上生长（修正原 transform-origin 居中导致上下同时伸缩的问题） */
.wave-bars { align-items: flex-end; height: 132px; }
.wave-bars span {
  width: 8px;
  transform-origin: bottom center;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(102,204,255,.98), rgba(79,209,177,.9));
  box-shadow: 0 0 12px rgba(102,204,255,.5);
  animation: wave 1.4s ease-in-out infinite alternate;
}
@keyframes wave {
  0%   { transform: scaleY(0.30); opacity: .45; filter: brightness(.9); }
  60%  { transform: scaleY(0.92); opacity: .95; }
  100% { transform: scaleY(1);    opacity: 1;   filter: brightness(1.15); }
}

/* 更鲜明的天依蓝按钮 */
.btn:not(.btn-ghost) {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4fb6ff 0%, #66ccff 45%, #4fd1b1 100%);
  box-shadow: 0 8px 20px rgba(102, 204, 255, 0.38);
}
.btn:not(.btn-ghost)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.btn:not(.btn-ghost):hover:not(:disabled) {
  box-shadow: 0 14px 32px rgba(102, 204, 255, 0.55);
}

/* 卡片： stronger Luo Tianyi glow */
.goods-card:hover {
  box-shadow: 0 20px 44px rgba(24, 82, 122, 0.16),
              0 0 0 1px rgba(102, 204, 255, 0.42),
              0 0 38px rgba(102, 204, 255, 0.32);
}

/* 全局标题强化 */
.page-title::before { box-shadow: 0 0 16px rgba(102, 204, 255, 0.85); }
.section-title::before { animation: noteGlow 2.2s ease-in-out infinite alternate; }
@keyframes noteGlow {
  from { box-shadow: 0 0 0 rgba(102,204,255,0); }
  to   { box-shadow: 0 0 18px rgba(102,204,255,.75); }
}

/* ============================================================
 * 「我的」收支统计卡片
 * ============================================================ */
.income-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.income-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.income-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  border-radius: 999px;
}
.income-card.sell::before { background: linear-gradient(180deg, var(--ty-green), var(--ty-cyan)); }
.income-card.buy::before  { background: linear-gradient(180deg, #ffb347, #ff7a59); }
.income-card.net::before  { background: var(--grad); }
.ic-label { font-size: 12.5px; color: var(--ink-3); }
.ic-value {
  font-size: 28px;
  line-height: 1.15;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ic-value.neg {
  background: linear-gradient(135deg, #ff8a65, #ff5b5b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ic-sub { font-size: 12px; color: var(--ink-4); }

/* ============================================================
 * 管理后台 · 商品管理筛选与状态标签
 * ============================================================ */
.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-filter button {
  padding: 7px 16px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-3);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
}
.admin-filter button:hover { color: var(--ty-blue-deep); border-color: var(--ty-cyan); }
.admin-filter button.on {
  color: var(--white);
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--glow);
}
.audit-tag {
  margin-left: 6px;
  padding: 2px 9px;
  font-size: 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .05);
  color: var(--ink-3);
}
.audit-tag.au-1 { color: var(--ty-green-deep); background: rgba(79, 209, 177, .16); }
.audit-tag.au-2 { color: #d9534f; background: rgba(255, 122, 89, .16); }
.audit-tag.au-0 { color: #b8860b; background: rgba(255, 193, 7, .18); }

@media (max-width: 900px) {
  .income-cards { grid-template-columns: 1fr; }
}


/* ============================================================
 * AI 需求推荐（首页「AI 帮你挑」）+ AI 客服智能回复（个人中心 / 私聊）
 * ============================================================ */

/* ---------- 首页：AI 帮你挑 ---------- */
.reco-panel { margin: 22px 0 6px; }
.reco-box {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(102, 204, 255, .45);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.reco-icon {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  font-size: 20px; border-radius: 12px;
  background: var(--grad); box-shadow: var(--glow);
}
.reco-box input {
  flex: 1; min-width: 0; padding: 10px 4px; font-size: 14px;
  border: none; outline: none; background: transparent; color: var(--ink-1);
}
.reco-box input::placeholder { color: var(--ink-4); }
.reco-result {
  margin-top: 12px; padding: 16px 18px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(79, 209, 177, .45);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  animation: recoIn .3s ease both;
}
@keyframes recoIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reco-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.reco-understood { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-1); line-height: 1.6; }
.reco-src {
  display: inline-block; margin-left: 8px; padding: 2px 10px;
  font-size: 11px; font-weight: 500; border-radius: 999px;
  background: rgba(0, 0, 0, .06); color: var(--ink-3); vertical-align: 1px;
}
.reco-src.live { background: rgba(79, 209, 177, .18); color: var(--ty-green-deep); }
.reco-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.reco-card .reco-reason {
  margin: 6px 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.reco-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.reco-tags span {
  padding: 2px 9px; font-size: 11px; border-radius: 999px;
  background: rgba(102, 204, 255, .14); color: #1a7fb8;
}
@media (max-width: 640px) {
  .reco-box { flex-wrap: wrap; }
  .reco-box input { flex: 1 1 100%; order: -1; }
}

/* ---------- 首页：AI 识图找同款 ---------- */
.vision-pick { cursor: pointer; white-space: nowrap; }
.vision-pick.busy { opacity: .6; cursor: progress; }
.vision-result { border-color: rgba(102, 204, 255, .5); }
.vision-meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px; padding: 10px 12px;
  background: rgba(102, 204, 255, .08);
  border-radius: 14px; flex-wrap: wrap;
}
.vision-thumb {
  width: 76px; height: 76px; flex: none; object-fit: cover;
  border-radius: 12px; border: 1px solid rgba(102, 204, 255, .5); background: #fff;
}
.vision-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vision-chip {
  padding: 4px 12px; font-size: 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--ink-2);
  border: 1px solid rgba(102, 204, 255, .35);
}
.vision-chip.strong {
  background: var(--grad); color: #fff; font-weight: 600; border-color: transparent;
  box-shadow: var(--glow);
}
.vision-chip.muted { background: transparent; color: var(--ink-4); border-style: dashed; }

/* ---------- 我的页：AI 客服智能回复开关 ---------- */
.ai-reply-card {
  display: flex; align-items: center; gap: 18px;
  margin: 16px 0; padding: 18px 20px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(102, 204, 255, .4);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s;
}
.ai-reply-card.on { border-color: rgba(79, 209, 177, .7); box-shadow: var(--glow); }
.airc-main { flex: 1; min-width: 0; }
.airc-main h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink-1); }
.airc-main p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-3); }
.ai-switch {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; cursor: pointer; font-size: 13px; color: var(--ink-3);
  background: rgba(0, 0, 0, .05); border: none; border-radius: 999px;
  transition: background .25s, color .25s;
}
.ai-switch i {
  width: 38px; height: 20px; border-radius: 999px; position: relative;
  background: rgba(0, 0, 0, .18); transition: background .25s;
}
.ai-switch i::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .25s;
}
.ai-switch.on { background: rgba(79, 209, 177, .16); color: var(--ty-green-deep); }
.ai-switch.on i { background: var(--ty-green, #4FD1B1); }
.ai-switch.on i::after { transform: translateX(18px); }
@media (max-width: 640px) { .ai-reply-card { flex-direction: column; align-items: stretch; } }

/* ---------- 私聊：AI 客服代答消息 ---------- */
.bubble.ai { border-color: rgba(102, 204, 255, .55); background: rgba(102, 204, 255, .10); }
.b-ai {
  display: inline-block; margin-bottom: 6px; padding: 2px 9px;
  font-size: 11px; font-weight: 600; border-radius: 999px;
  background: var(--grad); color: #fff; letter-spacing: .5px;
}
.ch-ai { color: #1a7fb8; font-size: 12px; }
