* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066cc;
    --dark-blue: #004499;
    --light-blue: #3399ff;
    --lighter-blue: #66b3ff;
    --bg-blue: #f0f7ff;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --shadow: rgba(0, 102, 204, 0.2);
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--bg-blue);
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 搜索框样式 */
.search-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.search-box {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.2rem 3rem 1.2rem 1.5rem;
    font-size: 1.2rem;
    border: 3px solid var(--primary-blue);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 4px 15px var(--shadow);
}

.search-input:focus {
    border-color: var(--light-blue);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-blue);
    pointer-events: none;
}

/* 内容区域 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-blue);
    text-align: center;
    margin: 3rem 0;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: 2px;
}

/* 作品卡片网格 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: var(--light-blue);
}

.project-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-blue);
    display: block;
}

.project-info {
    padding: 1.5rem;
    text-align: center;
}

.project-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.project-author {
    font-size: 1rem;
    color: var(--text-light);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1.3rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-button {
    padding: 0.8rem 1.2rem;
    background: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    color: var(--primary-blue);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.pagination-button:hover:not(:disabled) {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination-button.active {
    background: var(--primary-blue);
    color: var(--white);
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 作品详情页样式 */
.project-detail {
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.back-button:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.project-frame-container {
    width: 100%;
    height: calc(100vh - 150px);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    background: var(--white);
}

.project-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .search-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .search-input {
        padding: 1rem 2.5rem 1rem 1.2rem;
        font-size: 1rem;
    }

    .search-icon {
        right: 1.2rem;
        font-size: 1.2rem;
    }

    .container {
        padding: 0 1rem 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin: 2rem 0;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .project-cover {
        height: 150px;
    }

    .project-info {
        padding: 1rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-author {
        font-size: 0.9rem;
    }

    .pagination {
        gap: 0.3rem;
        margin-top: 2rem;
    }

    .pagination-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 40px;
    }

    .project-detail {
        padding: 1rem;
    }

    .project-frame-container {
        height: calc(100vh - 120px);
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeIn 0.5s ease;
}

