@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url('/fonts/inter-latin-v20.woff2') format('woff2');
}
@font-face {
font-family: 'Bricolage Grotesque';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('/fonts/bricolage-grotesque-latin-700-v9.woff2') format('woff2');
}
@font-face {
font-family: 'Syncopate';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('/fonts/syncopate-latin-700-v24.woff2') format('woff2');
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400 500;
font-display: swap;
src: url('/fonts/jetbrains-mono-latin-v24.woff2') format('woff2');
}
:root {
--bg-color: #F9FAFB;
--text-primary: #1F2937;
--text-secondary: #4B5563;
--accent-color: #059669;
--accent-subtle: #E5E7EB;
--glass-border: rgba(0, 0, 0, 0.06);
--page-grid-line: rgba(0, 0, 0, 0.035);
--hover-bg: rgba(0, 0, 0, 0.04);
--nav-bg: rgba(249, 250, 251, 0.95);
--tile-bg-1: #FFFFFF;
--tile-bg-2: #F3F4F6;
--blockquote-border: #059669;
--color-primary: #7c3aed;
--color-success: #059669;
--color-warning: #d97706;
--color-danger:  #dc2626;
--color-info:    #2563eb;
--mark-bg: #fff3cd;
--mark-text: inherit;
}
[data-theme="dark"] {
--bg-color: #050505;
--text-primary: #FFFFFF;
--text-secondary: #E5E7EB;
--accent-color: #34D399;
--accent-subtle: #333333;
--glass-border: rgba(255, 255, 255, 0.15);
--page-grid-line: rgba(255, 255, 255, 0.12);
--hover-bg: rgba(255, 255, 255, 0.1);
--nav-bg: rgba(5, 5, 5, 0.95);
--tile-bg-1: #121212;
--tile-bg-2: #1A1A1A;
--blockquote-border: #34D399;
--color-primary: #C084FC;
--color-success: #4ADE80;
--color-warning: #FACC15;
--color-danger:  #F87171;
--color-info:    #38BDF8;
--mark-bg: #5c4a00;
--mark-text: #ffffff;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
cursor: default;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a,
button,
summary,
label[for],
input[type="checkbox"],
input[type="radio"],
select,
[role="button"],
[data-lightbox-action],
[data-lightbox-close] {
cursor: pointer;
}
body {
background-color: var(--bg-color);
color: var(--text-primary);
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
overflow-x: hidden;
width: 100vw;
min-height: 100vh;
line-height: 1.6;
}
body:not(.home-page):not(.no-grid-page):not(.post-page)::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-image:
linear-gradient(var(--page-grid-line) 1px, transparent 1px),
linear-gradient(90deg, var(--page-grid-line) 1px, transparent 1px);
background-size: 60px 60px;
background-position: center top;
z-index: -1;
mask-image: none;
-webkit-mask-image: none;
pointer-events: none;
}
body.no-grid-page .site-main,
body.post-page .site-main {
position: relative;
isolation: isolate;
}
body.no-grid-page .site-main::before,
body.post-page .site-main::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: min(46vh, 420px);
background-image:
linear-gradient(var(--page-grid-line) 1px, transparent 1px),
linear-gradient(90deg, var(--page-grid-line) 1px, transparent 1px);
background-size: 60px 60px;
background-position: center top;
mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.85) 55%, transparent 100%);
-webkit-mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.85) 55%, transparent 100%);
z-index: -1;
pointer-events: none;
}
.theme-transition,
.theme-transition * {
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
::selection {
background-color: var(--accent-color);
color: var(--bg-color);
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--accent-subtle);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-secondary);
}
:focus-visible {
outline: 2px solid var(--accent-color);
outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
.site-header {
contain: layout;
}
img {
max-width: 100%;
height: auto;
display: block;
}
.menu-links a svg,
.theme-toggle svg {
display: inline-block;
flex-shrink: 0;
}
@media (max-width: 768px) {
body:not(.home-page):not(.no-grid-page):not(.post-page)::before {
background-size: 40px 40px;
}
body.no-grid-page .site-main::before {
background-size: 40px 40px;
}
body.post-page .site-main::before {
background-size: 40px 40px;
}
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::selection {
background-color: var(--accent-color);
color: var(--bg-color);
}
}
@media (max-width: 480px) {
body:not(.home-page):not(.no-grid-page):not(.post-page)::before {
background-size: 30px 30px;
}
body.no-grid-page .site-main::before {
background-size: 30px 30px;
}
body.post-page .site-main::before {
background-size: 30px 30px;
}
}
:root {
--site-content-width: 960px;
--site-gutter: 50px;
}
.site-nav {
position: fixed;
top: 0;
width: 100%;
z-index: 100;
background: var(--nav-bg);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--glass-border);
transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.nav-inner {
display: flex;
justify-content: space-between;
align-items: center;
max-width: calc(var(--site-content-width) + var(--site-gutter) * 2);
margin-inline: auto;
padding-block: 30px;
padding-inline: var(--site-gutter);
}
.site-nav.is-hidden {
transform: translateY(-100%);
opacity: 0;
pointer-events: none;
}
.site-nav.is-transparent {
background: transparent !important;
backdrop-filter: none !important;
border-bottom-color: transparent !important;
}
.logo {
font-size: 1.2rem;
font-weight: 600;
letter-spacing: -0.5px;
color: var(--text-primary);
text-transform: none;
}
.menu-links {
display: flex;
gap: 40px;
align-items: center;
}
.menu-links a {
text-decoration: none;
color: var(--text-secondary);
font-size: 0.9rem;
font-weight: 500;
transition: color 0.3s;
display: flex;
align-items: center;
gap: 6px;
}
.menu-links a svg {
opacity: 0.7;
transition: opacity 0.3s;
}
.menu-links a:hover,
.menu-links a.active {
color: var(--text-primary);
font-weight: 600;
}
.menu-links a:hover svg,
.menu-links a.active svg {
opacity: 1;
}
.theme-toggle {
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
padding: 5px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: color 0.3s, background-color 0.3s;
margin-left: 10px;
}
.theme-toggle:hover {
color: var(--text-primary);
background-color: var(--hover-bg);
}
.theme-toggle svg {
width: 20px;
height: 20px;
}
.theme-toggle .icon-sun {
display: none;
}
.theme-toggle .icon-moon {
display: block;
}
[data-theme="dark"] .theme-toggle .icon-sun {
display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon {
display: none;
}
main {
padding: 120px var(--site-gutter) 50px;
margin: 0 auto;
min-height: calc(100vh - 200px);
}
footer {
border-top: 3px solid var(--text-primary);
color: var(--text-secondary);
}
.footer-inner {
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
gap: 5rem;
max-width: calc(var(--site-content-width) + var(--site-gutter) * 2);
margin-inline: auto;
padding-block: 3rem 60px;
padding-inline: var(--site-gutter);
}
.footer-brand {
display: flex;
flex-direction: column;
gap: 1.5rem;
max-width: 500px;
}
.footer-logo {
position: relative;
z-index: 1;
font-size: clamp(1.75rem, 3vw, 2.25rem);
font-weight: 600;
line-height: 1;
letter-spacing: -0.5px;
color: var(--text-primary);
}
.footer-logo::before {
content: attr(data-text);
position: absolute;
left: -0.07em;
top: -0.3em;
z-index: -1;
font-size: 1.18em;
line-height: 1;
letter-spacing: -0.5px;
color: transparent;
-webkit-text-stroke: 1.5px var(--glass-border);
white-space: nowrap;
pointer-events: none;
}
.footer-meta {
margin: 0;
color: var(--text-secondary);
font-size: 0.8rem;
line-height: 1.4;
}
.socials {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 2rem;
}
.socials a {
position: relative;
padding-bottom: 5px;
font-family: 'Syncopate', sans-serif;
font-size: 1rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-primary);
text-decoration: none;
transition: color 0.2s;
}
.socials a::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background-color: var(--text-primary);
transition: height 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.socials a:hover::after {
height: 100%;
opacity: 0.1;
}
.socials a.social-email[data-email-revealed="true"] {
font-family: 'JetBrains Mono', monospace;
font-size: 0.85rem;
text-transform: none;
letter-spacing: 0.02em;
}
.menu-toggle {
display: none;
background: none;
border: none;
cursor: pointer;
padding: 0;
width: 30px;
height: 24px;
position: relative;
z-index: 102;
}
.hamburger-box {
width: 30px;
height: 24px;
display: inline-block;
position: relative;
}
.hamburger-inner {
display: block;
top: 50%;
margin-top: -2px;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
width: 30px;
height: 2px;
background-color: var(--text-primary);
border-radius: 2px;
position: absolute;
transition-property: transform;
transition-duration: 0.15s;
transition-timing-function: ease;
}
.hamburger-inner::before, .hamburger-inner::after {
content: "";
display: block;
}
.hamburger-inner::before {
top: -8px;
}
.hamburger-inner::after {
bottom: -8px;
}
.menu-toggle.is-active .hamburger-inner {
transform: rotate(45deg);
}
.menu-toggle.is-active .hamburger-inner::before {
top: 0;
opacity: 0;
}
.menu-toggle.is-active .hamburger-inner::after {
bottom: 0;
transform: rotate(-90deg);
}
.menu-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(2px);
z-index: 90;
opacity: 0;
transition: opacity 0.3s ease;
}
.menu-overlay.is-active {
opacity: 1;
pointer-events: auto;
}
@media (max-width: 1024px) {
.nav-inner {
padding-block: 16px;
}
.logo {
font-size: 1.1rem;
}
.menu-toggle {
display: block;
width: 28px;
height: 22px;
}
.hamburger-box {
width: 28px;
height: 22px;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
width: 28px;
height: 2px;
}
.hamburger-inner::before {
top: -7px;
}
.hamburger-inner::after {
bottom: -7px;
}
.menu-links {
display: flex;
flex-direction: column;
position: fixed;
top: 0;
right: -100%;
width: 75%;
max-width: 280px;
height: 100vh;
background: var(--bg-color, #fcfcfc);
padding: 80px 24px 40px;
box-shadow: -5px 0 20px rgba(0,0,0,0.15);
transition: right 0.3s ease;
z-index: 100;
gap: 20px;
align-items: flex-start;
}
.menu-links.is-active {
right: 0;
}
.menu-links a {
font-size: 1.1rem;
padding: 12px 0;
width: 100%;
border-bottom: 1px solid var(--accent-subtle);
}
.menu-links a:last-of-type {
border-bottom: none;
}
.menu-overlay {
display: block;
pointer-events: none;
}
.theme-toggle {
margin-left: 0;
margin-top: 20px;
width: 44px;
height: 44px;
}
.theme-toggle svg {
width: 22px;
height: 22px;
}
}
@media (max-width: 480px) {
:root {
--site-gutter: 12px;
}
.nav-inner {
padding-block: 14px;
}
.logo {
font-size: 1rem;
}
.menu-links {
width: 80%;
max-width: 260px;
padding: 70px 20px 30px;
}
.menu-links a {
font-size: 1rem;
padding: 10px 0;
}
}
@media (max-width: 768px) {
:root {
--site-gutter: 16px;
}
main {
padding: 90px var(--site-gutter) 30px;
min-height: calc(100vh - 150px);
}
.footer-inner {
flex-direction: column;
align-items: flex-start;
gap: 2rem;
padding-block: 2rem 40px;
}
.footer-brand {
max-width: 100%;
}
.footer-meta {
font-size: 0.75rem;
}
.socials {
align-items: flex-start;
gap: 1.5rem;
}
}
@media (max-width: 480px) {
main {
padding: 80px var(--site-gutter) 24px;
}
.footer-inner {
padding-block: 30px;
}
}
.archive-container {
width: min(100%, 980px);
margin: 0 auto;
}
.page-subtitle {
font-size: 1.1rem;
color: var(--text-secondary);
max-width: 600px;
margin-bottom: 3rem;
}
.archive-year-title {
margin-top: 40px;
margin-bottom: 20px;
font-size: 1.5rem;
color: var(--text-secondary);
display: flex;
align-items: center;
gap: 10px;
transform: translateZ(0);
}
.archive-year-title svg {
opacity: 0.75;
}
.clean-list {
display: flex;
flex-direction: column;
gap: 0;
}
.clean-item {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 20px 20px;
margin: 0 -20px;
border-bottom: 1px solid var(--accent-subtle);
text-decoration: none;
color: var(--text-primary);
transition: background-color 0.2s;
}
.clean-list > *:first-child {
border-top: 1px solid var(--accent-subtle);
}
.clean-item:hover { background-color: var(--hover-bg); }
.clean-item-title {
font-size: 1.2rem;
font-weight: 500;
}
.clean-item-meta {
font-size: 0.9rem;
color: var(--text-secondary);
}
.archive-year-continued {
font-size: 0.8rem;
font-weight: 400;
color: var(--text-secondary);
opacity: 0.65;
}
.archive-pagination {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 12px;
margin-top: 48px;
padding-top: 28px;
border-top: 1px solid var(--accent-subtle);
}
.archive-page-ctrl {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
height: 40px;
padding: 0 16px;
border: 1px solid var(--accent-subtle);
border-radius: 10px;
font-size: 0.925rem;
font-weight: 500;
color: var(--text-primary);
text-decoration: none;
white-space: nowrap;
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
a.archive-page-ctrl:hover {
background-color: var(--hover-bg);
border-color: var(--accent-color);
color: var(--accent-color);
}
.archive-page-ctrl[aria-disabled="true"] {
opacity: 0.35;
pointer-events: none;
cursor: default;
}
.archive-page-numbers {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 6px;
margin: 0;
padding: 0;
list-style: none;
}
.archive-page-number {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 40px;
height: 40px;
padding: 0 10px;
border: 1px solid transparent;
border-radius: 10px;
font-size: 0.925rem;
color: var(--text-primary);
text-decoration: none;
font-variant-numeric: tabular-nums;
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
a.archive-page-number:hover {
background-color: var(--hover-bg);
border-color: var(--accent-subtle);
}
.archive-page-number.is-current {
min-width: 39px;
height: 39px;
background-color: var(--accent-color);
border-color: var(--accent-color);
color: var(--bg-color);
font-weight: 600;
cursor: default;
}
.archive-page-ellipsis {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 28px;
height: 40px;
color: var(--text-secondary);
user-select: none;
}
.archive-page-ctrl:focus-visible,
.archive-page-number:focus-visible {
outline: 2px solid var(--accent-color);
outline-offset: 2px;
}
.archive-pagination-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 8px 20px;
margin-top: 18px;
font-size: 0.875rem;
color: var(--text-secondary);
}
.archive-pagination-count {
font-variant-numeric: tabular-nums;
}
.archive-jump {
display: inline-flex;
align-items: center;
gap: 8px;
}
.archive-jump-label,
.archive-jump-unit {
color: var(--text-secondary);
}
.archive-jump-input {
width: 58px;
height: 34px;
padding: 0 8px;
border: 1px solid var(--accent-subtle);
border-radius: 8px;
background-color: transparent;
color: var(--text-primary);
font-size: 0.875rem;
font-family: inherit;
text-align: center;
font-variant-numeric: tabular-nums;
appearance: textfield;
-moz-appearance: textfield;
transition: border-color 0.2s;
}
.archive-jump-input::-webkit-outer-spin-button,
.archive-jump-input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.archive-jump-input:focus {
outline: none;
border-color: var(--accent-color);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 20%, transparent);
}
.archive-jump-button {
height: 33.5px;
padding: 0 14px;
border: 1px solid var(--accent-color);
border-radius: 8px;
background-color: var(--accent-color);
color: var(--bg-color);
font-size: 0.875rem;
font-family: inherit;
font-weight: 500;
cursor: pointer;
transition: filter 0.2s, opacity 0.2s;
}
.archive-jump-button:hover {
filter: brightness(0.94);
}
@media (max-width: 768px) {
.clean-item { flex-direction: column; gap: 5px; }
}
.task-list-item {
list-style-type: none;
position: relative;
padding-left: 1.8em;
min-height: 1.5em;
line-height: 1.5;
}
.task-list-item input[type="checkbox"] {
appearance: none;
-webkit-appearance: none;
position: absolute;
left: 0;
top: 0.125em;
width: 1.25em;
height: 1.25em;
margin: 0;
border: 1.5px solid #9ca3af;
border-radius: 50%;
background-color: transparent;
cursor: default;
pointer-events: none;
flex-shrink: 0;
}
.task-list-item input[type="checkbox"]:checked {
background-color: #22c55e;
border-color: #22c55e;
}
.task-list-item input[type="checkbox"]:checked::after {
content: '';
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -60%) rotate(45deg);
width: 0.3em;
height: 0.6em;
border: solid white;
border-width: 0 2px 2px 0;
}
.task-list-item label {
cursor: default;
display: inline;
vertical-align: top;
padding-left: 1.2em;
}
[data-theme="dark"] .task-list-item input[type="checkbox"] {
border-color: #6b7280;
}
[data-theme="dark"] .task-list-item input[type="checkbox"]:checked {
background-color: #22c55e;
border-color: #22c55e;
}
@media (max-width: 768px) {
.page-title {
font-size: 1.8rem;
margin-bottom: 12px;
}
.page-subtitle {
font-size: 1rem;
margin-bottom: 2rem;
}
.archive-year-title {
font-size: 1.2rem;
margin-top: 30px;
margin-bottom: 16px;
}
.clean-item {
padding: 16px;
flex-direction: column;
gap: 8px;
align-items: flex-start;
}
.clean-item-title {
font-size: 1rem;
line-height: 1.5;
}
.clean-item-meta {
font-size: 0.85rem;
}
.task-list-item {
padding-left: 1.6em;
}
.task-list-item input[type="checkbox"] {
width: 1.1em;
height: 1.1em;
}
}
@media (max-width: 480px) {
.page-title {
font-size: 1.6rem;
}
.archive-year-title {
font-size: 1.1rem;
}
.clean-item {
padding: 14px 12px;
}
.clean-item-title {
font-size: 0.95rem;
}
.archive-pagination {
margin-top: 32px;
padding-top: 20px;
gap: 8px;
}
.archive-page-ctrl {
height: 36px;
padding: 0 12px;
font-size: 0.875rem;
}
.archive-page-number {
min-width: 36px;
height: 36px;
font-size: 0.875rem;
}
.archive-page-number.is-current {
min-width: 35px;
height: 35px;
}
.archive-page-ellipsis {
min-width: 20px;
height: 36px;
}
.archive-pagination-meta {
gap: 8px 14px;
}
.archive-jump {
width: 100%;
justify-content: center;
}
}
.markdown-alert {
padding: 0.9rem 1rem;
margin: 1rem 0;
border: 1px solid var(--accent-subtle);
border-left: 4px solid var(--accent-subtle);
border-radius: 6px;
font-size: 0.95rem;
background-color: color-mix(in srgb, var(--tile-bg-1) 90%, transparent);
color: var(--text-secondary);
line-height: 1.65;
}
.markdown-alert > :first-child {
margin-top: 0;
}
.markdown-alert > :last-child {
margin-bottom: 0;
}
.markdown-alert-title {
display: flex;
align-items: center;
font-weight: 600;
margin-bottom: 0.4rem;
font-size: 1rem;
color: var(--text-primary);
}
.markdown-alert-title > svg {
margin-right: 8px;
fill: currentColor;
}
.markdown-alert p,
.markdown-alert ul,
.markdown-alert ol {
margin-bottom: 0.55rem;
}
.markdown-alert code {
font-size: 0.92em;
}
.markdown-alert-note {
border-color: color-mix(in srgb, var(--color-info) 26%, transparent);
border-left-color: var(--color-info);
background-color: color-mix(in srgb, var(--color-info) 7%, transparent);
}
.markdown-alert-note .markdown-alert-title {
color: var(--color-info);
}
.markdown-alert-tip {
border-color: color-mix(in srgb, var(--color-success) 26%, transparent);
border-left-color: var(--color-success);
background-color: color-mix(in srgb, var(--color-success) 7%, transparent);
}
.markdown-alert-tip .markdown-alert-title {
color: var(--color-success);
}
.markdown-alert-warning {
border-color: color-mix(in srgb, var(--color-warning) 30%, transparent);
border-left-color: var(--color-warning);
background-color: color-mix(in srgb, var(--color-warning) 8%, transparent);
}
.markdown-alert-warning .markdown-alert-title {
color: var(--color-warning);
}
.markdown-alert-important {
border-color: color-mix(in srgb, var(--color-primary) 26%, transparent);
border-left-color: var(--color-primary);
background-color: color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.markdown-alert-important .markdown-alert-title {
color: var(--color-primary);
}
.markdown-alert-caution {
border-color: color-mix(in srgb, var(--color-danger) 26%, transparent);
border-left-color: var(--color-danger);
background-color: color-mix(in srgb, var(--color-danger) 7%, transparent);
}
.markdown-alert-caution .markdown-alert-title {
color: var(--color-danger);
}
table {
width: 100%;
border-collapse: collapse;
margin: 30px 0;
font-size: 0.95rem;
border: 1px solid var(--accent-subtle);
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
thead {
background-color: color-mix(in srgb, var(--tile-bg-2) 92%, var(--bg-color));
border-bottom: 2px solid color-mix(in srgb, var(--accent-subtle) 78%, var(--text-secondary));
}
th {
text-align: left;
padding: 15px 20px;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
}
td {
padding: 15px 20px;
border-bottom: 1px solid var(--accent-subtle);
color: var(--text-secondary);
line-height: 1.5;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: var(--hover-bg); color: var(--text-primary); }
pre {
padding: 20px;
margin: 25px 0;
background-color: var(--tile-bg-1);
border: 1px solid var(--accent-subtle);
border-radius: 8px;
overflow-x: auto;
font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 0.95rem;
line-height: 1.6;
}
:not(pre) > code {
background-color: var(--hover-bg);
padding: 2px 6px;
border-radius: 4px;
color: #d14;
font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 0.95rem;
}
code[class*="language-"],
pre[class*="language-"] {
color: #333;
text-shadow: none;
direction: ltr;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #999988;
font-style: italic;
}
.token.namespace { opacity: .7; }
.token.string,
.token.attr-value {
color: #e3116c;
}
.token.punctuation,
.token.operator {
color: #393a34;
}
.token.entity,
.token.url,
.token.symbol,
.token.number,
.token.boolean,
.token.variable,
.token.constant,
.token.property,
.token.regex,
.token.inserted {
color: #36acaa;
}
.token.atrule,
.token.keyword,
.token.attr-name,
.token.selector {
color: #00a4db;
}
.token.function,
.token.deleted,
.token.tag {
color: #d73a49;
}
.token.function-variable {
color: #6f42c1;
}
.token.important,
.token.bold { font-weight: bold; }
.token.italic { font-style: italic; }
kbd {
display: inline-block;
padding: 2px 6px;
font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 0.85rem;
line-height: 1;
color: var(--text-primary);
vertical-align: middle;
background-color: var(--tile-bg-1);
border: 1px solid var(--accent-subtle);
border-radius: 4px;
box-shadow: 0 2px 0 var(--accent-subtle);
margin: 0 2px;
}
mark {
background-color: #fce588;
color: var(--text-primary);
padding: 0 4px;
border-radius: 4px;
}
[data-theme="dark"] mark {
background-color: #d4a72c;
color: #1a1a1a;
}
[data-theme="dark"] code[class*="language-"],
[data-theme="dark"] pre[class*="language-"] {
color: #e0e0e0;
}
[data-theme="dark"] :not(pre) > code {
color: #ff7b72;
}
[data-theme="dark"] .token.comment,
[data-theme="dark"] .token.prolog,
[data-theme="dark"] .token.doctype,
[data-theme="dark"] .token.cdata {
color: #8b949e;
}
[data-theme="dark"] :not(pre) > code {
background-color: rgba(255, 255, 255, 0.06);
color: #E2E8F0;
border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] code[class*="language-"],
[data-theme="dark"] pre[class*="language-"] {
color: #E2E8F0;
text-shadow: none;
}
[data-theme="dark"] .token.comment,
[data-theme="dark"] .token.prolog,
[data-theme="dark"] .token.doctype,
[data-theme="dark"] .token.cdata {
color: #718096;
}
[data-theme="dark"] .token.punctuation {
color: #A0AEC0;
}
[data-theme="dark"] .token.namespace {
opacity: .7;
}
[data-theme="dark"] .token.property,
[data-theme="dark"] .token.tag,
[data-theme="dark"] .token.boolean,
[data-theme="dark"] .token.number,
[data-theme="dark"] .token.constant,
[data-theme="dark"] .token.symbol,
[data-theme="dark"] .token.deleted {
color: #F87171;
}
[data-theme="dark"] .token.selector,
[data-theme="dark"] .token.attr-name,
[data-theme="dark"] .token.string,
[data-theme="dark"] .token.char,
[data-theme="dark"] .token.builtin,
[data-theme="dark"] .token.inserted {
color: #A3E635;
}
[data-theme="dark"] .token.string,
[data-theme="dark"] .token.attr-value {
color: #86EFAC;
}
[data-theme="dark"] .token.operator,
[data-theme="dark"] .token.entity,
[data-theme="dark"] .token.url,
[data-theme="dark"] .language-css .token.string,
[data-theme="dark"] .style .token.string {
color: #818CF8;
}
[data-theme="dark"] .token.atrule,
[data-theme="dark"] .token.attr-value,
[data-theme="dark"] .token.keyword {
color: #C084FC;
}
[data-theme="dark"] .token.function,
[data-theme="dark"] .token.class-name {
color: #67E8F9;
}
[data-theme="dark"] .token.regex,
[data-theme="dark"] .token.important,
[data-theme="dark"] .token.variable {
color: #FDBA74;
}
[data-theme="dark"] .token.punctuation,
[data-theme="dark"] .token.operator {
color: #c9d1d9;
}
[data-theme="dark"] .token.entity,
[data-theme="dark"] .token.url,
[data-theme="dark"] .token.symbol,
[data-theme="dark"] .token.number,
[data-theme="dark"] .token.boolean,
[data-theme="dark"] .token.variable,
[data-theme="dark"] .token.constant,
[data-theme="dark"] .token.property,
[data-theme="dark"] .token.regex,
[data-theme="dark"] .token.inserted {
color: #7ee787;
}
[data-theme="dark"] .token.atrule,
[data-theme="dark"] .token.keyword,
[data-theme="dark"] .token.attr-name,
[data-theme="dark"] .token.selector {
color: #79c0ff;
}
[data-theme="dark"] .token.function,
[data-theme="dark"] .token.deleted,
[data-theme="dark"] .token.tag {
color: #ff7b72;
}
[data-theme="dark"] .token.function-variable {
color: #d2a8ff;
}
[data-theme="dark"] mark {
background-color: rgba(252, 229, 136, 0.2);
color: #fce588;
}
@media (max-width: 768px) {
table {
font-size: 0.85rem;
margin: 20px 0;
}
th, td {
padding: 10px 12px;
}
pre {
padding: 14px;
margin: 20px 0;
font-size: 0.85rem;
line-height: 1.5;
}
:not(pre) > code {
font-size: 0.85rem;
padding: 2px 5px;
}
kbd {
font-size: 0.8rem;
padding: 2px 5px;
}
mark {
padding: 0 3px;
}
}
@media (max-width: 480px) {
table {
font-size: 0.8rem;
}
th, td {
padding: 8px 10px;
}
pre {
padding: 12px;
font-size: 0.8rem;
}
:not(pre) > code {
font-size: 0.8rem;
}
}
