/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #ffffff;
    font-size: 16px;
    font-weight: 400;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 400;
    font-size: 14px;
    transition: color 0.2s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover,
.nav-link.active {
    color: #666;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -8px;
    left: 0;
    background-color: #1a1a1a;
    transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主页英雄区域 */
.hero {
    margin-top: 80px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?w=1920&h=1080&fit=crop&crop=entropy&auto=format&q=80') center/cover;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    text-align: left;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
    line-height: 1.6;
    font-weight: 400;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
}

.btn-primary:hover {
    background: transparent;
    color: #1a1a1a;
}

.btn-secondary {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}

.btn-secondary:hover {
    background: #1a1a1a;
    color: white;
}



/* 概览部分 */
.overview {
    padding: 120px 0;
    background: #fafafa;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 80px;
    color: #1a1a1a;
    font-weight: 300;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.2em;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.overview-card {
    background: white;
    padding: 60px 40px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: border-color 0.2s ease;
    position: relative;
}

.overview-card:hover {
    border-color: #e0e0e0;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.overview-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.overview-card p {
    color: #999;
    margin-bottom: 20px;
    font-size: 14px;
}

.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: 300;
    color: #ccc;
}

/* 建筑作品部分 */
.architecture-section {
    padding: 120px 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #999;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1px;
    margin-top: 80px;
    background: #f0f0f0;
}

.project-card {
    background: white;
    overflow: hidden;
    transition: opacity 0.2s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    opacity: 0.9;
}

.project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 50%, #eaeaea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid #ddd;
    position: relative;
}

.placeholder-image::before {
    content: '📷';
    font-size: 24px;
    margin-bottom: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
}

/* 为不同项目添加颜色变化 */
.project-card:nth-child(1) .placeholder-image {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 50%, #e1f5fe 100%);
}

.project-card:nth-child(2) .placeholder-image {
    background: linear-gradient(135deg, #f3e5f5 0%, #fce4ec 50%, #f8f0f5 100%);
}

.project-card:nth-child(3) .placeholder-image {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 50%, #e5f3e5 100%);
}

.project-card:nth-child(4) .placeholder-image {
    background: linear-gradient(135deg, #fff3e0 0%, #fef7ed 50%, #fcf4e4 100%);
}

.project-card:nth-child(5) .placeholder-image {
    background: linear-gradient(135deg, #fce4ec 0%, #fdf0f5 50%, #f9e6ed 100%);
}

.project-card:nth-child(6) .placeholder-image {
    background: linear-gradient(135deg, #e0f2f1 0%, #f0fdf4 50%, #e8f5e8 100%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-details {
    background: white;
    color: #1a1a1a;
    border: none;
    padding: 12px 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
}

.view-details:hover {
    background: #1a1a1a;
    color: white;
}

.project-info {
    padding: 40px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.3;
}

.project-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-meta span {
    border-right: 1px solid #e0e0e0;
    padding-right: 16px;
}

.project-meta span:last-child {
    border-right: none;
    padding-right: 0;
}

.ai-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-meta span {
    border-right: 1px solid #e0e0e0;
    padding-right: 16px;
}

.ai-meta span:last-child {
    border-right: none;
    padding-right: 0;
}

.project-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    background: #f8f8f8;
    color: #666;
    padding: 4px 10px;
    font-size: 11px;
    border: 1px solid #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* AI项目部分 */
.ai-section {
    padding: 120px 0;
    background: #fafafa;
}

.ai-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1px;
    margin-top: 80px;
    background: #f0f0f0;
}

.ai-card {
    background: white;
    overflow: hidden;
    transition: opacity 0.2s ease;
    display: flex;
    flex-direction: column;
}

.ai-card:hover {
    opacity: 0.9;
}

.ai-image {
    height: 200px;
    overflow: hidden;
}

.placeholder-ai {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid #e0e0e0;
    position: relative;
}

.placeholder-ai::before {
    content: '🤖';
    font-size: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
}

/* 为不同AI项目添加颜色变化 */
.ai-card:nth-child(1) .placeholder-ai {
    background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 50%, #e1e5f2 100%);
}

.ai-card:nth-child(1) .placeholder-ai::before {
    content: '🧠';
}

.ai-card:nth-child(2) .placeholder-ai {
    background: linear-gradient(135deg, #e1f5fe 0%, #e0f2f1 50%, #e8f5e8 100%);
}

.ai-card:nth-child(2) .placeholder-ai::before {
    content: '📊';
}

.ai-card:nth-child(3) .placeholder-ai {
    background: linear-gradient(135deg, #fff3e0 0%, #fef7ed 50%, #fcf4e4 100%);
}

.ai-card:nth-child(3) .placeholder-ai::before {
    content: '🎨';
}

.ai-content {
    padding: 40px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ai-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.3;
}



.ai-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 14px;
}

.ai-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.feature {
    background: #f8f8f8;
    color: #666;
    padding: 4px 10px;
    font-size: 11px;
    border: 1px solid #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-link {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    border: 1px solid #1a1a1a;
}

.ai-link:hover {
    background: transparent;
    color: #1a1a1a;
}

/* 关于我部分 */
.about-section {
    padding: 120px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    max-width: none;
}

.about-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    line-height: 1.7;
    font-weight: 400;
}

.about-details h3 {
    color: #1a1a1a;
    margin-bottom: 20px;
    margin-top: 40px;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-details p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 14px;
}

.skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.skill-category h4 {
    color: #999;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
}

.skill-category li::before {
    content: '—';
    color: #ccc;
    position: absolute;
    left: 0;
    font-size: 12px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.placeholder-profile {
    width: 300px;
    height: 300px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 联系方式部分 */
.contact-section {
    padding: 120px 0;
    background: #fafafa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 80px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 30px;
    border: 1px solid #f0f0f0;
    transition: border-color 0.2s ease;
}

.contact-item:hover {
    border-color: #e0e0e0;
}

.contact-icon {
    font-size: 2rem;
    min-width: 60px;
    text-align: center;
}

.contact-text h3 {
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-text p {
    color: #666;
    font-size: 14px;
}

.contact-form {
    background: white;
    padding: 50px 40px;
    border: 1px solid #f0f0f0;
}

.contact-form h3 {
    color: #1a1a1a;
    margin-bottom: 40px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: #fafafa;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    background: white;
}

.form-group textarea {
    resize: vertical;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a:hover {
    color: white;
}

.footer-text p {
    font-size: 14px;
    color: #666;
}

/* 移除图标样式 */
.card-icon {
    display: none;
}

.contact-icon {
    font-size: 18px;
    min-width: 40px;
    text-align: left;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .placeholder-hero {
        width: 300px;
        height: 200px;
        margin-top: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .skills {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .placeholder-profile {
        width: 250px;
        height: 250px;
    }
    
    .projects-grid,
    .ai-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid,
    .ai-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card,
    .ai-card {
        margin: 0 10px;
    }
    
    .placeholder-hero {
        width: 250px;
        height: 180px;
    }
}

/* 滚动行为 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 - 简化 */
.project-card,
.ai-card,
.overview-card {
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}