/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    padding: 40px;
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
/* 添加上下弹跳动画 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* 头部样式 */
header {
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

header p {
    font-size: 1.1rem;
    color: #666;
}

/* 单个链接样式 */
.single-link-container {
    margin-bottom: 40px;
    position: relative;
}

.main-link-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.main-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.main-link-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.main-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

.link-icon {
    font-size: 2.5rem;
    margin-right: 20px;
}

.link-content {
    flex: 1;
    text-align: left;
}

.link-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

.link-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.arrow-icon {
    font-size: 1.8rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.main-link-card:hover .arrow-icon {
    transform: translateX(5px);
}

/* 添加上下弹跳动画 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 修改主链接卡片样式，添加弹跳动画 */
.main-link-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    animation: bounce 3s ease-in-out infinite;
}
/* 底部样式 */
footer {
    font-size: 0.9rem;
    color: #999;
    margin-top: 20px;
}

/* 微信提示弹窗样式 - 强制版本 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.5s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.wechat-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.modal-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.important-note {
    font-size: 1.1rem;
    color: #e74c3c;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 600;
}

.wechat-instruction {
    margin-bottom: 25px;
}

.instruction-step {
    background: #f8f9fa;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-weight: 500;
    color: #555;
    border-left: 4px solid #667eea;
    text-align: left;
}

.wechat-guide-image {
    background: #f1f3f4;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-step {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.guide-step:nth-child(1) {
    top: -20px;
    right: -20px;
}

.guide-step:nth-child(2) {
    bottom: -20px;
    left: -20px;
    background: #764ba2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .main-link-card {
        flex-direction: column;
        text-align: center;
    }
    
    .link-content {
        text-align: center;
        margin: 15px 0;
    }
    
    .arrow-icon {
        margin-top: 10px;
    }
}

/* 添加链接点击动画效果 */
.main-link-card:active {
    transform: scale(0.98);
}