/* common.css - 轩传航空货运系统公共样式
 * PC端：保持原有布局
 * 手机端：自动响应式适配
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f9f9f9;
}

/* ======================================
   PC 端默认样式（完全恢复你原来的效果）
   ====================================== */
.nav-menu {
    background: #1E88E5;
    padding: 0 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.logo-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
    height: 100%;
}
.logo-img {
    height: 36px;
    width: 36px;
    border-radius: 4px;
    margin-right: 8px;
    object-fit: contain;
}
.logo-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}
.nav-item {
    color: white;
    text-decoration: none;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}
.nav-item.active {
    background: #1565C0;
    border-bottom: 3px solid #FFC107;
}
.nav-item:hover:not(.active) {
    background: #2196F3;
}

.search-bar {
    padding: 15px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.search-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.search-item label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.search-item input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}
.search-item input:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.btn-query {
    padding: 8px 20px;
    background: #409eff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    height: 36px;
    align-self: flex-end;
}
.btn-query:hover {
    background: #66b1ff;
}
.btn-reset {
    padding: 8px 20px;
    background: #909399;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    height: 36px;
    align-self: flex-end;
}
.btn-reset:hover {
    background: #a6a9ad;
}

.tip {
    color: #666;
    font-size: 13px;
    margin-left: 10px;
}
.date-tip {
    color: #fa541c;
    font-size: 12px;
    margin-top: 4px;
}
.empty-tip {
    text-align: center;
    padding: 50px 0;
    color: #999;
    font-size: 14px;
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    z-index: 9999;
}

.status-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
}
.status-landed {
    background: #52c41a;
}
.status-scheduled {
    background: #1890ff;
}

/* ======================================
   手机端响应式（只在 ≤768px 生效）
   ====================================== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .nav-menu {
        padding: 0 10px;
        position: sticky;
        top: 0;
        z-index: 999;
    }
    .logo-container {
        margin-right: 10px;
    }
    .logo-img {
        height: 30px;
        width: 30px;
        margin-right: 5px;
    }
    .logo-text {
        font-size: 15px;
    }
    .nav-item {
        padding: 0 8px;
        font-size: 14px;
        white-space: nowrap;
    }

    .search-bar {
        padding: 10px;
        gap: 10px;
        position: sticky;
        top: 50px;
        z-index: 998;
        background: #fff;
    }
    .search-item {
        flex: 1 1 100%;
        min-width: 0;
    }
    .search-item label {
        font-size: 13px;
    }
    .search-item input {
        width: 100%;
        font-size: 13px;
        padding: 6px 8px;
    }

    .btn-query, .btn-reset {
        flex: 1 1 100%;
        height: 34px;
        font-size: 13px;
        margin-top: 4px;
    }

    .tip {
        font-size: 12px;
        margin-left: 0;
        flex: 1 1 100%;
        line-height: 1.4;
        word-break: break-all;
    }
    .date-tip {
        font-size: 11px;
    }
    .empty-tip {
        padding: 30px 10px;
        font-size: 13px;
    }
    .loading {
        max-width: 80%;
        padding: 10px 20px;
        font-size: 13px;
    }
    .status-tag {
        font-size: 11px;
        padding: 2px 6px;
    }
}

/* 更小屏幕手机 */
@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    .nav-item {
        font-size: 12px;
        padding: 0 4px;
    }
}