/*
 * 归途物流平台 - 全局公共样式
 * 主题色：渐变紫 #667eea → #764ba2
 * 适配：PC/平板/手机 H5响应式
 * 商用统一规范：卡片、按钮、表单、弹窗、分页、配色体系
 */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

input, textarea, select, button {
    outline: none;
    border: none;
    font-size: 14px;
}

/* 容器统一 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 通用卡片样式 */
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 渐变主按钮 */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.35);
}

/* 白色边框按钮 */
.btn-white {
    display: inline-block;
    padding: 11px 28px;
    background: #fff;
    color: #667eea;
    border: 1px solid #667eea;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: #f8f9ff;
}

/* 表单样式 */
.form-item {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.3s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #667eea;
}

.form-textarea {
    height: auto;
    padding: 12px 15px;
    resize: vertical;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #eee;
    color: #666;
}

.pagination a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

/* 状态标签 */
.tag-success {
    color: #10b981;
    background: #f0fdf4;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.tag-warning {
    color: #f59e0b;
    background: #fffbeb;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.tag-danger {
    color: #ef4444;
    background: #fef2f2;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.tag-primary {
    color: #667eea;
    background: #f0f4ff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* 弹窗遮罩 */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.pop-box {
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

/* 移动端底部悬浮按钮 */
.fixed-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    z-index: 99;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .card {
        padding: 15px;
    }
    .btn-primary, .btn-white {
        width: 100%;
    }
    *{margin:0;padding:0;box-sizing:border-box;font-family:"Microsoft Yahei",sans-serif;}
body{background:#f5f7fa;font-size:14px;color:#333;}
a{text-decoration:none;color:#667eea;}
input,button,select{outline:none;border:0;font-size:14px;}
.container{max-width:1200px;margin:0 auto;padding:15px;}
.btn{display:inline-block;padding:6px 14px;background:#667eea;color:#fff;border-radius:6px;cursor:pointer;}
.btn-red{background:#f56c6c;}
.btn-green{background:#10b981;}
.card{background:#fff;border-radius:12px;padding:20px;margin-bottom:15px;box-shadow:0 2px 8px #00000008;}
.form-item{margin-bottom:16px;}
.form-item label{display:block;margin-bottom:6px;color:#555;}
.form-item input{width:100%;height:44px;border:1px solid #e5e7eb;border-radius:8px;padding:0 12px;}
.empty{text-align:center;padding:60px 0;color:#999;}
.top-bar{background:#667eea;color:#fff;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;}
.top-bar a{color:#fff;}
}
