* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 添加暗色模式样式 */
:root {
    --bg-color: #ffffff;
    --text-color: #1F2328;
    --text-secondary: #656d76;
    --border-color: #d0d7de;
    --card-bg: #ffffff;
    --hover-color: #0969da;
    --skill-bg: #f6f8fa;
    --contribution-bg: #ebedf0;
    --contribution-l1: #9be9a8;
    --contribution-l2: #40c463;
    --contribution-l3: #30a14e;
    --contribution-l4: #216e39;
    --icon-color: #2c2c2c;
    --link-color: #0969da;
    --link-hover-color: #1F2328;
    --border-radius: 6px;
    --header-bg: #f6f8fa;
    --color-javascript: #f1e05a;
    --color-typescript: #3178c6;
    --color-python: #3572A5;
    --color-java: #b07219;
    --color-html: #e34c26;
    --color-css: #563d7c;
    --color-php: #4F5D95;
    --color-ruby: #701516;
    --color-go: #00ADD8;
    --color-rust: #dea584;
    --color-vue: #41b883;
    --color-react: #61dafb;
    --modal-bg: #ffffff;
    --modal-border: #d0d7de;
    --modal-shadow: rgba(0, 0, 0, 0.2);
    --modal-header-border: #d0d7de;
    --modal-close-hover: #f6f8fa;
    --readme-bg: #f6f8fa;
    --commit-item-bg: #f6f8fa;
    --code-block-bg: #f6f8fa;
    --bg-secondary: #f6f8fa;
    --bg-secondary-dark: #2d333b;
}

[data-theme="dark"] {
    --bg-color: #0d1117;
    --text-color: #e6edf3;
    --text-secondary: #7d8590;
    --border-color: #30363d;
    --card-bg: #161b22;
    --hover-color: #2f81f7;
    --skill-bg: #21262d;
    --contribution-bg: #161b22;
    --contribution-l1: #0e4429;
    --contribution-l2: #006d32;
    --contribution-l3: #26a641;
    --contribution-l4: #39d353;
    --icon-color: #c9d1d9;
    --link-color: #2f81f7;
    --link-hover-color: #539bf5;
    --header-bg: #161b22;
    --modal-bg: #161b22;
    --modal-border: #30363d;
    --modal-shadow: rgba(0, 0, 0, 0.4);
    --modal-header-border: #30363d;
    --modal-close-hover: #21262d;
    --readme-bg: #0d1117;
    --commit-item-bg: #0d1117;
    --code-block-bg: #161b22;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1012px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.profile-section {
    display: grid;
    grid-template-columns: 256px minmax(0, 720px);
    gap: 2rem;
}

.profile-card {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.profile-img {
    width: 100%;
    max-width: 296px;
    border-radius: 50%;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    text-align: left;
}

.profile-login {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: left;
}

.stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin: 1rem 0;
    padding: 0;
}

.stats svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.tab-container {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    margin-bottom: 24px;
}

.tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-right: 8px;
}

.tab:hover {
    border-bottom-color: var(--border-color);
}

.tab.active {
    border-bottom-color: #fd8c73;
    font-weight: 600;
}

.repo-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease;
}

.repo-card:hover {
    border-color: var(--text-secondary);
}

.repo-title {
    color: var(--link-color);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
}

.repo-title:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.repo-description {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0 0 16px 0;
}

.repo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.language-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    transition: all 0.2s ease;
    text-align: left; /* 确保文本左对齐 */
}

.language-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.language-JavaScript { color: #f1e05a; }
.language-TypeScript { color: #3178c6; }
.language-Python { color: #3572A5; }
.language-HTML { color: #e34c26; }
.language-CSS { color: #563d7c; }
.language-PHP { color: #4F5D95; }
.language-Vue { color: #41b883; }
.language-Go { color: #00ADD8; }

.repo-stats {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 12px;
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.repo-stat svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
}

.contributions {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
}

.contributions h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.contribution-graph {
    display: grid;
    grid-template-columns: repeat(52, 1fr);
    gap: 2px;
    margin: 8px 0 16px 0;
}

.contribution-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background-color: var(--contribution-bg);
    transition: background-color 0.2s ease;
}

.contribution-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.activity-timeline {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* 平板设备 */
@media (max-width: 1012px) {
    .container {
        padding: 1rem 2rem;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    .container {
        padding: 1rem 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .profile-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .profile-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* 添加头部信息容器 */
    .profile-header {
        display: flex;
        gap: 1rem;
        width: 100%;
        margin-bottom: 1rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
        margin: 0;
        flex-shrink: 0;
    }

    /* 名字和ID的容器 */
    .profile-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
    }

    .profile-name {
        font-size: 28px;
        margin: 0;
    }

    .profile-login {
        font-size: 18px;
        margin: 0;
    }

    /* 个人简介和其他信息 */
    .profile-card p {
        margin: 0;
        width: 100%;
        padding: 0.1rem 0;
    }

    .social-links {
        width: 100%;
        margin: 0.1rem 0;
        padding: 0.35rem 0;
        border-top: 1px solid #d0d7de;
        border-bottom: 1px solid #d0d7de;
    }

    .stats {
        margin: 0.1rem 0;
    }

    .content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .repo-card {
        width: 100%;
        box-sizing: border-box;
        margin: 1rem 0;
    }

    .contribution-graph {
        margin: 1rem 0;
        width: 100%;
        overflow-x: hidden;
    }

    .social-links {
        padding: 0.5rem 0;
        width: 100%;
    }

    .language-tag {
        font-size: 11px;
        padding: 1px 5px;
    }

    .language-dot {
        width: 10px;
        height: 10px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .container {
        padding: 1rem 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-login {
        font-size: 16px;
    }

    .repo-card {
        width: 100%;
        box-sizing: border-box;
        margin: 0.875rem 0;
    }

    .contribution-graph {
        width: 100%;
        overflow-x: hidden;
    }

    .container {
        padding: 1rem 1.25rem;
    }

    .profile-img {
        width: 100px;
        height: 100px;
    }

    .social-links {
        gap: 0.5rem;
    }

    body {
        overflow-x: hidden;
    }

    .pinned-project {
        padding: 12px;
    }

    .pinned-project .repo-title {
        font-size: 14px;
    }

    .pinned-project .repo-description {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .pinned-project .repo-meta {
        gap: 8px;
        display: flex;
        justify-content: flex-start; /* 确保全部左对齐 */
        flex-wrap: wrap;
        width: 100%;
    }

    .pinned-project .language-tag {
        margin-right: auto;
        margin-left: 0;
        padding: 2px 6px;
        text-align: left;
        justify-content: flex-start;
        width: auto;
    }

    .pinned-project .repo-stats {
        gap: 8px;
        justify-content: flex-start; /* 确保左对齐 */
        width: 100%;
    }

    .pinned-project .repo-stat {
        font-size: 10px;
    }

    .pinned-project .repo-stat svg {
        width: 12px;
        height: 12px;
    }
}

/* 超窄屏手机 */
@media (max-width: 360px) {
    .container {
        padding: 0.75rem 0.75rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .profile-header {
        gap: 0.75rem;
    }

    .profile-img {
        width: 80px;
        height: 80px;
    }

    .profile-name {
        font-size: 20px;
    }

    .profile-login {
        font-size: 14px;
    }

    .repo-card {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }

    .repo-title {
        font-size: 13px;
    }

    .repo-description {
        font-size: 11px;
    }

    .repo-stats {
        gap: 0.75rem;
        font-size: 11px;
    }

    .language-tag {
        font-size: 11px;
    }

    .social-links {
        gap: 0.35rem;
        font-size: 12px;
    }

    .stats {
        font-size: 12px;
        gap: 0.35rem;
    }
}

.repo-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.repo-stat svg {
    fill: currentColor;
}

.content-area {
    min-height: 200px;
}

.pinned-project {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    border: 1px solid var(--border-color); /* 亮色模式下的边框 */
    box-shadow: none; /* 移除阴影 */
}

.pinned-project .repo-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.pinned-project .repo-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.pinned-project .repo-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.pinned-project .language-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    transition: color 0.3s ease;
}

.pinned-project .repo-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pinned-project .repo-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    transition: color 0.3s ease;
}

.pinned-project .repo-stat svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Dark mode styles */
[data-theme="dark"] .pinned-project {
    background: var(--card-bg);
    border: none; /* 暗色模式下移除边框 */
    box-shadow: none;
}

[data-theme="dark"] .pinned-project .repo-title {
    color: var(--text-primary-dark);
}

[data-theme="dark"] .pinned-project .repo-description {
    color: var(--text-secondary-dark);
}

[data-theme="dark"] .pinned-project .language-tag {
    color: var(--text-secondary-dark);
}

[data-theme="dark"] .pinned-project .repo-stat {
    color: var(--text-secondary-dark);
}

[data-theme="dark"] .pinned-project svg path {
    fill: var(--text-secondary-dark);
}

/* Hover effects */
[data-theme="dark"] .pinned-project:hover {
    box-shadow: none;
    border-color: transparent;
    transform: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    .pinned-project {
        padding: 16px;
        margin-bottom: 16px;
    }

    .pinned-project .repo-title {
        font-size: 15px;
    }

    .pinned-project .repo-description {
        font-size: 13px;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pinned-project .repo-meta {
        gap: 12px;
        margin-bottom: 12px;
        flex-wrap: wrap;
        justify-content: flex-start; /* 确保靠左对齐 */
    }

    .pinned-project .language-tag {
        margin-right: auto; /* 保证语言标签靠左 */
        margin-left: 0; /* 确保没有左边距 */
    }

    .pinned-project .repo-stats {
        gap: 12px;
    }

    .pinned-project .repo-stat {
        font-size: 11px;
    }

    .pinned-project .repo-stat svg {
        width: 14px;
        height: 14px;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .pinned-project {
        padding: 12px;
    }

    .pinned-project .repo-title {
        font-size: 14px;
    }

    .pinned-project .repo-description {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .pinned-project .repo-meta {
        gap: 8px;
    }

    .pinned-project .repo-stats {
        gap: 8px;
    }

    .pinned-project .repo-stat {
        font-size: 10px;
    }

    .pinned-project .repo-stat svg {
        width: 12px;
        height: 12px;
    }
}

.pinned-project svg path {
    fill: #57606a !important;
}

[data-theme="dark"] .pinned-project svg path {
    fill: #57606a !important;
}

.pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.pinned-badge svg {
    fill: var(--text-secondary);
}

.progress-bar {
    background-color: var(--border-color);
    border-radius: 10px;
    height: 8px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.progress {
    background-color: #2da44e;
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.contributions {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.contributions h2 {
    font-size: 16px;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contribution-graph {
    display: grid;
    grid-template-columns: repeat(52, 1fr);
    gap: 3px;
    margin: 1rem 0;
    width: 100%;
    overflow: hidden;
}

.contribution-cell {
    width: 100%;
    padding-bottom: 100%;
    border-radius: 2px;
    background-color: var(--contribution-bg);
    position: relative;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contribution-cell[data-level="0"] { background-color: var(--contribution-bg); }
.contribution-cell[data-level="1"] { background-color: var(--contribution-l1); }
.contribution-cell[data-level="2"] { background-color: var(--contribution-l2); }
.contribution-cell[data-level="3"] { background-color: var(--contribution-l3); }
.contribution-cell[data-level="4"] { background-color: var(--contribution-l4); }

[data-theme="dark"] .contribution-cell[data-level="0"] { 
    background-color: #1b1f23;
    border-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .contribution-cell[data-level="1"] { 
    background-color: #0e4429;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .contribution-cell[data-level="2"] { 
    background-color: #006d32;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .contribution-cell[data-level="3"] { 
    background-color: #26a641;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .contribution-cell[data-level="4"] { 
    background-color: #39d353;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .contributions {
    background-color: #0d1117;
    border-color: #30363d;
}

.contribution-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .contribution-graph {
        grid-template-columns: repeat(26, 1fr);
        width: 100%;
        overflow-x: hidden;
        gap: 1px;
    }
    
    .contribution-cell {
        width: 100%;
        padding-bottom: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .contribution-graph {
        grid-template-columns: repeat(13, 1fr);
        width: 100%;
        overflow-x: hidden;
        gap: 1px;
    }
    
    .contribution-cell {
        width: 100%;
        padding-bottom: 100%;
        min-width: 0;
    }
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 0;
    border-radius: 0;
    transition: color 0.2s ease;
}

.social-link:hover {
    background-color: transparent;
    color: var(--hover-color);
}

.social-link svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
}

/* 修改微信二维码弹窗样式 */
.wechat-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    text-align: center;
    transition: transform 0.3s ease;
    width: 90%;
    max-width: 360px;
}

.wechat-popup.show {
    transform: translate(-50%, -50%) scale(1);
}

.wechat-popup img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.wechat-popup p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* 修改技能专长卡片样式 */
.skills-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem 1rem 1.25rem;
    margin-bottom: 1rem;
}

.skills-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    margin-left: -0.25rem;
    padding-left: 0;
}

.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}
.contribution-title-group {
display: flex;
align-items: center;
justify-content: space-between; /* 这会让标题靠左，选择框靠右 */
width: 100%;
}

.contribution-title-group h2 {
margin: 0;
}

.year-select-container {
margin-left: auto; /* 这也会帮助选择框靠右 */
}

.year-select {
    padding: 5px 8px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
}

/* 添加暗色模式下年份选择器的样式 */
[data-theme="dark"] .year-select {
    background-color: #0d1117;
    color: #c9d1d9;
    border-color: #30363d;
}

.settings-button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

/* 确保在移动端也保持右对齐 */
@media (max-width: 768px) {
.contribution-title-group {
flex-wrap: nowrap; /* 防止在小屏幕上换行 */
}

.year-select-container {
margin-left: auto; /* 保持靠右 */
}
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: var(--text-secondary);
}

.beian {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.beian a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.beian img {
    width: 14px;
    height: 14px;
}

.beian a:hover {
    color: var(--hover-color);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .footer-content {
        text-align: center;
    }
}

/* 修改手机端贡献活动的样式 */
@media (max-width: 768px) {
    .contributions {
        padding: 1rem; /* 增加内边距 */
        margin: 1rem 0;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 6px;
    }

    .contribution-graph {
        margin: 1rem 0;
        width: 100%;
    }
}

/* 添加编程语言颜色样式 */
.language-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 12px;
    color: #57606a;
    margin-right: 1rem;
}

.language-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

/* 常用编程语言的颜色 */
.language-JavaScript .language-dot { background-color: #f1e05a; }
.language-Python .language-dot { background-color: #3572A5; }
.language-Java .language-dot { background-color: #b07219; }
.language-HTML .language-dot { background-color: #e34c26; }
.language-CSS .language-dot { background-color: #563d7c; }
.language-TypeScript .language-dot { background-color: #2b7489; }
.language-PHP .language-dot { background-color: #4F5D95; }
.language-Ruby .language-dot { background-color: #701516; }
.language-Go .language-dot { background-color: #00ADD8; }
.language-Swift .language-dot { background-color: #ffac45; }
.language-Kotlin .language-dot { background-color: #F18E33; }
.language-Rust .language-dot { background-color: #dea584; }
.language-C .language-dot { background-color: #555555; }
.language-CPP .language-dot { background-color: #f34b7d; }
.language-CSharp .language-dot { background-color: #178600; }
.language-Vue .language-dot { background-color: #41b883; }
.language-React .language-dot { background-color: #61dafb; }
.language-Node\.js .language-dot { background-color: #339933; }
.language-Git .language-dot { background-color: #F05032; }
.language-MongoDB .language-dot { background-color: #13AA52; }
.language-MySQL .language-dot { background-color: #4479A1; }
.language-Linux .language-dot { background-color: #FCC624; }

/* 添加主题切换按钮 */
/* 暂时注释掉主题切换按钮样式 - 开始 */
/*
.theme-switch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-switch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-switch svg {
    width: 20px;
    height: 20px;
    fill: var(--text-color);
}
*/
/* 暂时注释掉主题切换按钮样式 - 结束 */

/* 修改 SVG 图标颜色 */
.social-links svg path {
    fill: var(--icon-color);
}

.stats svg path {
    fill: var(--icon-color);
}

.repo-stats svg path {
    fill: var(--icon-color);
}

.pinned-badge svg path {
    fill: var(--icon-color);
}

.activity-timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.activity-month h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
}

.activity-month h3:after {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    width: 1.5rem;
    height: 1px;
    background-color: var(--border-color);
}

.activity-item {
    position: relative;
    padding-bottom: 1.5rem;
    margin-left: -0.5rem;
}

.activity-icon {
    position: absolute;
    left: -1.5rem;
    padding: 2px;
}

[data-theme="dark"] .activity-icon {
    background: transparent;
}

.activity-icon svg {
    fill: var(--text-secondary);
}

.activity-content {
    position: relative;
}

.activity-content:before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 24px;
    bottom: -24px;
    width: 2px;
    background-color: var(--border-color);
}

.activity-header {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.activity-details {
    font-size: 12px;
    margin-bottom: 0.25rem;
}

.repo-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.repo-link:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.issue-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.issue-link svg {
    fill: var(--text-secondary);
}

.issue-title {
    color: var(--text-secondary);
    text-decoration: none;
}

.issue-title:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.activity-date {
    font-size: 12px;
    color: var(--text-secondary);
    position: absolute;
    right: 0;
    top: 0;
}

.show-more {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.show-more-link {
    color: var(--hover-color);
    text-decoration: none;
    font-size: 14px;
}

.show-more-link:hover {
    text-decoration: underline;
}

.hidden-activity {
    display: none;
}

.commit-bar {
    height: 8px;
    background: #40c463;
    border-radius: 4px;
    width: 100%;
    max-width: 200px;
    margin-top: 0.5rem;
}

.repo-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.repo-info svg {
    fill: var(--text-secondary);
}

.content {
    width: 100%;
    max-width: 720px;
}

/* GitHub 风格的样式 */
.blankslate {
    text-align: center;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
}

.blankslate svg {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.blankslate h3 {
    margin-bottom: 4px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.blankslate p {
    color: var(--text-secondary);
    font-size: 14px;
}

.forked-badge {
    display: inline-block;
    padding: 0 7px;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 2em;
    color: var(--text-secondary);
    margin-left: 8px;
}

.show-more-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    appearance: none;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: .2s cubic-bezier(0.3, 0, 0.5, 1);
    transition-property: color, background-color, border-color;
}

.show-more-button:hover {
    background-color: var(--skill-bg);
    border-color: var(--border-color);
    transition-duration: .1s;
}

.contribution-cell[data-level="0"] { background-color: var(--contribution-bg); }
.contribution-cell[data-level="1"] { background-color: var(--contribution-l1); }
.contribution-cell[data-level="2"] { background-color: var(--contribution-l2); }
.contribution-cell[data-level="3"] { background-color: var(--contribution-l3); }
.contribution-cell[data-level="4"] { background-color: var(--contribution-l4); }

.contribution-cell {
    border: 1px solid rgba(27, 31, 35, 0.06);
}

[data-theme="dark"] .contribution-cell {
    border-color: rgba(255, 255, 255, 0.05);
}

.activity-month {
    margin-bottom: 24px;
    animation: fadeIn 0.2s ease-in-out;
}

.activity-month.hidden-activity {
    display: none !important;
    overflow: hidden;
}

.activity-month.hidden-activity.show {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.commit-bar {
    width: 100%;
    height: 10px;
    background: linear-gradient(to right,
        var(--contribution-l1) 0%,
        var(--contribution-l2) 33%,
        var(--contribution-l3) 66%,
        var(--contribution-l4) 100%
    );
    border-radius: 5px;
    margin-top: 8px;
}

.repo-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.repo-card .repo-title {
    margin-bottom: 0;
}

.pinned-project {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    border: 1px solid var(--border-color); /* 亮色模式下的边框 */
    box-shadow: none; /* 移除阴影 */
}

/* 移除绿色顶部条的代码已完全删除 */

/* 暗色模式样式 */
[data-theme="dark"] .pinned-project {
    background: var(--card-bg);
    border: none; /* 暗色模式下移除边框 */
    box-shadow: none;
}

/* 移除悬停效果但保留边框 */
.pinned-project:hover {
    border-color: var(--border-color); /* 保持边框颜色不变 */
    box-shadow: none;
    transform: none;
}

[data-theme="dark"] .pinned-project:hover {
    box-shadow: none;
    border-color: transparent;
    transform: none;
}

.pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pinned-badge svg {
    fill: currentColor;
}

.activity-icon svg {
    fill: var(--text-secondary);
}

.activity-content {
    flex: 1;
}

.activity-header {
    font-weight: 600;
    margin-bottom: 4px;
}

.activity-details {
    color: var(--text-secondary);
    font-size: 12px;
}

.repo-info {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.repo-info svg {
    fill: var(--text-secondary);
}

.tab-container {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    padding: 0 16px;
    background: var(--header-bg);
}

.tab {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 30px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-right: 8px;
    white-space: nowrap;
}

.tab:hover {
    border-bottom-color: var(--border-color);
}

.tab.active {
    border-bottom-color: #fd8c73;
    font-weight: 600;
}

.tab svg {
    margin-right: 8px;
    fill: currentColor;
}

.theme-switch {
    margin-left: auto;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.theme-switch:hover {
    color: var(--text-color);
}

.theme-switch svg {
    fill: currentColor;
}

/* 当主题切换按钮在社交链接中时的样式 */
.social-link.theme-switch {
    margin-left: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    background-color: transparent;
}

.social-link.theme-switch:hover {
    background-color: transparent;
    color: var(--hover-color);
}

.social-link.theme-switch svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contribution-graph {
        grid-template-columns: repeat(26, 1fr);
        width: 100%;
        overflow-x: hidden;
        gap: 1px;
    }
    
    .contribution-cell {
        width: 100%;
        padding-bottom: 100%;
        min-width: 0;
    }
    
    .repo-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .contribution-graph {
        grid-template-columns: repeat(13, 1fr);
        width: 100%;
        overflow-x: hidden;
        gap: 1px;
    }
    
    .contribution-cell {
        width: 100%;
        padding-bottom: 100%;
        min-width: 0;
    }
    
    .repo-stats {
        flex-wrap: wrap;
    }
}

/* 项目详情模态框样式 */
.project-modal {
    --modal-width: 900px;
    --modal-padding: 24px;
    width: var(--modal-width);
    max-width: 90vw;
    max-height: 85vh;
    background-color: var(--modal-bg);
    border: 1px solid var(--modal-border);
    border-radius: 6px;
    box-shadow: 0 8px 24px var(--modal-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-modal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.project-modal-body {
    padding: var(--modal-padding);
    overflow-y: auto;
    flex: 1;
    background-color: var(--modal-bg);
}

.readme-content {
    padding: 16px;
    background-color: var(--readme-bg);
    border: 1px solid var(--modal-border);
    border-radius: 6px;
}

.commit-item {
    padding: 16px;
    border: 1px solid var(--modal-border);
    border-radius: 6px;
    background-color: var(--commit-item-bg);
}

.project-modal-header {
    padding: var(--modal-padding);
    border-bottom: 1px solid var(--modal-header-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--modal-bg);
}

.project-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
}

.project-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.github-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--button-bg);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.github-button:hover {
    background: var(--button-hover-bg);
}

.project-info-section {
    margin-bottom: 32px;
}

.project-description {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.language-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    margin-bottom: 16px;
    background-color: var(--contribution-bg);
}

.language-bar-item {
    height: 100%;
    transition: width 0.3s ease;
}

.language-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 8px;
    width: 100%;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 4px;
    background-color: var(--skill-bg);
    transition: background-color 0.2s ease;
}

.language-item:hover {
    background-color: var(--border-color);
}

.language-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.language-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.language-percentage {
    color: var(--text-secondary);
    margin-left: auto;
    font-size: 13px;
    min-width: 40px;
    text-align: right;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.commits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.commit-item {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
}

.commit-header {
    display: flex;
    gap: 12px;
}

.commit-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.commit-info {
    flex: 1;
}

.commit-message {
    font-weight: 600;
    margin-bottom: 4px;
}

.commit-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.readme-content {
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* GitHub Markdown 样式 */
.markdown-body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.markdown-body h1 { font-size: 2em; }
.markdown-body h2 { font-size: 1.5em; }
.markdown-body h3 { font-size: 1.25em; }

.markdown-body code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: var(--code-bg);
    border-radius: 6px;
}

.markdown-body pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: var(--code-bg);
    border-radius: 6px;
}

.markdown-body pre code {
    padding: 0;
    margin: 0;
    font-size: 100%;
    word-break: normal;
    white-space: pre;
    background: transparent;
    border: 0;
}

/* 语言颜色变量 */
:root {
    --color-javascript: #f1e05a;
    --color-typescript: #3178c6;
    --color-python: #3572A5;
    --color-java: #b07219;
    --color-html: #e34c26;
    --color-css: #563d7c;
    --color-php: #4F5D95;
    --color-ruby: #701516;
    --color-go: #00ADD8;
    --color-rust: #dea584;
    --color-vue: #41b883;
    --color-react: #61dafb;
    --color-c: #555555;
    --color-cpp: #f34b7d;
    --color-csharp: #178600;
    --color-swift: #ffac45;
    --color-kotlin: #F18E33;
    --color-shell: #89e051;
    --color-bash: #89e051;
    --color-powershell: #012456;
    --color-makefile: #427819;
    --color-cmake: #DA3434;
    --color-dockerfile: #384d54;
    --color-nginx: #009639;
    --color-lua: #000080;
    --color-r: #198CE7;
    --color-perl: #0298c3;
    --color-objectivec: #438eff;
    --color-groovy: #e69f56;
    --color-dart: #00B4AB;
    --color-matlab: #e16737;
    --color-scala: #c22d40;
    --color-haskell: #5e5086;
    --color-elixir: #6e4a7e;
    --color-clojure: #db5855;
    --color-erlang: #B83998;
    --color-yaml: #cb171e;
    --color-json: #292929;
    --color-markdown: #083fa1;
    --color-tex: #3D6117;
    --color-assembly: #6E4C13;
    --color-batchfile: #C1F12E;
    --color-coffeescript: #244776;
    --color-d: #ba595e;
    --color-fortran: #4d41b1;
    --color-fsharp: #b845fc;
    --color-graphql: #e10098;
    --color-julia: #a270ba;
    --color-nim: #ffc200;
    --color-ocaml: #ef7a08;
    --color-pascal: #E3F171;
    --color-powershell: #5391FE;
    --color-prolog: #74283c;
    --color-reason: #ff5847;
    --color-rescript: #ed5051;
    --color-ruby: #701516;
    --color-rust: #dea584;
    --color-sass: #a53b70;
    --color-scss: #c6538c;
    --color-solidity: #AA6746;
    --color-stylus: #ff6347;
    --color-svelte: #ff3e00;
    --color-sql: #e38c00;
    --color-toml: #9c4221;
    /* 为不常见的语言提供默认颜色 */
    --color-default: #8c8c8c;
}

/* 修复移动端语言列表样式 */
@media (max-width: 768px) {
    .language-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .language-item {
        font-size: 13px;
        padding: 4px 6px;
    }
    
    .language-percentage {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .language-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .language-bar {
        margin-bottom: 12px;
    }
    
    .language-percentage {
        min-width: 32px;
    }
}

/* 暗色模式适配 */
[data-theme="dark"] .markdown-body {
    color-scheme: dark;
    --color-prettylights-syntax-comment: #8b949e;
    --color-prettylights-syntax-constant: #79c0ff;
    --color-prettylights-syntax-entity: #d2a8ff;
    --color-prettylights-syntax-storage-modifier-import: #c9d1d9;
    --color-prettylights-syntax-entity-tag: #7ee787;
    --color-prettylights-syntax-keyword: #ff7b72;
    --color-prettylights-syntax-string: #a5d6ff;
    --color-prettylights-syntax-variable: #ffa657;
    --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
    --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
    --color-prettylights-syntax-invalid-illegal-bg: #8e1519;
    --color-prettylights-syntax-carriage-return-text: #f0f6fc;
    --color-prettylights-syntax-carriage-return-bg: #b62324;
    --color-prettylights-syntax-string-regexp: #7ee787;
    --color-prettylights-syntax-markup-list: #f2cc60;
    --color-prettylights-syntax-markup-heading: #1f6feb;
    --color-prettylights-syntax-markup-italic: #c9d1d9;
    --color-prettylights-syntax-markup-bold: #c9d1d9;
    --color-prettylights-syntax-markup-deleted-text: #ffdcd7;
    --color-prettylights-syntax-markup-deleted-bg: #67060c;
    --color-prettylights-syntax-markup-inserted-text: #aff5b4;
    --color-prettylights-syntax-markup-inserted-bg: #033a16;
    --color-prettylights-syntax-markup-changed-text: #ffdfb6;
    --color-prettylights-syntax-markup-changed-bg: #5a1e02;
    --color-prettylights-syntax-markup-ignored-text: #c9d1d9;
    --color-prettylights-syntax-markup-ignored-bg: #1158c7;
    --color-prettylights-syntax-meta-diff-range: #d2a8ff;
    --color-prettylights-syntax-brackethighlighter-angle: #8b949e;
    --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
    --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
    --color-fg-default: #c9d1d9;
    --color-fg-muted: #8b949e;
    --color-fg-subtle: #6e7681;
    --color-canvas-default: #0d1117;
    --color-canvas-subtle: #161b22;
    --color-border-default: #30363d;
    --color-border-muted: #21262d;
    --color-neutral-muted: rgba(110,118,129,0.4);
    --color-accent-fg: #58a6ff;
    --color-accent-emphasis: #1f6feb;
    --color-attention-subtle: rgba(187,128,9,0.15);
    --color-danger-fg: #f85149;
    --modal-bg: #161b22;
    --modal-border: #30363d;
    --modal-shadow: rgba(0, 0, 0, 0.4);
    --modal-header-border: #30363d;
    --modal-close-hover: #21262d;
    --readme-bg: #0d1117;
    --commit-item-bg: #0d1117;
    --code-block-bg: #161b22;
}

/* 添加暗黑模式的模态框样式 */
[data-theme="dark"] .project-modal {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .project-modal-header {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .project-modal-body {
    background-color: var(--card-bg);
}

[data-theme="dark"] .readme-content {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .commit-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* 修复 Markdown 内容样式 */
.markdown-body {
    color: var(--text-color);
    padding: 16px;
}

.markdown-body p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 16px;
    padding-left: 2em;
}

.markdown-body li {
    margin-bottom: 8px;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: 6px;
}

.markdown-body table {
    display: block;
    width: 100%;
    overflow: auto;
    margin-bottom: 16px;
    border-spacing: 0;
    border-collapse: collapse;
}

.markdown-body table th,
.markdown-body table td {
    padding: 6px 13px;
    border: 1px solid var(--border-color);
}

.markdown-body table tr {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.markdown-body table tr:nth-child(2n) {
    background-color: var(--bg-secondary);
}

.markdown-body blockquote {
    margin: 0 0 16px;
    padding: 0 1em;
    color: var(--text-secondary);
    border-left: 0.25em solid var(--border-color);
}

.markdown-body hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: var(--border-color);
    border: 0;
}

/* 修复关闭按钮样式 */
.project-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal-close:hover {
    background-color: var(--modal-close-hover);
    color: var(--text-color);
}

.project-modal-close svg {
    width: 16px;
    height: 16px;
}

/* 修复遮罩层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.show {
    opacity: 1;
}

/* 修复代码块样式 */
.markdown-body pre {
    background-color: var(--code-block-bg);
    border-radius: 6px;
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    margin-bottom: 16px;
}

.markdown-body pre code {
    display: block;
    overflow-x: auto;
    padding: 0;
    font-size: inherit;
    color: var(--text-color);
    background-color: transparent;
    border-radius: 0;
}

[data-theme="dark"] .markdown-body pre {
    background-color: var(--code-block-bg);
}

[data-theme="dark"] .markdown-body code {
    background-color: rgba(110, 118, 129, 0.4);
}

[data-theme="dark"] .markdown-body blockquote {
    color: #8b949e;
    border-left-color: #30363d;
}

[data-theme="dark"] .markdown-body hr {
    background-color: #30363d;
}

[data-theme="dark"] .project-meta-item {
    color: #8b949e;
}

[data-theme="dark"] .commit-message {
    color: #c9d1d9;
}

[data-theme="dark"] .commit-meta {
    color: #8b949e;
}

[data-theme="dark"] .language-percentage {
    color: #8b949e;
}

[data-theme="dark"] .section-title {
    border-bottom-color: #30363d;
    color: #c9d1d9;
}

[data-theme="dark"] .project-description {
    color: #8b949e;
}

[data-theme="dark"] .github-button {
    background-color: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
}

[data-theme="dark"] .github-button:hover {
    background-color: #30363d;
    border-color: #8b949e;
}

/* 修复暗色模式下的图标颜色 */
[data-theme="dark"] .social-links svg path {
    fill: var(--icon-color);
}

[data-theme="dark"] .stats svg path {
    fill: var(--icon-color);
}

[data-theme="dark"] .repo-stats svg path {
    fill: var(--icon-color);
}

[data-theme="dark"] .pinned-badge svg path {
    fill: var(--icon-color);
}

[data-theme="dark"] .theme-switch svg path {
    fill: var(--icon-color);
}

/* 修复暗色模式下的代码块样式 */
[data-theme="dark"] .markdown-body {
    color-scheme: dark;
    background-color: var(--modal-bg);
}

[data-theme="dark"] .markdown-body pre {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .markdown-body code {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .markdown-body pre code {
    color: var(--text-color);
    background-color: transparent;
}

/* 修复暗色模式下的高亮样式 */
[data-theme="dark"] .hljs {
    color: var(--text-color);
    background: var(--bg-color);
}

[data-theme="dark"] .hljs-comment,
[data-theme="dark"] .hljs-quote {
    color: #8b949e;
}

[data-theme="dark"] .hljs-keyword,
[data-theme="dark"] .hljs-selector-tag,
[data-theme="dark"] .hljs-addition {
    color: #ff7b72;
}

[data-theme="dark"] .hljs-number,
[data-theme="dark"] .hljs-string,
[data-theme="dark"] .hljs-meta .hljs-meta-string,
[data-theme="dark"] .hljs-literal,
[data-theme="dark"] .hljs-doctag,
[data-theme="dark"] .hljs-regexp {
    color: #a5d6ff;
}

[data-theme="dark"] .hljs-title,
[data-theme="dark"] .hljs-section,
[data-theme="dark"] .hljs-name,
[data-theme="dark"] .hljs-selector-id,
[data-theme="dark"] .hljs-selector-class {
    color: #d2a8ff;
}

[data-theme="dark"] .hljs-attribute,
[data-theme="dark"] .hljs-attr,
[data-theme="dark"] .hljs-variable,
[data-theme="dark"] .hljs-template-variable,
[data-theme="dark"] .hljs-class .hljs-title,
[data-theme="dark"] .hljs-type {
    color: #ffa657;
}

[data-theme="dark"] .hljs-symbol,
[data-theme="dark"] .hljs-bullet,
[data-theme="dark"] .hljs-subst,
[data-theme="dark"] .hljs-meta,
[data-theme="dark"] .hljs-meta .hljs-keyword,
[data-theme="dark"] .hljs-selector-attr,
[data-theme="dark"] .hljs-selector-pseudo,
[data-theme="dark"] .hljs-link {
    color: #7ee787;
}

[data-theme="dark"] .hljs-built_in,
[data-theme="dark"] .hljs-deletion {
    color: #ff7b72;
}

[data-theme="dark"] .hljs-formula {
    color: #c9d1d9;
    background: #161b22;
}

[data-theme="dark"] .hljs-emphasis {
    font-style: italic;
}

[data-theme="dark"] .hljs-strong {
    font-weight: bold;
}

/* 修改手机端模态框样式 */
@media (max-width: 768px) {
    .project-modal {
        position: fixed;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translate(0, 100%);
        opacity: 1;
        display: flex;
        flex-direction: column;
        border: none;
    }

    .project-modal.show {
        transform: translate(0, 0);
    }

    .project-modal-header {
        padding: 12px 16px;
        position: sticky;
        top: 0;
        background: var(--modal-bg);
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
    }

    .project-modal-title {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        margin-right: 16px;
    }

    .project-modal-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }

    .github-button {
        padding: 6px 12px;
        font-size: 14px;
        white-space: nowrap;
    }

    .project-modal-body {
        padding: 16px;
        height: calc(100% - 56px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
    }

    .project-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .language-list {
        gap: 12px;
        flex-wrap: wrap;
    }

    .commits-list {
        gap: 12px;
    }

    .commit-item {
        padding: 12px;
    }

    .readme-content {
        padding: 12px;
        font-size: 14px;
        margin-bottom: 16px;
    }

    .markdown-body {
        font-size: 14px;
        padding: 12px;
    }

    .project-description {
        font-size: 14px;
        margin: 12px 0;
    }

    .section-title {
        font-size: 16px;
        margin: 16px 0 12px;
        padding-bottom: 8px;
    }

    .project-modal-close {
        padding: 8px;
    }
}

/* 增加超小屏幕的适配 */
@media (max-width: 480px) {
    .project-modal-header {
        padding: 10px 12px;
    }

    .project-modal-body {
        padding: 12px;
    }

    .project-modal-title {
        font-size: 15px;
    }

    .github-button {
        padding: 4px 8px;
        font-size: 13px;
    }

    .project-meta {
        gap: 8px;
    }

    .language-list {
        gap: 8px;
    }

    .commit-item {
        padding: 10px;
    }

    .readme-content {
        padding: 10px;
    }

    .markdown-body {
        font-size: 13px;
        padding: 10px;
    }
}

/* 自定义滚动条样式 */
.project-modal-body::-webkit-scrollbar {
    width: 12px;
}

.project-modal-body::-webkit-scrollbar-track {
    background: var(--modal-bg);
    border-radius: 6px;
}

.project-modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border: 3px solid var(--modal-bg);
    border-radius: 6px;
}

.project-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.markdown-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.markdown-body::-webkit-scrollbar-track {
    background: var(--modal-bg);
    border-radius: 4px;
}

.markdown-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border: 2px solid var(--modal-bg);
    border-radius: 4px;
}

.markdown-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 代码块滚动条样式 */
.markdown-body pre::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.markdown-body pre::-webkit-scrollbar-track {
    background: var(--code-block-bg);
    border-radius: 3px;
}

.markdown-body pre::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border: 2px solid var(--code-block-bg);
    border-radius: 3px;
}

.markdown-body pre::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 手机端滚动条样式优化 */
@media (max-width: 768px) {
    .project-modal-body::-webkit-scrollbar {
        width: 4px;
    }

    .project-modal-body::-webkit-scrollbar-thumb {
        border: none;
    }

    .markdown-body::-webkit-scrollbar,
    .markdown-body pre::-webkit-scrollbar {
        width: 3px;
        height: 3px;
    }

    .markdown-body::-webkit-scrollbar-thumb,
    .markdown-body pre::-webkit-scrollbar-thumb {
        border: none;
    }
}

/* 贡献图移动端样式 */
.contribution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.year-selector select {
    padding: 0.25rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

.contribution-calendar {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.contribution-grid {
    display: grid;
    grid-template-columns: repeat(53, 10px);
    gap: 2px;
    margin: 0 auto;
    justify-content: center;
}

.contribution-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background-color: var(--contribution-bg);
    transition: background-color 0.2s ease;
}

.contribution-cell[data-level="1"] { background-color: var(--contribution-l1); }
.contribution-cell[data-level="2"] { background-color: var(--contribution-l2); }
.contribution-cell[data-level="3"] { background-color: var(--contribution-l3); }
.contribution-cell[data-level="4"] { background-color: var(--contribution-l4); }

.contribution-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 1rem;
    font-size: 12px;
    color: var(--text-secondary);
}

.contribution-legend .legend-item {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.contribution-legend .legend-item[data-level="0"] { background-color: var(--contribution-bg); }
.contribution-legend .legend-item[data-level="1"] { background-color: var(--contribution-l1); }
.contribution-legend .legend-item[data-level="2"] { background-color: var(--contribution-l2); }
.contribution-legend .legend-item[data-level="3"] { background-color: var(--contribution-l3); }
.contribution-legend .legend-item[data-level="4"] { background-color: var(--contribution-l4); }

@media (max-width: 768px) {
    .contribution-calendar {
        padding: 0.75rem;
        overflow: hidden;
        width: 100%;
    }
    
    .contribution-grid {
        grid-template-columns: repeat(26, 1fr);
        width: 100%;
        overflow: hidden;
        gap: 1px;
        min-width: 0;
    }
    
    .contribution-cell {
        width: 100%;
        padding-bottom: 100%;
        min-width: 0;
        position: relative;
    }

    .contributions {
        width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .contribution-calendar {
        padding: 0.5rem;
        overflow: hidden;
        width: 100%;
    }
    
    .contribution-grid {
        grid-template-columns: repeat(13, 1fr);
        width: 100%;
        overflow: hidden;
        gap: 1px;
        min-width: 0;
    }
    
    .contribution-cell {
        width: 100%;
        padding-bottom: 100%;
        min-width: 0;
        position: relative;
    }

    .contributions {
        width: 100%;
        overflow: hidden;
        padding: 0.75rem;
    }

    .contribution-title-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
    }

    .year-select-container {
        width: auto;
        margin-left: auto;
    }

    .year-select {
        width: auto;
        min-width: 100px;
    }
}

/* 贡献图桌面端样式 */
.contribution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.contribution-settings {
    display: flex;
    align-items: center;
    gap: 8px;
}

.year-select {
    padding: 5px 8px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
}

.settings-button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

.settings-button:hover {
    background-color: var(--bg-tertiary);
}

.contribution-calendar {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 2rem;
    background-color: var(--bg-secondary);
}

.calendar-header {
    margin-bottom: 0.5rem;
}

.month-labels {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    padding-left: 2rem;
}

.month-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.calendar-body {
    display: flex;
    gap: 4px;
}

.weekday-labels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.weekday-label {
    font-size: 12px;
    color: var(--text-secondary);
    height: 10px;
    line-height: 10px;
    text-align: left;
}

.contribution-grid {
    display: grid;
    grid-template-columns: repeat(53, 10px);
    gap: 2px;
    flex-grow: 1;
}

.contribution-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background-color: var(--contribution-bg);
    transition: background-color 0.2s ease;
}

.contribution-cell[data-level="1"] { background-color: var(--contribution-l1); }
.contribution-cell[data-level="2"] { background-color: var(--contribution-l2); }
.contribution-cell[data-level="3"] { background-color: var(--contribution-l3); }
.contribution-cell[data-level="4"] { background-color: var(--contribution-l4); }

.contribution-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 1rem;
    font-size: 12px;
    color: var(--text-secondary);
}

.contribution-legend .legend-item {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.contribution-legend .legend-item[data-level="0"] { background-color: var(--contribution-bg); }
.contribution-legend .legend-item[data-level="1"] { background-color: var(--contribution-l1); }
.contribution-legend .legend-item[data-level="2"] { background-color: var(--contribution-l2); }
.contribution-legend .legend-item[data-level="3"] { background-color: var(--contribution-l3); }
.contribution-legend .legend-item[data-level="4"] { background-color: var(--contribution-l4); }

/* 贡献图响应式样式 */
@media (max-width: 768px) {
    .contribution-calendar {
        padding: 0.75rem;
    }
    
    .month-labels {
        grid-template-columns: repeat(6, 1fr);
        padding-left: 1.5rem;
    }
    
    .contribution-grid {
        grid-template-columns: repeat(26, 10px);
    }
    
    .weekday-labels {
        gap: 8px;
    }

    .contribution-settings {
        flex-direction: column;
        align-items: flex-end;
    }

    .year-select {
        width: 100px;
    }
}

.contribution-calendar {
    margin-bottom: 20px;
}

.code-review-chart {
    margin-top: 20px;
    position: relative;
    height: 200px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.code-review-line {
    background-color: #238636;
    position: absolute;
}

.code-review-line.horizontal {
    width: 50%;
    height: 2px;
    left: 25%;
    top: 50%;
    transform: translateY(-50%);
}

.code-review-line.vertical {
    width: 2px;
    height: 50%;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
}

.code-review-marker {
    width: 8px;
    height: 8px;
    background-color: #238636;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

.code-review-label {
    position: absolute;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
}

.code-review-label.top {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.code-review-label.bottom {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.code-review-percentage {
    position: absolute;
    color: var(--text-primary);
    font-size: 12px;
    white-space: nowrap;
}

.code-review-percentage.commits {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.code-review-percentage.issues {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 480px) {
    .code-review-chart {
        height: 180px;
        padding: 35px 25px;
        margin-top: 15px;
    }

    .code-review-line.horizontal {
        width: 60%;
        left: 20%;
    }

    .code-review-line.vertical {
        height: 60%;
        top: 20%;
    }

    .code-review-label {
        font-size: 11px;
    }

    .code-review-label.top {
        top: 5px;
    }

    .code-review-label.bottom {
        bottom: 5px;
    }

    .code-review-percentage {
        font-size: 11px;
    }

    .code-review-percentage.commits {
        left: -1px;
        transform: translateY(-50%) translateX(-2px);
    }

    .code-review-percentage.issues {
        right: 10px;
        transform: translateY(-50%) translateX(2px);
    }

    .code-review-marker {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 360px) {
    .code-review-chart {
        height: 160px;
        padding: 30px 20px;
    }

    .code-review-line.horizontal {
        width: 70%;
        left: 15%;
    }

    .code-review-line.vertical {
        height: 70%;
        top: 15%;
    }

    .code-review-label, 
    .code-review-percentage {
        font-size: 10px;
    }

    .code-review-percentage.commits {
        transform: translateY(-50%) translateX(-10px);
    }

    .code-review-percentage.issues {
        transform: translateY(-50%) translateX(10px);
    }
}

.ongoing-project-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.ongoing-project-title svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.owner-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--color-text);
    font-size: 1rem;
}

.blankslate {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg-secondary);
    border-radius: 6px;
    margin: 1rem 0;
}

.blankslate h3 {
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.blankslate p {
    color: var(--color-text-secondary);
    margin: 0;
}

[data-theme="dark"] .blankslate {
    background: var(--color-bg-dark-secondary);
}

[data-theme="dark"] .blankslate h3 {
    color: var(--color-text-dark);
}

[data-theme="dark"] .blankslate p {
    color: var(--color-text-dark-secondary);
}

.activity-month.hidden-activity {
    display: none !important;
    overflow: hidden;
}

.activity-month.hidden-activity.show {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}

/* Ensure animation works properly */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton Screen Styles */
.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 5px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

[data-theme="dark"] .skeleton {
    background: #2d333b;
    background: linear-gradient(110deg, #2d333b 8%, #22272e 18%, #2d333b 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

.skeleton-card {
    height: 200px;
    margin-bottom: 16px;
    border-radius: 6px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    width: 80%;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* 最新项目中的 repo-card 样式 */
.pinned-project .repo-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 0;
    position: relative;
    transition: all 0.3s ease;
}





.pinned-project .repo-card .repo-title {
    font-size: 16px;
    margin-bottom: 12px;
}

.pinned-project .repo-card .repo-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.pinned-project .repo-card .repo-meta {
    margin-bottom: 16px;
}

.pinned-project .repo-card .repo-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pinned-project .repo-card .repo-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 13px;
}

.pinned-project .repo-card .repo-stat svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

[data-theme="dark"] .pinned-project .repo-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .pinned-project .repo-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .pinned-project .repo-card {
        padding: 16px;
        margin: 0 0px;
    }

    .pinned-project .repo-card .repo-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .pinned-project .repo-card .repo-description {
        font-size: 13px;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pinned-project .repo-card .repo-meta {
        margin-bottom: 12px;
    }

    .pinned-project .repo-card .repo-stats {
        gap: 12px;
        flex-wrap: wrap;
    }

    .pinned-project .repo-card .repo-stat {
        font-size: 12px;
    }

    .pinned-project .repo-card .repo-stat svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .pinned-project .repo-card {
        padding: 12px;
        margin: 0 0px;
    }

    .pinned-project .repo-card .repo-title {
        font-size: 14px;
    }

    .pinned-project .repo-card .repo-description {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .pinned-project .repo-card .repo-stats {
        gap: 8px;
    }

    .pinned-project .repo-card .repo-stat {
        font-size: 11px;
    }

    .pinned-project .repo-card .repo-stat svg {
        width: 12px;
        height: 12px;
    }
}

/* 暗色模式语言标签适配 */
[data-theme="dark"] .language-tag {
    background-color: var(--skill-bg);
    color: var(--text-secondary);
}

[data-theme="dark"] .skills-container .language-tag {
    background-color: var(--skill-bg);
    color: var(--text-secondary);
}

/* 热力图暗黑模式适配 */
.contribution-calendar {
    margin-bottom: 20px;
    background-color: var(--card-bg);
    border-radius: 6px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .contribution-calendar {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .contribution-grid {
    background-color: transparent;
}

[data-theme="dark"] .contribution-cell {
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .code-review-chart {
    background-color: transparent;
    border-top-color: var(--border-color);
}

[data-theme="dark"] .code-review-label,
[data-theme="dark"] .code-review-percentage {
    color: var(--text-secondary);
}

[data-theme="dark"] .code-review-line,
[data-theme="dark"] .code-review-marker {
    background-color: var(--contribution-l3);
}

/* 移除悬停效果但保留边框 */
.pinned-project:hover {
    border-color: var(--border-color); /* 保持边框颜色不变 */
    box-shadow: none;
    transform: none;
}

[data-theme="dark"] .pinned-project:hover {
    box-shadow: none;
    border-color: transparent;
    transform: none;
}

.theme-switch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 12px 0;
    background-color: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
}

.theme-switch-btn:hover {
    background-color: var(--border-color);
    color: var(--text-color);
}

.theme-switch-btn svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
}

.social-link.theme-switch .sun-icon {
    display: inline-block;
}

.social-link.theme-switch .moon-icon {
    display: none;
}

/* 暗色模式下的图标显示 */
[data-theme="dark"] .social-link.theme-switch .sun-icon {
    display: none;
}

[data-theme="dark"] .social-link.theme-switch .moon-icon {
    display: inline-block;
}
