body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

.site-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.site-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin-top: 0;
    font-weight: 300;
}

/* 作品集网格布局 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

/* 作品卡片样式 */
.portfolio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* 悬停遮罩层 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tech {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-content p {
    margin: 0 0 15px 0;
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f8f9fa;
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
}

.slides {
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.slide {
    text-align: center;
}

.slide-placeholder {
    width: 100%;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
}

.tech-detail {
    /* 移除渐变背景 */
    background: transparent;
}

.design-detail {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.web-detail {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.dashboard-detail {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 弹窗控制按钮 */
.close {
    color: white;
    position: absolute;
    top: -45px;
    right: 0;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #bbb;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 16px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.prev:hover, .next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* 底部导航点 */
.dots-container {
    text-align: center;
    padding: 20px 0 10px 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background-color: #4CAF50;
    transform: scale(1.3);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        margin: 15px;
        padding: 15px;
        border-radius: 10px;
    }

    .site-header h1 {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .slide-placeholder {
        height: 400px;
        font-size: 18px;
        background: transparent;
    }
    
    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 16px;
        padding: 0;
        align-items: center;
        justify-content: center;
    }
    
    .prev {
        left: 5px;
    }
    
    .next {
        right: 5px;
    }
    
    .close {
        top: -10px;
        right: 10px;
        color: #333;
    }

    .dots-container {
        padding: 15px 0 5px 0;
    }

    .dot {
        height: 10px;
        width: 10px;
        margin: 0 5px;
    }

    .overlay-text {
        font-size: 16px;
        letter-spacing: 1px;
    }
}

.police-verified-img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: #7f8c8d;
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.slide-img {
    height: 100%;
}

/* QQ联系按钮样式 */
.qq-qr-button {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.qr-icon {
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
