/* 前台页面额外样式 */
.captcha-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

.captcha-img {
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 4px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.1), rgba(139, 92, 246, 0.1));
  user-select: none;
  transition: var(--transition);
}

.captcha-img:hover {
  border-color: var(--primary);
}

/* 开发者平台样式 */
.dev-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.dev-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.dev-menu-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin: 16px 0 8px;
}

.dev-menu-title:first-child {
  margin-top: 0;
}

.dev-menu-item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}

.dev-menu-item:hover,
.dev-menu-item.active {
  background: rgba(79, 124, 255, 0.1);
  color: var(--primary);
}

.code-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
  margin: 16px 0;
}

.api-method {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}

.api-method.get {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.api-method.post {
  background: rgba(79, 124, 255, 0.1);
  color: var(--primary);
}

.api-method.put {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.api-method.delete {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.api-table th {
  width: 120px;
}

@media (max-width: 1024px) {
  .dev-layout {
    grid-template-columns: 1fr;
  }
  
  .dev-sidebar {
    position: static;
  }
}
/* 商城页面样式 V14.4 */
/* 购物车 */
.cart-container { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.cart-main { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; }
.cart-header { display: grid; grid-template-columns: 50px 1fr 120px 120px 120px 80px; padding: 16px 20px; background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.08); align-items: center; color: rgba(255,255,255,0.7); font-size: 14px; }
.cart-header-right { display: contents; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; gap: 20px; color: rgba(255,255,255,0.5); }
.cart-item { display: grid; grid-template-columns: 50px 1fr 120px 120px 120px 80px; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.item-goods { display: flex; gap: 12px; align-items: center; }
.item-thumb { width: 80px; height: 80px; border-radius: 8px; background: linear-gradient(135deg, #1e3a8a, #3b82f6); display: flex; align-items: center; justify-content: center; color: white; }
.item-info { flex: 1; }
.item-name { font-size: 15px; color: white; margin-bottom: 6px; }
.item-spec { font-size: 13px; color: rgba(255,255,255,0.5); }
.item-price { font-size: 15px; color: white; text-align: center; }
.item-qty { display: flex; align-items: center; justify-content: center; gap: 0; }
.qty-btn { width: 28px; height: 28px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: white; cursor: pointer; border-radius: 4px; }
.qty-btn:hover { background: rgba(59,130,246,0.2); border-color: #3b82f6; }
.qty-input { width: 50px; height: 28px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); color: white; text-align: center; border-left: none; border-right: none; }
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.item-subtotal { font-size: 15px; color: #f59e0b; font-weight: bold; text-align: center; }
.item-action { text-align: center; }
.cart-summary { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 20px; position: sticky; top: 80px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; color: rgba(255,255,255,0.8); font-size: 14px; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 8px; font-size: 16px; }
.total-amount { font-size: 24px; color: #ef4444; font-weight: bold; }

/* 结算页 */
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 40px; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.5); }
.step-item.active .step-num { background: linear-gradient(135deg, #3b82f6, #a855f7); color: white; }
.step-item.active { color: white; }
.step-item.completed .step-num { background: #10b981; color: white; }
.step-item.completed { color: #10b981; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.step-line { width: 100px; height: 2px; background: rgba(255,255,255,0.1); }
.step-line.completed { background: #10b981; }
.checkout-container { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
.checkout-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; margin-bottom: 20px; }
.checkout-card-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; }
.checkout-card-header h3 { font-size: 16px; color: white; }
.address-list { padding: 20px; display: grid; gap: 12px; }
.address-item { display: flex; gap: 12px; padding: 16px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; cursor: pointer; }
.address-item.active { border-color: #3b82f6; background: rgba(59,130,246,0.05); }
.address-item input { display: none; }
.address-name { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.address-name .name { color: white; font-weight: 500; }
.address-name .phone { color: rgba(255,255,255,0.7); }
.address-name .tag { padding: 2px 8px; background: #3b82f6; color: white; font-size: 12px; border-radius: 4px; }
.address-detail { color: rgba(255,255,255,0.6); font-size: 14px; }
.checkout-goods { padding: 20px; }
.checkout-good-item { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.checkout-good-item:last-child { border-bottom: none; }
.good-thumb { width: 60px; height: 60px; border-radius: 8px; background: linear-gradient(135deg, #1e3a8a, #3b82f6); display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.good-info { flex: 1; }
.good-name { color: white; font-size: 14px; margin-bottom: 4px; }
.good-spec { color: rgba(255,255,255,0.5); font-size: 13px; }
.good-price { color: white; font-size: 15px; font-weight: 500; }
.pay-method-list { padding: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pay-method-item { padding: 16px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.pay-method-item.active { border-color: #3b82f6; background: rgba(59,130,246,0.05); }
.pay-method-item input { display: none; }
.pay-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.pay-name { color: white; font-size: 14px; }
.order-summary { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 20px; position: sticky; top: 80px; }
.order-summary h3 { font-size: 16px; color: white; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.agreement-check { padding: 16px 0; font-size: 13px; color: rgba(255,255,255,0.6); }
.agreement-check a { color: #3b82f6; }

/* 订单列表 */
.order-tabs { display: flex; gap: 8px; margin-bottom: 20px; background: rgba(255,255,255,0.03); padding: 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }
.order-tab { padding: 10px 20px; border-radius: 8px; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 14px; }
.order-tab.active { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(168,85,247,0.2)); color: #60a5fa; }
.order-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.order-header { padding: 16px 20px; background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.6); }
.order-info { display: flex; gap: 20px; }
.order-status { font-size: 14px; font-weight: 500; }
.order-body { padding: 20px; }
.order-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.order-total { color: rgba(255,255,255,0.7); font-size: 14px; }
.order-total .total-price { color: #ef4444; font-size: 18px; font-weight: bold; margin-left: 8px; }
.order-actions { display: flex; gap: 8px; }
.order-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; gap: 20px; color: rgba(255,255,255,0.5); }

/* 订单详情 */
.order-detail-status { display: flex; align-items: center; gap: 20px; padding: 24px; background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(59,130,246,0.1)); border: 1px solid rgba(16,185,129,0.2); border-radius: 12px; margin-bottom: 20px; }
.status-icon { font-size: 48px; }
.status-info { flex: 1; }
.status-title { font-size: 20px; color: #10b981; font-weight: bold; margin-bottom: 6px; }
.status-desc { color: rgba(255,255,255,0.7); }
.status-actions { display: flex; gap: 12px; }
.order-detail-container { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
.detail-section { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.section-title { font-size: 16px; color: white; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.order-progress { padding: 20px 0; position: relative; }
.progress-step { display: flex; align-items: flex-start; gap: 16px; position: relative; z-index: 1; }
.step-dot { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 4px solid rgba(10,15,30,1); margin-top: 2px; flex-shrink: 0; }
.progress-step.completed .step-dot { background: #10b981; }
.step-info { padding-bottom: 30px; }
.step-info .step-title { color: white; font-size: 14px; font-weight: 500; border: none; padding: 0; margin: 0 0 4px 0; }
.step-info .step-time { color: rgba(255,255,255,0.5); font-size: 13px; }
.progress-line { position: absolute; left: 9px; top: 24px; width: 2px; height: 50px; background: rgba(255,255,255,0.1); z-index: 0; }
.progress-line.completed { background: #10b981; }
.progress-step:last-child .step-info { padding-bottom: 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-item { display: flex; gap: 8px; font-size: 14px; }
.info-item.full { grid-column: 1/-1; }
.info-label { color: rgba(255,255,255,0.5); flex-shrink: 0; }
.info-value { color: white; flex: 1; }
.order-info-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 20px; position: sticky; top: 80px; }
.order-info-card h3 { font-size: 16px; color: white; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.info-row { display: flex; align-items: center; padding: 8px 0; font-size: 14px; }
.info-row .info-label { color: rgba(255,255,255,0.5); width: 80px; flex-shrink: 0; }
.info-row .info-value { color: white; flex: 1; word-break: break-all; }
.info-row .order-id { font-family: monospace; }
.btn-copy { padding: 2px 8px; background: rgba(59,130,246,0.2); color: #3b82f6; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; }
.divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 16px 0; }
.price-summary .price-row { display: flex; justify-content: space-between; padding: 6px 0; color: rgba(255,255,255,0.7); font-size: 14px; }
.price-summary .price-row.total { padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 8px; font-size: 16px; }
.price-summary .total-price { color: #ef4444; font-size: 22px; font-weight: bold; }

/* 响应式 */
@media (max-width: 1024px) {
  .cart-container, .checkout-container, .order-detail-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .cart-header { grid-template-columns: 40px 1fr 80px; }
  .cart-header .col-price, .cart-header .col-qty, .cart-header .col-subtotal, .cart-header .col-action { display: none; }
  .cart-item { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; gap: 12px; }
  .item-price, .item-qty, .item-subtotal, .item-action { grid-column: 2; text-align: left; justify-content: flex-start; }
  .item-goods { grid-column: 2; }
  .pay-method-list { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .order-tabs { overflow-x: auto; }
}
