/* 山海通行 - H5端样式 */
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;color:#333;background:#f5f5f5;min-height:100vh}
a{color:inherit;text-decoration:none}
input,select,textarea{font-size:14px;border:1px solid #ddd;border-radius:4px;padding:8px 12px;width:100%;outline:none;background:#fff}
input:focus,select:focus,textarea:focus{border-color:#0089ff}
button{font-size:14px;cursor:pointer;border:none;border-radius:4px;padding:10px 20px;width:100%}
.btn-primary{background:#0089ff;color:#fff}
.btn-primary:active{background:#0073db}
.btn-default{background:#fff;color:#333;border:1px solid #ddd}
.btn-success{background:#07c160;color:#fff}
.btn-danger{background:#fa5151;color:#fff}
.btn-gray{background:#eee;color:#888}

/* 页面框架 */
.page{padding:16px}
.page-header{display:flex;align-items:center;padding:12px 16px;background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:10}
.page-header h1{flex:1;font-size:17px;font-weight:600;text-align:center}
.page-header .icon-btn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:20px}

/* 状态栏 */
.status-bar{height:44px;background:#0089ff;color:#fff;display:flex;align-items:center;padding:0 16px;font-size:13px}
.status-bar .back{width:40px;font-size:18px}

/* 列表 */
.list{background:#fff}
.list-item{padding:14px 16px;border-bottom:1px solid #f0;display:flex;align-items:center;gap:12px}
.list-item:last-child{border-bottom:none}
.list-item-left{flex:1;min-width:0}
.list-item-title{font-size:15px;font-weight:500;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.list-item-sub{font-size:12px;color:#999}
.list-item-right{text-align:right;flex-shrink:0}
.list-item-badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px}
.badge-pending{background:#fff3e0;color:#ff6d00}
.badge-paid{background:#e8f5e9;color:#4caf50}
.badge-done{background:#e3f2fd;color:#2196f3}
.badge-cancel{background:#fafafa;color:#999}

/* 卡片 */
.card{background:#fff;border-radius:8px;padding:16px;margin-bottom:12px}
.card-title{font-size:15px;font-weight:600;margin-bottom:12px;padding-left:10px;border-left:3px solid #0089ff}
.card-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #f0}
.card-row:last-child{border-bottom:none}
.card-row .label{color:#999;font-size:13px}
.card-row .value{font-size:14px;font-weight:500}

/* 表单 */
.form{padding:16px}
.form-group{margin-bottom:16px}
.form-label{font-size:13px;color:#666;margin-bottom:6px;display:block}
.form-row{display:flex;gap:12px}
.form-row .form-group{flex:1}

/* 金额展示 */
.amount-big{font-size:28px;font-weight:700;color:#0089ff}
.amount-red{color:#fa5151}

/* 底部按钮 */
.bottom-btns{position:fixed;bottom:0;left:0;right:0;padding:12px 16px;background:#fff;border-top:1px solid #eee;display:flex;gap:12px}
.bottom-btns button{flex:1}

/* 加载 */
.loading{padding:40px;text-align:center;color:#999}
.spinner{display:inline-block;width:24px;height:24px;border:2px solid #ddd;border-top-color:#0089ff;border-radius:50%;animation:spin .8s linear infinite;margin-bottom:10px}
@keyframes spin{to{transform:rotate(360deg)}}
.empty{padding:60px 20px;text-align:center;color:#999;font-size:14px}
.empty-icon{font-size:48px;margin-bottom:12px}

/* 弹窗 */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:100;padding:20px}
.modal-content{background:#fff;border-radius:8px;width:100%;max-width:360px;max-height:80vh;overflow-y:auto}
.modal-header{padding:16px;text-align:center;font-size:16px;font-weight:600;border-bottom:1px solid #eee}
.modal-body{padding:16px}
.modal-footer{padding:12px 16px;border-top:1px solid #eee;display:flex;gap:12px}

/* Toast */
.toast{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.75);color:#fff;padding:12px 20px;border-radius:6px;font-size:14px;z-index:200;pointer-events:none}

/* 金额输入 */
.price-input{font-size:24px;font-weight:700;text-align:center;padding:16px;border:2px solid #0089ff;border-radius:8px}

/* 订单卡片 */
.order-card{background:#fff;border-radius:8px;padding:14px;margin-bottom:10px}
.order-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.order-no{font-size:12px;color:#999}
.order-status{font-size:12px;padding:2px 8px;border-radius:10px}
.order-info{display:flex;gap:16px;font-size:13px;color:#666;margin-bottom:10px}
.order-amount{font-size:18px;font-weight:700;color:#fa5151}
.order-actions{display:flex;gap:10px;margin-top:10px}
.order-actions button{flex:1;padding:8px;font-size:13px}

/* 数字键盘 */
.num-keyboard{background:#fff;border-radius:8px;padding:8px;margin-top:12px}
.num-row{display:flex;gap:8px;margin-bottom:8px}
.num-key{flex:1;background:#f0f0f0;border-radius:4px;height:48px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:500;cursor:pointer}
.num-key:active{background:#ddd}
.num-key.wide{flex:2}

/* ========== 首页样式（设计图 sdj01）========== */
.home-page{background:#f5f6fa;min-height:100vh;padding-bottom:20px}

/* 顶部用户信息 - 紫色渐变 */
.home-header{
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    padding:40px 20px 28px;
    display:flex;
    align-items:center;
    gap:14px;
}
.home-avatar-wrap{
    width:56px;height:56px;
    background:rgba(255,255,255,.25);
    border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0
}
.home-avatar-icon{font-size:28px}
.home-user-info{color:#fff}
.home-name{font-size:19px;font-weight:600;margin-bottom:4px}
.home-dept{font-size:13px;color:rgba(255,255,255,.75)}

/* 统计白色卡片 */
.home-stats-card{
    margin:-18px 16px 0;
    background:#fff;
    border-radius:12px;
    padding:20px 16px;
    display:flex;
    align-items:center;
    box-shadow:0 4px 16px rgba(0,0,0,.08);
    position:relative;z-index:1
}
.home-stat-item{flex:1;text-align:center}
.home-stat-amount{font-size:20px;font-weight:700;color:#333}
.home-stat-num{font-size:20px;font-weight:700;color:#333}
.home-stat-label{font-size:12px;color:#999;margin-top:4px}
.home-stat-divider{width:1px;height:36px;background:#eee}

/* 功能入口列表 */
.home-func-list{padding:12px 16px}
.home-func-item{
    display:flex;align-items:center;gap:14px;
    background:#fff;border-radius:10px;
    padding:16px;margin-bottom:10px;
    box-shadow:0 1px 4px rgba(0,0,0,.06)
}
.home-func-item:active{background:#f9f9f9}
.home-func-icon{
    width:46px;height:46px;border-radius:10px;
    display:flex;align-items:center;justify-content:center;
    font-size:22px;flex-shrink:0
}
.home-func-gold{background:#fff8e1}
.home-func-orange{background:#fff3e0}
.home-func-green{background:#e8f5e9}
.home-func-purple{background:#f3e5f5}
.home-func-text{flex:1;min-width:0}
.home-func-title{font-size:16px;font-weight:600;margin-bottom:2px}
.home-func-title-blue{color:#1976d2}
.home-func-title-orange{color:#e65100}
.home-func-title-green{color:#2e7d32}
.home-func-title-purple{color:#7b2d8b}
.home-func-desc{font-size:12px;color:#999}

/* 底部菜单 */
.home-menu-list{padding:8px 16px}
.home-menu-item{
    display:flex;align-items:center;gap:12px;
    background:#fff;border-radius:10px;
    padding:14px 16px;margin-bottom:8px;
    box-shadow:0 1px 4px rgba(0,0,0,.06)
}
.home-menu-item:active{background:#f9f9f9}
.home-menu-icon{font-size:18px;width:24px;text-align:center}
.home-menu-label{flex:1;font-size:15px;color:#333;font-weight:500}
.home-menu-arrow{color:#ccc;font-size:20px;font-weight:300}

/* tab切换 */
.tab-bar{display:flex;background:#fff;padding:0 16px;border-bottom:1px solid #eee}
.tab-item{flex:1;padding:12px 0;text-align:center;font-size:14px;color:#999;position:relative}
.tab-item.active{color:#0089ff;font-weight:600}
.tab-item.active::after{content:'';position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:24px;height:2px;background:#0089ff;border-radius:1px}