/* 美膳官商城 · 认证 / 账户 / 结算页样式（暖橙品牌色） */
:root{ --msg-orange:#EF7700; --msg-orange-d:#d86800; --msg-pine:#1f4d3f; --msg-ink:#2b2b2b; --msg-mut:#7a736b; --msg-line:#e8e2d9; --msg-bg:#f7f3ec; --msg-cream:#fbf8f2; }

.auth-body{ background:var(--msg-bg); color:var(--msg-ink); font-family:inherit; min-height:100vh; display:flex; flex-direction:column; }
.auth-hd{ background:#fff; border-bottom:1px solid var(--msg-line); }
.auth-hd__in{ max-width:1180px; margin:0 auto; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; }
.auth-logo img{ height:44px; width:auto; display:block; }
.auth-back{ color:var(--msg-mut); font-size:14px; text-decoration:none; }
.auth-back:hover{ color:var(--msg-orange); }

.auth-main{ flex:1; display:flex; align-items:flex-start; justify-content:center; padding:56px 20px 72px; }
.auth-card{ width:100%; max-width:460px; background:#fff; border:1px solid var(--msg-line); border-radius:16px; box-shadow:0 18px 50px rgba(90,60,20,.08); overflow:hidden; }
.auth-card__brand{ padding:34px 34px 8px; text-align:center; }
.auth-card__brand .eyebrow{ color:var(--msg-orange); letter-spacing:.22em; font-size:12px; font-weight:700; }
.auth-card__brand h1{ font-size:30px; margin:10px 0 8px; color:var(--msg-ink); }
.auth-card__brand p{ color:var(--msg-mut); font-size:14px; margin:0; line-height:1.7; }
/* 登录/注册 Tab */
.auth-tabs{ display:flex; margin:18px 34px 0; border-bottom:1px solid var(--msg-line); }
.auth-tab{ flex:1; background:none; border:none; border-bottom:3px solid transparent; padding:12px 0; font-size:15px; color:var(--msg-mut); cursor:pointer; transition:color .15s,border-color .15s; }
.auth-tab:hover{ color:var(--msg-orange); }
.auth-tab.on{ color:var(--msg-orange); border-bottom-color:var(--msg-orange); font-weight:700; }
.auth-form{ padding:22px 34px 8px; }
.auth-form[hidden]{ display:none; }
.auth-tag{ display:inline-block; font-size:11px; font-weight:500; color:var(--msg-pine); background:#eaf2ee; border-radius:20px; padding:1px 9px; margin-left:6px; vertical-align:1px; }
.auth-switch{ text-align:center; color:var(--msg-mut); font-size:13px; margin:12px 0 6px; }
.link-btn{ background:none; border:none; color:var(--msg-orange); font-size:13px; font-weight:700; cursor:pointer; padding:0 2px; }
.link-btn:hover{ text-decoration:underline; }
.auth-form .fld{ margin-bottom:18px; }
.auth-form .fld label{ display:block; font-size:13px; font-weight:600; margin-bottom:8px; color:var(--msg-ink); }
.auth-form .fld input{ width:100%; box-sizing:border-box; height:46px; border:1px solid var(--msg-line); border-radius:9px; padding:0 14px; font-size:15px; color:var(--msg-ink); background:var(--msg-cream); outline:none; transition:border-color .15s; }
.auth-form .fld input:focus{ border-color:var(--msg-orange); background:#fff; }
.auth-code-row{ display:flex; gap:10px; }
.auth-code-row input{ flex:1; min-width:0; }
.auth-code-btn{ flex:0 0 auto; height:46px; padding:0 16px; white-space:nowrap; }
.auth-code-btn:disabled{ opacity:.6; cursor:not-allowed; }
.fld__err{ color:#c0392b; font-size:12px; margin:6px 0 0; }
.auth-hint{ color:var(--msg-pine); font-size:12px; margin:8px 0 0; }
.auth-global-err{ background:#fdeceb; color:#a5281c; border:1px solid #f5c6c2; border-radius:8px; padding:10px 12px; font-size:13px; margin:0 0 14px; }
.auth-submit{ height:50px; font-size:16px; font-weight:700; margin-top:4px; }
.auth-submit:disabled{ opacity:.7; cursor:wait; }
.auth-agree{ text-align:center; color:var(--msg-mut); font-size:12px; line-height:1.7; margin:16px 0 4px; }
.auth-agree a,.auth-card__foot a{ color:var(--msg-orange); text-decoration:none; }
.auth-agree a:hover,.auth-card__foot a:hover{ text-decoration:underline; }
.auth-card__foot{ background:var(--msg-cream); border-top:1px solid var(--msg-line); padding:16px 34px; text-align:center; }
.auth-card__foot p{ margin:0; color:var(--msg-mut); font-size:13px; }
.auth-ftr{ background:#2f2a24; color:#d8cfc2; text-align:center; padding:26px 20px; font-size:12px; line-height:2; }
.auth-ftr a{ color:#f0a860; text-decoration:none; }

/* 页头登录入口按钮 */
.mauth-btn{ display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:600; color:var(--msg-pine); text-decoration:none; padding:8px 12px; border:1px solid var(--msg-line); border-radius:8px; white-space:nowrap; transition:all .15s; }
.mauth-btn:hover{ color:#fff; background:var(--msg-pine); border-color:var(--msg-pine); }

/* ============ 账户中心 ============ */
.acct-main{ width:100%; max-width:1080px; margin:0 auto; padding:34px 20px 76px; box-sizing:border-box; }

/* 顶部会员卡 */
.acct-hero{ position:relative; overflow:hidden; color:#fff; border-radius:18px; padding:28px 30px 0; margin-bottom:12px;
  background:linear-gradient(125deg,#234f42 0%,#2f6b56 48%,#3c7d63 100%); box-shadow:0 16px 40px rgba(31,77,63,.18); }
.acct-hero__deco{ position:absolute; right:-60px; top:-90px; width:280px; height:280px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%,rgba(255,200,120,.28),rgba(255,200,120,0) 70%); pointer-events:none; }
.acct-hero__deco::after{ content:""; position:absolute; left:-140px; top:170px; width:220px; height:220px; border-radius:50%;
  border:26px solid rgba(255,255,255,.05); }
.acct-hero__main{ position:relative; display:flex; align-items:center; gap:18px; padding-bottom:26px; }
.acct-avatar{ width:66px; height:66px; flex:0 0 auto; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:28px; font-weight:700; color:#234f42; background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.16); border:2px solid rgba(255,255,255,.7); overflow:hidden; }
.acct-avatar img{ width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.acct-hero__info{ min-width:0; }
.acct-hero__hi{ font-size:21px; font-weight:700; margin-bottom:10px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.acct-vip{ font-size:11px; font-weight:700; color:#ffe4b8; background:rgba(255,228,184,.16); border:1px solid rgba(255,228,184,.5);
  border-radius:20px; padding:2px 10px; letter-spacing:.05em; }
.acct-hero__phone{ display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(255,255,255,.82); }
.acct-hero__phone-ico{ font-size:15px; }
.acct-hero__phone b{ font-size:15px; color:#fff; letter-spacing:.06em; font-weight:700; }
.acct-logout{ margin-left:auto; align-self:flex-start; background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.4);
  border-radius:8px; padding:9px 16px; font-size:13px; cursor:pointer; transition:background .15s; white-space:nowrap; }
.acct-logout:hover{ background:rgba(255,255,255,.28); }
/* 统计条 */
.acct-stats{ position:relative; display:grid; grid-template-columns:repeat(4,1fr); background:rgba(0,0,0,.14);
  border-radius:0 0 18px 18px; margin:0 -30px; padding:0 30px; }
.acct-stat{ text-align:center; padding:16px 6px 18px; }
.acct-stat + .acct-stat{ border-left:1px solid rgba(255,255,255,.12); }
.acct-stat b{ display:block; font-size:23px; font-weight:700; line-height:1.2; }
.acct-stat span{ display:block; font-size:12px; color:rgba(255,255,255,.72); margin-top:4px; }
.acct-stat a{ color:inherit; text-decoration:none; }
.acct-stat a b{ font-size:17px; color:#ffe0a8; }

/* Tab */
.acct-tabs{ display:flex; gap:6px; border-bottom:1px solid var(--msg-line); margin:26px 0 20px; overflow-x:auto; }
.acct-tab{ background:none; border:none; border-bottom:3px solid transparent; padding:12px 18px; font-size:15px; color:var(--msg-mut); cursor:pointer; white-space:nowrap; }
.acct-tab.on{ color:var(--msg-orange); border-bottom-color:var(--msg-orange); font-weight:700; }
.acct-panel{ display:none; }
.acct-panel.on{ display:block; }
.acct-empty{ text-align:center; color:var(--msg-mut); padding:64px 20px; background:#fff; border:1px dashed var(--msg-line); border-radius:14px; }
.acct-empty b{ display:block; font-size:42px; margin-bottom:12px; opacity:.8; }
.acct-empty a{ color:var(--msg-orange); text-decoration:none; font-weight:600; }
.acct-empty a:hover{ text-decoration:underline; }
.acct-list{ display:grid; gap:16px; }
.acct-card{ background:#fff; border:1px solid var(--msg-line); border-radius:14px; padding:20px 22px;
  box-shadow:0 4px 16px rgba(90,60,20,.04); transition:box-shadow .18s,transform .18s; }
.acct-card:hover{ box-shadow:0 10px 26px rgba(90,60,20,.09); transform:translateY(-2px); }
.acct-card__top{ display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:13px; color:var(--msg-mut);
  padding-bottom:12px; border-bottom:1px solid var(--msg-line); }
.acct-status{ font-weight:700; font-size:13px; border-radius:20px; padding:3px 12px; white-space:nowrap; }
.acct-status.pending{ color:#a06a00; background:#fff5da; } .acct-status.paid{ color:#1f6b4f; background:#e7f4ee; }
.acct-status.shipped{ color:#155e8a; background:#e5f1fa; } .acct-status.done{ color:var(--msg-pine); background:#e7f4ee; }
.acct-status.cancelled{ color:var(--msg-mut); background:#f1efeb; }
.acct-status.approved{ color:#1f6b4f; background:#e7f4ee; } .acct-status.rejected{ color:#b8362a; background:#fdecea; }
.acct-card__items{ display:flex; gap:12px; padding:16px 0; flex-wrap:wrap; }
.acct-ci{ display:flex; align-items:center; gap:10px; flex:1 1 240px; }
.acct-ci img{ width:58px; height:58px; object-fit:cover; border-radius:9px; background:var(--msg-bg); }
.acct-ci__t{ font-size:13px; line-height:1.5; }
.acct-ci__t small{ display:block; color:var(--msg-mut); margin-top:2px; }
.acct-card__foot{ display:flex; justify-content:flex-end; align-items:center; gap:16px; padding-top:12px; border-top:1px solid var(--msg-line); }
.acct-total{ font-size:14px; }
.acct-total b{ color:var(--msg-orange); font-size:20px; }
.acct-meta{ font-size:13px; color:var(--msg-mut); line-height:1.9; margin:12px 0 0; }
.acct-meta strong{ color:var(--msg-ink); }
.acct-loading{ text-align:center; color:var(--msg-mut); padding:50px; }
@media (max-width:600px){
  .acct-hero{ padding:22px 20px 0; }
  .acct-hero__main{ gap:12px; flex-wrap:wrap; }
  .acct-avatar{ width:54px; height:54px; font-size:23px; }
  .acct-hero__hi{ font-size:18px; }
  .acct-logout{ padding:7px 12px; font-size:12px; }
  .acct-stats{ margin:0 -20px; padding:0 12px; }
  .acct-stat b{ font-size:19px; }
  .acct-stat span{ font-size:11px; }
}

/* ============ 结算页 ============ */
.co-main{ max-width:1120px; margin:0 auto; padding:36px 20px 72px; }
.co-title{ font-size:26px; margin:0 0 22px; }
.co-grid{ display:grid; grid-template-columns:1.5fr 1fr; gap:24px; align-items:start; }
.co-box{ background:#fff; border:1px solid var(--msg-line); border-radius:12px; padding:22px 24px; margin-bottom:18px; }
.co-box h2{ font-size:17px; margin:0 0 18px; padding-bottom:12px; border-bottom:1px solid var(--msg-line); }
.co-form .fld{ margin-bottom:16px; }
.co-form .fld label{ display:block; font-size:13px; font-weight:600; margin-bottom:7px; }
.co-form .fld input,.co-form .fld textarea{ width:100%; box-sizing:border-box; border:1px solid var(--msg-line); border-radius:8px; padding:10px 12px; font-size:14px; background:var(--msg-cream); outline:none; }
.co-form .fld input:focus,.co-form .fld textarea:focus{ border-color:var(--msg-orange); background:#fff; }
.co-2col{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.co-goods{ display:flex; gap:12px; padding:12px 0; border-bottom:1px dashed var(--msg-line); }
.co-goods img{ width:60px; height:60px; object-fit:cover; border-radius:8px; }
.co-goods__t{ flex:1; font-size:14px; }
.co-goods__t small{ display:block; color:var(--msg-mut); margin-top:4px; }
.co-goods__p{ color:var(--msg-orange); font-weight:700; white-space:nowrap; }
.co-summary{ position:sticky; top:20px; }
.co-sum-row{ display:flex; justify-content:space-between; font-size:14px; padding:7px 0; color:var(--msg-mut); }
.co-sum-row.total{ color:var(--msg-ink); font-size:16px; border-top:1px solid var(--msg-line); margin-top:8px; padding-top:14px; }
.co-sum-row.total b{ color:var(--msg-orange); font-size:24px; }
.co-place{ width:100%; height:50px; font-size:16px; font-weight:700; margin-top:16px; }
.co-place:disabled{ background:#d8d2c8; border-color:#d8d2c8; color:#fff; cursor:not-allowed; }
.co-balance{ background:linear-gradient(135deg,#fff8ef,#fff4e4); border:1px solid #f0d9b6; border-radius:12px; padding:14px 16px; margin-top:16px; }
.co-balance__row{ display:flex; justify-content:space-between; align-items:center; font-size:14px; color:var(--msg-mut); }
.co-balance__row b{ color:var(--msg-orange); font-size:20px; }
.co-balance__pay{ display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--msg-orange); border-radius:9px; padding:11px 13px; margin-top:10px; }
.co-pay-ico{ font-size:20px; }
.co-pay-label{ font-size:14px; font-weight:700; color:var(--msg-ink); flex:1; }
.co-pay-label small{ display:block; font-size:11px; font-weight:400; color:#c0392b; margin-top:2px; }
.co-pay-check{ width:20px; height:20px; border-radius:50%; background:var(--msg-orange); color:#fff; font-size:13px; display:flex; align-items:center; justify-content:center; }
.co-balance__after{ font-size:12px; color:var(--msg-mut); margin-top:9px; text-align:right; }
.co-balance__lack{ font-size:12px; color:#c0392b; line-height:1.6; margin-top:9px; text-align:right; }
.co-balance__lack .btn{ margin-top:8px; }
.co-note{ font-size:12px; color:var(--msg-mut); line-height:1.7; margin-top:14px; }
.co-guard{ background:#fff8ec; border:1px solid #f0d6a8; border-radius:10px; padding:18px; text-align:center; color:#8a6d3b; }
.co-guard a{ color:var(--msg-orange); font-weight:700; text-decoration:none; }

/* 成功页 */
.ok-main{ text-align:center; padding:80px 20px; }
.ok-icon{ width:76px; height:76px; border-radius:50%; background:var(--msg-pine); color:#fff; font-size:40px; display:flex; align-items:center; justify-content:center; margin:0 auto 22px; }
.ok-main h1{ font-size:26px; margin:0 0 10px; }
.ok-main p{ color:var(--msg-mut); line-height:1.8; }
.ok-no{ font-size:13px; color:var(--msg-ink); background:var(--msg-bg); display:inline-block; padding:8px 16px; border-radius:8px; margin:10px 0 26px; }
.ok-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* 个人中心 · 余额面板 */
.acct-stat--balance b{ color:var(--msg-orange); }
.wal-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.wal-card{ grid-column:1 / -1; background:linear-gradient(120deg,#ef7700,#f79a3e); color:#fff; border-radius:14px; padding:24px 26px; position:relative; overflow:hidden; }
.wal-card::after{ content:"💰"; position:absolute; right:26px; top:14px; font-size:76px; opacity:.14; transform:rotate(-12deg); }
.wal-card__top{ display:flex; justify-content:space-between; align-items:center; font-size:13px; opacity:.95; }
.wal-card__badge{ background:rgba(255,255,255,.22); border:1px solid rgba(255,255,255,.35); padding:4px 12px; border-radius:20px; font-size:12px; }
.wal-card__bal{ font-size:46px; font-weight:800; letter-spacing:1px; margin:12px 0 6px; line-height:1; }
.wal-card__bal small{ font-size:24px; font-weight:600; margin-right:4px; }
.wal-card__tip{ font-size:12px; opacity:.9; }
.wal-recharge,.wal-logs{ background:#fff; border:1px solid var(--msg-line); border-radius:12px; padding:20px; }
.wal-logs h3{ font-size:16px; margin:0 0 14px; color:var(--msg-ink); }
.wal-logs{ grid-column:1 / -1; }
.wal-logs__list{ display:grid; gap:2px; }
.wal-log{ display:flex; align-items:center; gap:12px; padding:12px 4px; border-bottom:1px solid var(--msg-bg); }
.wal-log:last-child{ border-bottom:none; }
.wal-log__ico{ width:36px; height:36px; flex:0 0 auto; border-radius:50%; background:var(--msg-bg); display:flex; align-items:center; justify-content:center; font-size:16px; }
.wal-log__ico.gift{ background:#fff2dd; } .wal-log__ico.recharge{ background:#e8f6ee; } .wal-log__ico.payment{ background:#fdecec; } .wal-log__ico.refund{ background:#eaf0fb; }
.wal-log__t{ flex:1; min-width:0; }
.wal-log__t b{ display:block; font-size:14px; color:var(--msg-ink); }
.wal-log__t small{ display:block; font-size:11px; color:var(--msg-mut); margin-top:2px; }
.wal-log__amt{ font-size:15px; font-weight:700; white-space:nowrap; }
.wal-log__amt.plus{ color:#2e9d5b; } .wal-log__amt.minus{ color:var(--msg-ink); }
.wal-log-empty{ text-align:center; color:var(--msg-mut); padding:30px; font-size:13px; }

@media (max-width:820px){
  .co-grid{ grid-template-columns:1fr; }
  .wal-wrap{ grid-template-columns:1fr; }
  .wal-card__bal{ font-size:38px; }
  .co-summary{ position:static; }
  .auth-card__brand,.auth-form{ padding-left:22px; padding-right:22px; }
}
