/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
}

body {
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.navbar-brand a {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar-menu a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    border-bottom-color: #000;
}

/* 英雄区域样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #000;
    padding: 80px 20px;
}

.hero-content {
    max-width: 600px;
}

.hero-content p:first-child {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #666;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p:last-child {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.highlight-pink {
    background-color: #ffb6c1;
    color: #000;
    padding: 0 0.5rem;
    font-weight: 600;
}

.highlight-blue {
    background-color: #add8e6;
    color: #000;
    padding: 0 0.5rem;
    font-weight: 600;
}

.highlight-green {
    background-color: #90ee90;
    color: #000;
    padding: 0 0.5rem;
    font-weight: 600;
}

/* 斜45度移动线条 */
body {
    position: relative;
    overflow-x: hidden;
    background-color: transparent;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 20px
    );
    animation: moveLines 10s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes moveLines {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(200px, 200px);
    }
}

/* 项目展示样式 */
.projects {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 0 20px;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #000;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.project-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.project-link:hover {
    background-color: #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 关于我样式 */
.about {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 0 20px;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #000;
}

.about-content {
    max-width: 800px;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
}

/* 联系我样式 */
.contact {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 0 20px;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #000;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
}

/* 页脚样式 */
.footer {
    background-color: #fff;
    color: #666;
    padding: 2rem;
    border-top: 1px solid #e0e0e0;
}

.footer p {
    font-size: 0.9rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fff;
    color: #000;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p:last-child {
        font-size: 1.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}
