
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #7f8c8d;
    font-weight: 300;
}

/* 项目卡片容器 */
.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

/* 单个项目卡片 */
.project-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.project-desc {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

/* 技能区域 */
.skills {
    text-align: center;
    margin-bottom: 4rem;
}

.skills h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.languages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.lang-tag {
    background: #ecf0f1;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 联系方式 */
.contact {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.contact h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: #3498db;
}

.contact-text {
    font-size: 1.1rem;
}

/* 页脚 */
footer {
    text-align: center;
    margin-top: 3rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .projects {
        flex-direction: column;
        align-items: center;
    }
    
    .project-card {
        max-width: 100%;
    }
}
/* &#127912; 新增：语言卡片样式 */
.languages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.language-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.language-card:hover {
    transform: translateY(-5px);
}

.language-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.language-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
}


.programming {
    font-size: 2.5rem;
}






.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-icons i {
    font-size: 1.5rem;
    color: #3498db;
}

.social-icons a:nth-child(1):hover {
    background: #1DA1F2;
}

.social-icons a:nth-child(2):hover {
    background: #2C974B;
}

.social-icons a:nth-child(3):hover {
    background: #0A66C2;
}

.social-icons a:hover i {
    color: white !important;
    transform: scale(1.2);
}



.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none !important;
}


/* &#127775; 可选：增强交互反馈（推荐保留） */
.social-icons a:hover {
    transform: scale(1.2);
    /* 保持悬停放大效果 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* 加深阴影提升层次感 */
}

.social-icons i {
    font-size: 1.5rem;
    color: #3498db;
}

.social-icons a:nth-child(1):hover {
    background: #1DA1F2;
}

.social-icons a:nth-child(2):hover {
    background: #2C974B;
}

.social-icons a:nth-child(3):hover {
    background: #0A66C2;
}

.social-icons a:nth-child(4):hover {
    background: #0ab6c2;
}

.social-icons a:hover i {
    color: white !important;
    transform: scale(1.2);
}






/*-----------*/





nav {
    display: flex;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    color: var(--text-color);
    align-items: center;
    transition: background-color 0.3s;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    justify-content: center;
}

.dark nav {
    color: var(--dark-text-color);
    background-color: rgba(24, 24, 27, 0.9);
}

nav a {
    position: relative;
    display: block;
    padding: 0.5rem;
    transition: color 0.3s;
    color: inherit;
    text-decoration: none;
}

nav a:hover {
    color: var(--hover-color);
}

.dark nav a:hover {
    color: var(--dark-hover-color);
}

/* 主题切换按钮样式 */
.theme-toggle-container {
    position: relative;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

#theme-toggle-btn {
    appearance: none;
    border: none;
    display: flex;
    transition: transform 0.2s;
    background: transparent;
    cursor: pointer;
    padding: 0.5rem;
}

#theme-toggle-btn:hover {
    transform: scale(1.25);
}

.theme-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: all 0.3s;
}

/* 主题菜单样式 */
#themes-menu {
    position: absolute;
    display: none;
    transform: scale(0.8);
    top: 2rem;
    right: 0;
    font-size: 0.875rem;
    padding: 0.25rem;
    min-width: 8rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(243, 244, 246, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.dark #themes-menu {
    background-color: rgba(17, 24, 39, 0.9);
    border-color: rgba(107, 114, 128, 0.2);
}

#themes-menu.open {
    display: block;
    transform: scale(1);
    animation: fadeIn 0.2s ease-out;
}

#themes-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.themes-menu-option {
    padding: 0.5rem 0.5rem;
    cursor: pointer;
    border-radius: 0.125rem;
}

.themes-menu-option:hover {
    background-color: rgba(209, 213, 219, 0.4);
}

.dark .themes-menu-option:hover {
    background-color: rgba(107, 114, 128, 0.5);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 640px) {
    nav {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    nav a {
        padding: 0.25rem;
    }
}
