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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.header-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 主要内容区域 */
.main {
    padding: 80px 0;
}

.intro {
    text-align: center;
    margin-bottom: 80px;
}

.intro h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: #2d3748;
}

.intro p {
    font-size: 1.125rem;
    color: #718096;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 项目网格 */
.projects {
    margin-bottom: 80px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

/* 项目卡片 */
.project-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.project-icon {
    display: none; /* 隐藏所有图标 */
}

/* 图标已隐藏，保留样式以备将来使用 */

.project-tech {
    background: #f7fafc;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
    margin-top: 0;
}

.project-description {
    color: #718096;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 0.95rem;
    flex-grow: 1;
}

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

.feature-tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    transform: translateY(-1px);
}

/* 项目说明部分 */
.project-note {
    margin-bottom: 80px;
    text-align: center;
}

.note-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
    border-left: 4px solid #667eea;
}

.note-content h3 {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.note-content p {
    color: #718096;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 技术栈部分 */
.tech-stack {
    margin-bottom: 80px;
    text-align: center;
}

.tech-stack h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 48px;
    color: #2d3748;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.tech-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    border-left: 4px solid #667eea;
}

.tech-item:hover {
    transform: translateY(-2px);
}

.tech-name {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.tech-desc {
    color: #718096;
    font-size: 0.875rem;
}

/* 技术亮点部分 */
.highlights {
    margin-bottom: 80px;
    text-align: center;
}

.highlights h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 48px;
    color: #2d3748;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.highlight-item {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.highlight-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.highlight-item p {
    color: #718096;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 40px 0;
}

.footer p {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 60px 0;
    }
    
    .header-title {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
        padding: 0 16px;
    }
    
    .main {
        padding: 60px 0;
    }
    
    .intro h2 {
        font-size: 2rem;
    }
    
    .intro {
        margin-bottom: 60px;
    }
    
    .projects {
        margin-bottom: 60px;
    }
    
    .tech-stack {
        margin-bottom: 60px;
    }
    
    .highlights {
        margin-bottom: 60px;
    }
    
    .project-note {
        margin-bottom: 60px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .project-card {
        padding: 24px;
    }
    
    .project-header {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 20px;
    }
    
    .tech-stack h2,
    .highlights h2 {
        font-size: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .note-content {
        padding: 24px;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 0;
    }
    
    .header-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .main {
        padding: 40px 0;
    }
    
    .intro h2 {
        font-size: 1.75rem;
    }
    
    .intro {
        margin-bottom: 40px;
    }
    
    .projects,
    .tech-stack,
    .highlights,
    .project-note {
        margin-bottom: 40px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.25rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .tech-stack h2,
    .highlights h2 {
        font-size: 1.75rem;
    }
    
    .highlight-item {
        padding: 24px 20px;
    }
    
    .highlight-icon {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .note-content {
        padding: 20px;
    }
    
    .note-content h3 {
        font-size: 1.1rem;
    }
    
    .note-content p {
        font-size: 0.9rem;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .header-title {
        font-size: 1.75rem;
    }
    
    .project-card {
        padding: 16px;
    }
    
    .project-features {
        gap: 6px;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .note-content {
        padding: 16px;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }

.highlight-item {
    animation: fadeInUp 0.6s ease forwards;
}

.highlight-item:nth-child(1) { animation-delay: 0.2s; }
.highlight-item:nth-child(2) { animation-delay: 0.3s; }
.highlight-item:nth-child(3) { animation-delay: 0.4s; }
.highlight-item:nth-child(4) { animation-delay: 0.5s; }

/* 平板横屏适配 */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
}