File size: 18,544 Bytes
a6927da | 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 | /* ToolTree project page — hand-written, zero external dependencies. */
:root {
--ink: #1e293b;
--ink-strong: #0f172a;
--muted: #64748b;
--accent: #6d28d9;
--accent-dark: #5b21b6;
--accent-soft: #ede9fe;
--accent-faint: #f5f3ff;
--border: #e2e8f0;
--bg-alt: #f8fafc;
--card-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.06);
--card-shadow-lift: 0 2px 4px rgba(15, 23, 42, 0.06), 0 10px 28px rgba(15, 23, 42, 0.12);
--nav-h: 52px;
}
* { box-sizing: border-box; }
html {
scroll-behavior: smooth;
scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
font-size: 17px;
line-height: 1.65;
color: var(--ink);
background: #ffffff;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
.container {
max-width: 960px;
margin: 0 auto;
padding: 0 24px;
}
section { padding: 56px 0; }
section.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 {
font-size: 1.75rem;
line-height: 1.25;
margin: 0 0 20px;
color: var(--ink-strong);
letter-spacing: -0.01em;
text-align: center;
}
h3 {
font-size: 1.15rem;
margin: 32px 0 10px;
color: var(--ink-strong);
}
p { margin: 0 0 16px; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
/* ---------- Sticky section nav ---------- */
.topnav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 60;
display: none;
transform: translateY(-100%);
background: rgba(255, 255, 255, 0.92);
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
border-bottom: 1px solid var(--border);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
html.js .topnav { display: block; }
.topnav.visible {
transform: translateY(0);
box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.topnav-inner {
max-width: 960px;
margin: 0 auto;
padding: 0 24px;
height: var(--nav-h);
display: flex;
align-items: center;
gap: 18px;
}
.topnav-brand {
font-weight: 800;
font-size: 1.02rem;
letter-spacing: -0.01em;
color: var(--accent-dark);
text-decoration: none;
flex: none;
}
.topnav-brand:hover { color: var(--accent); }
.topnav-links {
display: flex;
gap: 2px;
margin-left: auto;
overflow-x: auto;
scrollbar-width: none;
}
.topnav-links::-webkit-scrollbar { display: none; }
.topnav-links a {
color: var(--muted);
text-decoration: none;
font-size: 0.88rem;
font-weight: 500;
padding: 6px 10px;
border-radius: 8px;
white-space: nowrap;
transition: color 0.15s ease, background-color 0.15s ease;
}
.topnav-links a:hover {
color: var(--accent-dark);
background: var(--accent-faint);
}
/* ---------- Hero ---------- */
.hero {
position: relative;
overflow: hidden;
padding: 84px 0 60px;
text-align: center;
background:
radial-gradient(1100px 480px at 50% -140px, var(--accent-faint), rgba(255, 255, 255, 0) 72%),
radial-gradient(700px 340px at 88% -160px, #eef2ff, rgba(255, 255, 255, 0) 70%),
#ffffff;
}
/* Faint dot-grid, fading out below the fold — pure CSS, no assets. */
.hero::before {
content: "";
position: absolute;
inset: 0;
background-image:
linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
background-size: 34px 34px;
-webkit-mask-image: radial-gradient(820px 460px at 50% -60px, rgba(0, 0, 0, 0.85), transparent 78%);
mask-image: radial-gradient(820px 460px at 50% -60px, rgba(0, 0, 0, 0.85), transparent 78%);
pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 {
font-size: clamp(1.7rem, 4vw, 2.6rem);
line-height: 1.18;
letter-spacing: -0.022em;
font-weight: 800;
margin: 0 auto 28px;
max-width: 880px;
color: var(--ink-strong);
text-wrap: balance;
}
.hero h1 .hero-name { color: var(--accent); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
.hero h1 .hero-name {
background: linear-gradient(115deg, #7c3aed 20%, #4f46e5 80%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
}
.authors {
font-size: 1.08rem;
font-weight: 500;
margin: 0 auto 6px;
max-width: 820px;
color: var(--ink);
}
.affiliation {
font-size: 0.97rem;
color: var(--muted);
margin-bottom: 0;
}
.venue { margin: 18px 0 30px; }
.venue-chip {
display: inline-block;
font-size: 0.85rem;
font-weight: 700;
letter-spacing: 0.04em;
color: var(--accent-dark);
background: var(--accent-soft);
border: 1px solid #ddd6fe;
border-radius: 999px;
padding: 5px 16px;
}
.button-row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
}
/* ---------- Buttons ---------- */
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 22px;
border-radius: 999px;
background: var(--ink-strong);
color: #ffffff;
text-decoration: none;
font-size: 0.96rem;
font-weight: 600;
border: 1px solid var(--ink-strong);
transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
background: #334155;
border-color: #334155;
color: #ffffff;
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.btn .btn-ico { width: 15px; height: 15px; flex: none; opacity: 0.9; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline {
background: #ffffff;
color: var(--accent-dark);
border-color: #c4b5fd;
}
.btn-outline:hover {
background: var(--accent);
border-color: var(--accent);
color: #ffffff;
box-shadow: 0 6px 16px rgba(109, 40, 217, 0.25);
}
.btn-ghost {
background: rgba(255, 255, 255, 0.7);
color: var(--ink);
border-color: var(--border);
}
.btn-ghost:hover {
background: #ffffff;
border-color: #cbd5e1;
color: var(--ink-strong);
box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}
/* ---------- Scroll-reveal (JS adds .js to <html>; no JS = always visible) ---------- */
html.js .reveal {
opacity: 0;
transform: translateY(16px);
transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js .reveal.revealed {
opacity: 1;
transform: none;
}
/* Staggered grids: the container fades, children lift in one after another. */
html.js .reveal.stagger { transform: none; }
html.js .reveal.stagger > * {
opacity: 0;
transform: translateY(14px);
transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
html.js .reveal.stagger.revealed > * { opacity: 1; transform: none; }
html.js .reveal.stagger.revealed > :nth-child(2) {
transition: opacity 0.5s ease 0.12s, transform 0.5s ease 0.12s, box-shadow 0.2s ease 0s, border-color 0.2s ease 0s;
}
html.js .reveal.stagger.revealed > :nth-child(3) {
transition: opacity 0.5s ease 0.24s, transform 0.5s ease 0.24s, box-shadow 0.2s ease 0s, border-color 0.2s ease 0s;
}
/* ---------- Metric callout cards ---------- */
.metrics { padding: 8px 0 48px; }
.metric-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.metric-card {
background: #ffffff;
border: 1px solid var(--border);
border-top: 3px solid var(--accent);
border-radius: 14px;
padding: 26px 22px 22px;
text-align: center;
box-shadow: var(--card-shadow);
transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.metric-card:hover { box-shadow: var(--card-shadow-lift); border-color: #cbd5e1; border-top-color: var(--accent); }
.metric-value {
font-size: 2.6rem;
font-weight: 700;
line-height: 1.1;
color: var(--accent);
letter-spacing: -0.02em;
}
.metric-label {
margin-top: 10px;
font-size: 0.96rem;
color: var(--ink);
}
.metric-sub {
margin-top: 6px;
font-size: 0.86rem;
color: var(--muted);
}
/* ---------- Showcase (the architecture figure inside Method) ---------- */
/* Breaks out of the 960px column, centered on the viewport — width/margin only,
no transform (transform belongs to the .reveal animation). */
figure.paper-figure.figure-hero {
width: min(1160px, calc(100vw - 48px));
margin-left: calc((100% - min(1160px, calc(100vw - 48px))) / 2);
}
figure.paper-figure.figure-hero img {
max-width: 100%;
padding: 14px;
border-radius: 18px;
border-color: #e2e8f0;
box-shadow: 0 10px 32px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.06);
}
figure.paper-figure.figure-hero img:hover {
box-shadow: 0 14px 40px rgba(109, 40, 217, 0.16), 0 3px 10px rgba(15, 23, 42, 0.08);
border-color: #c4b5fd;
}
figure.paper-figure.figure-hero figcaption { max-width: 900px; }
/* ---------- Figure 3 band (between abstract and method) ---------- */
.fig3-band { padding: 40px 0; }
.fig3-band figure.paper-figure { margin-top: 0; }
/* ---------- Figure 1 beside the abstract (unused fallback) ---------- */
.abstract-grid {
display: grid;
grid-template-columns: 1.15fr 0.62fr;
gap: 30px;
align-items: center;
}
.abstract-grid .abstract-card { max-width: none; margin: 0; }
figure.paper-figure.figure-side { margin: 0; }
figure.paper-figure.figure-side img { max-width: 100%; padding: 8px; }
figure.paper-figure.figure-side figcaption { font-size: 0.8rem; margin-top: 10px; }
@media (max-width: 880px) {
.abstract-grid { grid-template-columns: 1fr; }
figure.paper-figure.figure-side img { max-width: 420px; }
}
/* ---------- Abstract ---------- */
.abstract-card {
max-width: 800px;
margin: 0 auto;
background: var(--bg-alt, #f8fafc);
border: 1px solid var(--border);
border-left: 4px solid #6d28d9;
border-radius: 14px;
padding: 26px 32px;
}
.abstract-text {
margin: 0;
text-align: justify;
hyphens: auto;
line-height: 1.72;
}
@media (max-width: 640px) {
.abstract-card { padding: 18px 18px; }
.abstract-text { text-align: left; }
}
/* ---------- Paper figures ---------- */
figure.paper-figure {
margin: 26px auto 10px;
text-align: center;
}
figure.paper-figure img {
width: 100%;
max-width: 960px;
height: auto;
display: block;
margin: 0 auto;
background: #ffffff;
border: 1px solid var(--border);
border-radius: 14px;
padding: 10px;
transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
figure.paper-figure img:hover { box-shadow: var(--card-shadow-lift); border-color: #cbd5e1; }
html.js figure.paper-figure img,
html.js .case-figure img { cursor: zoom-in; }
figure.paper-figure.figure-narrow img { max-width: 560px; }
figure.paper-figure.figure-medium img { max-width: 680px; }
figure.paper-figure .figure-stack img + img { margin-top: 14px; }
figure.paper-figure figcaption {
font-size: 0.88rem;
color: var(--muted);
text-align: center;
max-width: 820px;
margin: 12px auto 0;
}
figure.paper-figure figcaption .fig-tag {
font-weight: 600;
color: var(--ink);
}
.mech-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-top: 34px;
}
.mech-card {
background: #ffffff;
border: 1px solid var(--border);
border-radius: 14px;
padding: 22px;
box-shadow: var(--card-shadow);
transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.mech-card:hover { box-shadow: var(--card-shadow-lift); border-color: #cbd5e1; }
.mech-card h3 {
margin: 0 0 10px;
font-size: 1.04rem;
color: var(--accent-dark);
}
.mech-card p { margin: 0; font-size: 0.94rem; color: var(--ink); }
.mech-num {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
margin-bottom: 12px;
border-radius: 50%;
background: var(--accent-soft);
color: var(--accent-dark);
font-weight: 700;
font-size: 0.9rem;
}
.gradient-free {
margin: 30px auto 0;
max-width: 820px;
text-align: center;
font-size: 0.98rem;
background: var(--accent-faint);
border: 1px solid var(--accent-soft);
border-radius: 10px;
padding: 12px 18px;
color: var(--ink);
}
/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0 6px; }
table.results {
width: 100%;
border-collapse: collapse;
font-size: 0.94rem;
background: #ffffff;
}
table.results caption {
caption-side: top;
text-align: left;
font-weight: 600;
font-size: 1.02rem;
color: var(--ink-strong);
padding: 0 0 10px;
}
table.results th, table.results td {
padding: 8px 12px;
text-align: right;
border-bottom: 1px solid var(--border);
white-space: nowrap;
}
table.results th:first-child, table.results td:first-child { text-align: left; }
table.results thead th {
border-bottom: 2px solid var(--ink-strong);
color: var(--ink-strong);
font-weight: 600;
}
table.results tbody tr { transition: background-color 0.15s ease; }
table.results tbody tr:hover td { background: var(--bg-alt); }
table.results tr.ours td {
background: var(--accent-soft);
font-weight: 700;
color: var(--accent-dark);
}
table.results tr.ours:hover td { background: var(--accent-soft); }
table.results tr.ours td:first-child { border-left: 3px solid var(--accent); }
.table-note {
font-size: 0.86rem;
color: var(--muted);
margin: 8px 0 28px;
}
.takeaway {
font-size: 0.95rem;
margin: 10px 0 30px;
padding: 10px 16px;
background: var(--accent-faint);
border-left: 3px solid var(--accent);
border-radius: 0 8px 8px 0;
}
.ablation-block { margin-bottom: 8px; }
.block-title {
text-align: center;
margin-top: 44px;
font-size: 1.25rem;
}
.block-intro {
max-width: 820px;
margin: 0 auto 4px;
}
/* ---------- Efficiency & transfer ---------- */
.info-card {
background: #ffffff;
border: 1px solid var(--border);
border-radius: 14px;
padding: 24px;
box-shadow: var(--card-shadow);
transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.info-card:hover { box-shadow: var(--card-shadow-lift); border-color: #cbd5e1; }
.info-card h3 { margin: 0 0 10px; font-size: 1.08rem; }
.info-card p { margin: 0 0 10px; font-size: 0.96rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-card-solo { max-width: 820px; margin: 18px auto 34px; }
/* ---------- Case study band ---------- */
.band-label {
display: inline-block;
font-size: 0.84rem;
font-weight: 600;
letter-spacing: 0.02em;
color: #92400e;
background: #fef3c7;
border: 1px solid #fde68a;
border-radius: 999px;
padding: 5px 14px;
margin-bottom: 18px;
}
.case-figure { margin: 18px 0; text-align: center; }
.case-figure img {
width: 100%;
max-width: 860px;
height: auto;
border: 1px solid var(--border);
border-radius: 14px;
background: #ffffff;
transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.case-figure img:hover { box-shadow: var(--card-shadow-lift); border-color: #cbd5e1; }
.case-text { max-width: 820px; margin: 0 auto 22px; }
.case-actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 18px;
}
.case-actions .aux-link { font-size: 0.95rem; }
#case-study { text-align: center; }
#case-study .case-text { text-align: left; }
/* ---------- Lightbox (created by JS on demand) ---------- */
.lightbox {
position: fixed;
inset: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
padding: 30px;
background: rgba(15, 23, 42, 0.84);
opacity: 0;
visibility: hidden;
transition: opacity 0.2s ease, visibility 0.2s ease;
cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
max-width: min(1200px, 100%);
max-height: 92vh;
width: auto;
height: auto;
background: #ffffff;
border-radius: 10px;
padding: 8px;
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.lightbox-close {
position: absolute;
top: 14px;
right: 18px;
width: 40px;
height: 40px;
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 50%;
background: rgba(15, 23, 42, 0.5);
color: #f1f5f9;
font-size: 1.35rem;
line-height: 1;
cursor: pointer;
transition: background-color 0.15s ease, border-color 0.15s ease;
}
.lightbox-close:hover { background: rgba(51, 65, 85, 0.85); border-color: rgba(255, 255, 255, 0.6); }
.lightbox-close:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
/* ---------- BibTeX ---------- */
.bibtex-box { position: relative; max-width: 860px; margin: 0 auto; }
.bibtex-box pre {
background: #0f172a;
color: #e2e8f0;
border-radius: 14px;
padding: 24px 26px;
overflow-x: auto;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
font-size: 0.86rem;
line-height: 1.55;
margin: 0;
}
.copy-btn {
position: absolute;
top: 12px;
right: 12px;
background: #334155;
color: #e2e8f0;
border: 1px solid #475569;
border-radius: 8px;
padding: 6px 14px;
font-size: 0.84rem;
font-family: inherit;
cursor: pointer;
transition: background-color 0.15s ease;
}
.copy-btn:hover { background: #475569; }
/* ---------- Footer ---------- */
footer {
border-top: 1px solid var(--border);
padding: 30px 0 38px;
text-align: center;
font-size: 0.9rem;
color: var(--muted);
}
/* ---------- Responsive ---------- */
@media (max-width: 760px) {
section { padding: 42px 0; }
.hero { padding: 60px 0 46px; }
.metric-grid, .mech-grid { grid-template-columns: 1fr; }
.metric-value { font-size: 2.2rem; }
body { font-size: 16px; }
.topnav-inner { gap: 12px; padding: 0 16px; }
}
/* ---------- Reduced motion: no animation, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
html.js .reveal,
html.js .reveal.stagger > * {
opacity: 1;
transform: none;
}
*, *::before, *::after {
transition: none !important;
animation: none !important;
}
.btn:hover { transform: none; }
}
/* 4-card mechanism grid: 2x2 on desktop, single column on narrow screens.
(Kept after the responsive block above so the narrow-screen override below
must also live here — same specificity, source order decides.) */
.mech-grid.mech-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) {
.mech-grid.mech-grid-4 { grid-template-columns: 1fr; }
}
|