.coin-market-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.coin-market-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.coin-market-nav a.on,
.coin-market-nav a:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.coin-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
  background: #0f766e;
  color: #fff;
  vertical-align: middle;
  font-weight: 600;
}
.coin-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748b;
}
.coin-pager button,
.coin-pager a {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
}
.coin-pager button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.coin-quick a.on {
  border-color: #0f766e;
  color: #0f766e;
  background: #f0fdfa;
}
.coin-crumb {
  font-size: 13px;
  color: #718096;
  margin-bottom: 14px;
}
.coin-crumb a {
  color: #2b6cb0;
  text-decoration: none;
}
.coin-hero h1,
.coin-detail-title h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
}
.coin-hero p,
.coin-subname {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}
.coin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.coin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.coin-search,
.coin-search-box input {
  flex: 1;
  min-width: 200px;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
}
.coin-rank-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.coin-rank-links a,
.coin-quick a {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  background: #f8fafc;
}
.coin-rank-links a.on,
.coin-rank-links a:hover,
.coin-quick a:hover {
  border-color: #0f766e;
  color: #0f766e;
  background: #f0fdfa;
}
.coin-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px 16px;
}
.coin-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.coin-muted {
  color: #94a3b8;
  font-weight: 400;
  font-size: 13px;
}
.coin-mt {
  margin-top: 16px;
}
.coin-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.coin-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}
.coin-table-wrap {
  overflow-x: auto;
}
.coin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.coin-table th,
.coin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  white-space: nowrap;
}
.coin-table th {
  color: #64748b;
  font-weight: 600;
  background: #f8fafc;
}
.coin-table a {
  color: #0f172a;
  text-decoration: none;
}
.coin-table a:hover {
  color: #0f766e;
}
.coin-table .up,
.coin-pct.up,
.coin-chg.up {
  color: #16a34a;
}
.coin-table .down,
.coin-pct.down,
.coin-chg.down {
  color: #dc2626;
}
.coin-table-sm td,
.coin-table-sm th {
  padding: 8px 6px;
}
.coin-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #94a3b8;
}
.coin-alpha-group {
  margin-bottom: 14px;
}
.coin-alpha-group h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #0f766e;
}
.coin-alpha-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.coin-alpha-list a {
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  padding: 2px 0;
}
.coin-alpha-list a:hover {
  color: #0f766e;
  text-decoration: underline;
}

.coin-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.coin-fiat-switch,
.coin-intervals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.coin-fiat-switch button,
.coin-intervals button,
.coin-search-box button {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}
.coin-fiat-switch button.on,
.coin-intervals button.on {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.coin-price-block {
  margin: 12px 0 16px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 70%);
}
.coin-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.coin-price {
  font-size: 36px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}
.coin-pct {
  font-size: 18px;
  font-weight: 700;
}
.coin-chg {
  font-size: 14px;
}
.coin-price-cny {
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
}
.coin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.coin-stats div {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  padding: 10px 12px;
}
.coin-stats span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.coin-stats strong {
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
}
.coin-convert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.coin-convert-row input {
  width: 140px;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
}
.coin-convert-row label {
  font-size: 13px;
  color: #475569;
  min-width: 48px;
}
.coin-eq {
  color: #94a3b8;
}
.coin-chart {
  width: 100%;
  min-height: 320px;
}
.coin-chart-empty::after {
  content: attr(data-empty);
  display: block;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  padding: 120px 16px 0;
  pointer-events: none;
}
.coin-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.coin-chart-head h2 {
  margin: 0;
}
.coin-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.coin-search-box {
  display: flex;
  gap: 8px;
}
.coin-search-box button {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.coin-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.coin-trade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  background: #f59e0b;
  color: #111827 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  line-height: 1.2;
  white-space: nowrap;
}
.coin-trade-btn:hover {
  background: #d97706;
  color: #fff !important;
}
.coin-trade-btn-lg {
  margin-top: 12px;
  padding: 12px 28px;
  font-size: 16px;
  border-radius: 8px;
}
.coin-trade-tip {
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  color: #64748b;
  vertical-align: middle;
}
.coin-quick .coin-trade-btn {
  margin-right: 4px;
}

.coin-featured {
  margin-top: 16px;
}
.coin-featured h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.coin-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.coin-featured-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.coin-featured-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.coin-featured-card strong {
  font-size: 16px;
  color: #0f172a;
}
.coin-featured-price {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}
.coin-featured-pct {
  font-size: 14px;
  font-weight: 700;
}
.coin-featured-pct.up { color: #16a34a; }
.coin-featured-pct.down { color: #dc2626; }

@media (max-width: 960px) {
  .coin-grid-3,
  .coin-grid-2,
  .coin-stats {
    grid-template-columns: 1fr;
  }
  .coin-price {
    font-size: 28px;
  }
  .coin-hero h1,
  .coin-detail-title h1 {
    font-size: 22px;
  }
  .coin-trade-btn-lg {
    width: 100%;
    box-sizing: border-box;
  }
  .coin-featured-grid {
    grid-template-columns: 1fr;
  }
}
