:root { --blue:#1e67a7; --ink:#102337; --muted:#8492a1; --line:#e4eaf0; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-width:320px; background:#f4f8fc; color:var(--ink); font-family:"Noto Sans SC","Microsoft YaHei",sans-serif; }
.page-shell { min-height:100vh; background:linear-gradient(180deg,#1664a4 0 246px,#f4f8fc 246px); }
.hero { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; max-width:1080px; margin:0 auto; min-height:170px; padding:40px 42px; color:#fff; text-align:center; }
.hero::after { content:""; position:absolute; width:430px; height:430px; right:-115px; top:-240px; border:1px solid rgba(255,255,255,.15); border-radius:50%; box-shadow:0 0 0 44px rgba(255,255,255,.04),0 0 0 96px rgba(255,255,255,.035); }
.hero-glow { position:absolute; border-radius:50%; filter:blur(4px); opacity:.45; }.hero-glow-one { width:220px;height:220px;right:38px;top:-74px;background:#76c3e5; }.hero-glow-two { width:120px;height:120px;right:210px;bottom:-84px;background:#b8e6dd; }
.hero h1 { position:relative; z-index:1; margin:0; font-size:38px; letter-spacing:2px; line-height:1.18; } .hero-slogan { position:relative; z-index:1; margin:14px 0 0; color:rgba(255,255,255,.85); font-size:18px; letter-spacing:6px; font-weight:500; text-shadow:0 2px 12px rgba(0,0,0,.18); }
.directory { max-width:1080px; margin:0 auto; padding:34px 42px 58px; }.search-box { display:flex; align-items:center; width:100%; height:62px; padding:0 21px; background:#fff; border:1px solid var(--line); border-radius:15px; box-shadow:0 5px 18px rgba(20,63,102,.06); }.search-box svg { width:25px;height:25px;fill:none;stroke:#7d8b99;stroke-linecap:round;stroke-width:2; }.search-box input { width:100%; padding:0 13px; border:0; outline:0; color:var(--ink); font:500 17px inherit; }.search-box input::placeholder { color:#a7b0bb; }
.section-title-row { display:flex; align-items:center; gap:13px; margin:32px 0 21px; }.title-mark { width:7px;height:37px;border-radius:8px;background:#d59a29; }.section-title-row h2 { margin:0; color:#1c578e; font-size:29px; letter-spacing:1px; }.section-title-row span { color:#8c99a6; font-size:16px; }
.site-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }.site-card { position:relative; min-height:202px; padding:31px 27px 25px; overflow:hidden; border:1px solid var(--line); border-radius:18px; background:#fff; color:inherit; text-decoration:none; box-shadow:0 5px 16px rgba(17,57,90,.045); transition:transform .2s,box-shadow .2s,border-color .2s; }.site-card:hover { transform:translateY(-4px); border-color:#b8d4e8; box-shadow:0 13px 26px rgba(17,75,120,.12); }.site-badge { display:inline-flex; align-items:center; justify-content:center; width:37px;height:37px;margin-bottom:15px;border-radius:10px;background:#eaf4fb;color:#246ca9;font-size:13px;font-weight:800;letter-spacing:.5px; }.site-card h3 { margin:0 0 8px; font-size:22px; font-weight:800; letter-spacing:.5px; }.site-card p { margin:0; color:#8d99a5; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:13px; overflow-wrap:anywhere; }.enter { position:absolute; bottom:24px; left:27px; color:#2872b0; font-size:16px; font-weight:700; }.enter b { margin-left:7px; font-size:23px; line-height:0; vertical-align:-1px; }.empty-state { margin:40px 0; text-align:center; color:#8492a1; }
.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; }
.admin-link { position:fixed; right:22px; bottom:20px; z-index:5; padding:9px 14px; border-radius:9px; background:rgba(16,35,55,.74); color:#fff; font-size:13px; text-decoration:none; backdrop-filter:blur(8px); }.admin-link:hover { background:#102337; }
.exchange-section{position:relative;margin-top:46px;padding:28px 30px 30px;border:1px solid #d9e6f1;border-radius:20px;background:linear-gradient(180deg,#ffffff 0%,#f5faff 100%);box-shadow:0 8px 24px rgba(17,57,90,.06)}.exchange-section .section-title-row{margin-top:0}.exchange-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:6px}.exchange-card{position:relative;padding:22px 18px 20px;border:1px solid #dce6ef;border-radius:14px;background:#fff;box-shadow:0 4px 12px rgba(17,57,90,.04);transition:transform .2s,box-shadow .2s}.exchange-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(17,75,120,.1)}.exchange-card .ex-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin-bottom:12px;border-radius:8px;font-size:15px;font-weight:800}.exchange-card small{display:block;color:#7e8d9c;font-size:13px;letter-spacing:.3px}.exchange-card strong{display:block;margin-top:8px;color:#1b609e;font-size:32px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}.exchange-card.is-total .ex-icon{background:#eaf3fb;color:#1c6caf}.exchange-card.is-yzl .ex-icon{background:#fff1e6;color:#c66a18}.exchange-card.is-hsk .ex-icon{background:#ece8fb;color:#6848bf}.exchange-card.is-cxh .ex-icon{background:#e6f4ee;color:#1f9e5f}.exchange-card.is-remain{background:linear-gradient(135deg,#1f6ca9 0%,#175b92 100%);border-color:#1f6ca9;color:#fff}.exchange-card.is-remain::after{content:"";position:absolute;right:-22px;top:-22px;width:90px;height:90px;border-radius:50%;background:rgba(255,255,255,.08)}.exchange-card.is-remain .ex-icon{background:rgba(255,255,255,.18);color:#fff}.exchange-card.is-remain small,.exchange-card.is-remain strong{color:#fff}.exchange-updated{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:99px;background:#eaf3fb;color:#3b76ab;font-size:13px;font-weight:600}.exchange-updated.is-error{background:#fdecec;color:#b53b3b}.exchange-updated .dot{width:6px;height:6px;border-radius:50%;background:#2ea44f;animation:pulse 1.6s infinite}.exchange-updated.is-error .dot{background:#d23f3f;animation:none}.exchange-card strong.flash{animation:flash .9s ease}.upload-form{display:flex;align-items:center;gap:14px;margin-top:22px;padding:18px;border:1px dashed #b8cfe2;border-radius:11px;background:#f7fbfe}.upload-form input{flex:1;min-width:0;font:14px inherit}@keyframes flash{0%{color:#f0a020;text-shadow:0 0 12px rgba(240,160,32,.45)}100%{color:inherit;text-shadow:none}}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.admin-body { min-height:100vh; background:#f3f7fb; }.admin-shell { width:min(940px,calc(100% - 40px)); margin:0 auto; padding:38px 0 60px; }.back-link { color:#3976ad; text-decoration:none; font-size:14px; }.admin-header { padding:25px 0 26px; }.admin-header p { margin:0 0 8px; color:#4d88bd; font-size:12px; letter-spacing:1.4px; font-weight:800; }.admin-header h1 { margin:0 0 8px; font-size:34px; }.admin-header span,.panel-title p { color:#8492a1; font-size:14px; }.admin-panel { margin-bottom:20px; padding:25px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 5px 18px rgba(20,63,102,.05); }.admin-panel h2 { margin:0; font-size:20px; }.site-form { display:grid; grid-template-columns:1fr 0.8fr 1.5fr auto; gap:15px; margin-top:18px; align-items:end; }.site-form label,.item-fields label { display:grid; gap:7px; color:#687887; font-size:13px; font-weight:600; }.site-form input,.item-fields input { min-width:0; height:42px; padding:0 12px; border:1px solid #dce5ed; border-radius:8px; outline:0; font:14px inherit; color:var(--ink); }.site-form input:focus,.item-fields input:focus { border-color:#4384bb; box-shadow:0 0 0 3px rgba(67,132,187,.12); }.primary-button { height:42px; padding:0 17px; border:0; border-radius:8px; background:#216daa; color:#fff; font:600 14px inherit; cursor:pointer; }.primary-button:hover { background:#175b92; }.panel-title { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; } .panel-title-actions { display:flex; gap:8px; flex-shrink:0; }.panel-title p { margin:5px 0 0; }.admin-list { display:grid; gap:10px; margin-top:20px; }.admin-item { display:flex; align-items:end; gap:13px; padding:14px; border:1px solid #e1e8ee; border-radius:11px; background:#fbfdff; }.admin-item.is-dragging { opacity:.45; }.drag-handle { padding:8px 2px; color:#91a0ae; font-size:23px; line-height:1; cursor:grab; user-select:none; }.item-fields { display:grid; grid-template-columns:1fr 1.5fr; gap:10px; flex:1; }.item-actions { display:flex; gap:6px; }.item-actions button { height:36px; min-width:36px; padding:0 10px; border:1px solid #d9e3ea; border-radius:7px; background:#fff; color:#426a8a; font:600 15px inherit; cursor:pointer; }.item-actions button:disabled { opacity:.35; cursor:not-allowed; }.item-actions .delete-button { color:#b94747; }.status { min-height:22px; margin:14px 2px; color:#258055; font-size:14px; }.status.is-error { color:#c34a4a; }
@media (max-width:720px) { .page-shell { background:linear-gradient(180deg,#1664a4 0 170px,#f4f8fc 170px); }.hero { min-height:170px;padding:37px 25px; }.hero h1 { font-size:29px; } .hero-slogan { font-size:14px; letter-spacing:3px; }.directory { padding:27px 20px 42px; }.search-box { height:57px;border-radius:14px; }.section-title-row { margin:26px 0 17px; }.section-title-row h2 { font-size:26px; }.site-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.site-card { min-height:190px;padding:25px 18px 21px;border-radius:17px; }.site-badge { width:33px;height:33px;margin-bottom:13px;font-size:11px; }.site-card h3 { margin-bottom:7px;font-size:18px;line-height:1.3; }.site-card p { font-size:11px; }.enter { bottom:20px;left:18px;font-size:15px; }.admin-shell { width:min(100% - 28px,940px); padding-top:25px; }.admin-header h1 { font-size:29px; }.admin-panel { padding:18px; }.site-form,.item-fields { grid-template-columns:1fr; }.site-form .primary-button { width:100%; }.admin-item { align-items:center; gap:8px; }.drag-handle { align-self:center; }.item-actions { flex-wrap:wrap; width:76px; }.item-actions .delete-button { width:76px; } }
@media (max-width:370px) { .directory { padding-inline:15px; }.site-grid { gap:10px; }.site-card { padding-inline:14px; }.enter { left:14px; }.platform { right:12px; }.site-card h3 { font-size:16px; } }
.topbar { display:flex; align-items:center; gap:28px; min-height:66px; padding:0 max(24px,calc((100% - 1080px)/2)); background:#fff; border-bottom:1px solid #e2e9ef; }.brand { color:#174f81; font-size:18px; font-weight:800; text-decoration:none; white-space:nowrap; }.topbar nav { display:flex; height:66px; gap:22px; }.main-tab { padding:0 2px; border:0; border-bottom:3px solid transparent; background:transparent; color:#647585; font:600 15px inherit; cursor:pointer; }.main-tab.is-active { color:#1c66a6; border-color:#1c66a6; }.user-menu { display:flex; align-items:center; gap:12px; margin-left:auto; color:#6d7c89; font-size:14px; }.user-menu button { border:0; background:transparent; color:#3b76ab; font:inherit; cursor:pointer; }.admin-workspace { width:min(1080px,calc(100% - 40px)); margin:0 auto; padding:38px 0 60px; }.workspace-head p { margin:0 0 7px; color:#4d88bd; font-size:12px; font-weight:800; letter-spacing:1.4px; }.workspace-head h1 { margin:0 0 22px; font-size:34px; }.admin-tabs { display:flex; gap:8px; margin-bottom:18px; }.admin-tab { padding:10px 17px; border:1px solid #dce5ed; border-radius:9px; background:#fff; color:#586a7a; font:600 14px inherit; cursor:pointer; }.admin-tab.is-active { border-color:#216daa; background:#216daa; color:#fff; }.secondary-button { height:42px; padding:0 17px; border:1px solid #cbdbe7; border-radius:8px; background:#fff; color:#28699e; font:600 14px inherit; cursor:pointer; }.account-list,.visitor-list { display:grid; gap:10px; margin-top:20px; }.account-row,.visitor-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 16px; border:1px solid #e1e8ee; border-radius:10px; background:#fbfdff; }.account-row div,.visitor-row div { display:grid; gap:4px; }.account-row strong,.visitor-row strong { font-size:15px; }.account-row span,.visitor-row span { color:#8492a1; font-size:13px; }.login-view { display:grid; min-height:100vh; place-items:center; padding:24px; background:linear-gradient(140deg,#145c9c,#2d78b5); }.login-card { display:grid; width:min(100%,390px); gap:16px; padding:34px; border-radius:18px; background:#fff; box-shadow:0 20px 55px rgba(7,45,76,.25); }.login-card p { margin:0; color:#4c85b7; font-size:11px; font-weight:800; letter-spacing:1.4px; }.login-card h1 { margin:0 0 7px; color:#17324b; font-size:26px; }.login-card label { display:grid; gap:7px; color:#627384; font-size:13px; font-weight:700; }.login-card input { height:45px; padding:0 12px; border:1px solid #d9e3ea; border-radius:8px; outline:0; font:15px inherit; }.login-card input:focus { border-color:#4384bb; box-shadow:0 0 0 3px rgba(67,132,187,.12); }.login-card small { min-height:16px; color:#c34a4a; }
@media (max-width:720px) { .topbar { gap:12px; min-height:58px; padding:0 15px; }.brand { font-size:15px; }.topbar nav { height:58px; gap:12px; }.main-tab { font-size:13px; }.user-menu { gap:7px; font-size:12px; }.admin-workspace { width:min(100% - 28px,1080px); padding-top:26px; }.workspace-head h1 { font-size:28px; }.admin-tabs { overflow:auto; }.admin-tab { white-space:nowrap; }.account-row,.visitor-row { align-items:flex-start; }.visitor-row { flex-direction:column; }.visitor-row button { width:100%; } }
@media (max-width:720px) { .exchange-section{padding:20px 18px 22px;border-radius:16px}.exchange-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.exchange-card{padding:18px 14px 16px;border-radius:12px}.exchange-card strong{font-size:26px}.exchange-card .ex-icon{width:27px;height:27px;font-size:13px;margin-bottom:9px}.exchange-card.is-remain{grid-column:span 2}.upload-form{align-items:stretch;flex-direction:column}.upload-form .primary-button{width:100%}.exchange-updated{font-size:12px} }
.exchange-config{margin-top:20px;padding:20px;border:1px solid #e1e8ee;border-radius:13px;background:#fbfdff}.exchange-config-row{display:grid;grid-template-columns:1fr 140px 130px;gap:14px;align-items:end}.exchange-config-row label{display:grid;gap:7px;color:#687887;font-size:13px;font-weight:600}.exchange-config-row input[type=url],.exchange-config-row input[type=number]{min-width:0;height:42px;padding:0 12px;border:1px solid #dce5ed;border-radius:8px;outline:0;font:14px inherit;color:var(--ink)}.exchange-config-row input:focus{border-color:#4384bb;box-shadow:0 0 0 3px rgba(67,132,187,.12)}.exchange-config-toggle{display:flex;align-items:center;gap:8px;font-weight:600;color:#3b5670;height:42px;padding:0 6px;border:1px solid #e1e8ee;border-radius:8px;background:#fff;cursor:pointer}.exchange-config-toggle input{width:16px;height:16px;accent-color:#216daa}.exchange-config-actions{display:flex;align-items:center;gap:14px;margin-top:14px}.exchange-config-hint{margin:14px 0 0;padding:12px 14px;border-left:3px solid #d2a73f;background:#fff8e8;border-radius:6px;color:#6f5b1f;font-size:13px;line-height:1.7}.exchange-config-hint code{padding:1px 6px;background:#fff;border-radius:4px;border:1px solid #ecdfb0;font-family:ui-monospace,Consolas,monospace;font-size:12px;color:#5b4a16}
.exchange-stats-preview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin:20px 0 4px}.exchange-stats-preview>div{padding:18px 16px;border:1px solid #dce6ef;border-radius:13px;background:#fff;box-shadow:0 4px 12px rgba(17,57,90,.04)}.exchange-stats-preview small{display:block;color:#7e8d9c;font-size:13px}.exchange-stats-preview strong{display:block;margin-top:6px;color:#1b609e;font-size:28px;line-height:1}.exchange-stats-preview .exchange-remain{background:#1f6ca9;border-color:#1f6ca9}.exchange-stats-preview .exchange-remain small,.exchange-stats-preview .exchange-remain strong{color:#fff}.exchange-sub{margin:24px 0 10px;font-size:15px;color:#3a6285}.exchange-local{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border:1px solid #d6e4f0;border-radius:12px;background:linear-gradient(135deg,#f7fbff 0%,#eaf3fb 100%)}.exchange-local-info{display:grid;gap:6px;color:#3a6285;font-size:13px;flex:1;min-width:0}.exchange-local-info strong{color:#1b5185;font-weight:700}.exchange-local-info code{padding:2px 8px;background:#fff;border:1px solid #cbdbe7;border-radius:6px;font-family:ui-monospace,Consolas,monospace;font-size:12px;color:#175b92}.exchange-local-info small{color:#7e8d9c;font-size:12px}.exchange-local-actions{flex-shrink:0}
.logout-admin{margin-left:auto;height:36px;padding:0 14px;border:1px solid #dce5ed;border-radius:8px;background:#fff;color:#28699e;font:600 13px inherit;cursor:pointer}.logout-admin:hover{background:#f3f8fc}
.status{margin:14px 0 0;color:#2a8a52;font-size:13px;font-weight:600}.status.is-error{color:#b53b3b}
@media (max-width:720px){.exchange-config-row{grid-template-columns:1fr}.exchange-config-toggle{height:auto;padding:10px 12px}.exchange-stats-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.exchange-stats-preview>div:last-child{grid-column:span 2}}
