/* 物流追踪页面自定义样式 */

/* 追踪表单样式 */
.ca-tracking-container {
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.ca-tracking-form {
    margin-bottom: 30px;
}

.search-box input[type="text"] {
    height: 56px;
    border: 1px solid #e9e9e9;
    border-radius: 30px;
    padding: 0 20px;
    font-size: 16px;
    box-shadow: none;
    outline: none;
}

.search-box input[type="text"]:focus {
    border-color: var(--theme-color);
}

/* 追踪结果区域样式 */
.tracking-results-section {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 30px;
    text-align: left;
}

/* 追踪事件时间线样式 */
.tracking-events-list {
    margin-top: 25px;
    padding-left: 15px;
}

.tracking-event {
    display: flex;
    gap: 25px;
    position: relative;
    border-left: 3px solid var(--theme-color);
    padding-left: 25px;
    margin-bottom: 30px;
}

.tracking-event::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    width: 12px;
    height: 12px;
    background-color: var(--theme-color);
    border-radius: 50%;
    border: 2px solid #fff;
}

/* 最新事件标记为绿色 */
.tracking-events-list .tracking-event:first-child::before {
    background-color: #28a745;
}

/* 左侧时间信息样式 */
.event-time-info {
    flex-basis: 130px;
    flex-shrink: 0;
    color: #666;
}

.event-time-info p {
    margin: 0 0 3px 0;
    line-height: 1.4;
}

.event-date {
    font-weight: bold;
    font-size: 15px;
}

.event-time {
    font-size: 14px;
}

.utc {
    font-weight: normal;
    color: #888;
    font-size: 12px;
}

/* 右侧详情信息样式 */
.event-details-info {
    flex-grow: 1;
    padding-top: 2px;
}

.event-details-info p {
    margin: 0 0 5px 0;
    line-height: 1.5;
}

.event-status {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
}

.event-location,
.event-notes {
    color: #666;
    font-size: 14px;
}

/* 无结果提示样式 */
.no-results {
    color: #777;
    font-style: italic;
    padding: 20px;
    border: 1px dashed #eee;
    text-align: center;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.02);
}

/* 身份证已上传信息样式 */
.id-upload-confirmation {
    margin-top: 25px;
    padding: 20px;
    background-color: #f0f9f0;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    text-align: center;
}

.id-upload-confirmation p {
    margin: 0;
    font-weight: bold;
    color: #2e7d32;
}

/* 收件人信息上传区域样式 */
.recipient-info {
    margin-top: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.recipient-info-toggle {
    padding: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.recipient-info-toggle:hover {
    background-color: #f5f5f5;
}

.recipient-info-toggle h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.recipient-info-toggle p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.toggle-icon {
    font-size: 18px;
    font-weight: bold;
    color: var(--theme-color);
    transition: transform 0.2s ease;
}

.recipient-info.expanded .toggle-icon {
    transform: rotate(45deg);
}

.recipient-form-container {
    padding: 25px 20px 20px;
    border: 1px dashed #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* 表单样式 */
.form-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.form-control {
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: 10px 15px;
    height: auto;
}

.form-control:focus {
    border-color: var(--theme-color);
    box-shadow: none;
}

/* 上传状态信息 */
#uploadStatus {
    font-weight: bold;
    margin-top: 15px;
}

/* ===== 移动端响应式优化 ===== */

/* iPhone 14 Pro Max 及更大屏幕 (428px以上) - 保持原样 */
@media (min-width: 428px) {
    .ca-tracking-container {
        padding: 40px;
    }
}

/* iPhone 14 Pro / iPhone 13 Pro / iPhone 12 Pro (390px-427px) */
@media (max-width: 427px) {
    .ca-tracking-container {
        padding: 30px; /* 保持与大屏一致的padding */
    }
    
    .tracking-results-section {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .tracking-event {
        gap: 15px;
        padding-left: 20px; /* 保持一致的左边距 */
        margin-bottom: 25px;
    }
    
    .event-time-info {
        flex-basis: 110px;
    }
    
    .event-date {
        font-size: 14px;
    }
    
    .event-time {
        font-size: 13px;
    }
    
    .event-status {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .event-location,
    .event-notes {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* iPhone 6/7/8 Plus / iPhone XR / iPhone 11 (375px-389px) */
@media (max-width: 389px) {
    .ca-tracking-container {
        padding: 25px; /* 保持相对一致的padding */
    }
    
    .tracking-event {
        gap: 15px;
        padding-left: 20px; /* 保持一致的左边距 */
        margin-bottom: 22px;
    }
    
    .event-time-info {
        flex-basis: 100px;
    }
    
    .event-date {
        font-size: 13px;
    }
    
    .event-time {
        font-size: 12px;
    }
    
    .event-status {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 5px;
        word-break: break-word;
    }
    
    .event-location,
    .event-notes {
        font-size: 12px;
        line-height: 1.3;
        word-break: break-word;
    }
    
    .event-details-info p {
        margin: 0 0 4px 0;
    }
}

/* iPhone SE第一代 / iPhone 5s (320px-374px) - 最小屏幕优化 */
@media (max-width: 374px) {
    .ca-tracking-container {
        padding: 20px; /* 保持基本一致的padding */
        border-radius: 6px;
    }
    
    .tracking-results-section {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .ca-title.fnw-600.theme-black-3.pb-16 {
        font-size: 18px !important;
        padding-bottom: 12px !important;
    }
    
    .tracking-events-list {
        padding-left: 10px; /* 稍微增加，保持一致性 */
        margin-top: 15px;
    }
    
    .tracking-event {
        gap: 12px; /* 稍微增加间隙 */
        padding-left: 18px; /* 保持接近的左边距 */
        margin-bottom: 20px;
        border-left-width: 2px;
    }
    
    .tracking-event::before {
        left: -6px;
        top: 6px;
        width: 10px;
        height: 10px;
    }
    
    .event-time-info {
        flex-basis: 90px; /* 稍微增加宽度 */
        flex-shrink: 0;
    }
    
    .event-date {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .event-time {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .utc {
        font-size: 10px;
        display: block;
        margin-top: 1px;
    }
    
    .event-details-info {
        flex-grow: 1;
        min-width: 0; /* 允许内容收缩 */
    }
    
    .event-status {
        font-size: 13px;
        line-height: 1.2;
        margin-bottom: 4px;
        word-break: break-word;
        hyphens: auto;
    }
    
    .event-location,
    .event-notes {
        font-size: 11px;
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }
    
    .event-details-info p {
        margin: 0 0 3px 0;
    }
    
    /* 搜索框优化 */
    .search-box input[type="text"] {
        height: 50px;
        font-size: 14px;
        padding: 0 16px;
    }
    
    .ca-btn-primary-3 {
        padding: 12px 16px !important;
        font-size: 13px !important;
    }
    
    /* 收件人信息区域优化 */
    .recipient-info-toggle {
        padding: 15px;
    }
    
    .recipient-info-toggle h4 {
        font-size: 16px;
    }
    
    .recipient-form-container {
        padding: 20px 15px 15px;
    }
} 