/* ===== 子页面通用样式 ===== */

.page-main { min-height: calc(100vh - var(--header-height) - 200px); }

/* 页面顶部 Hero */
.page-hero {
  padding: 48px 20px; text-align: center;
  color: #fff;
}
.page-hero h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.page-hero p { font-size: 16px; opacity: 0.9; }
.page-hero-mall { background: linear-gradient(135deg, #E87532, #F4A261); }
.page-hero-housekeeping { background: linear-gradient(135deg, #2D5F5D, #4A9E9C); }
.page-hero-secondhand { background: linear-gradient(135deg, #27AE60, #52D681); }
.page-hero-video { background: linear-gradient(135deg, #8E44AD, #BB6BD9); }
.page-hero-errand { background: linear-gradient(135deg, #F39C12, #F7DC6F); }
.page-hero-ride { background: linear-gradient(135deg, #2980B9, #6BB5E0); }

/* 占位区域 */
.page-placeholder {
  max-width: 600px; margin: 60px auto; text-align: center;
  padding: 60px 20px;
}
.placeholder-icon { font-size: 64px; margin-bottom: 16px; }
.page-placeholder h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--color-text); }
.page-placeholder p { font-size: 15px; color: var(--color-text-light); }

/* ===== 打车包车页面 ===== */
.ride-container { max-width: 900px; margin: 0 auto; padding: 24px 20px 60px; }

/* 订单类型 Tab */
.ride-tabs { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.ride-tab {
  flex: 1; min-width: 120px; padding: 16px 12px; border-radius: var(--radius-md);
  border: 2px solid var(--color-border); background: var(--color-surface);
  text-align: center; cursor: pointer; transition: all 0.25s;
}
.ride-tab:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.ride-tab.active { border-color: var(--color-primary); background: var(--color-primary-light); }
.ride-tab .tab-icon { font-size: 32px; margin-bottom: 6px; }
.ride-tab .tab-name { font-size: 15px; font-weight: 700; color: var(--color-text); }
.ride-tab.active .tab-name { color: var(--color-primary); }
.ride-tab .tab-desc { font-size: 12px; color: var(--color-text-light); margin-top: 2px; }

/* 计价卡片 */
.ride-pricing {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 24px;
}
.pricing-item {
  padding: 16px 12px; border-radius: var(--radius-md);
  text-align: center; background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.pricing-item .pi-label { font-size: 12px; color: var(--color-text-light); margin-bottom: 4px; }
.pricing-item .pi-value { font-size: 22px; font-weight: 700; }
.pricing-item .pi-unit { font-size: 13px; font-weight: 400; color: var(--color-text-light); }
.pricing-item:nth-child(1) .pi-value { color: #2980B9; }
.pricing-item:nth-child(2) .pi-value { color: #E87532; }
.pricing-item:nth-child(3) .pi-value { color: #27AE60; }
.pricing-item:nth-child(4) .pi-value { color: #8E44AD; }

/* 计价示例 */
.ride-example {
  background: var(--color-warm); padding: 14px 18px; border-radius: var(--radius-md);
  font-size: 13px; color: var(--color-text-light); line-height: 1.8; margin-bottom: 24px;
}
.ride-example strong { color: var(--color-text); }
.ride-example .example-total { color: var(--color-error); font-size: 18px; font-weight: 700; }

/* 表单卡片 */
.ride-form-card {
  background: var(--color-surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 24px;
}
.ride-form-card .form-section-title {
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.ride-form-card .form-row {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.ride-form-card .form-row .form-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; margin-top: 4px;
}
.ride-form-card .form-row .form-icon.start { background: #E8F5E9; }
.ride-form-card .form-row .form-icon.end { background: #FDEDEC; }
.ride-form-card .form-row input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); font-size: 15px; outline: none;
  transition: border-color 0.2s;
}
.ride-form-card .form-row input:focus { border-color: var(--color-primary); }

/* 预估结果 */
.ride-estimate {
  background: linear-gradient(135deg, #FFF8F2, #FFF0E8);
  padding: 16px 20px; border-radius: var(--radius-md);
  margin: 16px 0; display: flex; align-items: center; justify-content: space-between;
}
.ride-estimate .est-left { display: flex; flex-direction: column; }
.ride-estimate .est-label { font-size: 13px; color: var(--color-text-light); }
.ride-estimate .est-price { font-size: 32px; font-weight: 700; color: var(--color-error); }
.ride-estimate .est-detail { font-size: 12px; color: var(--color-text-light); margin-top: 2px; }
.ride-estimate .est-right { text-align: right; }
.ride-estimate .est-dist { font-size: 15px; font-weight: 600; color: var(--color-text); }
.ride-estimate .est-time { font-size: 12px; color: var(--color-text-light); }

/* 叫车按钮 */
.ride-submit-btn {
  width: 100%; padding: 14px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2980B9, #3498DB);
  color: #fff; font-size: 17px; font-weight: 700;
  transition: all 0.25s; letter-spacing: 2px;
}
.ride-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(41,128,185,0.35); }
.ride-submit-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

/* 我的订单 */
.ride-orders { margin-top: 32px; }
.ride-orders .section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.ride-orders .section-header h3 { font-size: 18px; font-weight: 700; }
.ride-order-card {
  background: var(--color-surface); border-radius: var(--radius-md);
  padding: 16px 20px; margin-bottom: 10px;
  border: 1px solid var(--color-border); display: flex;
  align-items: center; justify-content: space-between;
  transition: box-shadow 0.2s;
}
.ride-order-card:hover { box-shadow: var(--shadow-sm); }
.ride-order-card .oc-left { display: flex; align-items: center; gap: 12px; }
.ride-order-card .oc-icon { font-size: 28px; }
.ride-order-card .oc-info {}
.ride-order-card .oc-no { font-size: 13px; color: var(--color-text-light); }
.ride-order-card .oc-route { font-size: 14px; font-weight: 500; margin: 2px 0; }
.ride-order-card .oc-meta { font-size: 12px; color: var(--color-text-lighter); }
.ride-order-card .oc-right { text-align: right; }
.ride-order-card .oc-price { font-size: 18px; font-weight: 700; color: var(--color-error); }
.ride-order-card .oc-status {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 600; margin-top: 4px;
}
.oc-status-pending { background: #FFF3E0; color: #E67E22; }
.oc-status-accepted { background: #E3F2FD; color: #1976D2; }
.oc-status-arrived { background: #F3E5F5; color: #7B1FA2; }
.oc-status-ongoing { background: #E8F5E9; color: #2E7D32; }
.oc-status-done { background: #E8F5E9; color: #2E7D32; }
.oc-status-cancelled { background: #FAFAFA; color: #999; }

.ride-login-tip {
  text-align: center; padding: 40px; background: var(--color-surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.ride-login-tip p { font-size: 15px; color: var(--color-text-light); margin-bottom: 16px; }

@media (max-width: 768px) {
  .ride-pricing { grid-template-columns: repeat(2, 1fr); }
  .ride-tab { min-width: 100px; padding: 12px 8px; }
}
