:root{--ink:#20242c;--muted:#707580;--line:#e8eaee;--paper:#f7f8fa;--yellow:#f0b90b;--white:#fff;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
button,input{font:inherit}
button,a,input,summary{touch-action:manipulation}
button,summary{cursor:pointer}
button:disabled{opacity:.48;cursor:not-allowed}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #997400;outline-offset:4px}
[hidden]{display:none!important}
.topbar{height:88px;padding:0 5%;display:flex;align-items:center;gap:48px;background:#fff;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:8px;font-size:17px;letter-spacing:.5px;white-space:nowrap}
.brand b{font-weight:500}
.mark{background:#20242c;border-radius:50%;padding:4px}
.topbar nav{display:flex;gap:30px;font-size:14px;color:var(--muted)}
.nav-current{color:var(--ink);font-weight:600}
.wallet-controls{margin-left:auto;position:relative}
.wallet-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:10;display:grid;gap:6px;min-width:140px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #20242c12}
.wallet{background:#fff7db;border:1px solid #f2dc91;border-radius:12px;padding:12px 20px;color:#654c00;font-size:13px;font-weight:600}
main{max-width:800px;margin:0 auto;padding:48px 24px 60px}
.intro{text-align:center;margin-bottom:26px}
.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:var(--muted)}
h1{font-size:32px;letter-spacing:-1px;font-weight:650;margin:12px 0}
.intro p{font-size:13px;color:var(--muted);margin:0;line-height:1.7}
.workspace{max-width:520px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 12px 44px #20242c05;scroll-margin-top:24px}
.workspace-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
h2{font-size:19px;margin:0;font-weight:650}
.network-tools{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.network-switch{display:flex;gap:3px;background:#f2f3f5;padding:4px;border-radius:10px}
.network-switch button{border:0;background:transparent;padding:6px 12px;border-radius:7px;font-size:12px;color:var(--muted)}
.network-switch button[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 4px #00000012}
.notice{border:1px solid #f3e6ba;background:#fffbef;border-radius:10px;padding:10px 12px;margin-bottom:18px;color:#806522;font-size:11px;line-height:1.6}
.notice strong{font-size:12px}
.notice p{margin:3px 0 0}
.transfer-panel{padding:18px;background:#f7f8fa;border:1px solid #eceef1;border-radius:16px}
.panel-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:14px}
.panel-heading label>span,.panel-heading>span>span{color:#9296a0;margin-left:5px;font-size:11px}
.chain-id{color:var(--muted);font-size:10px}
.network-name{display:flex;align-items:center;gap:8px;font-size:14px}
.network-name strong{font-weight:600}
.coin{border-radius:50%;background:#252932;padding:3px;flex-shrink:0}
.destination-panel .coin{background:#566157}
.amount-box{display:flex;align-items:center;gap:12px;margin:15px 0 12px}
.amount-box input{border:0;background:transparent;outline:none;width:100%;min-width:0;font-size:34px;font-weight:500;letter-spacing:-1px;color:var(--ink);font-variant-numeric:tabular-nums}
.amount-box:focus-within{box-shadow:0 2px var(--yellow)}
.amount-box>span{font-size:17px;font-weight:600}
.balance-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.transfer-panel small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.amount-presets{display:flex;gap:4px}
.amount-presets button{border:1px solid #e0e3e8;border-radius:5px;padding:4px 6px;background:#fff;font-size:10px;color:#5e646e}
.amount-presets button:hover:not(:disabled){border-color:#c59b15;background:#fff9e6}
.direction-control{height:12px;position:relative;display:flex;justify-content:center;z-index:1}
.route-arrow{position:absolute;top:-14px;background:white;border:5px solid white;box-shadow:0 0 0 1px var(--line);border-radius:12px;width:40px;height:40px;font-size:20px;line-height:1;color:#646b76}
.route-arrow:hover:not(:disabled){color:#ad8100;background:#fff8df}
.receive-amount{display:flex;flex-direction:column;gap:5px;margin:16px 0 12px}
.receive-amount strong{font-size:28px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.3}
.receive-amount>span{font-size:10px;color:var(--muted)}
.recipient-details{margin:18px 2px 0;font-size:12px}
.recipient-details summary{display:flex;align-items:center;gap:8px;list-style:none}
.recipient-details summary::after{content:'⌄';margin-left:4px;color:var(--muted)}
.recipient-details summary>span{margin-left:auto;color:var(--muted)}
.address-field{width:100%;margin-top:12px;border:1px solid var(--line);border-radius:8px;padding:12px 8px;background:var(--paper);font-size:12px;color:var(--ink)}
.recipient-details small{display:block;color:var(--muted);font-size:11px;line-height:1.8;margin-top:6px}
.quote{display:grid;gap:12px;margin:20px 2px;font-size:12px}
.quote>div{display:flex;justify-content:space-between;gap:16px}
.quote>div>span:first-child{color:var(--muted)}
.quote>div>span:last-child{text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.quote small{font-size:10px;margin-left:4px}
.quote b{font-weight:500;color:#8b6b00;background:#fff6d5;border-radius:4px;padding:2px 5px;margin-left:4px;font-size:10px}
.total-row{padding-top:12px;border-top:1px solid var(--line)}
.primary{width:100%;border:0;border-radius:12px;padding:16px;background:var(--yellow);color:#29220a;font-size:14px;font-weight:650}
.primary:hover:not(:disabled){background:#e0ad08}
.review-note{text-align:center;font-size:11px;color:var(--muted);margin:10px 0 18px}
.transfer-help{border-top:1px solid var(--line);padding-top:14px;font-size:11px;color:var(--muted);line-height:1.8}
.transfer-help summary{color:#59606a}
.transfer-help p{margin:10px 0 0}
.faucet{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;font-size:11px;margin-top:18px;color:var(--muted)}
.faucet a{color:#856500}
.product-note{text-align:center;font-size:10px;color:var(--muted);margin:18px 0 44px}
.tracking{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px;scroll-margin-top:24px}
.tracking-head h2{margin-top:8px}
.steps{display:flex;padding:0;margin:24px 0;list-style:none;gap:16px}
.steps li{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.steps li>span{width:26px;height:26px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:#f2f3f5;color:var(--muted);font-size:11px}
.steps b{font-size:11px;font-weight:550}
.steps small{display:block;color:var(--muted);font-size:10px;margin-top:5px;line-height:1.6}
.secondary{border:1px solid #dfe2e7;border-radius:9px;padding:10px 14px;background:#fff;font-size:12px;color:var(--ink)}
.secondary:hover:not(:disabled){background:#f3f4f6}
.muted{color:var(--muted);font-size:12px;line-height:1.8}
#order-empty{padding:26px 16px;text-align:center;border:1px dashed var(--line);border-radius:12px;margin:0}
#order-list{display:grid;gap:12px;margin:16px 0}
.order-row{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.order-row>summary{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:16px;list-style:none;background:#fafbfc}
.order-row>summary strong{font-size:12px}
.order-row>summary span{font-size:12px}
.order-row>summary small{font-size:11px;color:var(--muted)}
.order-row>summary::after{content:'展开详情 ↓';font-size:10px;color:var(--muted);margin-left:auto}
.order-row[open]>summary::after{content:'收起详情 ↑'}
.badge{display:inline-block;border-radius:6px;background:#fff6d8;color:#826300;padding:5px 8px;font-size:11px}
#order-info{margin-top:20px;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.order-row #order-info{border:0;border-radius:0;margin:0}
#order-info h3{font-size:13px;margin:0;padding:16px;border-bottom:1px solid var(--line)}
dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;font-size:12px;line-height:1.7}
#order-info dl{padding:16px;margin:0}
dt{color:var(--muted)}
dd{margin:0;overflow-wrap:anywhere}
dd a{text-decoration:underline;text-underline-offset:3px}
#status-detail{font-size:12px;line-height:1.8;white-space:pre-line;color:var(--muted);margin:8px 0 0}
.actions{display:flex;flex-wrap:wrap;gap:8px;padding:16px;border-top:1px solid var(--line)}
.actions:not(:has(button:not([hidden]))){display:none}
.compact{width:auto;padding:10px 14px;font-size:12px}
footer{border-top:1px solid var(--line);margin:auto;max-width:1000px;padding:24px;display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:1px;color:var(--muted)}
#feedback{display:none;position:fixed;bottom:24px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);border-radius:12px;padding:14px 20px;background:#252932;color:#fff;font-size:13px;line-height:1.8;white-space:pre-line;overflow-wrap:anywhere;z-index:10;box-shadow:0 8px 30px #0002}
#feedback.visible{display:block}
#feedback.error{background:#8b392d}
dialog{border:1px solid var(--line);border-radius:20px;width:min(500px,calc(100vw - 32px));padding:26px;color:var(--ink);max-height:calc(100dvh - 32px);overflow-y:auto}
dialog::backdrop{background:#1c223b66;backdrop-filter:blur(4px)}
dialog h2{margin-top:10px}
dialog .close{float:right;width:32px;height:32px;border:0;border-radius:8px;background:#f4f5f7;font-size:24px;color:var(--muted)}
.confirmation{margin:24px 0}
.confirmation dd{text-align:right;font-variant-numeric:tabular-nums}
.confirmation dt:nth-of-type(5),.confirmation dd:nth-of-type(5){padding-top:16px;border-top:1px solid var(--line);font-weight:600;color:var(--ink)}
.settlement-note{padding:14px;background:#f7f8fa;border-radius:10px;font-size:12px;line-height:1.8;color:var(--muted)}
.settlement-note p{margin:6px 0 0}
dialog .primary{margin-top:18px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mainnet-note{font-size:13px;color:var(--muted);padding:20px 0}
@media(max-width:600px){.topbar{height:72px;padding:0 18px;gap:16px}
.brand{font-size:13px;gap:5px}
.mark{width:28px;height:28px}
.topbar nav{display:none}
.wallet{padding:10px 12px;font-size:12px}
main{padding:30px 14px 36px}
.intro h1{font-size:28px}
.workspace{padding:18px;border-radius:20px}
.tracking{padding:20px}
.steps{gap:12px;flex-direction:column}
.steps li{align-items:flex-start}
.steps small{margin-top:3px}
.product-note{margin-bottom:30px}
.transfer-panel{padding:15px}
.amount-box input{font-size:30px}
.receive-amount strong{font-size:25px}
#order-info dl{grid-template-columns:1fr;gap:5px}
#order-info dd{margin-bottom:12px}
.order-row>summary strong{width:100%}
}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,color .15s}
}

