/* ============== 闪心租 · 复刻样式 ============== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-base: #0a0612;
  --bg-card: rgba(28, 20, 56, 0.55);
  --bg-card-solid: #1c1438;
  --line: rgba(124, 58, 237, 0.18);
  --line-strong: rgba(124, 58, 237, 0.4);
  --text: #f5f3ff;
  --text-sub: #b8b3d6;
  --text-dim: #7a749b;
  --primary: #7c3aed;
  --primary-2: #06b6d4;
  --primary-3: #3b82f6;
  --warn: #fbbf24;
  --danger: #f87171;
  --ok: #34d399;
  --grad: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.18) 0%, rgba(6, 182, 212, 0.18) 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 80px;
  background-image:
    radial-gradient(circle at 20% -10%, rgba(124, 58, 237, 0.25), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.18), transparent 40%);
  background-attachment: fixed;
}

/* ========== 顶部导航 ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 6, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 720px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad);
  padding: 6px;
}

.logo-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}

.topbar-action {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--grad-soft);
}
.topbar-back {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

.topbar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 600;
}

.topbar-back .topbar-action {
  margin-left: auto;
}

/* ========== Hero Banner ========== */
.hero {
  position: relative;
  padding: 28px 16px 36px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0.15;
  filter: blur(50px);
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid var(--line-strong);
  color: #d8b4fe;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 4px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 22px;
}

.hero-stats {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 14px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.hero-stat {
  flex: 1;
  text-align: center;
}

.hero-stat-num {
  font-size: 22px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

/* ========== 特色卡片 ========== */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 16px;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.feature-icon-blue {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.feature-icon-purple {
  background: linear-gradient(135deg, #7c3aed, #c026d3);
}

.feature-icon-cyan {
  background: linear-gradient(135deg, #06b6d4, #10b981);
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.feature-desc-title {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 12px;
  color: var(--text-sub);
}

/* ========== 通用 section ========== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 16px 12px;
  max-width: 720px;
  margin: 0 auto;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  position: relative;
  padding-left: 12px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--grad);
}

.section-more {
  font-size: 13px;
  color: var(--text-sub);
  text-decoration: none;
}

/* ========== 行情表 ========== */
.market {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

.market-tip {
  font-size: 12px;
  color: var(--text-sub);
  padding: 10px 12px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px dashed var(--line-strong);
}

.market-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.market-table-full .market-row {
  grid-template-columns: 1.2fr 0.9fr 2.4fr 0.7fr;
}

.market-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 2fr 0.6fr;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.market-row:last-child {
  border-bottom: none;
}

.market-head {
  background: rgba(124, 58, 237, 0.12);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
}

.market-cell {
  color: var(--text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-name {
  color: var(--text);
  font-weight: 600;
}

.rate-tag {
  display: inline-block;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.merchant-desc {
  color: var(--text-sub);
  font-size: 11px;
}

.date-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

.market-page {
  padding: 16px;
}

.market-page .market-tip {
  margin-bottom: 14px;
}

/* ========== 联系方式卡片（重点） ========== */
.contact {
  padding: 0 16px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0.08;
  pointer-events: none;
}

.contact-head {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 8px var(--primary-2);
}

.contact-head-sub {
  font-size: 12px;
  color: var(--text-sub);
  padding-left: 16px;
}

.contact-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.contact-label {
  font-size: 13px;
  color: var(--text-sub);
  flex-shrink: 0;
}

.contact-value {
  font-size: 14px;
  color: var(--text);
  text-align: right;
  flex: 1;
  margin-left: 10px;
  word-break: break-all;
}

/* 加粗显示（客户要求"号显示出粗中"） */
.contact-value-bold {
  font-size: 16px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.25);
}

.contact-item-qr::after {
  content: "📷";
  margin-left: 8px;
  font-size: 14px;
  opacity: 0.7;
}

.qr-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.qr-box {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.qr-img {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.qr-cap {
  margin-top: 8px;
  font-size: 11px;
  color: #555;
  font-weight: 600;
}

.warn-box {
  position: relative;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
}

.warn-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #fde68a;
  line-height: 1.6;
}

.warn-item + .warn-item {
  margin-top: 6px;
}

.warn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--warn);
  color: #000;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========== 页脚 ========== */
/* 给底部 tabbar 留出空间（避免内容被遮挡） */
body {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* 上架入口按钮 */
.cta-listing { padding: 8px 16px 20px; }
.cta-listing-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(124,58,237,0.95), rgba(34,211,238,0.75));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(124,58,237,0.35);
  transition: transform .15s, box-shadow .15s;
}
.cta-listing-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124,58,237,0.5); }
.cta-listing-btn:active { transform: translateY(0); }

/* 中凸 tab（首页/上架页共用） */
.tabbar .tab-floating {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  color: rgba(255,255,255,0.85);
}
.tabbar .tab-floating-inner {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  display: flex; align-items: center; justify-content: center;
  margin-top: -28px;
  box-shadow: 0 6px 20px rgba(124,58,237,0.5);
}
.tabbar .tab-floating .tab-floating-label {
  font-size: 11px;
  margin-top: 4px;
  color: #fff;
}
.tabbar .tab-floating.active .tab-floating-label { color: #b388ff; }

.footer {
  padding: 24px 16px 100px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.footer-row {
  font-size: 12px;
  color: var(--text-sub);
}

.footer-sub {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 11px;
}

/* ========== 底部 tab ========== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  width: min(100%, 720px);
  transform: translateX(-50%);
  display: flex;
  background: rgba(10, 6, 18, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.28);
  z-index: 50;
}

.tab {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 0;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 11px;
  transition: color 0.2s;
}

.tab svg {
  width: 22px;
  height: 22px;
}

.tab.active {
  color: var(--primary);
  font-weight: 700;
}

.tab.active svg {
  color: var(--primary);
  filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.5));
}

.tab:not(.tab-floating).active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--grad);
}

.tab:not(.tab-floating) { position: relative; }

/* ========== 兼容小屏 ========== */
@media (max-width: 380px) {
  .hero-title {
    font-size: 30px;
    letter-spacing: 3px;
  }
  .contact-value-bold {
    font-size: 14px;
  }
  .market-row {
    grid-template-columns: 1.1fr 0.8fr 1.8fr 0.6fr;
    font-size: 11px;
  }
  .market-table-full .market-row {
    grid-template-columns: 1.1fr 0.8fr 2fr 0.6fr;
  }
}
