/**
 * 首次访问弹窗样式
 */

/* 弹窗遮罩层 */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.welcome-popup.active {
    display: flex;
}

.welcome-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* 弹窗内容 */
.welcome-popup-content {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: welcomePopupSlideIn 0.4s ease;
}

@keyframes welcomePopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 关闭按钮 */
.welcome-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.welcome-popup-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.welcome-popup-close i {
    font-size: 18px;
    color: #6b7280;
}

/* 弹窗头部 */
.welcome-popup-header {
    text-align: center;
    padding: 40px 40px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.welcome-popup-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.welcome-popup-header p {
    font-size: 16px;
    color: #6b7280;
}

/* 弹窗主体 - 卡片容器 */
.welcome-popup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

/* 卡片样式 */
.welcome-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.welcome-card:hover {
    border-color: #f97316;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(249, 115, 22, 0.2);
}

/* 企业卡片特殊样式 */
.enterprise-card {
    border-color: #f97316;
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
}

.enterprise-card:hover {
    box-shadow: 0 20px 40px -10px rgba(249, 115, 22, 0.3);
}

/* 徽章 */
.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* 图标 */
.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 32px;
    color: white;
}

.enterprise-card .card-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

/* 标题 */
.welcome-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

/* 标签 */
.card-tag {
    display: inline-block;
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    width: fit-content;
}

.enterprise-card .card-tag {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

/* 特性列表 */
.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.card-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 10px;
    line-height: 1.5;
}

.card-features li i {
    color: #10b981;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.card-features li strong {
    color: #f97316;
}

/* 按钮 */
.card-action {
    margin-top: auto;
}

.btn-card {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #f3f4f6;
    color: #4b5563;
    text-align: center;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.welcome-card:hover .btn-card {
    background: #f97316;
    color: white;
}

.btn-card-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.welcome-card:hover .btn-card-primary {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .welcome-popup-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .welcome-popup-header {
        padding: 30px 20px 15px;
    }
    
    .welcome-popup-header h2 {
        font-size: 22px;
    }
    
    .welcome-card {
        padding: 25px;
    }
    
    .welcome-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .welcome-popup-content {
        border-radius: 16px;
    }
    
    .welcome-popup-header h2 {
        font-size: 20px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon i {
        font-size: 28px;
    }
}
