/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #333; /* 默认文本颜色，在浅色卡片上更清晰 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 3px;
}

header p {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* 图片加载时的样式 */
.screenshot-item img {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    display: block;
    /* 添加备用背景 */
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}

/* 图片加载失败时的样式 */
.image-error {
    color: #ff6b6b;
    padding: 20px;
    text-align: center;
    background: rgba(255,107,107,0.1);
    border-radius: 8px;
    font-size: 0.9em;
    margin: 10px 0;
}

/* 主内容区 */
main {
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    color: white;
    margin: 50px 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 项目卡片网格 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 20px 20px 0 0;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.project-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-card h3 {
    font-size: 1.4em;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card a:hover h3 {
    color: #667eea;
}

.project-description {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #764ba2;
    gap: 12px;
}

/* 特色卡片样式 (影视类) */
.featured-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* 保持特色卡片在移动端和PC端都为单列 */
.featured-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.featured-card::before {
     background: linear-gradient(90deg, #ffd700, #ffed4e, #f093fb);
}

.featured-card h3,
.featured-card p {
    color: white;
}

.featured-card .project-icon {
    color: #ffd700;
    -webkit-text-fill-color: #ffd700;
}

.featured-card .project-link {
    color: #ffed4e;
}

.featured-card .project-link:hover {
    color: #ffd700;
}

.featured-card .tag {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.featured-card strong {
    color: #ffed4e;
}

/* 影视站悬停效果修正 */
.featured-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.featured-card:hover h3,
.featured-card:hover .project-description {
    color: white;
}

/* 软件截图 */
.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.screenshot-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.screenshot-item img {
    width: 50%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto 10px auto;
}

.screenshot-item img:hover {
    transform: scale(1.05);
}

.screenshot-item .caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    line-height: 1.4;
    margin-top: 10px;
    font-weight: 400;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(200, 220, 200, 0.3);
    margin-top: 40px;
}

.contact-info {
    color: #5a6b5a;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-info i {
    font-size: 1.2em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 2.5em;
        letter-spacing: 1px;
    }

    header p {
        font-size: 1.1em;
    }

    .projects-grid, .featured-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .project-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 15px;
    }

    header h1 {
        font-size: 2em;
    }

    .project-card {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 灯箱样式 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

#lightbox-caption {
    text-align: center;
    color: white;
    font-size: 1.2em;
    margin-top: 20px;
    padding: 0 20px;
    max-width: 80%;
}

.image-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1em;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #fff;
    background: rgba(255, 0, 0, 0.7);
    transform: scale(1.1);
}

/* 导航按钮 */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* 图片点击指针 */
.lightbox-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lightbox-content img {
        max-width: 95%;
        max-height: 70%;
    }
    
    .close-btn {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    #lightbox-caption {
        font-size: 1em;
        max-width: 95%;
    }
    
    .image-counter {
        top: 60px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox-content img {
        max-height: 60%;
    }
}

.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; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }

/* 电脑、平板等大屏幕设备样式 */
.screenshot-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    overflow-x: auto;
    padding: 15px 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
}

/* Webkit浏览器滚动条样式 */
.screenshot-horizontal::-webkit-scrollbar {
    height: 6px;
}

.screenshot-horizontal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.screenshot-horizontal::-webkit-scrollbar-track {
    background: transparent;
}

.screenshot-horizontal .screenshot-item {
    min-width: 280px;
    max-width: 280px;
    flex: 0 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.screenshot-horizontal .screenshot-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.screenshot-horizontal .screenshot-item img {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    display: block;
}

.screenshot-horizontal .screenshot-item img:hover {
    transform: scale(1.03);
}

.screenshot-horizontal .screenshot-item .caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    line-height: 1.4;
    margin-top: auto;
    font-weight: 400;
    padding: 5px 0;
}

/* 针对手机等小屏设备优化 */
@media (max-width: 768px) {
    .screenshot-horizontal {
        /* 隐藏水平滚动条，防止误操作 */
        overflow-x: hidden;
        /* 允许项目换行，实现垂直布局 */
        flex-wrap: wrap;
        /* 居中显示项目 */
        justify-content: center;
        /* 移除水平方向的间距 */
        padding: 0;
        /* 增加项目之间的垂直间距 */
        gap: 15px 0;
    }

    .screenshot-horizontal .screenshot-item {
        /* 宽度设置为90%，每行只显示一个项目 */
        min-width: 90%;
        max-width: 90%;
        /* 增加底部间距 */
        margin-bottom: 10px;
        padding: 12px;
    }

    .screenshot-horizontal .screenshot-item img {
        /* 高度自适应，以保持图片宽高比 */
        height: auto;
    }
}
解释