
/* --- Global Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1, h2, h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: #ffffff;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #00BFFF;
    margin: 10px auto 0;
    border-radius: 2px;
}

a {
    color: #00BFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1E90FF;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 100px 20px 60px;
}

/* 由 CSS 创建的头像 */
.css-profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00BFFF, #1E90FF);
    color: #121212;
    font-size: 4rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    border: 4px solid #00BFFF;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 30px;
}

/* SVG 图标样式 */
.social-links a {
    display: inline-block;
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.social-links .icon {
    width: 30px;
    height: 30px;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.social-links a:hover .icon {
    color: #00BFFF;
}

.social-links a:hover {
    transform: scale(1.2);
}


/* --- Skills Section --- */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-item {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px 25px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.2);
    background-color: #00BFFF;
    color: #121212;
}


/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.project-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder h3 {
    color: #ffffff;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 为每个项目卡片设置不同的渐变背景 */
.project-placeholder.style-1 {
    background: linear-gradient(135deg, #00BFFF 0%, #1E90FF 100%);
}
.project-placeholder.style-2 {
    background: linear-gradient(135deg, #FF6347 0%, #FF4500 100%);
}
.project-placeholder.style-3 {
    background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
}

.project-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.project-info p {
    margin-bottom: 20px;
    flex-grow: 1;
}
.project-link {
    font-weight: bold;
    align-self: flex-start;
}

/* --- Contact Section --- */
#contact {
    text-align: center;
}
#contact p {
    max-width: 600px;
    margin: 0 auto 30px;
}
.cta-button {
    display: inline-block;
    background-color: #00BFFF;
    color: #121212;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #1e1e1e;
    border-top: 1px solid #333;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
}
