styles.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. :root {
  2. color-scheme: light;
  3. --bg: #f3efe6;
  4. --ink: #1b1712;
  5. --muted: #756c5f;
  6. --panel: rgba(255, 252, 245, 0.92);
  7. --line: rgba(52, 42, 31, 0.12);
  8. --primary: #183a37;
  9. --primary-2: #245b53;
  10. --accent: #c46a2b;
  11. --danger: #a63428;
  12. --ok: #236b43;
  13. --shadow: 0 24px 70px rgba(41, 32, 22, 0.13);
  14. font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  15. }
  16. * { box-sizing: border-box; }
  17. body {
  18. margin: 0;
  19. min-height: 100vh;
  20. color: var(--ink);
  21. background:
  22. radial-gradient(circle at 15% 5%, rgba(196,106,43,0.20), transparent 28rem),
  23. radial-gradient(circle at 90% 12%, rgba(36,91,83,0.16), transparent 30rem),
  24. linear-gradient(135deg, #f7f0e4 0%, #ebe3d4 100%);
  25. }
  26. a { color: var(--primary-2); }
  27. button, input, select { font: inherit; }
  28. .app-shell {
  29. display: grid;
  30. grid-template-columns: 280px minmax(0, 1fr);
  31. gap: 22px;
  32. max-width: 1480px;
  33. margin: 0 auto;
  34. padding: 24px;
  35. }
  36. .sidebar {
  37. position: sticky;
  38. top: 24px;
  39. height: calc(100vh - 48px);
  40. border: 1px solid var(--line);
  41. border-radius: 30px;
  42. padding: 22px;
  43. background: linear-gradient(160deg, rgba(24,58,55,0.96), rgba(31,39,34,0.94));
  44. color: #fff9ec;
  45. box-shadow: var(--shadow);
  46. }
  47. .brand { display: flex; gap: 14px; align-items: center; margin-bottom: 34px; }
  48. .brand-mark {
  49. width: 48px;
  50. height: 48px;
  51. display: grid;
  52. place-items: center;
  53. border-radius: 18px;
  54. background: #f0b15e;
  55. color: #1b1712;
  56. font-weight: 900;
  57. letter-spacing: -0.04em;
  58. }
  59. .brand h1 { margin: 0; font-size: 22px; letter-spacing: -0.04em; }
  60. .brand p { margin: 3px 0 0; color: rgba(255,249,236,0.68); font-size: 12px; }
  61. .side-nav { display: grid; gap: 8px; }
  62. .side-nav a {
  63. color: rgba(255,249,236,0.78);
  64. text-decoration: none;
  65. padding: 12px 14px;
  66. border-radius: 16px;
  67. }
  68. .side-nav a.active,
  69. .side-nav a:hover {
  70. color: #fff9ec;
  71. background: rgba(255,255,255,0.12);
  72. }
  73. .sidebar-note {
  74. position: absolute;
  75. left: 22px;
  76. right: 22px;
  77. bottom: 22px;
  78. display: grid;
  79. gap: 10px;
  80. }
  81. .main { display: grid; gap: 20px; min-width: 0; }
  82. .hero-panel,
  83. .panel {
  84. min-width: 0;
  85. border: 1px solid var(--line);
  86. border-radius: 30px;
  87. background: var(--panel);
  88. box-shadow: var(--shadow);
  89. }
  90. .hero-panel {
  91. display: flex;
  92. justify-content: space-between;
  93. gap: 24px;
  94. align-items: center;
  95. padding: 30px;
  96. overflow: hidden;
  97. position: relative;
  98. }
  99. .hero-panel::after {
  100. content: "";
  101. position: absolute;
  102. inset: auto -80px -140px auto;
  103. width: 300px;
  104. height: 300px;
  105. border-radius: 50%;
  106. background: rgba(196,106,43,0.14);
  107. }
  108. .eyebrow {
  109. margin: 0 0 8px;
  110. color: var(--accent);
  111. font-size: 12px;
  112. font-weight: 800;
  113. text-transform: uppercase;
  114. letter-spacing: 0.12em;
  115. }
  116. h2 { margin: 0; font-size: 24px; letter-spacing: -0.04em; }
  117. .hero-copy { margin: 10px 0 0; max-width: 720px; color: var(--muted); line-height: 1.7; }
  118. .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; z-index: 1; }
  119. .panel { padding: 24px; }
  120. .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
  121. .muted { color: var(--muted); font-size: 13px; }
  122. .button,
  123. .log-actions button,
  124. .pager button,
  125. .action-btn {
  126. border: 0;
  127. border-radius: 14px;
  128. padding: 10px 16px;
  129. font-weight: 800;
  130. cursor: pointer;
  131. transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  132. }
  133. .button:hover,
  134. .log-actions button:hover,
  135. .pager button:hover,
  136. .action-btn:hover { transform: translateY(-1px); }
  137. .button.primary { background: var(--primary); color: #fff9ec; box-shadow: 0 10px 24px rgba(24,58,55,.24); }
  138. .button.secondary { background: #efe5d3; color: var(--ink); }
  139. .button.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
  140. .button.small { padding: 8px 12px; border-radius: 12px; }
  141. .button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
  142. .chip {
  143. display: inline-flex;
  144. align-items: center;
  145. width: max-content;
  146. border-radius: 999px;
  147. padding: 5px 11px;
  148. font-size: 12px;
  149. font-weight: 800;
  150. }
  151. .chip.neutral, .chip.gray { background: rgba(255,255,255,.14); color: #fff9ec; }
  152. .chip.green { background: #dff3e6; color: var(--ok); }
  153. .chip.red { background: #f8ded9; color: var(--danger); }
  154. .chip.blue { background: #dce9ef; color: #245b72; }
  155. .config-tabs {
  156. display: flex;
  157. gap: 8px;
  158. padding: 6px;
  159. border-radius: 20px;
  160. background: #ede4d4;
  161. margin-bottom: 18px;
  162. overflow-x: auto;
  163. }
  164. .config-tab {
  165. border: 0;
  166. border-radius: 15px;
  167. background: transparent;
  168. color: var(--muted);
  169. padding: 10px 14px;
  170. font-weight: 900;
  171. white-space: nowrap;
  172. cursor: pointer;
  173. }
  174. .config-tab.active {
  175. background: #fffaf0;
  176. color: var(--primary);
  177. box-shadow: 0 8px 20px rgba(52,42,31,.10);
  178. }
  179. .tab-panel[hidden] { display: none; }
  180. .tab-panel { min-width: 0; }
  181. .field-grid {
  182. display: grid;
  183. grid-template-columns: repeat(3, minmax(0, 1fr));
  184. gap: 14px;
  185. }
  186. .field-grid > * { min-width: 0; }
  187. label {
  188. display: grid;
  189. gap: 7px;
  190. min-width: 0;
  191. color: #4f463a;
  192. font-size: 13px;
  193. font-weight: 800;
  194. }
  195. label.wide { grid-column: span 2; }
  196. input, select {
  197. min-width: 0;
  198. width: 100%;
  199. border: 1px solid rgba(52,42,31,.16);
  200. border-radius: 14px;
  201. background: #fffcf6;
  202. color: var(--ink);
  203. padding: 11px 12px;
  204. outline: none;
  205. }
  206. input:focus, select:focus {
  207. border-color: var(--primary-2);
  208. box-shadow: 0 0 0 4px rgba(36,91,83,.12);
  209. }
  210. .status-note {
  211. margin-top: 16px;
  212. border-radius: 18px;
  213. padding: 12px 14px;
  214. background: #f7efe0;
  215. color: var(--muted);
  216. font-size: 13px;
  217. }
  218. .stage-pill {
  219. border-radius: 18px;
  220. padding: 11px 14px;
  221. background: #fff4dc;
  222. color: #8a581f;
  223. font-weight: 800;
  224. max-width: 520px;
  225. }
  226. .toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  227. .filter {
  228. width: 190px;
  229. padding: 8px 10px;
  230. }
  231. .table-wrap {
  232. overflow: auto;
  233. border: 1px solid var(--line);
  234. border-radius: 22px;
  235. background: #fffaf0;
  236. }
  237. .table-wrap.compact { max-height: 300px; }
  238. table {
  239. width: 100%;
  240. min-width: 920px;
  241. border-collapse: collapse;
  242. font-size: 13px;
  243. }
  244. th, td {
  245. padding: 12px 13px;
  246. border-bottom: 1px solid rgba(52,42,31,.08);
  247. text-align: left;
  248. vertical-align: middle;
  249. }
  250. th {
  251. position: sticky;
  252. top: 0;
  253. z-index: 1;
  254. background: #f5ead8;
  255. color: #4d4032;
  256. font-size: 12px;
  257. text-transform: uppercase;
  258. letter-spacing: .04em;
  259. }
  260. td code { font-size: 12px; word-break: break-all; }
  261. .account-library-note {
  262. display: flex;
  263. align-items: center;
  264. gap: 10px;
  265. margin-bottom: 14px;
  266. border: 1px solid rgba(36,91,83,.12);
  267. border-radius: 18px;
  268. padding: 12px 14px;
  269. background: linear-gradient(90deg, rgba(36,91,83,.08), rgba(196,106,43,.08));
  270. color: var(--muted);
  271. font-size: 13px;
  272. }
  273. .account-library-note strong { color: var(--primary); }
  274. .account-list {
  275. display: grid;
  276. gap: 12px;
  277. }
  278. .account-empty {
  279. border: 1px dashed rgba(52,42,31,.22);
  280. border-radius: 22px;
  281. padding: 24px;
  282. background: rgba(255,250,240,.72);
  283. color: var(--muted);
  284. text-align: center;
  285. }
  286. .account-card {
  287. display: grid;
  288. grid-template-columns: minmax(240px, 1.5fr) minmax(260px, 2fr) auto;
  289. gap: 16px;
  290. align-items: center;
  291. border: 1px solid var(--line);
  292. border-radius: 24px;
  293. padding: 16px;
  294. background:
  295. linear-gradient(135deg, rgba(255,250,240,.98), rgba(250,241,225,.92));
  296. box-shadow: 0 12px 34px rgba(41,32,22,.08);
  297. }
  298. .account-card.has-error {
  299. border-color: rgba(166,52,40,.22);
  300. background:
  301. linear-gradient(135deg, rgba(255,250,240,.98), rgba(253,236,225,.94));
  302. }
  303. .account-identity {
  304. min-width: 0;
  305. display: grid;
  306. gap: 9px;
  307. }
  308. .account-email {
  309. display: block;
  310. overflow: hidden;
  311. color: var(--ink);
  312. font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  313. font-size: 13px;
  314. font-weight: 800;
  315. text-overflow: ellipsis;
  316. white-space: nowrap;
  317. }
  318. .account-badges {
  319. display: flex;
  320. gap: 8px;
  321. flex-wrap: wrap;
  322. }
  323. .status-chip,
  324. .mini-chip {
  325. display: inline-flex;
  326. align-items: center;
  327. width: max-content;
  328. border-radius: 999px;
  329. padding: 5px 10px;
  330. font-size: 12px;
  331. font-weight: 900;
  332. }
  333. .status-chip.success { background: #dff3e6; color: var(--ok); }
  334. .status-chip.warning { background: #fff0c8; color: #7c5111; }
  335. .status-chip.danger { background: #f8ded9; color: var(--danger); }
  336. .status-chip.neutral { background: #e9e1d2; color: #554a3c; }
  337. .mini-chip { background: #dce9ef; color: #245b72; }
  338. .account-meta {
  339. min-width: 0;
  340. display: grid;
  341. grid-template-columns: repeat(3, minmax(0, 1fr));
  342. gap: 10px;
  343. }
  344. .meta-item {
  345. min-width: 0;
  346. display: grid;
  347. gap: 3px;
  348. }
  349. .meta-label {
  350. color: var(--muted);
  351. font-size: 11px;
  352. font-weight: 900;
  353. letter-spacing: .04em;
  354. }
  355. .meta-value {
  356. overflow: hidden;
  357. color: #3b3329;
  358. font-size: 13px;
  359. font-weight: 800;
  360. text-overflow: ellipsis;
  361. white-space: nowrap;
  362. }
  363. .account-error {
  364. grid-column: 1 / -1;
  365. min-width: 0;
  366. }
  367. .error-summary {
  368. display: inline-block;
  369. max-width: 100%;
  370. overflow: hidden;
  371. border: 0;
  372. border-radius: 12px;
  373. padding: 8px 10px;
  374. background: rgba(166,52,40,.09);
  375. color: var(--danger);
  376. text-overflow: ellipsis;
  377. white-space: nowrap;
  378. cursor: help;
  379. }
  380. .error-popover {
  381. position: fixed;
  382. z-index: 50;
  383. max-width: min(520px, calc(100vw - 36px));
  384. max-height: 260px;
  385. overflow: auto;
  386. border-radius: 18px;
  387. padding: 14px;
  388. background: #2b1712;
  389. color: #fff5ea;
  390. box-shadow: 0 22px 60px rgba(43,23,18,.28);
  391. white-space: pre-wrap;
  392. word-break: break-word;
  393. font-size: 12px;
  394. line-height: 1.55;
  395. }
  396. .action-btn {
  397. display: inline-block;
  398. margin: 3px;
  399. padding: 6px 10px;
  400. border-radius: 10px;
  401. font-size: 12px;
  402. text-decoration: none;
  403. white-space: nowrap;
  404. }
  405. .action-btn.detail { background: #eee2cf; color: var(--ink); }
  406. .action-btn.download { background: #ddf0e2; color: var(--ok); }
  407. .action-btn.recheck { background: #fff0c8; color: #7c5111; }
  408. .action-btn.retry-pay { background: #dce9ef; color: #1e5260; }
  409. .account-actions {
  410. display: flex;
  411. justify-content: flex-end;
  412. flex-wrap: wrap;
  413. min-width: 150px;
  414. }
  415. .pager { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
  416. .pager button { background: #efe5d3; color: var(--ink); padding: 7px 12px; }
  417. .pager button.active { background: var(--primary); color: #fff9ec; }
  418. .pager .info { color: var(--muted); font-size: 13px; }
  419. .detail-box {
  420. margin-top: 14px;
  421. border: 1px solid var(--line);
  422. border-radius: 18px;
  423. background: rgba(255,250,240,.8);
  424. padding: 12px 14px;
  425. }
  426. .detail-box summary { cursor: pointer; color: var(--muted); font-weight: 800; }
  427. .detail-box pre {
  428. max-height: 280px;
  429. overflow: auto;
  430. margin: 12px 0 0;
  431. white-space: pre-wrap;
  432. word-break: break-word;
  433. font-size: 12px;
  434. }
  435. .log-dock {
  436. position: fixed;
  437. right: 22px;
  438. bottom: 22px;
  439. width: min(680px, calc(100vw - 44px));
  440. height: 420px;
  441. z-index: 40;
  442. border: 1px solid rgba(255,255,255,.12);
  443. border-radius: 24px;
  444. overflow: hidden;
  445. background: #101411;
  446. color: #e6f1e8;
  447. box-shadow: 0 28px 80px rgba(16,20,17,.34);
  448. }
  449. .log-dock.collapsed {
  450. height: 58px;
  451. width: min(430px, calc(100vw - 44px));
  452. }
  453. .log-dock header {
  454. height: 58px;
  455. display: flex;
  456. align-items: center;
  457. justify-content: space-between;
  458. gap: 10px;
  459. padding: 12px 14px;
  460. background: linear-gradient(90deg, #183a37, #26352c);
  461. }
  462. .log-dock header span { display: block; color: rgba(230,241,232,.65); font-size: 12px; margin-top: 2px; }
  463. .log-actions { display: flex; gap: 7px; }
  464. .log-actions button {
  465. padding: 7px 10px;
  466. border-radius: 10px;
  467. background: rgba(255,255,255,.12);
  468. color: #e6f1e8;
  469. }
  470. .log-dock pre {
  471. height: calc(100% - 58px);
  472. margin: 0;
  473. padding: 14px;
  474. overflow: auto;
  475. white-space: pre-wrap;
  476. word-break: break-word;
  477. font: 12px/1.55 "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  478. }
  479. @media (max-width: 1040px) {
  480. .app-shell { grid-template-columns: 1fr; padding: 14px; }
  481. .sidebar { position: relative; top: 0; height: auto; }
  482. .sidebar-note { position: static; margin-top: 24px; }
  483. .field-grid { grid-template-columns: 1fr 1fr; }
  484. .hero-panel { align-items: flex-start; flex-direction: column; }
  485. .account-card { grid-template-columns: 1fr; align-items: stretch; }
  486. .account-actions { justify-content: flex-start; min-width: 0; }
  487. }
  488. @media (max-width: 720px) {
  489. .field-grid { grid-template-columns: 1fr; }
  490. label.wide { grid-column: auto; }
  491. .panel-head { flex-direction: column; align-items: flex-start; }
  492. .hero-actions, .toolbar { width: 100%; }
  493. .button, .toolbar select { flex: 1; }
  494. .account-library-note { align-items: flex-start; flex-direction: column; }
  495. .account-meta { grid-template-columns: 1fr; }
  496. .account-card { padding: 14px; border-radius: 20px; }
  497. }