:root {
    /* Material Design 3 Color Tokens (Light Theme) */
    --md-sys-color-primary: #005AC1;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #D8E2FF;
    --md-sys-color-on-primary-container: #001A41;
    
    --md-sys-color-secondary: #575E71;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #DBE2F9;
    --md-sys-color-on-secondary-container: #141B2C;
    
    --md-sys-color-tertiary: #715573;
    --md-sys-color-on-tertiary: #FFFFFF;
    --md-sys-color-tertiary-container: #FBD7FC;
    --md-sys-color-on-tertiary-container: #29132D;
    
    --md-sys-color-background: #FEFBFF;
    --md-sys-color-on-background: #1B1B1F;
    
    --md-sys-color-surface: #FEFBFF;
    --md-sys-color-on-surface: #1B1B1F;
    --md-sys-color-surface-variant: #E1E2EC;
    --md-sys-color-on-surface-variant: #44474F;
    
    --md-sys-color-outline: #74777F;
    --md-sys-color-outline-variant: #C4C6D0;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Elevation (Shadows) */
    --md-sys-elevation-1: 0px 1px 2px 0px rgba(0,0,0,0.3), 0px 1px 3px 1px rgba(0,0,0,0.15);
    --md-sys-elevation-2: 0px 1px 2px 0px rgba(0,0,0,0.3), 0px 2px 6px 2px rgba(0,0,0,0.15);
    --md-sys-elevation-3: 0px 4px 8px 3px rgba(0,0,0,0.15), 0px 1px 3px 0px rgba(0,0,0,0.3);
    
    /* Typography */
    --md-sys-typescale-display-large: 400 44px/52px 'Roboto', sans-serif;
    --md-sys-typescale-display-medium: 400 36px/44px 'Roboto', sans-serif;
    --md-sys-typescale-display-small: 400 32px/40px 'Roboto', sans-serif;
    --md-sys-typescale-headline-large: 400 32px/40px 'Roboto', sans-serif;
    --md-sys-typescale-headline-medium: 400 24px/32px 'Roboto', sans-serif;
    --md-sys-typescale-headline-small: 400 20px/28px 'Roboto', sans-serif;
    --md-sys-typescale-title-large: 400 20px/28px 'Roboto', sans-serif;
    --md-sys-typescale-title-medium: 500 16px/24px 'Roboto', sans-serif;
    --md-sys-typescale-body-large: 400 16px/24px 'Roboto', sans-serif;
    --md-sys-typescale-body-medium: 400 14px/20px 'Roboto', sans-serif;
    --md-sys-typescale-label-large: 500 14px/20px 'Roboto', sans-serif;

    /* Shape */
    --md-sys-shape-corner-small: 8px;
    --md-sys-shape-corner-medium: 12px;
    --md-sys-shape-corner-large: 16px;
    --md-sys-shape-corner-full: 9999px;
}

/* Dark Theme */
html[data-theme="dark"] {
    --md-sys-color-primary: #B3D9FF;
    --md-sys-color-on-primary: #002E6F;
    --md-sys-color-primary-container: #0043A3;
    --md-sys-color-on-primary-container: #D8E2FF;
    
    --md-sys-color-secondary: #BFC7DC;
    --md-sys-color-on-secondary: #293042;
    --md-sys-color-secondary-container: #3E4559;
    --md-sys-color-on-secondary-container: #DBE2F9;
    
    --md-sys-color-tertiary: #DFB2E0;
    --md-sys-color-on-tertiary: #442449;
    --md-sys-color-tertiary-container: #5C3D5E;
    --md-sys-color-on-tertiary-container: #FBD7FC;
    
    --md-sys-color-background: #1B1B1F;
    --md-sys-color-on-background: #E6E1E6;
    
    --md-sys-color-surface: #1B1B1F;
    --md-sys-color-on-surface: #E6E1E6;
    --md-sys-color-surface-variant: #49454F;
    --md-sys-color-on-surface-variant: #C9C7CF;
    
    --md-sys-color-outline: #938F96;
    --md-sys-color-outline-variant: #49454F;

    /* Dark theme gradients */
    --gradient-hero: linear-gradient(135deg, #2a2a2e 0%, #1e1e22 100%);
    --gradient-card: linear-gradient(135deg, rgba(50,50,56,0.9) 0%, rgba(40,40,48,0.7) 100%);
    
    /* Glass Effect for dark */
    --glass-bg: rgba(50, 50, 56, 0.7);
    --glass-border: rgba(100, 100, 100, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--md-sys-color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-circle {
    width: 48px;
    height: 48px;
    border: 4px solid var(--md-sys-color-surface-variant);
    border-top-color: var(--md-sys-color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    will-change: transform;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font: var(--md-sys-typescale-label-large);
    color: var(--md-sys-color-on-surface-variant);
    animation: pulse-text 1.5s ease-in-out infinite;
    will-change: opacity;
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance: Optimize rendering */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

img, video {
    content-visibility: auto;
}

body {
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
}

/* Typography Classes */
.display-large { font: var(--md-sys-typescale-display-large); }
.display-medium { font: var(--md-sys-typescale-display-medium); }
.display-small { font: var(--md-sys-typescale-display-small); }
.headline-large { font: var(--md-sys-typescale-headline-large); }
.headline-medium { font: var(--md-sys-typescale-headline-medium); }
.headline-small { font: var(--md-sys-typescale-headline-small); }
.title-large { font: var(--md-sys-typescale-title-large); }
.title-medium { font: var(--md-sys-typescale-title-medium); }
.body-large { font: var(--md-sys-typescale-body-large); }
.body-medium { font: var(--md-sys-typescale-body-medium); }
.label-large { font: var(--md-sys-typescale-label-large); }

/* Top App Bar */
.top-app-bar {
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--md-sys-elevation-1); /* Elevation 1 */
}

.app-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.leading-icon {
    display: flex;
    align-items: center;
    gap: 16px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 8px;
    }
    #menu-btn {
        display: none;
    }
}

/* Mobile Navigation (Dropdown) */
.mobile-nav {
    position: fixed;
    top: 64px; /* Below App Bar */
    left: 0;
    right: 0;
    background-color: var(--md-sys-color-surface);
    z-index: 90; /* Below App Bar (100) */
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    box-shadow: var(--md-sys-elevation-2);
    
    /* Animation */
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
    visibility: hidden;
}

.mobile-nav.open {
    transform: translateY(0);
    visibility: visible;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 24px;
    color: var(--md-sys-color-on-surface);
    font: var(--md-sys-typescale-label-large);
    gap: 16px;
    transition: background-color 0.2s;
}

.mobile-nav-item:hover {
    background-color: rgba(29, 27, 31, 0.08);
}

.mobile-nav-item .material-symbols-outlined {
    font-size: 24px;
    color: var(--md-sys-color-on-surface-variant);
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    border-radius: 22px;
    font: var(--md-sys-typescale-label-large);
    cursor: pointer;
    transition: box-shadow 0.25s ease;
    gap: 8px;
    border: none;
    outline: none;
}

.filled-btn {
    background: linear-gradient(135deg, #005AC1 0%, #0066d6 100%);
    color: var(--md-sys-color-on-primary);
    box-shadow: 0 4px 14px rgba(0, 90, 193, 0.35);
}

.filled-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 90, 193, 0.45);
}

.tonal-btn {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.tonal-btn:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.text-btn {
    background: transparent;
    color: var(--md-sys-color-primary);
    padding: 0 12px;
    height: 40px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    font: var(--md-sys-typescale-label-large);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.text-btn:hover {
    background-color: rgba(0, 90, 193, 0.08);
}

.icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.icon-btn:hover {
    background-color: rgba(29, 27, 31, 0.08);
}

@media (max-width: 480px) {
    .icon-btn {
        width: 44px;
        height: 44px;
    }
}

/* FAB */
button.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border: none;
    box-shadow: var(--md-sys-elevation-3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, box-shadow 0.2s ease;
}

button.fab:hover {
    box-shadow: 0px 6px 12px rgba(0,0,0,0.15);
}

button.fab.visible {
    opacity: 1;
    visibility: visible;
}

/* Cards */
.md-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-corner-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.elevated-card {
    box-shadow: var(--md-sys-elevation-1);
}

.elevated-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.outlined-card {
    border: 1px solid var(--md-sys-color-outline-variant);
    background-color: var(--md-sys-color-surface);
}

.outlined-card:hover {
    background-color: rgba(0, 90, 193, 0.04);
    border-color: var(--md-sys-color-primary);
}

/* Sections */
.section {
    padding: 48px 0;
    scroll-margin-top: 80px;
}

@media (max-width: 640px) {
    .section {
        padding: 36px 0;
    }
}

.section-title {
    margin-bottom: 32px;
    color: var(--md-sys-color-on-surface);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--md-sys-color-primary) 0%, var(--md-sys-color-tertiary) 100%);
    border-radius: 2px;
}

/* Hero */
.hero-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    margin-bottom: 24px;
    color: var(--md-sys-color-on-surface);
}

.hero-content p {
    margin-bottom: 32px;
    color: var(--md-sys-color-on-surface-variant);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Projects Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.project-card-img {
    height: 160px;
    background: var(--md-sys-color-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-sys-color-on-surface-variant);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
}

@media (max-width: 480px) {
    .project-card-img {
        height: 140px;
        aspect-ratio: 16 / 9;
    }
}

.project-card-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.project-card-img img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elevated-card:hover .project-card-img img {
    /* No transform on image */
}

.project-card-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    min-width: 0;
}

.project-card-content h3 {
    margin: 0;
    font: var(--md-sys-typescale-title-medium);
    line-height: 1.4;
    word-break: break-word;
}

.project-card-content p {
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-actions {
    padding: 8px 14px;
    display: flex;
    gap: 8px;
}

/* Blog List */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
}

@media (min-width: 640px) {
    .list-container {
        max-width: 700px;
    }
}

.blog-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    width: 160px;
    height: 200px;
}

@media (max-width: 480px) {
    .blog-item {
        padding: 12px;
        gap: 10px;
        width: 140px;
        height: 180px;
    }
}

.blog-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--md-sys-color-primary);
    transition: width 0.25s ease;
}

.blog-item:hover {
    /* No translate animation */
}

.blog-item:hover::before {
    width: 4px;
}

.blog-item .blog-icon {
    margin-top: 0;
}

.blog-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.blog-item:hover .blog-icon {
    /* No transform */
}

/* Blog Item Content */
.blog-item .blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.blog-item .blog-date {
    color: var(--md-sys-color-primary);
    font: var(--md-sys-typescale-label-large);
    margin: 0;
}

.blog-item .blog-title {
    font: var(--md-sys-typescale-title-medium);
    margin: 0;
    color: var(--md-sys-color-on-surface);
    line-height: 1.4;
    word-break: break-word;
}

.blog-item .blog-excerpt {
    font: var(--md-sys-typescale-body-medium);
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contact */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 100%;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .contact-cards {
        justify-content: space-between;
        max-width: 600px;
    }
}

.contact-card {
    flex-direction: row;
    align-items: center;
    padding: 12px 20px;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    background-color: var(--md-sys-color-secondary-container);
    border: 1px solid transparent;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
    box-shadow: 0 4px 12px rgba(0, 90, 193, 0.15);
    border-color: var(--md-sys-color-primary);
}

.contact-card:hover .card-icon {
    transform: scale(1.1);
}

.card-icon {
    font-size: 24px;
    color: var(--md-sys-color-primary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.contact-card .title-medium {
    font-size: 13px;
    margin: 0;
    color: var(--md-sys-color-on-secondary-container);
}

.contact-card .body-medium {
    font-size: 11px;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
}

/* Footer */
.site-footer {
    padding: 40px 0;
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
    background: var(--gradient-hero);
    margin-top: 64px;
}

.site-footer a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.site-footer a:hover {
    border-bottom-color: var(--md-sys-color-primary);
}

/* Ripple Effect */
.material-ripple {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1); /* Dark ripple for light theme */
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Markdown Content Styles */
.markdown-body {
    color: var(--md-sys-color-on-surface);
    line-height: 1.6;
}

.markdown-body h1, 
.markdown-body h2, 
.markdown-body h3, 
.markdown-body h4, 
.markdown-body h5, 
.markdown-body h6 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--md-sys-color-on-surface);
    font-weight: 600;
}

.markdown-body h1 { 
    font: var(--md-sys-typescale-headline-medium);
    border-bottom: 2px solid var(--md-sys-color-primary);
    padding-bottom: 12px;
}
.markdown-body h2 { 
    font: var(--md-sys-typescale-headline-small);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    padding-bottom: 8px;
}
.markdown-body h3 { 
    font: var(--md-sys-typescale-title-medium);
    font-size: 20px;
    color: var(--md-sys-color-primary);
}

.markdown-body p {
    margin-bottom: 16px;
    font: var(--md-sys-typescale-body-large);
    line-height: 1.8;
}

.markdown-body p img {
    margin: 0;
    display: inline;
    max-height: 28px;
    height: auto;
}

.markdown-body ul, 
.markdown-body ol {
    margin-bottom: 20px;
    padding-left: 32px;
    font: var(--md-sys-typescale-body-large);
}

.markdown-body li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Nested list spacing */
.markdown-body li > ul,
.markdown-body li > ol {
    margin-top: 10px;
    margin-bottom: 0;
}

.markdown-body blockquote {
    border-left: 4px solid var(--md-sys-color-primary);
    padding: 12px 16px;
    margin: 24px 0;
    color: var(--md-sys-color-on-surface-variant);
    font-style: italic;
    background-color: var(--md-sys-color-surface-variant);
    border-radius: 4px;
}

.markdown-body code {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9em;
    background: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Code Block Container */
.markdown-body pre {
    position: relative;
    background: var(--md-sys-color-surface);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 24px;
    border: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: var(--md-sys-elevation-1);
}

/* Code Text */
.markdown-body pre code {
    background-color: transparent !important;
    padding: 0;
    color: var(--md-sys-color-on-surface);
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Copy Button */
.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-primary);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background-color 0.2s, transform 0.2s;
    z-index: 10;
}

.markdown-body pre:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background-color: var(--md-sys-color-secondary-container);
    transform: scale(1.1);
}

.copy-btn.copied {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.copy-btn .material-symbols-outlined {
    font-size: 20px;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    max-height: 600px; /* 限制最大高度，避免过长的图片占据太多版面 */
    object-fit: contain; /* 保持比例 */
    border-radius: 12px;
    margin: 24px auto; /* 居中显示 */
    display: block;
    box-shadow: var(--md-sys-elevation-1); /* 添加轻微阴影增加层次感 */
}

.markdown-body strong {
    font-weight: 700;
    color: var(--md-sys-color-primary);
}

.markdown-body a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

.markdown-body a:hover {
    border-bottom-color: var(--md-sys-color-primary);
}

/* Tables */
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    display: block;
    overflow-x: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.markdown-body th,
.markdown-body td {
    padding: 14px 16px;
    border: 1px solid var(--md-sys-color-outline-variant);
    text-align: left;
    font: var(--md-sys-typescale-body-medium);
}

.markdown-body th {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    font-weight: 600;
}

.markdown-body tr:nth-child(even) {
    background-color: var(--md-sys-color-surface-variant);
}

.markdown-body tr:hover {
    background-color: rgba(0, 90, 193, 0.12);
}

/* Project Detail Styles */
.project-hero {
    width: 100%;
    height: 320px;
    background-color: var(--md-sys-color-surface-variant);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.project-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);
}

.project-hero .material-symbols-outlined {
    font-size: 80px;
    color: var(--md-sys-color-on-surface-variant);
    opacity: 0.5;
}

.project-header {
    margin-bottom: 32px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.m3-chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 18px;
    border-radius: 18px;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    font: var(--md-sys-typescale-label-large);
    border: none;
    cursor: pointer;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.m3-chip:hover {
    box-shadow: var(--md-sys-elevation-1);
}

/* Project Tags Container */
.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* Project Tags - extracted from inline styles */
.project-tag {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    white-space: nowrap;
    height: fit-content;
}

.project-body {
    color: var(--md-sys-color-on-surface);
    font: var(--md-sys-typescale-body-large);
    line-height: 1.8;
}

.project-body h3 {
    font: var(--md-sys-typescale-headline-small);
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--md-sys-color-on-surface);
}

.project-body p {
    margin-bottom: 16px;
    color: var(--md-sys-color-on-surface-variant);
}
