/**
 * 价格估算页样式
 * 遵循 DESIGN_SYSTEM.md 设计规范
 */

/* ========================================
   1. Hero区
   ======================================== */
/* Hero区域样式已移至 style.css 的 .page-hero */

/* ========================================
   2. 在线估价计算器
   ======================================== */
.calculator-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #555555;
    font-weight: 400;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-calculator {
    background: #ffffff;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 步骤控制 */
.calculator-step {
    display: none;
}

.calculator-step.active {
    display: block;
    animation: fadeInSlide 0.4s ease;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #ecf0f1;
}

/* 服务类型选择 */
.service-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-type-card {
    cursor: pointer;
    position: relative;
}

.service-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.service-type-card .card-content {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    background: #ffffff;
}

.service-type-card:hover .card-content {
    border-color: #4a90c5;
    box-shadow: 0 4px 12px rgba(74, 144, 197, 0.15);
}

.service-type-card input[type="radio"]:checked + .card-content {
    border-color: #2c5f8d;
    background: #f0f7fc;
    box-shadow: 0 4px 16px rgba(44, 95, 141, 0.2);
}

.service-type-card .icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.service-type-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.service-type-card p {
    font-size: 14px;
    color: #555555;
    margin: 0;
}

/* 表单元素 */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Noto Sans SC', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5f8d;
    box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

.form-hint {
    display: block;
    font-size: 13px;
    color: #777777;
    margin-top: 6px;
}

.distance-estimate {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0f7fc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2c5f8d;
}

.distance-estimate .icon {
    width: 20px;
    height: 20px;
    stroke: #2c5f8d;
}

/* 房间选择器 */
.room-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.room-btn {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    background: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #555555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.room-btn:hover {
    border-color: #4a90c5;
    background: #f9f9f9;
}

.room-btn.active {
    border-color: #2c5f8d;
    background: #2c5f8d;
    color: #ffffff;
}

/* 复选框卡片 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-card:hover {
    border-color: #4a90c5;
    background: #f9f9f9;
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-card input[type="checkbox"]:checked + .checkmark {
    background: #27ae60;
    border-color: #27ae60;
}

.checkbox-card input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-content {
    flex: 1;
}

.checkbox-content strong {
    display: block;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.checkbox-content small {
    font-size: 13px;
    color: #777777;
}

.price-tag {
    font-size: 14px;
    font-weight: 600;
    color: #f39c12;
}

/* 估价预览 */
.estimate-preview {
    margin-bottom: 32px;
}

.estimate-card {
    background: linear-gradient(135deg, #2c5f8d 0%, #4a90c5 100%);
    color: #ffffff;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.estimate-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.estimate-price {
    margin: 16px 0;
}

.price-range {
    font-size: 42px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.estimate-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.85;
    margin-top: 16px;
}

.estimate-note .icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* 隐私声明 */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0f7fc;
    border-radius: 6px;
    font-size: 13px;
    color: #2c5f8d;
    margin-top: 16px;
}

.privacy-notice .icon {
    width: 16px;
    height: 16px;
    stroke: #2c5f8d;
    flex-shrink: 0;
}

/* 步骤导航 */
.calculator-navigation {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #ecf0f1;
}

.progress-bar {
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2c5f8d 0%, #4a90c5 100%);
    transition: width 0.4s ease;
    border-radius: 3px;
}

.nav-buttons {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #f39c12;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-primary:hover {
    background: #e67e22;
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #2c5f8d;
    border: 2px solid #2c5f8d;
}

.btn-secondary:hover {
    background: #2c5f8d;
    color: #ffffff;
}

.btn-primary .icon,
.btn-secondary .icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 16px;
}

/* 侧边栏 */
.calculator-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.sidebar-list .icon {
    width: 20px;
    height: 20px;
    stroke: #27ae60;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-card {
    background: linear-gradient(135deg, #2c5f8d 0%, #4a90c5 100%);
    color: #ffffff;
    text-align: center;
}

.contact-card .sidebar-title {
    color: #ffffff;
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: #27ae60;
    color: #ffffff;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.btn-phone:hover {
    background: #229954;
    transform: scale(1.05);
}

.btn-phone .icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.contact-note {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.stats-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.stat-item {
    padding: 16px 8px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #2c5f8d;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #777777;
}

/* ========================================
   3. 车型报价参考
   ======================================== */
.truck-pricing-section {
    padding: 80px 0;
    background: #ffffff;
}

.truck-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.truck-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.truck-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.truck-card.featured {
    border: 3px solid #f39c12;
}

.popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f39c12;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
}

.truck-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.truck-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.truck-card:hover .truck-image img {
    transform: scale(1.1);
}

.truck-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(44, 95, 141, 0.95);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.truck-content {
    padding: 24px;
}

.truck-name {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.truck-specs {
    font-size: 14px;
    color: #777777;
    margin-bottom: 16px;
}

.truck-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.truck-features li {
    font-size: 15px;
    color: #555555;
    margin-bottom: 8px;
    line-height: 1.6;
}

.truck-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

.price-label {
    font-size: 13px;
    color: #777777;
}

.price-value {
    font-size: 36px;
    font-weight: 700;
    color: #2c5f8d;
    font-family: 'Poppins', sans-serif;
}

.price-unit {
    font-size: 14px;
    color: #777777;
}

.pricing-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: #fff8e6;
    border-left: 4px solid #f39c12;
    border-radius: 4px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-note .icon {
    width: 20px;
    height: 20px;
    stroke: #f39c12;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-note p {
    margin: 0;
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
}

/* ========================================
   4. 套餐报价展示
   ======================================== */
.package-pricing-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.package-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.package-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.package-card.featured {
    border: 3px solid #f39c12;
    transform: scale(1.05);
}

.package-card.featured:hover {
    transform: scale(1.08) translateY(-4px);
}

.package-badge {
    position: absolute;
    top: -10px;
    right: 24px;
    background: #f39c12;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
    z-index: 2;
}

.package-header {
    padding: 32px 24px 24px;
    text-align: center;
    background: linear-gradient(135deg, #2c5f8d 0%, #4a90c5 100%);
    color: #ffffff;
}

.package-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 24px;
    font-weight: 600;
}

.amount {
    font-size: 56px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.period {
    font-size: 18px;
    opacity: 0.9;
}

.package-content {
    padding: 32px 24px;
    flex: 1;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
}

.package-features li:last-child {
    margin-bottom: 0;
}

.package-features .icon {
    width: 18px;
    height: 18px;
    stroke: #27ae60;
    flex-shrink: 0;
    margin-top: 2px;
}

.package-features strong {
    color: #2c5f8d;
}

.package-note {
    padding: 12px;
    background: #f0f7fc;
    border-radius: 6px;
    font-size: 13px;
    color: #2c5f8d;
    text-align: center;
}

.package-footer {
    padding: 0 24px 32px;
}

/* ========================================
   5. 价格构成说明
   ======================================== */
.pricing-breakdown-section {
    padding: 80px 0;
    background: #ffffff;
}

.breakdown-wrapper {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 64px;
    align-items: start;
}

.section-intro {
    font-size: 18px;
    color: #555555;
    margin-bottom: 48px;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.breakdown-item {
    padding: 24px;
    background: #f9f9f9;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.breakdown-item:hover {
    background: #f0f7fc;
    transform: translateY(-4px);
}

.breakdown-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2c5f8d 0%, #4a90c5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.breakdown-icon svg {
    stroke: #ffffff;
}

.breakdown-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.breakdown-desc {
    font-size: 14px;
    color: #555555;
    margin-bottom: 12px;
    line-height: 1.6;
}

.breakdown-example {
    font-size: 13px;
    color: #2c5f8d;
    font-weight: 600;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 6px;
}

.breakdown-included {
    color: #27ae60;
}

.breakdown-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 120px;
}

.breakdown-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 48px 32px 32px;
}

.overlay-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.overlay-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 价格承诺 */
.price-promise {
    padding: 40px;
    background: linear-gradient(135deg, #f0f7fc 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.promise-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 32px;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.promise-item {
    display: flex;
    gap: 16px;
}

.promise-item .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.promise-yes .icon {
    stroke: #27ae60;
}

.promise-no .icon {
    stroke: #e74c3c;
}

.promise-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 12px;
}

.promise-yes strong {
    color: #27ae60;
}

.promise-no strong {
    color: #e74c3c;
}

.promise-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.promise-item li {
    font-size: 15px;
    color: #555555;
    margin-bottom: 6px;
    line-height: 1.6;
}

/* ========================================
   6. 响应式设计
   ======================================== */

/* 平板横屏/小笔记本 */
@media (max-width: 1024px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
    
    .calculator-sidebar {
        display: none;
    }
    
    .breakdown-wrapper {
        grid-template-columns: 1fr;
    }
    
    .breakdown-image {
        position: relative;
        top: 0;
        max-height: 400px;
    }
    
    .truck-grid,
    .package-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板竖屏 */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 100px 0 60px;
    }
    
    .pricing-hero .page-title {
        font-size: 32px;
    }
    
    .pricing-hero .page-subtitle {
        font-size: 18px;
    }
    
    .trust-badges-inline {
        gap: 16px;
    }
    
    .trust-badges-inline .badge-item {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .pricing-calculator {
        padding: 32px 24px;
    }
    
    .service-type-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .room-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .promise-grid {
        grid-template-columns: 1fr;
    }
    
    .truck-grid,
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .truck-card.featured,
    .package-card.featured {
        transform: none;
    }
    
    .stats-card {
        grid-template-columns: 1fr;
    }
}

/* 手机 */
@media (max-width: 480px) {
    .pricing-hero {
        padding: 80px 0 40px;
    }
    
    .pricing-hero .page-title {
        font-size: 28px;
    }
    
    .pricing-hero .page-subtitle {
        font-size: 16px;
    }
    
    .trust-badges-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .calculator-section,
    .truck-pricing-section,
    .package-pricing-section,
    .pricing-breakdown-section {
        padding: 48px 0;
    }
    
    .pricing-calculator {
        padding: 24px 16px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .room-selector {
        grid-template-columns: 1fr;
    }
    
    .estimate-price .price-range {
        font-size: 32px;
    }
    
    .nav-buttons {
        flex-direction: column-reverse;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .price-promise {
        padding: 24px;
    }
}

/* 大屏手机 */
@media (min-width: 481px) and (max-width: 767px) {
    .service-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

