body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #e0f7fa, #b2ebf2);
    min-height: 100vh;
}

/* 容器自适应 */
.kuaidi-container {
    max-width: 700px;
    margin: 20px auto;
    padding: 25px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* 欢迎文字 */
.welcome-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 35px;
    line-height: 1.6;
}
.welcome-text .highlight {
    color: #ff5722;
    font-weight: bold;
}

/* 输入框组 */
.kuaidi-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}
.kuaidi-input-group label {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
}
.kuaidi-input-group select,
.kuaidi-input-group input {
    width: 100%;
    padding: 20px 15px; /* 高度适中 */
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

/* 查询按钮 */
#query_btn {
    width: 100%;
    padding: 22px;
    font-size: 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 30px;
}
#query_btn:hover {
    background-color: #0056b3;
}

/* 查询结果 */
#result {
    border-top: 2px solid #eee;
    padding-top: 15px;
}

/* 时间线样式 */
.timeline {
    position: relative;
    margin: 20px 0;
    padding-left: 60px; /* 左侧留出足够空间给圆圈 */
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px; /* 纵向线在圆圈中间 */
    top: 0;
    bottom: 0;
    width: 3px;
    background: #007bff;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px; /* 节点间距，防止重叠 */
    padding-left: 30px; /* 给文字留出圆圈空间 */
    word-wrap: break-word; /* 文字换行防止溢出 */
}

/* 所有节点都显示灰色空心圆 ○ */
.timeline-item::before {
    content: '○';
    position: absolute;
    left: 0; 
    top: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 14px;
    color: #999;
    border: 2px solid #007bff;
    border-radius: 50%;
    background: #fff;
    z-index: 1;
}

.timeline-item .time {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-item .status {
    font-size: 15px;
    color: #555;
}

/* 响应式调整，手机端显示 */
@media (max-width: 600px) {
    .timeline {
        padding-left: 40px; /* 缩小左侧占位 */
    }
    .timeline::before {
        left: 20px;
        width: 2px;
    }
    .timeline-item {
        padding-left: 25px;
        margin-bottom: 20px;
    }
    .timeline-item::before {
        width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 12px;
        left: 0;
    }
    .timeline-item .time {
        font-size: 13px;
    }
    .timeline-item .status {
        font-size: 14px;
    }
}



/* 状态颜色 */
.status-pickup { color: #2196f3; }
.status-transit { color: #ff9800; }
.status-out-for-delivery { color: #ff5722; }
.status-delivered { color: #4caf50; }
.status-failed { color: #f44336; }
.status-problem { color: #9c27b0; }
.status-returned { color: #795548; }

/* 响应式 */
@media (max-width: 600px) {
    .kuaidi-container {
        padding: 15px;
    }
    .kuaidi-input-group label, 
    .kuaidi-input-group select, 
    .kuaidi-input-group input {
        font-size: 16px;
    }
    #query_btn { font-size: 18px; padding: 18px; }
    .timeline-item .time { font-size: 13px; }
    .timeline-item .status { font-size: 14px; }
}