/* ============================================================
   物流跟踪页面样式
   ============================================================ */

/* 物流跟踪主区域 */
.tracking-section {
    min-height: calc(100vh - 500px);
    padding: 80px 0;
    background-color: #f5f7fa;
}

.tracking-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 标题 */
.tracking-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0 0 40px 0;
}

/* 查询表单 */
.tracking-form {
    margin-bottom: 40px;
}

.form-label {
    display: block;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 15px;
}

.form-input-group {
    display: flex;
    gap: 15px;
}

.form-input {
    flex: 1;
    height: 50px;
    padding: 0 20px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: #2989d8;
    box-shadow: 0 0 0 3px rgba(41, 137, 216, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    height: 50px;
    padding: 0 30px;
    background-color: #f5a623;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit-btn:hover {
    background-color: #e69500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.form-submit-btn:active {
    transform: translateY(0);
}

/* 查询结果区域 */
.tracking-results {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.results-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.results-copy-btn {
    padding: 6px 20px;
    background-color: #fff;
    color: #666;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.results-copy-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

/* 物流时间轴 */
.tracking-timeline {
    position: relative;
    padding-left: 30px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: #e5e5e5;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border: none;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.status-completed .timeline-dot {
    width: 12px;
    height: 12px;
    left: -29px;
    top: 5px;
    background-color: #e53935;
    border: none;
    box-shadow: none;
}

.timeline-content {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    transition: none;
}

.timeline-item:hover .timeline-content {
    background-color: transparent;
}

.timeline-item.status-completed .timeline-content {
    background-color: transparent;
    border: none;
}

.timeline-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.timeline-status {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.timeline-item.status-completed .timeline-status {
    color: #e53935;
}

.timeline-time {
    font-size: 13px;
    color: #999;
}

.timeline-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tracking-section {
        padding: 50px 15px;
    }
    
    .tracking-wrapper {
        padding: 30px 20px;
    }
    
    .tracking-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .form-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-submit-btn {
        width: 100%;
    }
    
    .tracking-timeline {
        padding-left: 28px;
    }
    
    .timeline-dot {
        left: -25px;
    }

    .timeline-item.status-completed .timeline-dot {
        left: -26px;
    }
    
    .timeline-status {
        font-size: 14px;
    }
    
    .timeline-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tracking-section {
        padding: 40px 15px;
    }
    
    .tracking-wrapper {
        padding: 25px 15px;
    }
    
    .tracking-title {
        font-size: 22px;
    }
    
    .form-input {
        height: 45px;
        font-size: 14px;
    }
    
    .form-submit-btn {
        height: 45px;
        font-size: 15px;
    }
    
    .results-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .results-title {
        font-size: 14px;
    }
}
