/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 蓝橙渐变主题颜色 */
    --gradient-blue: #64b5f6;
    --gradient-cyan: #4dd0e1;
    --gradient-yellow: #ffb74d;
    --gradient-orange: #ffa726;
    --text-primary: #ffffff;
    --text-secondary: #263238;
    --bg-light: #f5f5f7;
    --bg-white: rgba(255, 255, 255, 0.9);
    --accent-blue: #42a5f5;
    --accent-orange: #ff9800;
    --shadow-light: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航样式 */
.header {
    background-color: #0f2442;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffb74d;
    opacity: 1;
    transform: scale(1.05);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    opacity: 0.9;
}

/* 主要内容区域样式 */
.section {
    padding: 100px 0;
    scroll-margin-top: 80px;
}

/* 首页区域样式 */
.home {
    text-align: center;
    padding-top: 120px;
    background: linear-gradient(180deg, var(--gradient-blue) 0%, var(--gradient-cyan) 30%, var(--gradient-yellow) 70%, var(--gradient-orange) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.home h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.intro {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* 关于我区域样式 */
.about {
    background-color: var(--bg-white);
}

.section h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #1d1d1f;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.about-text {
    padding: 32px 40px;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.about-text p {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
    line-height: 1.8;
    text-align: center;
    margin-top: 0;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
}

.about-tags span {
    display: inline-block;
    font-size: 15px;
    color: var(--text-secondary);
    padding: 12px 22px;
    background-color: #f5f5f7;
    border-radius: 12px;
    border: 1px solid #e8e8ed;
    transition: all 0.3s ease;
    font-weight: 500;
}

.about-tags span:hover {
    background-color: var(--gradient-orange);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 183, 77, 0.3);
    border-color: var(--gradient-orange);
}

.about-hobbies h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
}

.hobby-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hobby-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: #1d1d1f;
    padding: 12px 16px;
    background-color: #f5f5f7;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hobby-list li:hover {
    background-color: #e8e8ed;
    transform: translateX(8px);
}

.hobby-list svg {
    color: #0071e3;
}

/* 技能区域样式 */
.skills {
    background-color: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.skill-card {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.skill-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: #1d1d1f;
}

.skill-card p {
    font-size: 16px;
    color: #86868b;
    line-height: 1.6;
}

/* 联系我区域样式 */
.contact {
    background-color: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    color: #1d1d1f;
    padding: 16px;
    background-color: #f5f5f7;
    border-radius: 8px;
}

.contact-item svg {
    color: #0071e3;
    width: 28px;
    height: 28px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background-color: #f5f5f7;
    color: #1d1d1f;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0071e3;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--gradient-orange);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: start;
}

.btn:hover {
    background-color: var(--gradient-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 183, 77, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* 页脚样式 */
.footer {
    background-color: var(--text-secondary);
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .home h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 20px;
    }

    .intro {
        font-size: 16px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .about-text p,
    .hobby-list li,
    .contact-item {
        font-size: 16px;
    }

    .about-text {
        padding: 24px 32px;
    }

    .about-tags {
        gap: 12px;
    }

    .about-tags span {
        padding: 10px 18px;
        font-size: 14px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section {
        padding: 80px 0;
    }

    .home {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .home h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 18px;
    }

    .section h2 {
        font-size: 24px;
    }

    .skill-card,
    .contact-item {
        padding: 20px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}