/* DU AUDIO 门户 · 下单、订单、账户、后台共用的样式（在 site.css 之后引用） */

.app-main { padding:44px 0 104px; }
.app-wrap { width:min(900px, calc(100% - 40px)); margin:0 auto; }
.app-wrap.is-narrow { width:min(520px, calc(100% - 40px)); }
.app-wrap.is-wide { width:min(1120px, calc(100% - 32px)); }
.page-head { margin:0 0 26px; }
.page-head .crumb { display:inline-flex; align-items:center; gap:4px; margin-bottom:10px; font-size:14px; color:var(--link); text-decoration:none; }
.page-head .crumb:hover { text-decoration:underline; }
.page-head h1 { margin:0; font-size:40px; line-height:1.12; font-weight:700; letter-spacing:-.025em; }
.page-head p { margin:10px 0 0; font-size:17px; color:var(--muted); }
.page-head .row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }

/* 玻璃面板 */
.panel { position:relative; padding:28px 30px; border-radius:24px; background:var(--glass); -webkit-backdrop-filter:blur(30px) saturate(170%); backdrop-filter:blur(30px) saturate(170%); border:1px solid rgba(255,255,255,.78); box-shadow:var(--glass-shadow); }
.panel + .panel, .panel + .panel-gap { margin-top:16px; }
.panel.is-tint { background:linear-gradient(165deg,rgba(255,255,255,.66) 0%,color-mix(in srgb,var(--tint2) 62%,transparent) 100%); }
.panel h2 { margin:0; font-size:21px; line-height:1.25; font-weight:700; letter-spacing:-.015em; }
.panel h2 + p, .panel .lead { margin:8px 0 0; font-size:15px; line-height:1.6; color:var(--muted); }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.section-title { margin:34px 4px 12px; font-size:13px; font-weight:600; letter-spacing:.04em; color:var(--muted); }

/* 表单 */
.field { margin-top:20px; }
.field:first-child { margin-top:0; }
.label { display:block; margin:0 0 7px; font-size:14px; font-weight:600; color:var(--ink); }
.label small { margin-left:6px; font-weight:400; color:var(--muted); }
.label .req { color:var(--bad); margin-left:2px; }
.input { width:100%; min-height:46px; padding:0 14px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.88); font:inherit; font-size:17px; color:var(--ink); transition:border-color .2s ease, box-shadow .2s ease; -webkit-appearance:none; appearance:none; }
.input::placeholder { color:#a1a1a6; }
.input:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 4px rgba(0,113,227,.15); background:#fff; }
.input[aria-invalid="true"] { border-color:var(--bad); box-shadow:0 0 0 4px rgba(200,30,69,.12); }
textarea.input { min-height:96px; padding:12px 14px; line-height:1.55; resize:vertical; }
select.input { padding-right:36px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; }
.input-row { display:flex; gap:10px; }
.input-row .input { flex:1; min-width:0; }
.input-row .btn { flex:none; padding:0 20px; min-height:46px; }
.input-code { letter-spacing:.32em; font-size:20px; font-variant-numeric:tabular-nums; }
.input-money { position:relative; }
.input-money::before { content:"¥"; position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:17px; }
.input-money .input { padding-left:30px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
.grid-2 > .field:nth-child(2) { margin-top:0; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:0 12px; }
.grid-3 > .field:nth-child(-n+3) { margin-top:0; }
.grid-2 + .grid-2, .grid-2 + .grid-3, .grid-3 + .grid-2, .grid-3 + .grid-3 { margin-top:20px; }
.form-error { margin:10px 0 0; font-size:14px; line-height:1.5; color:var(--bad); }
.form-hint { margin:10px 0 0; font-size:13px; line-height:1.6; color:var(--muted); }
.form-hint a { color:var(--link); }
.form-hint.is-dev { color:var(--warn); font-weight:600; }
.form-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:24px; }
.btn-text[disabled] { color:var(--faint); text-decoration:none; cursor:default; }

/* 分段选择（像 iOS 的分段控件） */
.seg { display:inline-flex; flex-wrap:wrap; gap:2px; padding:3px; border-radius:12px; background:rgba(0,0,0,.055); }
.seg label { position:relative; }
.seg input { position:absolute; opacity:0; pointer-events:none; }
.seg span { display:block; padding:8px 18px; border-radius:9px; font-size:15px; line-height:1.3; cursor:pointer; color:#424245; transition:background .2s ease, color .2s ease; }
.seg input:checked + span { background:#fff; color:var(--ink); font-weight:600; box-shadow:0 1px 4px rgba(0,0,0,.12); }
.seg input:focus-visible + span { outline:3px solid var(--blue); outline-offset:1px; }

/* 多选小标签 */
.chip-set { display:flex; flex-wrap:wrap; gap:8px; }
.chip { position:relative; }
.chip input { position:absolute; opacity:0; pointer-events:none; }
.chip span { display:inline-block; padding:7px 15px; border-radius:980px; background:rgba(255,255,255,.88); box-shadow:inset 0 0 0 1px rgba(0,0,0,.1); font-size:14px; line-height:1.3; cursor:pointer; user-select:none; transition:background .2s ease, color .2s ease; }
.chip input:checked + span { background:var(--ink); color:#fff; box-shadow:none; }
.chip input:focus-visible + span { outline:3px solid var(--blue); outline-offset:2px; }

/* 选档卡片 */
.tier-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.tier-opt { position:relative; }
.tier-opt input { position:absolute; opacity:0; pointer-events:none; }
.tier-card { position:relative; display:flex; flex-direction:column; height:100%; padding:16px 16px 14px; border-radius:18px; background:linear-gradient(170deg,rgba(255,255,255,.78) 0%,color-mix(in srgb,var(--tint2) 48%,transparent) 100%); box-shadow:inset 0 0 0 1px rgba(255,255,255,.85), 0 4px 14px rgba(30,40,80,.05); cursor:pointer; transition:box-shadow .25s var(--ease), transform .25s var(--ease); }
.tier-card .dot { width:22px; height:22px; border-radius:50%; background:linear-gradient(135deg,var(--c1),var(--c2)); }
.tier-card b { margin-top:10px; font-size:16px; font-weight:600; }
.tier-card .price { margin-top:2px; font-size:22px; font-weight:700; letter-spacing:-.01em; color:var(--ink-c); }
.tier-card small { margin-top:4px; font-size:12px; line-height:1.45; color:var(--muted); }
.tier-card .badge { position:absolute; top:12px; right:12px; padding:1px 8px; border-radius:980px; background:var(--ink-c); color:#fff; font-size:11px; font-weight:600; }
.tier-card .check { position:absolute; top:12px; right:12px; display:none; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--c1); color:#fff; }
.tier-opt input:checked + .tier-card { box-shadow:inset 0 0 0 2px var(--c1), 0 10px 26px color-mix(in srgb,var(--c1) 22%,transparent); }
.tier-opt input:checked + .tier-card .check { display:grid; }
.tier-opt input:checked + .tier-card .badge { display:none; }
.tier-opt input:focus-visible + .tier-card { outline:3px solid var(--blue); outline-offset:2px; }
@media (hover:hover) and (pointer:fine) { .tier-card:hover { transform:translateY(-2px); } }

/* 费用小结 */
.sum-list { margin:16px 0 0; padding:0; list-style:none; }
.sum-list li { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid rgba(0,0,0,.07); font-size:15px; }
.sum-list li:first-child { border-top:0; }
.sum-list span { color:var(--muted); }
.sum-list b { font-weight:600; font-variant-numeric:tabular-nums; }
.sum-list .is-now b { color:var(--ink-c, var(--blue)); font-size:19px; }

/* 状态标签 */
.pill { display:inline-flex; align-items:center; gap:6px; padding:3px 11px 3px 9px; border-radius:980px; font-size:13px; font-weight:600; line-height:1.4; white-space:nowrap; }
.pill::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.pill-gold { background:#fff3dc; color:#8a5300; }
.pill-coral { background:#ffe9ec; color:#c11d43; }
.pill-blue { background:#e6f0fd; color:#005fc4; }
.pill-purple { background:#f2eafe; color:#7230cc; }
.pill-green { background:#e5f6ec; color:#16784a; }
.pill-grey { background:#efeff2; color:#6e6e73; }

/* 订单进度 */
.progress { display:grid; grid-template-columns:repeat(5,1fr); margin:0; padding:0; list-style:none; counter-reset:step; }
.progress li { position:relative; padding-top:30px; text-align:center; font-size:13px; color:var(--faint); }
.progress li::before { content:""; position:absolute; top:6px; left:50%; z-index:1; width:14px; height:14px; margin-left:-7px; border-radius:50%; background:#fff; box-shadow:inset 0 0 0 2px #d2d2d7; }
.progress li::after { content:""; position:absolute; top:12px; left:-50%; width:100%; height:2px; background:#d2d2d7; }
.progress li:first-child::after { display:none; }
.progress li.is-done { color:var(--ink); }
.progress li.is-done::before { background:var(--good); box-shadow:none; }
.progress li.is-done::after, .progress li.is-now::after { background:var(--good); }
.progress li.is-now { color:var(--ink); font-weight:600; }
.progress li.is-now::before { background:var(--blue); box-shadow:0 0 0 5px rgba(0,113,227,.18); }

/* 订单页：现在要做什么 */
.now { display:flex; flex-direction:column; gap:6px; }
.now h2 { font-size:26px; }
.now .lead { font-size:16px; }
.now-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.now-meta span { padding:5px 12px; border-radius:980px; background:rgba(255,255,255,.85); font-size:13px; color:#424245; }
.du-note { margin-top:16px; padding:14px 16px; border-radius:14px; background:rgba(255,255,255,.8); font-size:15px; line-height:1.6; }
.du-note b { display:block; margin-bottom:2px; font-size:13px; color:var(--muted); font-weight:600; }

/* 扫码付款 */
.pay { display:grid; grid-template-columns:240px 1fr; gap:26px 32px; align-items:center; margin-top:20px; }
.pay-qr { display:grid; place-items:center; aspect-ratio:1; padding:12px; border-radius:22px; background:#fff; box-shadow:inset 0 0 0 1px rgba(0,0,0,.06), 0 10px 30px rgba(30,40,80,.08); }
.pay-qr img { display:block; width:100%; height:100%; object-fit:contain; border-radius:12px; }
.pay-qr .qr-empty { padding:18px; text-align:center; font-size:14px; line-height:1.6; color:var(--muted); }
.pay-amount { margin:0; font-size:15px; color:var(--muted); }
.pay-amount b { display:block; margin-top:2px; font-size:46px; line-height:1.05; font-weight:700; letter-spacing:-.02em; color:var(--ink); font-variant-numeric:tabular-nums; }
.pay-steps { margin:16px 0 0; padding:0 0 0 20px; font-size:14px; line-height:1.75; color:#424245; }
.pay-steps b { font-weight:600; }
.pay-tabs { margin-top:16px; }
.pay .form-actions { margin-top:18px; }
.copy-chip { display:inline-flex; align-items:center; gap:6px; padding:2px 4px 2px 10px; border-radius:8px; background:rgba(0,0,0,.05); font-weight:600; font-variant-numeric:tabular-nums; }
.copy-chip button { padding:2px 8px; border:0; border-radius:6px; background:#fff; font:inherit; font-size:12px; font-weight:500; color:var(--link); cursor:pointer; }

/* 资料列表 */
.kv { display:grid; grid-template-columns:110px 1fr; gap:0; margin:14px 0 0; }
.kv dt, .kv dd { margin:0; padding:10px 0; border-top:1px solid rgba(0,0,0,.07); font-size:15px; line-height:1.5; }
.kv dt { color:var(--muted); }
.kv dd { min-width:0; word-break:break-word; }
.kv dt:first-of-type, .kv dt:first-of-type + dd { border-top:0; }
.money-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:16px; }
.money-row div { padding:14px 16px; border-radius:16px; background:rgba(255,255,255,.75); }
.money-row span { display:block; font-size:13px; color:var(--muted); }
.money-row b { display:block; margin-top:2px; font-size:22px; font-weight:700; font-variant-numeric:tabular-nums; }
.money-row small { display:block; margin-top:2px; font-size:12px; color:var(--muted); }

/* 付款记录、动态 */
.records { margin:14px 0 0; padding:0; list-style:none; }
.records li { display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid rgba(0,0,0,.07); font-size:15px; }
.records li:first-child { border-top:0; }
.records .grow { flex:1; min-width:0; }
.records small { display:block; margin-top:2px; font-size:13px; color:var(--muted); }
.records .proof { flex:none; width:44px; height:44px; border-radius:10px; object-fit:cover; background:#eee; cursor:zoom-in; }
.timeline { margin:14px 0 0; padding:0; list-style:none; }
.timeline li { position:relative; padding:0 0 16px 22px; font-size:14px; line-height:1.55; }
.timeline li::before { content:""; position:absolute; left:3px; top:7px; width:8px; height:8px; border-radius:50%; background:#c7c7cc; }
.timeline li::after { content:""; position:absolute; left:6.5px; top:19px; bottom:2px; width:1px; background:#e5e5ea; }
.timeline li:last-child::after { display:none; }
.timeline li.is-admin::before { background:var(--cora); }
.timeline li.is-client::before { background:var(--blue); }
.timeline time { display:block; font-size:12px; color:var(--faint); }
.timeline .private { margin-left:6px; padding:0 6px; border-radius:6px; background:#f2f2f4; font-size:11px; color:var(--muted); }

/* 我的订单列表 */
.order-list { display:grid; gap:12px; margin:0; padding:0; list-style:none; }
.order-card { display:grid; grid-template-columns:auto 1fr auto; gap:6px 16px; align-items:center; padding:18px 20px; border-radius:20px; background:var(--glass); -webkit-backdrop-filter:blur(26px) saturate(170%); backdrop-filter:blur(26px) saturate(170%); border:1px solid rgba(255,255,255,.78); box-shadow:0 8px 24px rgba(30,40,80,.06); text-decoration:none; transition:transform .25s var(--ease), box-shadow .25s var(--ease); }
.order-card .dot { width:38px; height:38px; border-radius:12px; background:linear-gradient(135deg,var(--c1),var(--c2)); }
.order-card b { font-size:17px; font-weight:600; }
.order-card small { display:block; margin-top:2px; font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; }
.order-card .side { text-align:right; }
.order-card .next { display:block; margin-top:6px; font-size:13px; font-weight:600; color:var(--link); }
@media (hover:hover) and (pointer:fine) { .order-card:hover { transform:translateY(-2px); box-shadow:0 14px 30px rgba(30,40,80,.1); } }
.empty { padding:42px 20px; text-align:center; color:var(--muted); }
.empty b { display:block; margin-bottom:6px; font-size:19px; color:var(--ink); }
.empty .btn { margin-top:18px; }

/* 登录卡片 */
.login-card { max-width:460px; margin:0 auto; }
.login-card h1 { margin:0; font-size:32px; line-height:1.15; font-weight:700; letter-spacing:-.02em; }
.login-card .lead { margin:10px 0 24px; }
.login-foot { margin-top:18px; }

/* 下单页：左边表单，右边小结 */
.checkout { display:grid; grid-template-columns:1fr 300px; gap:16px; align-items:start; }
.checkout-side { position:sticky; top:20px; }
.checkout .panel + .panel { margin-top:16px; }

/* 弹窗（手机上从底部升起） */
.modal-back { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:20px; background:rgba(20,20,24,.32); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); animation:fade-in .2s ease both; }
.modal-back.is-out { animation:fade-out .2s ease both; }
.modal { width:min(480px, 100%); max-height:calc(100vh - 40px); overflow:auto; border-radius:24px; background:rgba(255,255,255,.97); box-shadow:0 30px 80px rgba(0,0,0,.25); animation:pop-in .3s var(--ease) both; }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 22px 4px; }
.modal-head h3 { margin:0; font-size:20px; font-weight:700; letter-spacing:-.01em; }
.modal-x { display:grid; place-items:center; flex:none; width:32px; height:32px; border:0; border-radius:50%; background:rgba(0,0,0,.06); color:#424245; cursor:pointer; }
.modal-x:hover { background:rgba(0,0,0,.1); }
.modal-body { padding:10px 22px 22px; }
.modal-text { margin:0; font-size:15px; line-height:1.6; color:#424245; }
.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
.modal-img { display:block; width:100%; border-radius:14px; }
body.has-modal { overflow:hidden; }
@keyframes fade-in { from { opacity:0; } }
@keyframes fade-out { to { opacity:0; } }
@keyframes pop-in { from { opacity:0; transform:translateY(14px) scale(.98); } }

/* 上传图片 */
.upload { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.upload-preview { width:72px; height:72px; border-radius:14px; object-fit:cover; background:#f2f2f4; box-shadow:inset 0 0 0 1px rgba(0,0,0,.06); }
.upload input[type=file] { position:absolute; width:1px; height:1px; opacity:0; }

/* 骨架屏 */
.skeleton { height:120px; border-radius:24px; background:linear-gradient(90deg,rgba(255,255,255,.5) 25%,rgba(255,255,255,.85) 50%,rgba(255,255,255,.5) 75%); background-size:200% 100%; animation:shine 1.4s linear infinite; }
@keyframes shine { to { background-position:-200% 0; } }

@media (max-width:860px) {
  .checkout { grid-template-columns:1fr; }
  .checkout-side { position:static; }
}
@media (max-width:760px) {
  .app-main { padding:28px 0 80px; }
  .page-head h1 { font-size:30px; }
  .panel { padding:22px 20px; border-radius:20px; }
  .tier-grid { grid-template-columns:repeat(2,1fr); }
  .grid-2, .grid-3 { grid-template-columns:1fr; }
  .grid-2 > .field:nth-child(2), .grid-3 > .field:nth-child(-n+3) { margin-top:20px; }
  .grid-2 > .field:first-child, .grid-3 > .field:first-child { margin-top:0; }
  .pay { grid-template-columns:1fr; justify-items:center; text-align:center; }
  .pay-qr { width:min(260px, 100%); }
  .pay-steps { text-align:left; }
  .pay .form-actions { justify-content:center; }
  .money-row { grid-template-columns:1fr 1fr; }
  .money-row div:first-child { grid-column:1 / -1; }
  .progress li { font-size:11px; }
  .kv { grid-template-columns:88px 1fr; }
  .order-card { grid-template-columns:auto 1fr; }
  .order-card .side { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; text-align:left; }
  .order-card .next { margin:0; }
  .modal-back { place-items:end center; padding:0; }
  .modal { width:100%; max-height:92vh; border-radius:24px 24px 0 0; animation:sheet-in .35s var(--ease) both; }
  .input-row { flex-wrap:wrap; }
  .input-row .btn { flex:1 1 100%; }
}
@keyframes sheet-in { from { transform:translateY(100%); } }
@media (prefers-reduced-motion:reduce) {
  .modal, .modal-back, .skeleton { animation:none; }
  .tier-card, .order-card { transition:none; }
}
