/* 重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body, html {
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(270deg, #ff0080, #7928ca, #2afadf, #00ff88);
    background-size: 800% 800%;
    animation: moveGradient 20s ease infinite;
    color: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 流动渐变背景 */
.gradient-bg {
    display: none;
}

/* 内容容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    position: relative;
    z-index: 20;
    flex: 1;
}

/* 问候语样式 - 蓝色毛玻璃背景 */
.greeting-container {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 30px;
    background: rgba(25, 50, 80, 0.35); /* 蓝色调背景 */
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(100, 180, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 20, 40, 0.4);
    animation: fadeIn 1s ease-out;
    position: relative;
    overflow: hidden;
}

.greeting-container h1 {
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #a0d8ff, #4fc3f7, #29b6f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* 波浪动画 */
.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" fill="rgba(41, 182, 246, 0.2)"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z"></path></svg>');
    background-size: 50% 100px;
    animation: waveMove 10s linear infinite;
    opacity: 0.6;
}

.wave:nth-child(2) {
    animation-delay: -5s;
    animation-duration: 15s;
    opacity: 0.4;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" fill="rgba(3, 169, 244, 0.15)"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z"></path></svg>');
}

.wave:nth-child(3) {
    animation-delay: -2s;
    animation-duration: 12s;
    opacity: 0.2;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" fill="rgba(79, 195, 247, 0.1)"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z"></path></svg>');
}

/* 卡片容器 */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 卡片基础样式 */
.card {
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4fc3f7, #03a9f4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 2;
}

.card:hover::before {
    transform: scaleX(1);
}

/* 毛玻璃卡片样式（默认） */
.card.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card.glass .card-title {
    color: #4fc3f7;
}

.card.glass .card-content {
    color: #ccefff;
}

/* 带背景图的卡片样式 */
.card.image-bg {
    background-size: cover;
    background-position: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card.image-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 1;
}

.card.image-bg .card-title {
    color: #ffffff;
}

.card.image-bg .card-content {
    color: #f0f0ff;
}

/* 卡片内容样式 */
.card-content-inner {
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4fc3f7, #03a9f4);
    border-radius: 2px;
}

.card-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* 加载状态 */
.loading-container {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #29b6f6;
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s linear infinite;
}

.loading-container p {
    font-size: 1.2rem;
    color: #90caf9;
}

/* 错误状态 */
.error-container {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    grid-column: 1 / -1;
}

.error-icon {
    font-size: 4rem;
    color: #f44336;
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.5rem;
    color: #ff9e9e;
}

/* 底部样式 - 圆角设计 */
footer {
    width: 100%;
    z-index: 30;
    background: rgba(25, 25, 35, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(100, 180, 255, 0.3);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

.footer-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #4fc3f7;
    text-shadow: 0 0 15px rgba(79, 195, 247, 0.5);
}

.copyright {
    font-size: 1rem;
    color: #90caf9;
    opacity: 0.8;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes waveMove {
    0% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
    100% { transform: translateX(-50%); }
}

/* 响应式设计 */
@media (max-width: 900px) {
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .greeting-container h1 {
        font-size: 3.5rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    ..card {
    min-height: 200px; /* 减小卡片最小高度 */
    padding: 25px; /* 稍微减小内边距 */
}
    
    .footer-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .greeting-container {
        padding: 30px 20px;
    }
    
    .greeting-container h1 {
        font-size: 2.8rem;
    }
    
    .card {
        padding: 20px;
        min-height: 220px;
    }
    
    .card-title {
        font-size: 1.6rem;
    }
    
    .footer-title {
        font-size: 1.8rem;
    }
}

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