Spaces:
Running
Running
File size: 31,718 Bytes
4985967 475c0da 4985967 3897420 22e5644 4985967 22e5644 4985967 9c89c7b 4985967 22e5644 4985967 22e5644 4985967 22e5644 4985967 22e5644 4985967 7eaf9de 4985967 9ed2885 4985967 32e7831 22e5644 32e7831 4985967 9c89c7b 4985967 3ba6342 22e5644 3ba6342 4985967 c4960d3 4985967 22e5644 7eaf9de 4985967 b8f980c 4985967 7eaf9de 4985967 eefe8ce 4985967 eefe8ce 22e5644 6bfa9e3 22e5644 a0089f4 eefe8ce 4985967 22e5644 4985967 165aa1c 4985967 22e5644 4985967 22e5644 4985967 e788d91 4985967 bf941b6 49e6b59 bf941b6 49e6b59 22e5644 bf941b6 56733e0 bf941b6 22e5644 4985967 ca79673 3897420 ca79673 bf941b6 ca79673 bf941b6 56733e0 1bd47d6 56733e0 22e5644 56733e0 2b0b583 22e5644 bf941b6 22e5644 bf941b6 8240f87 e3d207b eb9889f 7dda1f9 eb9889f bf941b6 e3d207b 7dda1f9 22e5644 7dda1f9 22e5644 a2c98cb 7dda1f9 e3d207b bf941b6 22e5644 f27813e f5947e2 f27813e 34e0316 22e5644 d66d9b5 22e5644 d66d9b5 22e5644 56733e0 34e0316 22e5644 4985967 e3d207b 77f5eca a42a198 77f5eca a42a198 a517bdd a42a198 9ed2885 a42a198 32e7831 a42a198 9ed2885 a42a198 4985967 22e5644 4985967 0273845 22e5644 0273845 a70464c 4985967 db9d02b 22e5644 db9d02b 22e5644 db9d02b 22e5644 db9d02b 4985967 0273845 db9d02b 6ba8f47 db9d02b 4985967 db9d02b 2f7d662 db9d02b 4985967 22e5644 4985967 2b3c744 35a623d 22e5644 35a623d 22e5644 35a623d f6efc87 820f61c dcca15f afcf7fd 4985967 22e5644 4985967 d31187b 4985967 0d6469c 9461a1a 0d6469c 9461a1a 4985967 22e5644 4985967 22e5644 4985967 31b88e2 4985967 59b4875 4985967 22e5644 4985967 769ccbd 31b88e2 769ccbd ede952e 039b7b4 22e5644 4d6eb17 ede952e 4d6eb17 ede952e 769ccbd 4d6eb17 ede952e 4985967 039b7b4 4985967 4d6eb17 ede952e 4d6eb17 ede952e 810313b b3d75a4 da60ace b3d75a4 ede952e 4985967 b3d75a4 4985967 4d6eb17 da60ace b3d75a4 da60ace 22e5644 9619a72 4985967 ede952e 4985967 ede952e 4985967 ede952e 85c4f08 eec7a14 d8462cf 8075388 da9d7a8 8075388 22e5644 8075388 22e5644 8075388 4985967 22e5644 4985967 22e5644 4985967 157020a 22e5644 157020a c4e0f81 157020a 22e5644 c4e0f81 157020a 93b2c93 c891874 c4e0f81 22e5644 157020a c4e0f81 157020a 4985967 22e5644 4985967 eb30a0f 4985967 22e5644 c3203f5 75deb1e 22e5644 c3203f5 22e5644 c3203f5 22e5644 c3203f5 22e5644 c3203f5 1d1c722 22e5644 1d1c722 4985967 22e5644 4985967 19dbb1d 2bf8378 19dbb1d 3cdbd25 6b34cd0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 | /* ========================================== */
/* 🌐 Global: Reset & Global Styles */
/* ========================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
overflow-y: scroll;
}
:root {
--link-color: #6cf;
--primary-btn: #2563eb;
--primary-btn-hover: #1d4ed8;
--border-color: #2a2a2a;
--card-hover-border: #444;
--interactive-border: #555; /* 交互状态(选中、聚焦)的边框色(莫兰迪蓝) */
--inactive-border: #333; /* 未交互状态的边框色 */
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: #0f0f0f;
color: #e8e8e8;
line-height: 1.5;
min-height: 100vh;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0f0f0f; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
/* ========================================== */
/* 📐 Layout: 主布局结构 (响应式) */
/* ========================================== */
.app-layout {
display: flex;
width: 100%;
max-width: 1600px;
margin: 0 auto;
padding: 2rem 1.5rem;
gap: 2rem;
align-items: flex-start;
}
/* 侧边栏基础样式 */
.sidebar {
width: 280px;
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: 1rem;
background: #151515;
padding: 1.2rem;
border-radius: 12px;
border: 1px solid var(--border-color);
position: sticky;
top: 2rem;
height: fit-content;
max-height: calc(100vh - 4rem);
}
/* 主内容区 */
.main-content {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
/* ------------------------------------------ */
/* 📱 Responsive Breakpoints */
/* ------------------------------------------ */
/* 💻 中屏/窄屏 PC (打通侧边栏,固定在左侧) */
@media (max-width: 1200px) {
.app-layout {
padding: 0;
max-width: none;
}
.sidebar {
position: fixed;
top: 0;
left: 0;
height: 100vh;
max-height: 100vh;
width: 260px;
border-radius: 0;
border: none;
border-right: 1px solid #2a2a2a;
padding: 1.5rem 1rem;
z-index: 100;
background: #111;
}
.main-content {
margin-left: 260px;
padding: 2rem 1.5rem;
}
}
/* 📱 移动端 (< 768px) */
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
transition: transform 0.3s ease;
width: 280px;
box-shadow: 10px 0 30px rgba(0,0,0,0.8);
}
/* 展开状态(由 JS 添加 open 类) */
.sidebar.open {
transform: translateX(0);
}
.main-content {
margin-left: 0;
padding: 1rem;
}
.mobile-topbar {
display: flex !important;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
}
}
/* ========================================== */
/* 📄 Sidebar Content: 侧边栏内部元素 */
/* ========================================== */
.sidebar-header h1 {
font-size: 0.9rem;
color: #fff;
line-height: 1.3;
margin-bottom: 0.5rem;
word-break: break-word;
}
.search-box input {
width: 100%;
padding: 0.5rem 0.8rem;
background: #1e1e1e;
border: 1px solid #333;
color: #fff;
border-radius: 8px;
font-size: 0.85rem;
outline: none;
transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--primary-btn); }
/* 针对 Webkit 浏览器(Chrome, Safari, Edge)的搜索框清除按钮 */
.search-box input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
height: 14px;
width: 14px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
cursor: pointer;
opacity: 0.6;
transition: opacity 0.2s;
}
.search-box input[type="search"]::-webkit-search-cancel-button:hover {
opacity: 1;
}
.sidebar-nav {
flex: 1;
display: flex;
flex-direction: column;
gap: 1rem;
}
.stats-row {
display: flex;
justify-content: flex-end;
align-items: center;
font-size: 0.65rem;
padding-right: 0.6rem;
padding-bottom: 1rem;
border-bottom: 1px solid #2a2a2a;
}
/* 底部容器 */
.sidebar-footer {
display: flex;
flex-direction: column;
gap: 0.2rem;
padding-top: 1rem;
margin-top: auto;
background: #1c1c1c;
border-radius: 12px;
padding: 0.8rem;
}
.repo-link {
color: #888;
display: flex;
align-items: center;
gap: 0;
white-space: nowrap;
overflow: hidden;
font-size: 0.7rem;
}
.repo-link a {
color: var(--link-color);
text-decoration: none;
margin-left: 0.3rem;
transition: opacity 0.2s;
text-overflow: ellipsis;
overflow: hidden;
}
.repo-link a:hover { text-decoration: underline; opacity: 0.8; }
.footer-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
margin-right: 2px;
font-size: 1em;
}
#open-disclaimer-btn { color: #b4a57a; cursor: pointer; transition: color 0.2s; }
#open-disclaimer-btn:hover { color: #d4c59a; }
/* 下载量徽章:右对齐,单独一行 */
.downloads-badge {
font-size: 0.65rem;
color: #999;
padding: 0.3rem 0.6rem;
border-radius: 6px;
display: block;
width: fit-content;
margin-left: auto;
margin-top: 0.5rem;
text-align: center;
}
/* 骨架屏加载时,强制隐藏真实元素 */
.skeleton-hide {
display: none !important;
}
.mobile-topbar { display: none; }
#mobile-menu-btn {
background: #252525; border: 1px solid #444; color: #fff;
padding: 0.4rem 0.8rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem;
}
/* ========================================== */
/* 🧭 Nav: 导航区 (极简裸对钩 + 莫兰迪蓝) */
/* ========================================== */
.nav-section {
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.nav-label {
font-size: 0.6rem;
color: #888;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 700;
margin-bottom: 0.2rem;
}
.nav-buttons {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 0.5rem;
}
/* 按钮本体 */
.nav-btn {
background: #1e1e1e;
border: 1px solid #222;
color: #ccc;
padding: 0.35rem 0.4rem;
border-radius: 6px;
cursor: pointer;
font-size: 0.65rem;
transition: all 0.2s ease;
font-family: inherit;
font-weight: 600;
width: auto;
display: inline-flex;
align-items: center;
text-align: left;
gap: 0.3rem;
min-width: max-content;
}
.nav-btn:hover {
background: #2a2a2a;
border-color: #444;
}
/* 选中时的按钮状态 */
.nav-btn.active {
background: #1e1e1e !important;
border-color: var(--interactive-border) !important;
color: #e8e8e8 !important;
}
/* 未选中时的占位小框(暗色空心) */
.nav-btn::before {
content: "";
display: inline-block;
width: 12px;
height: 12px;
border: 1px solid #444;
border-radius: 3px;
background: transparent;
flex-shrink: 0;
transition: all 0.2s ease;
-webkit-mask-image: none !important;
mask-image: none !important;
}
/* 选中时:保留 1px 的物理空间,但变透明,用遮罩抠出对钩 */
.nav-btn.active::before {
width: 12px !important;
height: 12px !important;
border: 1px solid transparent !important;
background-color: var(--interactive-border) !important;
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
-webkit-mask-size: contain;
mask-size: contain;
-webkit-mask-position: center;
mask-position: center;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
}
/* 弱化数字 */
.nav-btn span {
font-weight: 600;
font-size: 0.65rem;
color: #777;
opacity: 1;
/* 锁死宽度,保证 4 位数(1639)也放得下且不跳动 */
display: inline-block;
width: 34px;
text-align: right;
margin-left: auto;
flex-shrink: 0;
}
.nav-btn.active span {
color: #777 !important;
opacity: 1 !important;
}
.nav-indicator { display: none !important; }
/* ------------------------------------------ */
/* 🎛️ Sort Box (排序区) */
/* ------------------------------------------ */
.sort-row {
display: flex;
align-items: center;
gap: 0.5rem;
padding-bottom: 1.25rem;
border-bottom: 1px solid #2a2a2a;
}
.sort-label {
font-size: 0.75rem;
color: #888;
font-weight: 600;
white-space: nowrap;
}
.sort-select {
flex: 1;
padding: 0.5rem 0.8rem;
background: #1e1e1e;
border: 1px solid var(--inactive-border);
color: #fff;
border-radius: 8px;
font-size: 0.8rem;
outline: none;
cursor: pointer;
transition: border-color 0.2s;
}
/* ========================================== */
/* 🎴 Card: Card Grid (宽屏最高 5 列) */
/* ========================================== */
.grid {
display: grid !important;
/* 限制最大 5 列,最小宽度 200px,自适应 */
grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
gap: 1.2rem; width: 100%; align-items: start;
}
.card {
background: #181818;
border: 1px solid transparent;
border-radius: 10px;
padding: 0rem;
transition: border-color 0.3s ease, box-shadow 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), background 0.3s ease;
display: flex; flex-direction: column; position: relative; min-width: 0; width: 100%; height: fit-content;
}
/* 用绝对定位的伪元素画边框,层级永远最高,绝不被图片遮挡 */
.card::after {
content: "";
position: absolute;
inset: 0;
border-radius: 10px;
pointer-events: none;
z-index: 20;
border: 1px solid #2a2a2a;
transition: border-color 0.3s ease;
}
.card:hover {
background: #1e1e1e;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
inset 0 0 24px rgb(0 0 0 / 50%),
0 15px 35px rgba(0, 0, 0, 0.6),
0 0 20px rgba(37, 99, 235, 0.1);
z-index: 10;
}
/* hover 时改变伪元素的边框颜色 */
.card:hover::after {
border-color: #777;
}
.card.hide { display: none !important; }
.card-badge {
position: absolute; z-index: 20; pointer-events: none; text-transform: uppercase;
top: 0.6rem; left: 0.6rem; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px);
color: #e0e0e0; font-size: 0.7rem; padding: 0.25rem 0.6rem; border-radius: 6px;
border: 1px solid rgba(255,255,255,0.15); font-weight: 600; letter-spacing: 0.5px;
}
/* ------------------------------------------ */
/* 🖼️ Card Image & Mask Animations */
/* ------------------------------------------ */
.card-image-wrap {
width: 100%; aspect-ratio: 3 / 4; position: relative;
border-radius: 10px 10px 0 0; overflow: hidden; margin-bottom: 0.6rem; background: #151515;
}
.card-image-wrap::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
z-index: 15;
box-shadow: inset 0 0 0 transparent;
border-radius: inherit;
transition: box-shadow 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.card:hover .card-image-wrap::after {
box-shadow: inset 0 0 24px rgb(0 0 0 / 33%);
}
.preview {
width: 100%;
height: 100%;
object-fit: cover;
object-position: top center;
display: block;
}
.preview-missing { background: #151515; display: block; width: 100%; height: 100%; mask-image: none !important; }
.preview-missing::after {
content: "No Image"; position: absolute; top: 50%; left: 50%;
transform: translate(-50%, -50%); color: #444; font-size: 0.8rem; font-weight: 600;
}
.img-skeleton { background: #1a1a1a; }
.img-skeleton::before {
content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
animation: skeleton-sweep-diagonal 1.5s infinite linear; z-index: 5; pointer-events: none;
}
@keyframes skeleton-sweep-diagonal {
0% { transform: translate(-40%, -40%); }
100% { transform: translate(40%, 40%); }
}
.is-loaded::before { animation: none; opacity: 0; transition: opacity 0.2s; }
.title-overlay {
position: absolute; bottom: -2px; left: 0; right: 0; height: 45%;
background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
pointer-events: none; z-index: 5;
}
.image-bottom-info {
position: absolute; bottom: 0; left: 0; right: 0; padding: 0.8rem; z-index: 10;
display: flex; flex-direction: column;
}
.image-bottom-info .card-title {
font-size: 0.85rem; font-weight: 700; color: #fff; line-height: 1.3;
word-break: break-word; text-shadow: 0 1px 3px rgba(0,0,0,0.8); margin-bottom: 0.2rem;
}
.image-bottom-info .card-category {
font-size: 0.6rem; color: #aaa; font-weight: 600; letter-spacing: 0.5px;
text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
/* ------------------------------------------ */
/* 📝 Card Info & Actions */
/* ------------------------------------------ */
.card-info { display: flex; flex-direction: column; flex: 1; min-width: 0; padding-left:0.6rem;padding-right:0.6rem;padding-bottom:0.6rem;}
.card-details { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.6rem; }
.detail-block { display: flex; flex-direction: column; gap: 0.2rem; }
.detail-label { color: #666; font-size: 0.65rem; text-transform: uppercase; font-weight: 600; }
.path-box, .trigger-box {
display: block; padding: 0.4rem 0.6rem; border-radius: 6px; cursor: pointer;
transition: background 0.15s ease; width: 100%; background: #252525; border: none;
}
.path-box:hover, .trigger-box:hover { background: #333; }
.path-text, .trigger-text {
font-family: ui-monospace, monospace; line-height: 1.5; word-break: break-word;
display: block; color: #e8e8e8; font-size: 0.7rem;
}
.path-box.copied, .trigger-box.copied { background: var(--primary-btn) !important; }
.path-box.copied .path-text, .trigger-box.copied .trigger-text { color: #fff !important; }
.trigger-list { display: flex; flex-direction: column; gap: 0.4rem; width: 100%; }
.trigger-empty { color: #555; font-size: 0.75rem; padding-left: 0.2rem; }
.card-actions {
display: flex; justify-content: space-between; align-items: center;
gap: 0.5rem; margin-top: auto; padding-top: 0.8rem; border-top: 1.1px solid #383838;
flex-wrap: wrap;
}
.action-btn {
display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
background: #252525; color: #e8e8e8 !important; padding: 0.4rem 0.6rem;
border-radius: 6px; border: 1px solid #333; transition: all 0.15s ease;
text-decoration: none !important; font-size: 0.75rem; font-weight: 600;
white-space: nowrap; line-height: 1.2; flex: 1; text-align: center;cursor:pointer;
}
.action-btn:hover { background: #333; border-color: #555; color: #fff !important; }
.action-btn.primary { background: var(--primary-btn); border-color: var(--primary-btn); color: #fff !important; }
.action-btn.primary:hover { background: var(--primary-btn-hover); border-color: var(--primary-btn-hover); }
.showcase-full-btn {
width: 100%; background: #252525; border: 1px solid #333;
color: #e8e8e8; padding: 0.4rem 0.6rem; border-radius: 6px;
font-size: 0.75rem; font-weight: 600; cursor: pointer;
display: flex; justify-content: center; align-items: center; gap: 0.4rem;
transition: all 0.15s ease;
}
.showcase-full-btn:hover { background: #333; border-color: #555; color: #fff; }
/* 强制 Download 按钮独占一行,拉满宽度 */
.action-btn.primary {
flex: 1 1 100%;
min-width: 120px;
}
/* ========================================== */
/* 🪟 Modal: All Modals & Overlays */
/* ========================================== */
.modal-overlay {
position: fixed; top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
z-index: 10000; display: flex; align-items: center; justify-content: center;
}
.modal-content {
background: #151515; border: 1px solid #2a2a2a; border-radius: 12px;
width: 90%; max-width: 1200px; height: 85vh;
display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
overflow: hidden;
}
.modal-header {
display: flex; justify-content: space-between; align-items: center;
padding: 1rem 1.5rem; border-bottom: 1px solid #2a2a2a; background: #1a1a1a;
}
.modal-header h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.close-btn {
background: transparent; border: none; color: #888; font-size: 1.8rem;
cursor: pointer; transition: color 0.2s; line-height: 1;
}
.close-btn:hover { color: #fff; }
/* 锁死弹窗的 Body,防止无限膨胀 */
.modal-body {
padding: 1.5rem !important;
display: flex !important;
flex-direction: column !important;
flex: 1 !important;
min-height: 0 !important;
overflow: hidden !important;
}
#dataset-modal .modal-body {
padding-top: 0.8rem !important;
}
.viewer-controls {
display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; color: #aaa; margin-bottom: 0.5rem;
}
.viewer-controls select {
background: #252525; color: #fff; border: 1px solid #333;
padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.9rem; outline: none; cursor: pointer; font-family: inherit;
}
/* ------------------------------------------ */
/* 🖼️ Modal: Grid View */
/* ------------------------------------------ */
#grid-view-container {
display: flex !important;
flex-direction: column !important;
flex: 1 !important;
min-height: 0 !important;
overflow: hidden !important;
}
#grid-view {
display: grid;
flex: 1 !important;
min-height: 0 !important;
overflow-y: auto !important;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
/* 强制 3 行等分高度 */
grid-template-rows: repeat(3, 1fr) !important;
gap: 0.8rem;
height: 100%;
padding: 0 !important;
margin: 0 !important;
align-content: start !important;
}
#grid-view-container[style*="display: none"] {
display: none !important;
}
.grid-thumb-container {
height: 100%;
width: auto;
max-width: 100%;
aspect-ratio: 3 / 4;
cursor: pointer;
background: #1a1a1a;
border-radius: 6px;
overflow: hidden;
position: relative;
margin: 0 !important;
padding: 0 !important;
}
.grid-thumb {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: top center;
display: block;
opacity: 0;
}
.grid-thumb.loaded {
opacity: 1;
}
.grid-thumb-container:hover .grid-thumb { filter: brightness(1.15); }
.grid-thumb-container::after {
content: ""; position: absolute; inset: 0; border-radius: 6px;
box-shadow: inset 0 0 0 1px #2a2a2a; transition: box-shadow 0.15s ease;
pointer-events: none; z-index: 10;
}
.grid-thumb-container:hover::after { box-shadow: inset 0 0 0 2px var(--primary-btn); }
#grid-pagination {
flex-shrink: 0 !important;
background: #151515 !important;
z-index: 999 !important;
position: relative !important;
}
#select-container > select {
font-size: 0.7rem;
padding: 0.25rem 0.5rem;
font-weight: 600;
}
#select-container > label {
font-size: 0.7rem;
}
#back-to-grid {
background: #333;
color: #fff;
border: none;
font-weight: 600;
padding: 0.4rem 0.8rem;
border-radius: 6px;
cursor: pointer;
font-size: 0.7rem;
transition: background 0.2s;
}
#back-to-grid:hover {
background: #444;
}
/* ------------------------------------------ */
/* 🖼️ Modal: Detail View */
/* ------------------------------------------ */
.viewer-display { display: flex; gap: 1.5rem; flex: 1; min-height: 0; }
.image-container {
flex: 1.5; background: #0f0f0f; border-radius: 8px;
display: flex; align-items: center; justify-content: center;
overflow: hidden; border: 1px solid #2a2a2a; position: relative;
}
.image-container img {
max-width: 100%; max-height: 100%; object-fit: contain;
display: none; position: relative; z-index: 2;
}
.caption-container { display: flex; flex-direction: column; height: 100%; overflow: hidden; gap: 0.6rem; flex: 1; }
.caption-header { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.caption-container label { font-size: 0.85rem; color: #666; text-transform: uppercase; font-weight: 600; }
#viewer-txt {
flex: 1; margin: 0; padding: 1rem; background: #0f0f0f; border: 1px solid #2a2a2a;
border-radius: 8px; font-family: ui-monospace, monospace; color: #d0d0d0; overflow-y: auto; white-space: pre-wrap;
}
#drag-tip {
display: none; align-items: center; gap: 0.5rem; font-size: 0.7rem;
color: #6cf; background: rgba(108, 204, 255, 0.1); padding: 0.4rem 0.6rem;
border-radius: 6px; border: 1px dashed rgba(108, 204, 255, 0.3); flex-shrink: 0;
}
#params-panel { display: none; flex-direction: column; gap: 0.4rem; flex-shrink: 0; }
.param-row { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.75rem; margin-bottom: 0.2rem; }
.param-key { color: #888; min-width: 55px; text-align: left; font-size: 0.65rem; font-weight: 500; flex-shrink: 0; line-height: 1.4; }
.param-value {
color: #e0e0e0 !important; font-weight: 700 !important; border-radius: 4px;
font-family: ui-monospace, monospace; font-size: 0.7rem; word-break: break-all; line-height: 1.4;
}
.lora-container { display: flex; flex-wrap: wrap; gap: 0.3rem; flex: 1; }
.nav-btn-arrow {
position: absolute; top: 50%; transform: translateY(-50%);
background: rgba(0, 0, 0, 0.6); color: #fff; border: 1px solid rgba(255,255,255,0.2);
width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 10;
display: flex; justify-content: center; align-items: center; transition: background 0.2s;
}
.nav-btn-arrow:hover { background: rgba(37, 99, 235, 0.9); }
@media (max-width: 800px) {
.viewer-display { flex-direction: column; }
.image-container { flex: 1; }
.caption-container { flex: 0.5; }
}
/* ------------------------------------------ */
/* 📑 Pagination */
/* ------------------------------------------ */
.page-btn {
background: #252525; border: 1px solid #333; color: #ccc; min-width: 32px; height: 32px;
border-radius: 6px; display: flex; justify-content: center; align-items: center;
cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.15s ease; padding: 0 0.5rem;
}
.page-btn:hover:not(:disabled):not(.active) { background: #333; border-color: #555; color: #fff; }
.page-btn.active { background: var(--primary-btn); border-color: var(--primary-btn); color: #fff; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-dots { color: #666; font-weight: 600; padding: 0 0.2rem; }
/* ------------------------------------------ */
/* ⏳ Loading Skeleton (大图加载扫光) */
/* ------------------------------------------ */
.viewer-loading-skeleton {
position: absolute;
inset: 0;
background-color: #1a1a1a;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
animation: skeleton-breath 1.5s ease-in-out infinite;
}
.viewer-loading-skeleton span {
color: #888;
font-family: ui-monospace, monospace;
font-size: 0.9rem;
animation: text-breath 1.5s ease-in-out infinite;
}
@keyframes skeleton-breath {
0%, 100% { background-color: #1a1a1a; }
50% { background-color: #2a2a2a; }
}
@keyframes text-breath {
0%, 100% { opacity: 0.5; }
50% { opacity: 1; }
}
/* ========================================== */
/* 📝 Utils: Usage Guide Markdown 样式 */
/* ========================================== */
.markdown-body { color: #d0d0d0; font-size: 0.9rem; line-height: 1.6; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { color: #ffffff; margin-top: 1.5rem; margin-bottom: 0.8rem; font-weight: 700; }
.markdown-body h3 { border-bottom: none; }
.markdown-body p { margin-bottom: 1rem; }
.markdown-body img {
max-width: 100%; height: auto; border-radius: 8px; border: 1px solid #333;
box-shadow: 0 4px 12px rgba(0,0,0,0.5); margin: 1rem 0; display: block;
}
.markdown-body code {
background: #242424;
color: #f8f8f8;
padding: 0.2rem 0.4rem;
border-radius: 4px;
font-family: ui-monospace, monospace;
font-size: 0.85rem;
word-break: break-all;
}
.markdown-body pre {
background: #1e1e1e; padding: 1rem; border-radius: 8px;
overflow-x: auto; border: 1px solid #333; margin-bottom: 1rem; white-space: pre-wrap;
}
.markdown-body pre code { background: transparent; padding: 0; color: #e0e0e0; white-space: pre-wrap; }
.markdown-body a { color: #6cf; text-decoration: none; transition: color 0.2s; }
.markdown-body a:hover { text-decoration: underline; color: #99dfff; }
.markdown-body hr { border: none; border-top: 1px solid #333; margin: 2rem 0; }
/* 当弹窗打开时,锁死 body(不要锁死 html,否则影响内部滚动) */
body:has(#dataset-modal[style*="display: flex"]),
body:has(#usage-modal[style*="display: flex"]),
body:has(#disclaimer-modal[style*="display: flex"]) {
overflow: hidden !important;
}
/* 强制让这三个弹窗的遮罩层接管鼠标滚动,防止滚动穿透 */
#dataset-modal,
#usage-modal,
#disclaimer-modal {
overflow-y: auto !important;
overscroll-behavior: contain;
}
/* 确保 Usage 弹窗的内容区可以顺畅滚动 */
#usage-modal-body {
overflow-y: auto !important;
flex: 1;
}
.md-img-wrapper {
position: relative;
width: 100%;
border-radius: 8px;
overflow: hidden;
margin: 1rem 0;
background: #1a1a1a;
}
.md-img-wrapper.img-skeleton::before {
content: "";
position: absolute;
top: -50%; left: -50%; width: 200%; height: 200%;
background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
animation: skeleton-sweep-diagonal 1.5s infinite linear;
z-index: 5;
pointer-events: none;
}
.md-img-wrapper img {
display: block;
max-width: 100%;
height: auto;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
.md-img-wrapper img.loaded {
opacity: 1;
}
/* ========================================== */
/* 🪄 Animations & Transitions */
/* ========================================== */
@keyframes pulse {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}
.preview.reveal-img {
opacity: 0 !important;
transition: opacity 0.5s ease-in-out, transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}
.preview.reveal-img.loaded {
opacity: 1 !important;
}
#grid-view .reveal-img {
transition: none !important;
opacity: 1 !important;
}
#grid-view .reveal-img:not(.loaded) {
opacity: 0 !important;
}
/* ========================================== */
/* 🧺 Dev Mode: Civitai Blurb Builder (?dev=1) */
/* ========================================== */
.dev-tools {
position: absolute;
top: 0.6rem;
right: 0.6rem;
z-index: 21;
display: flex;
gap: 0.35rem;
}
.dev-btn {
width: 26px;
height: 26px;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.18);
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(4px);
font-size: 0.78rem;
line-height: 1;
cursor: pointer;
opacity: 0.5;
transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}
.card:hover .dev-btn { opacity: 1; }
.dev-btn:hover { background: #333; border-color: #777; }
/* 已加入:亮蓝 + 外描边(用 box-shadow,绝不影响卡片尺寸) */
.dev-btn.active {
opacity: 1;
background: var(--primary-btn);
border-color: var(--primary-btn);
box-shadow: 0 0 0 2px rgba(37, 99, 235, .35);
}
#dev-panel {
position: fixed;
right: 20px;
bottom: 20px;
width: 380px;
max-height: calc(100vh - 40px);
z-index: 9000;
display: flex;
flex-direction: column;
background: #161616;
border: 1px solid #333;
border-radius: 12px;
box-shadow: 0 18px 50px rgba(0, 0, 0, .75);
overflow: hidden;
font-size: 0.75rem;
}
#dev-panel.collapsed .dev-body { display: none; }
#dev-panel .dev-head {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.55rem 0.8rem;
background: #1c1c1c;
border-bottom: 1px solid #2a2a2a;
cursor: pointer;
user-select: none;
}
#dev-panel.collapsed .dev-head { border-bottom: none; }
#dev-panel .dev-head strong { font-size: 0.78rem; color: #e8e8e8; }
#dev-panel .dev-count { color: #888; font-size: 0.7rem; }
#dev-panel .dev-badge {
margin-left: auto;
color: #555;
font-size: 0.6rem;
font-family: ui-monospace, monospace;
}
#dev-panel .dev-body {
display: flex;
flex-direction: column;
gap: 0.45rem;
padding: 0.6rem 0.8rem 0.8rem;
min-height: 0;
overflow-y: auto;
}
.dev-sec-label {
color: #666;
font-size: 0.6rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.dev-row {
display: flex;
align-items: center;
gap: 0.4rem;
padding: 0.35rem 0.45rem;
background: #1f1f1f;
border: 1px solid #2a2a2a;
border-radius: 6px;
}
.dev-row .dev-row-eng { color: #7cc4ff; font-weight: 700; flex-shrink: 0; }
.dev-row .dev-row-name {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #d5d5d5;
font-family: ui-monospace, monospace;
font-size: 0.66rem;
}
.dev-row .dev-x {
background: none;
border: none;
color: #777;
cursor: pointer;
font-size: 0.8rem;
line-height: 1;
padding: 0 0.15rem;
}
.dev-row .dev-x:hover { color: #e55; }
.dev-empty { color: #555; font-size: 0.7rem; padding: 0.1rem 0.2rem; }
#dev-preview {
margin: 0;
padding: 0.5rem 0.6rem;
max-height: 180px;
overflow: auto;
background: #0f0f0f;
border: 1px solid #262626;
border-radius: 6px;
font-family: ui-monospace, monospace;
font-size: 0.62rem;
line-height: 1.5;
color: #9aa;
white-space: pre-wrap;
word-break: break-all;
}
.dev-actions { display: flex; gap: 0.5rem; }
.dev-actions button {
flex: 1;
padding: 0.45rem 0.6rem;
border-radius: 6px;
border: 1px solid #333;
background: #252525;
color: #e8e8e8;
font-size: 0.72rem;
font-weight: 600;
cursor: pointer;
font-family: inherit;
transition: all .15s ease;
}
.dev-actions button:hover { background: #333; border-color: #555; color: #fff; }
.dev-actions button:disabled { opacity: .4; cursor: not-allowed; }
.dev-actions #dev-copy {
background: var(--primary-btn);
border-color: var(--primary-btn);
color: #fff;
}
.dev-actions #dev-copy:hover:not(:disabled) {
background: var(--primary-btn-hover);
border-color: var(--primary-btn-hover);
}
.dev-row .dev-row-idx {
color: #555;
font-size: 0.6rem;
font-family: ui-monospace, monospace;
flex-shrink: 0;
width: 12px;
}
.dev-row .dev-cp {
background: none;
border: none;
color: #6cf;
cursor: pointer;
font-size: 0.78rem;
line-height: 1;
padding: 0 0.15rem;
}
.dev-row .dev-cp:hover { color: #99dfff; } |