/* Web网站样式 - 上门按摩服务 */

/* 基础样式 */
:root {
    --primary-gradient: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    --secondary-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* 渐变背景 */
.gradient-primary {
    background: var(--primary-gradient);
}

.gradient-secondary {
    background: var(--secondary-gradient);
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.card-shadow {
    box-shadow: var(--card-shadow);
}

.card-shadow-hover:hover {
    box-shadow: var(--card-shadow-hover);
}

/* 按钮样式 */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #6B7280;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

/* Hero区域 */
.hero-section {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

/* 服务卡片 */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-8px);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* 技师卡片 */
.technician-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.technician-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.technician-avatar {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 套餐卡片 */
.package-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.package-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #EF4444;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* 订单卡片 */
.order-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: var(--card-shadow-hover);
}

/* 模态框 */
.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    animation: modalSlideIn 0.3s ease;
}

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

/* Toast提示 */
.toast {
    animation: toastSlideIn 0.3s ease, toastFadeOut 0.3s ease 2.7s;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* 加载动画 */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8B5CF6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* 表单样式 */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* 徽章样式 */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #D1FAE5;
    color: #059669;
}

.badge-warning {
    background: #FEF3C7;
    color: #D97706;
}

.badge-danger {
    background: #FEE2E2;
    color: #DC2626;
}

.badge-info {
    background: #DBEAFE;
    color: #2563EB;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }

    .service-card {
        padding: 16px;
    }

    .service-icon {
        width: 48px;
        height: 48px;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8B5CF6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* 导航链接激活状态 */
.nav-link.active {
    background: #EDE9FE;
    color: #7C3AED;
}
