/* ===== 交易服务三页通用样式（定金保障 / 过户服务 / 物流发车） ===== */

/* Hero */
.ts-hero {
    text-align: center;
    padding: 72px 20px 56px;
    color: #fff;
}
.ts-hero.dep { background: linear-gradient(135deg, #7c3aed, #6d28d9 55%, #8b5cf6); }
.ts-hero.trf { background: linear-gradient(135deg, #0369a1, #0e7490 55%, #0891b2); }
.ts-hero.log { background: linear-gradient(135deg, #b45309, #d97706 55%, #f59e0b); }

.ts-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.ts-hero-title { font-size: 34px; font-weight: 700; margin-bottom: 12px; }
.ts-hero-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.ts-hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.ts-hero-stat .num { font-size: 22px; font-weight: 700; }
.ts-hero-stat .label { font-size: 13px; color: rgba(255, 255, 255, 0.8); margin-top: 4px; }

/* 主内容 */
.ts-main { max-width: 1120px; margin: 0 auto; padding: 36px 20px 60px; }
.ts-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }

/* 表单卡片 */
.ts-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.ts-card-head h2 { font-size: 20px; margin-bottom: 6px; color: #111827; }
.ts-card-head p { font-size: 13px; color: #6b7280; margin-bottom: 18px; }
.ts-card-head .req { color: #dc2626; }

.ts-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ts-field { margin-bottom: 16px; }
.ts-field label { display: block; font-size: 13px; color: #374151; font-weight: 500; margin-bottom: 6px; }
.ts-field label .req { color: #dc2626; }
.ts-field input[type="text"],
.ts-field input[type="tel"],
.ts-field input[type="date"],
.ts-field select,
.ts-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.ts-field input:focus, .ts-field select:focus, .ts-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ts-field textarea { resize: vertical; min-height: 76px; }

.ts-submit-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: filter .2s, transform .1s;
}
.ts-submit-btn.dep { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.ts-submit-btn.trf { background: linear-gradient(135deg, #0369a1, #0e7490); }
.ts-submit-btn.log { background: linear-gradient(135deg, #b45309, #d97706); }
.ts-submit-btn:hover { filter: brightness(1.08); }
.ts-submit-btn:active { transform: translateY(1px); }
.ts-privacy { font-size: 12px; color: #9ca3af; text-align: center; margin-top: 10px; }

/* 侧栏卡 */
.ts-side-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}
.ts-side-card h3 { font-size: 16px; margin-bottom: 12px; color: #111827; }
.ts-side-card ul { list-style: none; padding: 0; margin: 0; }
.ts-side-card li { font-size: 13px; color: #4b5563; padding: 7px 0; border-bottom: 1px dashed #f3f4f6; line-height: 1.55; }
.ts-side-card li:last-child { border-bottom: none; }
.ts-empty { font-size: 13px; color: #9ca3af; text-align: center; padding: 18px 0; }
.ts-history-item { padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.ts-history-item:last-child { border-bottom: none; }
.ts-history-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: #111827; }
.ts-history-head .amt { color: #dc2626; white-space: nowrap; }
.ts-history-meta { font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* 流程步骤（过户页） */
.ts-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 24px; }
.ts-step {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
}
.ts-step .n {
    width: 26px; height: 26px; line-height: 26px;
    border-radius: 50%;
    background: #0e7490; color: #fff;
    font-size: 13px; font-weight: 700;
    display: inline-block; margin-bottom: 8px;
}
.ts-step .t { font-size: 13px; font-weight: 600; color: #111827; }
.ts-step .d { font-size: 12px; color: #6b7280; margin-top: 4px; line-height: 1.4; }

/* 运费估算结果（物流页） */
.ts-result {
    margin-top: 16px;
    border: 1px dashed #d97706;
    background: #fffbeb;
    border-radius: 10px;
    padding: 14px 16px;
    display: none;
}
.ts-result.show { display: block; }
.ts-result-title { font-size: 13px; color: #92400e; margin-bottom: 6px; }
.ts-result-price { font-size: 24px; font-weight: 700; color: #b45309; }
.ts-result-price .unit { font-size: 13px; font-weight: 400; color: #92400e; }
.ts-result-meta { font-size: 12px; color: #92600e; margin-top: 6px; line-height: 1.6; }

/* 运费估算结果框（物流页实时估算） */
.ts-quote {
    margin-top: 16px;
    border: 1px dashed #d97706;
    background: #fffbeb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ts-quote-row { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; }
.ts-quote-row span { font-size: 13px; color: #92400e; }
.ts-quote-row b { font-size: 20px; color: #b45309; white-space: nowrap; }
.ts-quote-tip { font-size: 12px; color: #92600e; width: 100%; }

/* 费用说明表 */
.ts-fee-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ts-fee-table th, .ts-fee-table td { padding: 9px 12px; border-bottom: 1px solid #f3f4f6; text-align: left; }
.ts-fee-table th { color: #6b7280; font-weight: 500; background: #f9fafb; }
.ts-fee-table td { color: #374151; }
.ts-fee-table .fee-num { color: #dc2626; font-weight: 600; }

/* FAQ */
.ts-faq { margin-top: 40px; }
.ts-faq h2 { font-size: 20px; margin-bottom: 18px; color: #111827; }
.ts-faq-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; }
.ts-faq-q { font-size: 15px; font-weight: 600; color: #111827; margin-bottom: 6px; }
.ts-faq-a { font-size: 13px; color: #6b7280; line-height: 1.7; }

/* 弹窗 */
.ts-modal {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0, 0, 0, 0.45);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.ts-modal.show { display: flex; }
.ts-modal-box {
    background: #fff; border-radius: 16px;
    padding: 32px; max-width: 420px; width: 100%;
    text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.ts-modal-icon { font-size: 46px; margin-bottom: 12px; }
.ts-modal-box h3 { font-size: 19px; margin-bottom: 8px; color: #111827; }
.ts-modal-box p { font-size: 14px; color: #6b7280; line-height: 1.7; margin-bottom: 10px; }
.ts-modal-tip { font-size: 13px; color: #b45309; background: #fffbeb; border-radius: 8px; padding: 8px 12px; margin-bottom: 16px; }
.ts-modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.ts-modal-actions .btn { padding: 10px 18px; border-radius: 8px; cursor: pointer; font-size: 14px; }

/* 响应式 */
@media (max-width: 860px) {
    .ts-layout { grid-template-columns: 1fr; }
    .ts-form-row { grid-template-columns: 1fr; }
    .ts-steps { grid-template-columns: repeat(3, 1fr); }
    .ts-hero-title { font-size: 26px; }
    .ts-hero-stats { gap: 24px; }
}
