/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #121212;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 语言切换按钮 */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-switch button {
    background: #333;
    color: #aaa;
    border: 1px solid #444;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.lang-switch button:first-child {
    border-radius: 4px 0 0 4px;
}

.lang-switch button:last-child {
    border-radius: 0 4px 4px 0;
}

.lang-switch button.active {
    background: #4CAF50; /* Unity Green */
    color: #fff;
    border-color: #4CAF50;
}

.lang-switch button:hover:not(.active) {
    background: #444;
}

/* 头部导航 */
header {
    background: #1f1f1f;
    padding: 20px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 999;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    color: #fff;
}

header nav a {
    color: #aaa;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
    font-weight: 500;
}

header nav a:hover {
    color: #4CAF50;
}

/* Hero 区域 */
.hero {
    /* 使用深色渐变背景，更加极客 */
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 1px solid #333;
    height: 450px;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.hero p {
    font-size: 1.1rem;
    color: #bbb;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.hero .btn {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.hero .btn:hover {
    background: #45a049;
}

/* 通用板块 */
.section {
    padding: 80px 0;
}

.section h3 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #fff;
    position: relative;
}

/* 标题下的小横线装饰 */
.section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #4CAF50;
    margin: 10px auto 0;
}

.bg-dark {
    background-color: #181818;
}

/* 文本区域 */
#about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #ccc;
}

/* 项目卡片 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

.project-card {
    background: #252525;
    padding: 30px;
    border-radius: 6px;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #4CAF50;
}

.project-card h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-card ul {
    margin: 20px 0 20px 20px;
    color: #bbb;
}

.status {
    display: inline-block;
    font-size: 0.8rem;
    background: #333;
    padding: 6px 12px;
    border-radius: 20px;
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

/* 联系方式 */
.contact-box {
    text-align: center;
    background: #1f1f1f;
    padding: 40px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid #333;
}

.email-link {
    color: #4CAF50;
    font-size: 1.3rem;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.email-link:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 30px;
    background: #000;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #222;
}

/* 移动端适配 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    header nav {
        margin-top: 15px;
    }

    .lang-switch {
        top: 10px;
        right: 10px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
}