/* 基础样式与重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

:root {
--primary-color: #2c3e50;
--accent-color: #3498db;
--light-color: #f8f9fa;
--dark-color: #212529;
--text-color: #333;
--text-light: #6c757d;
--transition: all 0.3s ease;
}

html {
scroll-behavior: smooth;
}

body {
color: var(--text-color);
line-height: 1.6;
background-color: var(--light-color);
}

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

section {
padding: 80px 0;
}

h1, h2, h3, h4 {
margin-bottom: 20px;
font-weight: 600;
color: var(--primary-color);
}

p {
margin-bottom: 15px;
color: var(--text-light);
}

a {
text-decoration: none;
color: var(--accent-color);
transition: var(--transition);
}

.btn {
display: inline-block;
padding: 12px 28px;
background-color: var(--accent-color);
color: white;
border-radius: 4px;
font-weight: 500;
transition: var(--transition);
border: none;
cursor: pointer;
}

.btn:hover {
background-color: var(--primary-color);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.section-title {
position: relative;
margin-bottom: 40px;
padding-bottom: 15px;
text-align: center;
}

.section-title::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background-color: var(--accent-color);
}

/* 导航栏 */
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: rgba(255, 255, 255, 0.95);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
padding: 15px 0;
}

nav {
display: flex;
justify-content: space-between;
align-items: center;
}

.logo {
font-size: 24px;
font-weight: 700;
color: var(--primary-color);
}

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

.nav-links li {
margin-left: 30px;
}

.nav-links a {
color: var(--text-color);
font-weight: 500;
}

.nav-links a:hover {
color: var(--accent-color);
}

/* 英雄区域 */
.hero {
height: 100vh;
display: flex;
align-items: center;
background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
position: relative;
overflow: hidden;
}

.hero-content {
max-width: 600px;
z-index: 1;
}

.hero h1 {
font-size: 3.5rem;
margin-bottom: 20px;
color: var(--primary-color);
animation: fadeIn 1s ease;
}

.hero p {
font-size: 1.2rem;
margin-bottom: 30px;
color: var(--dark-color);
animation: fadeIn 1.5s ease;
}

.hero-bg {
position: absolute;
right: 0;
bottom: 0;
width: 50%;
height: 100%;
background: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center right/cover;
clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* 关于部分 */
.about-content {
display: flex;
align-items: center;
gap: 40px;
}

.about-text {
flex: 1;
}

.about-image {
flex: 1;
text-align: center;
}

.about-image img {
max-width: 100%;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 技能部分 */
.skills-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 30px;
}

.skill-card {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease;
text-align: center;
}

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

.skill-card i {
font-size: 2.5rem;
color: var(--accent-color);
margin-bottom: 20px;
}

/* 联系部分 */
.contact-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 40px;
}

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

.contact-item {
display: flex;
align-items: center;
gap: 15px;
}

.contact-item i {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--accent-color);
color: white;
border-radius: 50%;
}

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

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

.form-group label {
font-weight: 500;
}

.form-group input,
.form-group textarea {
padding: 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
}

.form-group textarea {
min-height: 150px;
resize: vertical;
}

/* 页脚 */
footer {
background-color: var(--primary-color);
color: white;
padding: 40px 0;
text-align: center;
}

.social-links {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 20px;
}

.social-links a {
color: white;
font-size: 1.5rem;
}

/* 动画 */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

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

.hero-content {
text-align: center;
max-width: 100%;
}

.hero h1 {
font-size: 2.5rem;
}

.about-content {
flex-direction: column;
}

.nav-links {
display: none;
}

.section-title {
font-size: 1.8rem;
}
}