:root { --ink:#151514; --muted:#6f6d66; --line:#e8e5dc; --paper:#fffefa; --warm:#f5f2e9; --gold:#d9a928; --gold-dark:#9a7310; --green:#167a5a; --red:#b23a33; --shadow:0 24px 70px rgba(31,29,23,.12); }
* { box-sizing:border-box; }
html { color-scheme:light; }
body { margin:0; color:var(--ink); font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif; background:var(--warm); }
button,input,textarea { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
.pay-body { min-height:100vh; background:radial-gradient(circle at 10% 0%,rgba(217,169,40,.18),transparent 28rem),linear-gradient(135deg,#eeebe1,#faf8f2 48%,#e8e3d7); }
.pay-shell { min-height:100vh; display:grid; place-items:center; padding:40px 18px 24px; }
.pay-card { width:min(100%,460px); padding:30px; background:rgba(255,254,250,.96); border:1px solid rgba(255,255,255,.8); border-radius:28px; box-shadow:var(--shadow); backdrop-filter:blur(16px); }
.brand-row { display:flex; align-items:center; gap:10px; }
.brand-mark { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; color:#f9e5a4; background:#1e1d1a; font-weight:900; font-size:14px; }
.brand-name { font-weight:800; letter-spacing:.02em; }
.secure-pill,.status-pill { margin-left:auto; padding:6px 10px; border-radius:999px; color:var(--green); background:#e8f4ef; font-size:12px; font-weight:700; }
.pay-header { padding:38px 0 30px; }
.eyebrow { margin:0 0 8px; color:var(--gold-dark); font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
h1,h2,p { margin-top:0; }
.pay-header h1 { margin-bottom:10px; font-family:"Noto Serif SC","Songti SC",serif; font-size:34px; letter-spacing:-.03em; }
.pay-header p:last-child,.login-card>p { color:var(--muted); }
.amount-label,fieldset legend,.form-grid label,.login-card label { display:block; margin-bottom:9px; font-size:13px; font-weight:700; }
.amount-field { display:flex; align-items:center; gap:12px; padding:0 18px; border:1px solid var(--line); border-radius:16px; background:white; transition:.2s; }
.amount-field:focus-within { border-color:var(--gold); box-shadow:0 0 0 4px rgba(217,169,40,.12); }
.amount-field span { color:var(--muted); font-size:28px; }
.amount-field input { width:100%; height:68px; border:0; outline:0; color:var(--ink); font-size:34px; font-weight:750; background:transparent; }
.quick-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:12px; }
.quick-button { padding:11px; border:1px solid var(--line); border-radius:12px; background:white; font-weight:750; cursor:pointer; }
.quick-button:hover,.quick-button.active { color:#fff; border-color:#24231f; background:#24231f; }
.field-help,.privacy-note { margin:10px 0 24px; color:var(--muted); font-size:12px; }
.method-fieldset,.inline-checks { margin:0 0 24px; padding:0; border:0; }
.method-list { display:grid; gap:10px; }
.method-card { display:grid; grid-template-columns:40px 1fr 20px; align-items:center; gap:12px; padding:13px 15px; border:1px solid var(--line); border-radius:14px; background:white; cursor:pointer; }
.method-card:has(input:checked) { border-color:var(--gold); box-shadow:0 0 0 3px rgba(217,169,40,.11); }
.method-card input { position:absolute; opacity:0; }
.method-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; color:white; font-weight:800; }
.method-icon.wxpay { background:#13ae67; }.method-icon.alipay { background:#1677ff; }
.radio-dot { width:18px; height:18px; border:1.5px solid #bbb7ad; border-radius:50%; }
.method-card:has(input:checked) .radio-dot { border:5px solid var(--gold); }
.primary-button { width:100%; min-height:52px; display:flex; align-items:center; justify-content:center; gap:12px; border:0; border-radius:14px; color:#f9e9b6; background:#1f1e1a; font-weight:800; cursor:pointer; box-shadow:0 10px 24px rgba(31,30,26,.18); }
.primary-button:hover { background:#080808; transform:translateY(-1px); }.primary-button:disabled { opacity:.55; cursor:wait; }
.privacy-note { margin:14px 0 0; text-align:center; }
.result-panel { margin-top:18px; padding:15px; border-radius:14px; background:#eef7f3; color:var(--green); overflow-wrap:anywhere; }
.result-panel.error { color:var(--red); background:#fff0ee; }.result-panel p { margin:5px 0 0; font-size:13px; line-height:1.6; }
.pay-shell footer { margin-top:20px; color:#757268; font-size:12px; text-align:center; }
.admin-body { min-height:100vh; background:#eeece5; }.admin-shell { width:min(1180px,calc(100% - 32px)); margin:0 auto; padding:32px 0 60px; }
.login-card { width:min(100%,420px); margin:10vh auto 0; padding:34px; border-radius:24px; background:var(--paper); box-shadow:var(--shadow); }.login-card h1 { margin:36px 0 10px; }
.login-card label { margin-top:16px; }.login-card input,.form-grid input,.form-grid select,.form-grid textarea { width:100%; margin-top:7px; padding:0 13px; border:1px solid var(--line); border-radius:10px; background:#fff; outline:0; }.login-card input,.form-grid input,.form-grid select { height:46px; }.form-grid textarea { min-height:112px; padding:12px 13px; resize:vertical; line-height:1.6; }.login-card input:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(217,169,40,.1); }.login-card .primary-button { margin-top:24px; }.form-error { min-height:20px; margin:12px 0 0; color:var(--red); font-size:13px; }
.admin-topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; }.text-button { border:0; color:var(--muted); background:transparent; cursor:pointer; }.warning { margin-bottom:20px; padding:13px 16px; border:1px solid #e6cc80; border-radius:12px; background:#fff7d8; color:#69500c; font-size:13px; }
.admin-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }.admin-card { padding:25px; border:1px solid rgba(255,255,255,.8); border-radius:20px; background:var(--paper); box-shadow:0 8px 30px rgba(31,29,23,.06); }.section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:22px; }.section-heading h2 { margin:0; font-size:22px; }.status-pill { margin:0; white-space:nowrap; }.status-pill.warn { color:#8a6300; background:#fff1c6; }.section-note { margin:-10px 0 22px; color:var(--muted); font-size:13px; }.form-divider { display:flex; align-items:center; gap:12px; color:var(--gold-dark); font-size:12px; font-weight:800; letter-spacing:.12em; }.form-divider::after { content:""; flex:1; height:1px; background:var(--line); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }.form-grid label { margin:0; color:#45443f; }.form-grid .wide { grid-column:1/-1; }.inline-checks { display:flex; gap:24px; }.inline-checks legend { margin-bottom:10px; }.inline-checks label { font-weight:500; }.inline-checks input { width:auto; height:auto; margin:0 6px 0 0; }.form-message { min-height:20px; margin:0; color:var(--green); font-size:13px; }.form-message a { color:inherit; font-weight:700; }
.table-card { margin-top:20px; }.merchant-list { display:grid; gap:10px; }.merchant-row { display:grid; grid-template-columns:1fr 1.5fr auto; align-items:center; gap:16px; padding:13px 15px; border:1px solid var(--line); border-radius:12px; background:#fff; }.merchant-row div:first-child { display:grid; gap:3px; }.merchant-row span { color:var(--muted); font-size:12px; }.merchant-row code { overflow:hidden; text-overflow:ellipsis; color:#5d584b; }.row-actions { display:flex; gap:8px; }.small-button { padding:7px 10px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:#fff; font-size:12px; text-decoration:none; cursor:pointer; }
.table-wrap { overflow:auto; }table { width:100%; border-collapse:collapse; }th,td { padding:12px 10px; border-bottom:1px solid var(--line); text-align:left; font-size:13px; }th { color:var(--muted); font-size:11px; text-transform:uppercase; }.order-status { padding:4px 8px; border-radius:99px; background:#eee; font-size:11px; font-weight:750; }.order-status.paid,.order-status.success { color:var(--green); background:#e8f4ef; }.order-status.failed { color:var(--red); background:#fff0ee; }.empty-cell { padding:30px; color:var(--muted); text-align:center; }
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }.stat-card { padding:20px; border-radius:18px; background:var(--paper); box-shadow:0 8px 30px rgba(31,29,23,.06); }.stat-card span { display:block; margin-bottom:10px; color:var(--muted); font-size:12px; }.stat-card strong { font-size:25px; }
.modal-open { overflow:hidden; }.notice-overlay { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:20px; background:rgba(16,15,12,.72); backdrop-filter:blur(8px); }.notice-overlay[hidden] { display:none; }.notice-dialog { width:min(100%,480px); padding:30px; border-radius:24px; background:var(--paper); box-shadow:var(--shadow); }.notice-icon { width:44px; height:44px; display:grid; place-items:center; margin-bottom:20px; border-radius:14px; color:#fff; background:var(--red); font-size:25px; font-weight:900; }.notice-dialog h2 { font-size:25px; }.notice-content { margin:18px 0 26px; white-space:pre-wrap; color:#403e38; line-height:1.85; }.notice-dialog .primary-button:disabled { cursor:not-allowed; }
@media (max-width:800px) { .admin-grid { grid-template-columns:1fr; }.merchant-row { grid-template-columns:1fr; }.row-actions { justify-content:flex-start; }.stat-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:520px) { .pay-shell { align-items:start; padding:0; }.pay-card { min-height:100vh; border-radius:0; padding:24px 20px; }.pay-header { padding:34px 0 26px; }.pay-header h1 { font-size:30px; }.admin-shell { width:min(100% - 20px,1180px); padding-top:16px; }.admin-card,.login-card { padding:20px; }.form-grid { grid-template-columns:1fr; }.form-grid .wide { grid-column:auto; }.inline-checks { display:block; }.inline-checks label { display:inline-block; margin-right:16px; }.stat-grid { grid-template-columns:1fr 1fr; gap:10px; }.stat-card { padding:15px; }.stat-card strong { font-size:20px; }.notice-dialog { padding:24px 20px; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; } }
