/* 在线交易模块 — 与主站墨绿/琥珀主题统一 */
.trade-page { padding: 20px 0 48px; }
.trade-hero {
  background: linear-gradient(135deg, var(--header-bg), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
}
.trade-hero h1 { font-family: var(--font-serif); font-size: 26px; margin-bottom: 8px; }
.trade-hero p { opacity: .85; margin-bottom: 18px; line-height: 1.7; }
.trade-hero-links { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-trade {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-trade:hover { background: var(--accent-dark); }
.btn-trade.outline { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: #fff !important; }
.btn-trade.outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.trade-hero .btn-trade.outline { border-color: rgba(255,255,255,0.5); color: #fff !important; }
.btn-trade.sm { padding: 6px 14px; font-size: 13px; }
.btn-trade.lg { padding: 14px 32px; font-size: 16px; }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; text-decoration: underline; font-size: inherit; }
.page-title { font-family: var(--font-serif); font-size: 24px; margin-bottom: 22px; color: var(--primary); }
.shop-search { display: flex; gap: 10px; margin-bottom: 22px; }
.shop-search input {
  flex: 1;
  max-width: 420px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}
.shop-search button {
  padding: 11px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
}
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  box-shadow: var(--shadow);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-thumb { display: block; height: 168px; overflow: hidden; background: var(--bg); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px; }
.product-shop { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.product-body h3 { font-size: 14px; margin-bottom: 6px; line-height: 1.45; font-weight: 600; }
.product-body h3 a { color: var(--text); text-decoration: none; }
.product-body h3 a:hover { color: var(--primary); }
.product-summary { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.product-price { color: var(--danger); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.product-price.lg { font-size: 26px; }
.product-detail {
  display: flex;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.product-detail-img { flex: 0 0 360px; }
.product-detail-img img { width: 100%; border-radius: var(--radius-sm); }
.product-detail-info { flex: 1; }
.product-detail-info h1 { font-family: var(--font-serif); font-size: 24px; margin: 8px 0 14px; color: var(--primary); }
.buy-form { margin: 18px 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.trade-badges span {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-right: 8px;
  margin-top: 12px;
}
.trade-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--border-light);
}
.trade-table th, .trade-table td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); text-align: left; font-size: 14px; }
.trade-table th { background: var(--primary-light); font-weight: 600; color: var(--primary); }
.cart-total { text-align: right; font-size: 20px; margin: 18px 0; font-weight: 700; }
.cart-actions { text-align: right; display: flex; gap: 12px; justify-content: flex-end; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; }
@media (max-width: 800px) { .checkout-grid { grid-template-columns: 1fr; } .product-detail { flex-direction: column; } }
.checkout-form { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.checkout-form .form-group { margin-bottom: 16px; }
.checkout-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.checkout-form input, .checkout-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.checkout-note { font-size: 13px; color: var(--text-muted); margin: 14px 0; line-height: 1.7; }
.pay-box { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 36px; max-width: 520px; margin: 0 auto; text-align: center; box-shadow: var(--shadow); }
.pay-amount { color: var(--danger); font-size: 30px; font-weight: 700; }
.pay-success { color: var(--primary); font-weight: 600; margin: 18px 0; }
.form-error { color: var(--danger); background: #fef2f2; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.form-success { color: var(--primary); background: var(--primary-light); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.empty-tip { text-align: center; color: var(--text-muted); padding: 48px; }
.merchant-nav { margin-bottom: 22px; }
.merchant-nav a { margin-right: 18px; color: var(--primary); text-decoration: none; font-weight: 500; }
.merchant-nav a.active { font-weight: 700; color: var(--accent); }
.merchant-form .form-group { margin-bottom: 16px; }
.merchant-form label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.merchant-form input, .merchant-form textarea { width: 100%; max-width: 560px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.merchant-form-wrap { background: var(--primary-light); padding: 24px; border-radius: var(--radius); margin-bottom: 28px; }
.platform-intro { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; line-height: 1.85; box-shadow: var(--shadow); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.stat-card .num { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--primary); }
.stat-card .label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.auth-page { max-width: 440px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.auth-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.7; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; }
.pagination { text-align: center; margin-top: 28px; }
.pagination a { display: inline-block; padding: 7px 14px; margin: 0 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text-muted); transition: all 0.2s; }
.pagination a.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover:not(.current) { border-color: var(--primary); color: var(--primary); }
