* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
body { background: #f5f5f5; padding-bottom: 80px; }

/* 搜索区域 */
.search-section {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.search-row:last-child { margin-bottom: 0; }
.search-input {
    flex: 1;
    min-width: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}
.search-input-sm { flex: 0.6; min-width: 80px; }
.search-btn, .reset-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
.search-btn {
    background: #1890ff;
    color: #fff;
}
.reset-btn {
    background: #f5f5f5;
    color: #666;
}

/* 分页信息 */
.pagination-info {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

/* 滚动加载提示 */
.scroll-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    color: #999;
    font-size: 13px;
}
.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid #f5f5f5;
    border-top-color: #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.no-more {
    text-align: center;
    padding: 15px;
    color: #ccc;
    font-size: 13px;
}

/* 页面标题 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.page-header h1 { font-size: 18px; color: #333; }
.header-actions { display: flex; gap: 15px; align-items: center; }
.back-link { color: #1890ff; text-decoration: none; font-size: 14px; }
.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 6px 12px;
    border: 1px solid #1890ff;
    border-radius: 20px;
    background: #fff;
    color: #1890ff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(24, 144, 255, 0.15);
}
.lang-btn:hover {
    background: #1890ff;
    color: #fff;
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
}
.lang-btn.active {
    background: #1890ff;
    color: #fff;
}
.lang-btn .lang-text {
    letter-spacing: 0.5px;
}

/* 加载 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f5f5f5;
    border-top-color: #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { margin-top: 15px; color: #999; }

/* 数据容器 */
.data-container { padding: 10px; }

/* 用户卡片 */
.user-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}
.user-header { padding: 15px; background: #1890ff; }
.user-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.user-checkbox {
    flex-shrink: 0;
    cursor: pointer;
}
.user-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.user-icon { font-size: 20px; }
.user-info { flex: 1; display: flex; align-items: center; gap: 5px; }
.user-id { font-weight: bold; font-size: 15px; }
.user-name { font-size: 14px; opacity: 0.9; }
.user-count { font-size: 12px; opacity: 0.8; }
.expand-icon {
    font-size: 12px;
    color: #fff;
    opacity: 0.7;
    transition: transform 0.2s;
}
.expand-icon.expanded { transform: rotate(90deg); }

/* 快递包裹列表 */
.express-list { padding: 0; }

/* 快递卡片 */
.express-card {
    border-top: 1px solid #eee;
    background: #fafafa;
}
.express-card:first-child { border-top: none; }
.express-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 10px;
    background: #fff;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.express-header-expanded {
    border-bottom-color: #52c41a;
    background: #f6ffed;
}
.express-icon {
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}
.express-checkbox {
    flex-shrink: 0;
    cursor: pointer;
}
.express-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.express-id-inline {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}
.express-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.express-number {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}
.express-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}
.status-0 { background: #fff7e6; color: #fa8c16; }
.status-1 { background: #f6ffed; color: #52c41a; }
.status-2 { background: #e6f7ff; color: #1890ff; }
.status-4 { background: #fff1f0; color: #ff4d4f; }
.status-5 { background: #f9f0ff; color: #722ed1; }
.status-6 { background: #f5f5f5; color: #999; }
.goods-dropdown {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: #1890ff;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
}
.goods-dropdown:hover { opacity: 0.85; }
.dropdown-arrow {
    font-size: 10px;
    opacity: 0.8;
    transition: transform 0.2s;
}
.dropdown-arrow.expanded {
    transform: rotate(90deg);
}

.express-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px 15px;
    padding: 0 15px 15px;
}
.info-item { display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 12px; color: #999; }
.info-value { font-size: 14px; color: #333; word-break: break-all; }
.info-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.service-item-row { flex: 1; min-width: 0; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 4px;
    font-size: 12px;
}
.no-service { color: #999; font-size: 14px; }
.weight-item-row {
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
}
.weight-item-row .info-value {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}
.info-item.full-width { grid-column: 1 / -1; }
.info-item.no-photo { grid-column: 1 / -1; }
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.photo-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    background: #f5f5f5;
}

/* 商品区域 */
.goods-section {
    padding: 15px;
    background: #fff;
    border-top: 1px dashed #ddd;
}
.goods-title {
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}
.goods-list { display: flex; flex-direction: column; gap: 10px; }
.goods-item {
    display: flex;
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    background: #fafafa;
}
.goods-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    background: #f5f5f5;
}
.goods-detail { flex: 1; min-width: 0; }
.goods-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.goods-sku {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.goods-row { display: flex; align-items: center; gap: 10px; }
.goods-price { font-size: 14px; color: #ff4d4f; font-weight: 500; }
.goods-num { font-size: 13px; color: #666; }
.goods-id { font-size: 11px; color: #999; margin-top: 4px; }
.goods-link-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    background: #1890ff;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
}
.goods-link-btn:hover { background: #40a9ff; }
.no-goods { text-align: center; padding: 15px; color: #999; font-size: 14px; background: #fff; }

/* 无数据 */
.no-data { text-align: center; padding: 50px; color: #999; }

/* 底部固定栏 */
.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    z-index: 100;
}
.fixed-bottom-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.selected-info { font-size: 14px; color: #666; white-space: nowrap; }
.submit-btn {
    padding: 10px 20px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
.submit-btn:disabled { background: #d9d9d9; color: #999; cursor: not-allowed; }

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 500;
}
.close-btn { font-size: 24px; color: #999; cursor: pointer; }
.modal-body { padding: 15px; max-height: 60vh; overflow-y: auto; }
.modal-tip { font-size: 14px; color: #666; margin-bottom: 15px; }
.selected-list {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    max-height: 120px;
    overflow-y: auto;
}
.selected-item {
    padding: 4px 0;
    font-size: 13px;
    color: #333;
}
.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 14px; color: #666; }
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}
.modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #eee;
}
.btn-cancel, .btn-confirm {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}
.btn-cancel { background: #f5f5f5; color: #666; }
.btn-confirm { background: #1890ff; color: #fff; }
.btn-confirm:disabled { background: #d9d9d9; color: #999; cursor: not-allowed; }

/* Toast */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    z-index: 2000;
}
.toast.error { background: rgba(255,77,79,0.9); }
.toast.success { background: rgba(82,196,26,0.9); }

/* 桌面端响应式 */
@media (min-width: 768px) {
    .page-header { max-width: 1200px; margin: 0 auto; }
    .data-container { max-width: 1200px; margin: 0 auto; padding: 15px; }
    .express-info-grid { grid-template-columns: repeat(5, 1fr); }
    .fixed-bottom-bar { max-width: 1200px; left: 50%; transform: translateX(-50%); }
}