/* 全局样式 */
:root {
    --primary-color: #007bff;
    --text-color: #333;
    --bg-color: #fff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

/* Hero 部分样式 */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.98)),
                url('background.jpg') center/cover no-repeat fixed;
    padding-top: 80px;
    display: flex;
    align-items: center;
}

.hero-content {
    transform: translateY(-5%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
.footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
}

.beian-info {
    margin-bottom: 1rem;
}

.beian-info a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian-info a:hover {
    color: var(--primary-color);
}

.beian-info img {
    vertical-align: middle;
    margin-right: 5px;
}

.divider {
    margin: 0 10px;
    color: #ccc;
}

.copyright {
    color: #999;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        margin-bottom: 1rem;
    }
}

/* 关于部分样式 */
.about-content {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.skill-item i {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.skill-item span {
    font-size: 0.9rem;
    color: #666;
}

/* 联系表单样式 */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-control {
    border: 1px solid #e0e0e0;
    padding: 0.8rem;
    border-radius: 8px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.1);
}

.form-label {
    color: #555;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    padding: 0.8rem 3rem;
    margin-top: 1rem;
}
