/* 代拿代发系统样式 - 统一现代化风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* 容器 */
.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 15px;
    background-color: transparent;
    min-height: 100vh;
}

/* 头部 */
.header {
    background: #ffffff;
    color: #333;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #333;
}

.header p {
    font-size: 14px;
    opacity: 0.7;
    color: #666;
}

/* 导航标签 */
.tabs {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-item {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    color: #666;
}

.tab-item.active {
    background: #409eff;
    color: white;
}

/* 卡片 - 统一样式 */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    border-left: 3px solid #409eff;
    padding-left: 8px;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

/* 紧凑表单样式 */
.form-group-compact {
    margin-bottom: 12px;
}

.form-label-sm {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.form-input-sm,
.form-select-sm,
.form-textarea-sm {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-textarea-sm {
    min-height: 60px;
    resize: vertical;
}

.form-input-sm:focus,
.form-select-sm:focus,
.form-textarea-sm:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.1);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.form-label.required::after,
.form-label-sm.required::after {
    content: "*";
    color: #f56c6c;
    margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.1);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: #409eff;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(64, 158, 255, 0.4);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-success {
    background: #67c23a;
    color: white;
}

.btn-danger {
    background: #f56c6c;
    color: white;
}

.btn-info {
    background: #409eff;
    color: white;
}

/* 订单列表 */
.order-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #409eff;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-no {
    font-size: 14px;
    color: #666;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fff3e0;
    color: #ff9800;
}

.status-processing {
    background: #e3f2fd;
    color: #2196f3;
}

.status-shipped {
    background: #e8f5e9;
    color: #4caf50;
}

.status-completed {
    background: #f3e5f5;
    color: #9c27b0;
}

.status-cancelled {
    background: #fce4ec;
    color: #e91e63;
}

.order-info {
    margin: 10px 0;
}

.order-info-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.order-info-label {
    color: #999;
    min-width: 80px;
}

.order-info-value {
    color: #333;
    flex: 1;
}

.order-amount {
    text-align: right;
    font-size: 18px;
    font-weight: 600;
    color: #f56c6c;
    margin-top: 10px;
}

/* 地址列表 */
.address-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.address-item:hover,
.address-item.selected {
    border-color: #409eff;
    background: #f0f9ff;
}

.address-item.default {
    border-color: #67c23a;
}

.address-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.address-phone {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.address-detail {
    color: #999;
    font-size: 13px;
}

.default-badge {
    display: inline-block;
    background: #67c23a;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

/* 统计卡片 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: #409eff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #999;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading::after {
    content: "加载中...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state img {
    width: 150px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 图片上传 */
.upload-box {
    width: 100px;
    height: 100px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-box:hover {
    border-color: #409eff;
}

.upload-box img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

/* 快递公司选择 */
.express-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.express-item {
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.express-item:hover,
.express-item.selected {
    border-color: #409eff;
    background: #f0f9ff;
}

/* 通知消息 */
.notification-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #409eff;
}

.notification-item.unread {
    background: #f0f9ff;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.notification-content {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.notification-time {
    color: #999;
    font-size: 12px;
}

/* 响应式 */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .stat-cards {
        grid-template-columns: 1fr;
    }
    
    .express-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 9999;
    animation: fadeInOut 2s;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* 全局输入框提示文字样式 - 字体大小适中 */
input::placeholder,
textarea::placeholder,
select::placeholder {
    font-size: 0.7em !important;
    opacity: 0.7;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    font-size: 0.7em !important;
    opacity: 0.7;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    font-size: 0.7em !important;
    opacity: 0.7;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    font-size: 0.7em !important;
    opacity: 0.7;
}

