:root{
  --primary:#ff7f4f; /* 渐变橙 */
  --primary-2:#ff9b5c;
  --bg:#f7f7f8;
  --text:#222;
  --sub:#8a8f98;
  --card:#ffffff;
  --line:#ececec;
  --brand:#ff6a3d;
}

*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Noto Sans CJK SC',sans-serif;
  color:var(--text);
  background:var(--bg);
  -webkit-text-size-adjust:100%;
}

#app{min-height:100%; display:flex; flex-direction:column; position:relative; z-index:1}
.bg-top{position:fixed; left:0; right:0; top:0; height:260px; background:linear-gradient(180deg,#ffa87a 0%, #ffe1d2 100%); z-index:0; pointer-events:none}
.app-header{position:sticky; top:0; z-index:5; height:48px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; letter-spacing:.5px; background:linear-gradient(180deg,var(--primary),var(--primary-2));}
.header-back{position:absolute; left:8px; top:50%; transform:translateY(-50%); background:none; border:0; color:#fff; opacity:.95}
.app-title{font-size:18px}

main{flex:1; padding:12px 12px calc(80px + env(safe-area-inset-bottom));}
.page{display:none}
.page.active{display:block}

/* 取消主页局部滚动改动，恢复默认布局 */

/* 底部导航 */
.tabbar{position:fixed; left:0; right:0; bottom:0; height:62px; background:#fff; border-top:1px solid var(--line); display:flex; justify-content:space-around; align-items:center; z-index:10; padding-bottom:env(safe-area-inset-bottom)}
.tab{appearance:none; background:none; border:0; display:flex; flex-direction:column; align-items:center; gap:4px; color:#98a0a6; font-size:12px; width:33.33%}
.tab .tab-icon{font-size:20px}
.tab.active{color:var(--brand)}

/* 主页 */
.home-search{display:flex; align-items:center; gap:8px; background:#fff; border-radius:24px; padding:10px 12px; box-shadow:0 2px 8px rgba(0,0,0,.04)}
.home-search .icon{width:18px; height:18px; fill:#a0a6ad}
.home-search input{flex:1; border:0; outline:0; font-size:16px}
.location-btn{background:none; border:0; color:#6b7280; padding:4px; border-radius:6px; cursor:pointer; transition:all 0.2s ease; flex-shrink:0}
.location-btn:hover{background:#f3f4f6; color:var(--primary)}
.location-btn:active{transform:scale(0.95)}

.home-banner{margin-top:12px; background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,.06)}
.banner-swiper{width:100%; height:34vw; max-height:180px}
.banner-swiper .swiper-slide{width:100%; height:100%}
.banner-swiper img{width:100%; height:100%; object-fit:cover}
.banner-swiper .swiper-pagination{bottom:8px}
.banner-swiper .swiper-pagination-bullet{width:6px; height:6px; background:#d8dbe0; opacity:1}
.banner-swiper .swiper-pagination-bullet-active{width:14px; background:var(--brand)}

.home-filters{display:flex; gap:10px; padding:12px 0}
.chip{border:0; background:#fff; border-radius:18px; padding:10px 14px; color:#454b52; box-shadow:0 1px 4px rgba(0,0,0,.04)}
.dropdown{position:relative}
.dd{position:absolute; top:120%; left:0; min-width:120px; background:#fff; border:1px solid #ececec; border-radius:10px; box-shadow:0 6px 20px rgba(0,0,0,.08); padding:6px; z-index:6}
.dd-item{display:block; width:100%; text-align:left; background:none; border:0; padding:8px 10px; border-radius:8px}
.dd-item:hover{background:#f6f7f9}

.home-list{display:flex; flex-direction:column; gap:10px}
.station-card{background:#fff; border-radius:12px; padding:12px; box-shadow:0 2px 8px rgba(0,0,0,.05); border:1px solid #f2f2f2}
.station-header{display:flex; align-items:flex-start; gap:10px; margin-bottom:6px}
.station-name{font-weight:900; color:#2b2f33; font-size:16px}
.station-desc{color:#8b9097; font-size:12px; line-height:1.4; margin-top:2px}
.station-body{display:flex; align-items:stretch; gap:12px}
.price-grid{display:flex; gap:14px; flex:1 1 auto; min-width:0; flex-wrap:wrap}
.price-box{min-width:70px}
.price-box .p-title{color:#ff7f4f; font-weight:900}
.price-box .p-title.gray{color:#999}
.price-box .p-val{margin-top:6px; color:#ff6b3d; font-weight:900}
.price-box .p-val.gray{color:#9aa1a8}
/* 撤回平台价特殊高亮 */
.action{display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex:0 0 auto}
.distance{color:#9aa1a8; font-size:12px; white-space:nowrap}
.nav-btn{background:linear-gradient(180deg,#ffa069,#ff7f4f); color:#fff; border:0; border-radius:22px; padding:8px 14px; font-weight:900; flex-shrink:0; white-space:nowrap}

@media (max-width:360px){
  .price-box{min-width:64px}
  .price-grid{gap:10px}
  .nav-btn{padding:8px 12px; font-size:12px}
}

/* 新布局：左侧平台价，右侧为名称/国标价/油站价/导航 */
.station-layout{display:flex; gap:12px; align-items:center}
.layout-left{flex:0 0 92px; background:#fff7f3; border-radius:10px; padding:10px; text-align:center}
.layout-left .p-title{color:#ff7f4f; font-weight:900}
.layout-left .p-val{margin-top:6px; color:#ff6b3d; font-weight:900; font-size:18px}
.layout-right{flex:1 1 auto; min-width:0}
.layout-top{display:flex; justify-content:space-between; align-items:center; gap:8px}
.layout-prices{display:flex; gap:16px; align-items:center; margin-top:6px}
.layout-prices .price-box{min-width:auto}

/* 订单 */
.orders-stats{display:flex; background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.05)}
.orders-stats .stat{flex:1; padding:16px; text-align:center}
.orders-stats .stat-num{color:var(--brand); font-weight:800; font-size:22px}
.orders-stats .stat-label{color:#6f7680; font-size:14px; font-weight:600}
.orders-stats .divider{width:1px; background:var(--line)}
.orders-tabs{display:flex; justify-content:space-around; padding:16px 0; margin:0 16px}
.orders-tab{border:0; background:none; color:#8a8f98; font-weight:700; font-size:16px; padding:10px 16px; border-radius:8px; transition:all 0.2s ease; cursor:pointer}
.orders-tab:hover{color:#6b7280; background:#f8f9fa}
.orders-tab.active{color:var(--brand); position:relative; background:#fff5f0}
.orders-tab.active::after{content:""; position:absolute; left:0; right:0; bottom:-8px; margin:auto; width:28px; height:3px; background:var(--brand); border-radius:3px}
.orders-empty{margin-top:40px; display:flex; flex-direction:column; align-items:center; color:#b1b6bd}
.orders-empty .box{width:120px; height:90px; border:2px dashed #e5e7eb; border-radius:10px; background:
  linear-gradient(180deg,#fafafa,#fff);}
.orders-empty .text{margin-top:12px}

.orders-list{display:flex; flex-direction:column; gap:10px}
.order-card{background:#fff; border-radius:12px; padding:12px; box-shadow:0 2px 8px rgba(0,0,0,.05); border:1px solid #f2f2f2}
.order-top{display:flex; justify-content:space-between; align-items:center}
.order-name{font-weight:800}
.order-status{font-size:12px; padding:2px 8px; border-radius:10px; background:#eef2ff; color:#3b5bff}
.order-status.refunded{background:#ffe6e6; color:#ff5a5a}
.order-meta{color:#6b7280; font-size:12px; margin:6px 0}
.order-mid{display:flex; justify-content:space-between; margin-top:4px}
.order-mid .pair{color:#6b7280; font-size:12px}
.order-mid .val{color:#111; font-weight:700}
.order-bottom{display:flex; justify-content:space-between; align-items:center; margin-top:8px}
.order-amount{color:#111; font-weight:800}
.order-actions{display:flex; gap:8px}
.order-btn{height:30px; padding:0 10px; border-radius:16px; border:1px solid #e5e7eb; background:#fff}
.order-btn.primary{background:linear-gradient(180deg,#ffa069,#ff7f4f); color:#fff; border:0}

/* 底部加载指示器 */
.load-more-indicator{padding:20px; text-align:center; margin-bottom:80px; opacity:0.8}
.load-more-indicator.loading{opacity:1}
.load-more-spinner{display:flex; align-items:center; justify-content:center; margin-bottom:8px}
.spinner{width:20px; height:20px; border:2px solid #e5e7eb; border-top:2px solid var(--brand); border-radius:50%; animation:spin 1s linear infinite}
.load-more-text{font-size:14px; color:var(--sub); font-weight:500}
.load-more-indicator.loading .load-more-text{color:var(--brand)}
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}

/* 订单明细 */
.od-head{display:flex; justify-content:space-between; align-items:center}
.od-title{font-weight:800}
.od-status{font-size:12px; padding:2px 8px; border-radius:10px; background:#eef2ff; color:#3b5bff}
.od-meta{color:#6b7280; font-size:12px; margin-top:6px}
#od-qr-card{text-align:center; padding:8px}
.od-qr-title{font-weight:700; margin-bottom:6px; text-align:center}
#od-qr{display:block; margin:0 auto 12px auto; border:1px solid #e6e8eb; border-radius:8px}
.od-qr-tip{color:#6b7280; font-size:12px; text-align:center}

/* 登录界面 */
.login-container{max-width:400px; margin:0 auto; padding:20px}
.login-header{text-align:center; margin-bottom:30px}
.login-logo{display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:8px}
.logo-icon{font-size:32px}
.logo-text{font-size:24px; font-weight:800; color:var(--primary)}
.login-subtitle{color:#6b7280; font-size:14px}

.login-tabs{display:flex; background:#f8f9fa; border-radius:12px; padding:4px; margin-bottom:24px}
.login-tab{flex:1; text-align:center; padding:12px 8px; border-radius:8px; font-size:14px; font-weight:600; color:#6b7280; cursor:pointer; transition:all 0.2s ease}
.login-tab.active{background:#fff; color:var(--primary); box-shadow:0 2px 4px rgba(0,0,0,0.1)}

.login-form{display:none}
.login-form.active{display:block}

.wechat-login-content{text-align:center; padding:40px 20px}
.wechat-icon{font-size:48px; margin-bottom:16px}
.wechat-title{font-size:18px; font-weight:700; color:#333; margin-bottom:8px}
.wechat-desc{color:#6b7280; font-size:14px; margin-bottom:24px}
.wechat-btn{display:flex; align-items:center; justify-content:center; gap:8px; width:100%; height:48px; background:linear-gradient(180deg,#07c160,#06ad56); color:#fff; border:0; border-radius:12px; font-size:16px; font-weight:600; cursor:pointer; transition:all 0.2s ease}
.wechat-btn:hover{background:linear-gradient(180deg,#06ad56,#059e4f); transform:translateY(-1px)}
.wechat-btn:active{transform:translateY(0)}

.form-group{margin-bottom:16px}
.form-group input{width:100%; height:48px; border:1px solid #e6e8eb; border-radius:12px; padding:0 16px; font-size:16px; background:#fff; transition:all 0.2s ease}
.form-group input:focus{outline:0; border-color:var(--primary); box-shadow:0 0 0 3px rgba(255,127,79,0.1)}
.form-group input::placeholder{color:#9ca3af}

.sms-group{display:flex; gap:8px}
.sms-group input{flex:1}
.sms-btn{flex:0 0 auto; height:48px; padding:0 16px; background:var(--primary); color:#fff; border:0; border-radius:12px; font-size:14px; font-weight:600; cursor:pointer; transition:all 0.2s ease; white-space:nowrap}
.sms-btn:hover{background:var(--primary-2)}
.sms-btn:disabled{background:#d1d5db; cursor:not-allowed}

.form-options{display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; font-size:14px}
.remember-me{display:flex; align-items:center; gap:6px; cursor:pointer; color:#6b7280}
.remember-me input{width:16px; height:16px; margin:0}
.forgot-password{color:var(--primary); text-decoration:none}
.forgot-password:hover{text-decoration:underline}

.login-btn{width:100%; height:48px; background:var(--primary); color:#fff; border:0; border-radius:12px; font-size:16px; font-weight:600; cursor:pointer; transition:all 0.2s ease}
.login-btn:hover{background:var(--primary-2); transform:translateY(-1px)}
.login-btn:active{transform:translateY(0)}
.login-btn:disabled{background:#d1d5db; cursor:not-allowed; transform:none}

.login-agreement{text-align:center; margin-top:24px; font-size:12px; color:#6b7280; line-height:1.5}
.agreement-check{display:flex; align-items:center; justify-content:center; gap:6px; margin-bottom:8px; cursor:pointer}
.agreement-check input{width:14px; height:14px; margin:0}
.agreement-link{color:var(--primary); text-decoration:none}
.agreement-link:hover{text-decoration:underline}

/* 自定义提示组件 */
.toast{position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); z-index:9999; opacity:0; visibility:hidden; transition:all 0.3s ease}
.toast.show{opacity:1; visibility:visible}
.toast-content{background:rgba(0,0,0,0.8); color:#fff; padding:16px 20px; border-radius:12px; display:flex; align-items:center; gap:12px; min-width:200px; max-width:300px; box-shadow:0 8px 32px rgba(0,0,0,0.3); backdrop-filter:blur(10px)}
.toast-icon{font-size:20px; flex-shrink:0}
.toast-message{flex:1; font-size:14px; line-height:1.4; word-break:break-word}
.toast.success .toast-content{background:rgba(34,197,94,0.9)}
.toast.error .toast-content{background:rgba(239,68,68,0.9)}
.toast.warning .toast-content{background:rgba(245,158,11,0.9)}
.toast.info .toast-content{background:rgba(59,130,246,0.9)}

/* 自定义确认对话框 */
.confirm-dialog{position:fixed; top:0; left:0; right:0; bottom:0; z-index:10000; opacity:0; visibility:hidden; transition:all 0.3s ease}
.confirm-dialog.show{opacity:1; visibility:visible}
.confirm-overlay{position:absolute; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); backdrop-filter:blur(4px)}
.confirm-content{position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); background:#fff; border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,0.3); min-width:280px; max-width:400px; overflow:hidden; animation:confirmSlideIn 0.3s ease}
@keyframes confirmSlideIn{from{opacity:0; transform:translate(-50%, -60%); scale:0.9} to{opacity:1; transform:translate(-50%, -50%); scale:1}}
.confirm-header{display:flex; align-items:center; gap:12px; padding:20px 20px 0 20px}
.confirm-icon{font-size:24px; flex-shrink:0}
.confirm-title{font-size:18px; font-weight:700; color:#1f2937}
.confirm-message{padding:16px 20px; color:#6b7280; line-height:1.5; font-size:14px}
.confirm-actions{display:flex; gap:12px; padding:0 20px 20px 20px}
.confirm-btn{flex:1; height:44px; border:0; border-radius:12px; font-size:16px; font-weight:600; cursor:pointer; transition:all 0.2s ease}
.confirm-btn.cancel{background:#f3f4f6; color:#6b7280}
.confirm-btn.cancel:hover{background:#e5e7eb; color:#374151}
.confirm-btn.confirm{background:var(--primary); color:#fff}
.confirm-btn.confirm:hover{background:var(--primary-2); transform:translateY(-1px)}
.confirm-btn.confirm:active{transform:translateY(0)}

/* 我的 */
.mine-card{background:#fff; border-radius:12px; padding:12px; box-shadow:0 2px 8px rgba(0,0,0,.05); margin-bottom:10px}
.profile{display:flex; gap:12px; align-items:center}
.avatar{width:56px; height:56px; border-radius:12px; object-fit:cover}
.profile-info .phone{font-weight:700}
.tags{display:flex; gap:8px; margin-top:6px}
.tag{background:#f1f2f4; color:#616975; padding:2px 8px; border-radius:10px; font-size:12px}
.tag.primary{background:#ffe6db; color:#ff6b3d}
.tag.link{background:#eef6ff; color:#2b77ff; cursor:pointer; border:0}
.subsidy{display:flex; justify-content:space-between; align-items:center}
.subsidy-title{color:#616975; font-size:12px}
.subsidy-amount{font-size:22px; font-weight:800}
.subsidy-amount .unit{font-size:12px; color:#7b828c; margin-left:4px}
.subsidy-right{font-size:56px; color:#edd691; font-weight:800; text-shadow:0 2px 4px rgba(255,106,61,0.3); transform:scale(1.1); transition:all 0.3s ease}
.subsidy-right:hover{color:#edd691; transform:scale(1.2); text-shadow:0 4px 8px rgba(255,106,61,0.4)}
.mine-list{list-style:none; padding:0; margin:0; background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.05)}
.mine-item{display:flex; align-items:center; gap:12px; padding:14px 12px; border-bottom:1px solid var(--line)}
.mine-item:last-child{border-bottom:0}
.mi-icon{width:20px; text-align:center}
.mi-text{flex:1}
.mi-text.link{background:none; border:0; text-align:left; padding:0; color:inherit; cursor:pointer}
.mi-arrow{color:#c1c6cc}

@media (min-width:768px){
  main{max-width:480px; margin:0 auto; width:100%}
}

/* 认证页面 */
.cert-card{background:#fff; border-radius:12px; padding:12px; box-shadow:0 2px 8px rgba(0,0,0,.05); margin-bottom:10px}
.cert-title{font-weight:700; margin-bottom:8px}
.cert-note{color:#8b929c; font-size:12px; margin-left:8px}
.cert-uploads{display:flex; gap:12px}
.upload-box{flex:1; position:relative}
.upload-box input.file{position:absolute; inset:0; opacity:0; cursor:pointer}
.thumb{height:120px; border:1px dashed #e5e7eb; border-radius:10px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#8a8f98; background:#fbfbfc}
.thumb img{width:100%; height:100%; object-fit:cover; border-radius:10px}
.camera{font-size:24px; margin-bottom:6px}
.u-text{font-size:12px}
.form{display:flex; flex-direction:column; gap:10px}
.f-row{display:flex; align-items:center; gap:8px}
.f-label{width:96px; color:#616975; flex:0 0 96px}
.f-input{flex:1 1 auto; min-width:0; height:44px; border:1px solid #e6e8eb; border-radius:10px; padding:0 12px; background:#fff; font-size:16px}
.f-row select.f-input{appearance:none; -webkit-appearance:none; background:#fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="%239aa1a8" d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center; background-size:16px}
.code-btn{flex:0 0 auto; height:36px; line-height:36px; border:0; padding:0 12px; border-radius:18px; color:#ff7f4f; background:#ffe6db; font-weight:700; white-space:nowrap}
.f-row .code-btn{margin-left:auto}

@media (max-width:360px){
  .f-label{width:80px; flex:0 0 80px}
  .code-btn{padding:0 10px; font-size:12px}
}
.req{color:#ff5a2f; margin-left:4px}
.submit-btn{width:100%; height:44px; border:0; border-radius:8px; background:linear-gradient(180deg,#ffa069,#ff7f4f); color:#fff; font-weight:700; margin-top:12px}

/* 确认订单 */
.card{background:#fff; border-radius:12px; padding:12px; box-shadow:0 2px 8px rgba(0,0,0,.05); margin-bottom:10px}
.co-station .co-name{font-weight:800}
.co-station .co-addr{color:#6b7280; font-size:12px; margin:6px 0}
.co-tags{display:flex; gap:8px; flex-wrap:wrap}
.tag.small{font-size:12px; padding:2px 8px}
.tag.small.brand{background:#ffe6db; color:#ff6b3d}
.co-tabs{display:flex; gap:12px; border-bottom:1px solid var(--line); padding-bottom:8px; margin-bottom:8px}
.co-tabs .t{padding:6px 0; color:#8a8f98; font-weight:700}
.co-tabs .t.active{color:var(--brand); position:relative}
.co-tabs .t.active::after{content:""; position:absolute; left:0; right:0; bottom:-9px; margin:auto; width:28px; height:3px; background:var(--brand); border-radius:3px}
.co-row{display:flex; align-items:center; justify-content:space-between; margin:10px 0}
.co-row.price .co-price{color:var(--brand); font-weight:800}
.amount-input{display:flex; align-items:center; gap:8px; border:1px solid #e6e8eb; border-radius:10px; padding:10px 12px; background:#fbfbfc}
.amount-input input{flex:1; border:0; outline:0; background:transparent; font-size:18px;  color:#1f2937}
.amount-input .liters{color:#ff7f4f;  min-width:60px; text-align:right; flex-shrink:0}
.quick{display:flex; gap:12px; margin-top:10px}
.quick .q{flex:1; height:42px; border-radius:8px; border:1px solid #e6e8eb; background:#fff; color:#454b52; font-weight:600; transition:all 0.2s ease; cursor:pointer}
.quick .q:hover{background:#f8f9fa; border-color:#d0d7de}
.quick .q.active{background:#fff; color:#ff7f4f; border-color:#ff7f4f; border-width:2px; box-shadow:0 2px 8px rgba(255,127,79,0.2)}
.fees .fee, .card .fee{display:flex; justify-content:space-between; padding:6px 0; color:#6b7280}
.card .fee.small{color:#9aa1a8}
.fee.payment-info{background:linear-gradient(135deg,#f8f9fa,#e9ecef); margin:8px -16px; padding:12px 16px; border-radius:8px; border:1px solid #dee2e6}
.fee.payment-info span:first-child{color:var(--brand); font-weight:600}
.fee.payment-info span:last-child{color:var(--text); font-size:14px; font-weight:500}
.pay{padding:0}
.pay .pay-item{padding:14px 12px; border-bottom:1px solid var(--line); display:flex; align-items:center}
.pay .pay-item.active{background:#fff7f3}
.pay .dot{display:inline-block; width:16px; height:16px; border-radius:16px; border:2px solid var(--brand); margin-right:8px; position:relative}
.pay .pay-item.active .dot::after{content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:8px; height:8px; background:var(--brand); border-radius:50%}
.paybar{position:fixed; left:0; right:0; bottom:calc(62px + env(safe-area-inset-bottom)); display:flex; justify-content:space-between; align-items:center; background:#fff; border-top:1px solid var(--line); padding:10px 12px; box-shadow:0 -2px 10px rgba(0,0,0,.04)}
.paybar .total{font-weight:800; color:#111}
.paybar .total .orig{color:#9aa1a8; margin-left:8px; text-decoration:line-through}
.paybar .saved{color:#ff7f4f; font-size:12px}
.paybar .go{background:linear-gradient(180deg,#ffa069,#ff7f4f); color:#fff; border:0; height:38px; padding:0 20px; border-radius:20px; font-weight:800}

/* 油卡 */
.cards-list{display:flex; flex-direction:column; gap:14px}
.card-item{position:relative; padding:18px; color:#fff; border-radius:16px; overflow:hidden; box-shadow:0 10px 24px rgba(0,0,0,.1)}
.card-item .brand{font-weight:900; font-size:18px}
.card-item .no{margin-top:10px; font-size:20px; letter-spacing:2.5px}
.card-item .row{display:flex; gap:12px; margin-top:10px; font-size:13px; opacity:.95}
.card-item .label{opacity:.9}
.card-item .value{font-weight:700}
.card-item .balance{position:absolute; right:18px; bottom:18px; font-weight:900; font-size:16px}
.card-item .tags{position:absolute; right:18px; top:18px; display:flex; gap:8px}
.card-item .tag{padding:2px 8px; background:rgba(255,255,255,.2); border-radius:10px; font-size:12px}
.card-item.bg1{background:linear-gradient(135deg,#ff9f74,#ff6b3d)}
.card-item.bg2{background:linear-gradient(135deg,#6aa8ff,#3861ff)}
.card-item.bg3{background:linear-gradient(135deg,#55d2a6,#2bb07f)}

/* 消费明细 */
.tab-content{display:block}
.tab-content[style*="display: none"]{display:none!important}
.consumption-summary{padding:3px 0}
.summary-item{display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid var(--line)}
.summary-item:last-child{border-bottom:none}
.summary-item.total{font-weight:600; font-size:16px; color:#212529; background:linear-gradient(135deg,#f8f9fa,#e9ecef); margin:0 -16px; padding:16px; border-radius:8px; border:1px solid #6c757d; box-shadow:0 2px 6px rgba(108,117,125,0.08)}
.summary-label{font-size:14px; color:var(--sub)}
.summary-value{font-size:14px; font-weight:500; color:var(--text)}
.summary-value.consumption{color:#dc3545; font-weight:600; font-size:14px}
.consumption-title{font-size:16px; font-weight:600; color:var(--text); margin-bottom:16px; padding-bottom:8px; border-bottom:2px solid var(--primary)}
.consumption-list{max-height:300px; overflow-y:auto}
.consumption-item{display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid var(--line)}
.consumption-item:last-child{border-bottom:none}
.consumption-info{flex:1}
.consumption-desc{font-size:14px; color:var(--text); margin-bottom:4px}
.consumption-time{font-size:12px; color:var(--sub)}
.consumption-amount{font-size:14px; font-weight:500; color:var(--brand)}
.consumption-amount.positive{color:#2bb07f}
.consumption-amount::before{content:attr(data-sign)}
.consumption-empty{text-align:center; padding:40px 20px; color:var(--sub); font-size:14px}
.consumption-empty .empty-icon{font-size:48px; margin-bottom:12px; opacity:.5}

/* 二维码余额提醒 */
.od-balance-reminder{margin-top:16px; padding:14px; background:linear-gradient(135deg,#f8f9fa,#e9ecef); border-radius:10px; text-align:center; border:1px solid #6c757d; box-shadow:0 2px 8px rgba(108,117,125,0.1)}
.balance-label{font-size:12px; color:#495057; margin-bottom:5px; font-weight:500}
.balance-amount{font-size:18px; font-weight:700; color:#212529; margin-bottom:5px}
.balance-tip{font-size:11px; color:#6c757d; line-height:1.4; font-weight:400}

/* 下拉刷新样式 */
#pull-refresh-indicator {
  position: fixed;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.refresh-icon {
  font-size: 18px;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.refresh-text {
  font-size: 12px;
  opacity: 0.9;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* 二维码懒加载样式 */
.qr-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin: 6px 0;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px dashed #6c757d;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.qr-placeholder:hover {
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  border-color: var(--brand);
  transform: scale(1.02);
}

.qr-placeholder-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.7;
}

.qr-placeholder-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.qr-placeholder-tip {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.4;
}

.qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  text-align: center;
}

.qr-loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e9ecef;
  border-top: 3px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

.qr-loading-text {
  font-size: 12px;
  color: var(--sub);
  font-weight: 500;
}

/* 二维码失效状态 */
.qr-placeholder.expired {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border-color: #ffc107;
}

.qr-placeholder.expired:hover {
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  border-color: #e17055;
}

.qr-placeholder.expired .qr-placeholder-icon {
  color: #e17055;
}

.qr-placeholder.expired .qr-placeholder-text {
  color: #d63031;
  font-weight: 700;
}

.qr-placeholder.expired .qr-placeholder-tip {
  color: #e17055;
  font-weight: 600;
}


/* 全局Loading遮罩层 */
.global-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.loading-content {
  background: white;
  border-radius: 12px;
  padding: 24px 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  min-width: 120px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f4f6;
  border-top: 3px solid #ff6a3d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}

.loading-text {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}



/* 油标号显示样式 */
.fuel-types {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fuel-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.fuel-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.fuel-tag {
  padding: 2px 8px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.fuel-tag.active {
  background: #ff6a3d;
  color: white;
  border-color: #ff6a3d;
  font-weight: 600;
}



/* 油站分享按钮样式 */
.station-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  font-size: 12px;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  color: #495057;
}

.share-btn:active {
  background: #dee2e6;
  transform: scale(0.98);
}

.share-icon {
  font-size: 14px;
}

.share-text {
  font-weight: 500;
}

/* 虚拟界面 */
.virtual-page{background:#f5f7fa; min-height:100vh}
.virtual-container{display:flex; align-items:center; justify-content:center; min-height:100vh; padding:20px; cursor:pointer; transition:transform 0.2s ease}
.virtual-container:active{transform:scale(0.98)}
.virtual-content{text-align:center; max-width:400px; width:100%}
.virtual-icon{font-size:120px; margin-bottom:24px; animation:bounce 2s ease-in-out infinite}
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-20px)}}
.virtual-title{font-size:48px; font-weight:900; color:#1f2937; margin-bottom:16px; letter-spacing:2px}
.virtual-subtitle{font-size:18px; color:#6b7280; font-weight:500}

/* 虚拟界面隐藏导航栏 */
body.virtual-mode .tabbar{display:none !important}
body.virtual-mode .header-back{display:none !important}

