/* 小清新SVG背景样式 */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

/* 主背景图案 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 1;
    background-image: url('../images/bg-pattern-enhanced.svg');
    background-size: 300px 300px;
    background-repeat: repeat;
    background-position: 0 0;
    animation: backgroundMove 45s linear infinite;
}

@keyframes backgroundMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 300px 300px;
    }
}

/* 叠加的细节图案 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    background-image: 
        /* 小圆点图案 - 增加透明度 */
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%233498db' fill-opacity='0.2'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3C/g%3E%3C/svg%3E"),
        /* 十字图案 - 增加透明度 */
        url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%2327ae60' stroke-width='0.8' stroke-opacity='0.15'%3E%3Cpath d='M15,5 L15,25 M5,15 L25,15'/%3E%3C/g%3E%3C/svg%3E"),
        /* 添加菱形图案 */
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%235dade2' stroke-width='0.5' stroke-opacity='0.12'%3E%3Cpolygon points='20,10 30,20 20,30 10,20'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 20px 20px, 60px 60px, 80px 80px;
    background-position: 0 0, 30px 30px, 40px 40px;
}

/* 顶部装饰条 */
.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        #3498db 0%, 
        #27ae60 25%, 
        #5dade2 50%, 
        #2ecc71 75%, 
        #3498db 100%);
    background-size: 200% 100%;
    animation: gradientSlide 8s ease-in-out infinite;
    box-shadow: 0 1px 3px rgba(52, 152, 219, 0.2);
}

@keyframes gradientSlide {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
}

/* 浮动装饰元素 */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-elements::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233498db' stroke-width='1.5' stroke-opacity='0.25'%3E%3Ccircle cx='30' cy='30' r='25'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3Ccircle cx='30' cy='30' r='5'/%3E%3C/g%3E%3C/svg%3E");
    animation: float1 12s ease-in-out infinite;
}

.floating-elements::after {
    content: '';
    position: absolute;
    top: 60%;
    right: 15%;
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2327ae60' fill-opacity='0.2'%3E%3Cpolygon points='20,5 35,30 5,30'/%3E%3C/g%3E%3C/svg%3E");
    animation: float2 15s ease-in-out infinite reverse;
}

@keyframes float1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.9;
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-15px) rotate(-180deg);
        opacity: 0.8;
    }
}

/* 卡片背景增强 */
.project-card {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(52, 152, 219, 0.05) !important;
}

.project-card:hover {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(52, 152, 219, 0.1) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body::before {
        background-size: 300px 300px;
        animation-duration: 80s;
    }
    
    body::after {
        background-size: 15px 15px, 45px 45px;
        opacity: 0.25;
    }
    
    .floating-elements::before,
    .floating-elements::after {
        display: none;
    }
}

@media (max-width: 480px) {
    body::before {
        background-size: 250px 250px;
        opacity: 0.5;
    }
    
    body::after {
        background-size: 12px 12px, 35px 35px;
        opacity: 0.2;
    }
    
    .header-decoration {
        height: 2px;
    }
}
