/* 基础重置与变量 */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --font-family: 'Poppins', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.footer a{
    color: #fff;
}
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* 按钮通用样式 */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

.btn:hover {
    background-color: #3a5af7;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 导航栏 */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* 英雄区域 (首页) */
.section-hero {
    padding: 100px 20px 60px;
    background-color: var(--white);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.highlight {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 5px solid var(--primary-color);
}

/* 通用板块样式 */
.section-light {
    padding: 80px 20px;
    background-color: var(--white);
}

.section-dark {
    padding: 80px 20px;
    background-color: var(--dark-color);
    color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: inherit;
}

/* 关于我 */
.about-content {
    line-height: 2;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

/* 技能网格 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    color: var(--dark-color);
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 联系我 */
.contact-text {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.contact-list {
    list-style: none;
    text-align: center;
    font-size: 1.1rem;
    line-height: 2.5;
}

.contact-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    background-color: var(--dark-color);
    color: var(--white);
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
    }
}