@font-face {
    font-family: 'MapleMono';
    src: url("https://esm.sh/gh/subframe7536/maple-font@v7.8/woff2/var/MapleMono[wght]-VF.woff2") format("woff2-variations");
}

:root {
    --neutral-layer-1: #ffffff;
    --neutral-layer-2: #f8f8f8;
    --accent-color: #0078d4;
    --sidebar-width: 280px;
    --sidebar-transition-duration: 0.3s;
}

/* --- Base Styles --- */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--neutral-layer-2);
    color: #333;
    margin: 0;
    padding: 0;
}

/* --- Layout Structure --- */
.main-content {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--accent-color);
    margin: 0 0 10px 0;
}

.header p {
    font-size: 1.25rem;
    color: #666;
    margin: 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

footer {
    text-align: center;
    margin-top: 50px;
    color: #888;
}

/* --- Cards & Grids System --- */
.project-grid,
.apps-grid,
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Analysis grid specific override if needed, but merged above for general grid behavior */
.analysis-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

fluent-card {
    background-color: var(--neutral-layer-1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

fluent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-content {
    flex-grow: 1;
}

.card-content .icon,
.app-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.intro-card {
    padding: 20px 25px 25px 25px;
}

.developer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 30px;
}

.developer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.developer-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.75rem;
}

.developer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* --- Profile Section --- */
.profile-header {
    margin-bottom: 30px;
}

.profile-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
}

.bio {
    font-style: italic;
    color: #555;
}

/* --- Specific Components & Utilities --- */
.app-icon,
.project-icon {
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
}

.language-panel p {
    color: var(--accent-color);
    line-height: 1.75;
    margin-top: 20px;
    margin-bottom: 0;
}

.lang-en {
    font-family: 'MapleMono', monospace;
    font-size: 1rem;
}

.lang-zh {
    font-family: 'MapleMono', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif, monospace;
    font-size: 1rem;
}

fluent-tab[aria-selected="true"]::after {
    height: 3px;
}

.analysis-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-bar {
    display: flex;
    width: 100%;
    height: 25px;
    border-radius: 5px;
    overflow: hidden;
    font-size: 0.85rem;
    color: white;
    margin-top: 15px;
    font-family: 'MapleMono', monospace;
}

.lang-python {
    background-color: #3572A5;
}

.lang-js {
    background-color: #F7DF1E;
    color: #000;
}

.lang-other {
    background-color: #777;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {

    .header h1,
    .profile-header h1 {
        font-size: 2.5rem;
    }

    /* Styles for developer-card are now global, no need to repeat here */
}