/**
 * unblock.aikex.ink PC 营销站增强样式
 * 页面切换、支付弹窗、布局壳层、响应式细节
 */

/* 页面切换相关样式 - 优化动画效果 */
        .page-section {
            display: none;
            opacity: 0;
            transform: translateY(15px);
            transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: opacity, transform;
        }
        
        .page-section.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
            animation: pageSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        .page-section.fade-out {
            opacity: 0;
            transform: translateY(-8px);
        }
        
        @keyframes pageSlideIn {
            0% {
                opacity: 0;
                transform: translateY(20px) scale(0.99);
            }
            60% {
                opacity: 0.9;
                transform: translateY(-2px) scale(1);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        /* 内容区域淡入动画 */
        .page-section.active .hl-hero,
        .page-section.active .hl-section,
        .page-section.active .hl-services {
            animation: contentFadeIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both;
        }
        
        @keyframes contentFadeIn {
            from {
                opacity: 0;
                transform: translateY(12px);
            }
            60% {
                opacity: 0.9;
                transform: translateY(-1px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 卡片样式统一 - 移除重复定义，使用all.css中的样式 */
        
        /* 导航栏切换动画 - 简化，避免与all.css冲突 */
        .nav-link.hl-active::after {
            width: 80%;
            transform: translateX(-50%) scaleX(1);
        }
        
        /* 按钮样式 - 使用all.css中的定义，避免重复 */
        .hl-service-purchase-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }
        
        /* 加载动画 */
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* 卡片动画 - 简化，避免与all.css冲突 */
        @keyframes cardSlideIn {
            from {
                opacity: 0;
                transform: translateY(25px) scale(0.97);
            }
            60% {
                opacity: 0.9;
                transform: translateY(-2px) scale(1);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        /* 快捷入口样式 - 使用all.css中的定义，避免重复 */
        
        /* 统一页面布局和滚动 - 避免重复定义 */
        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
            overflow-y: scroll; /* 始终显示滚动条，避免宽度变化 */
            height: 100%;
        }
        
        body {
            overflow-x: hidden !important;
            overflow-y: auto !important;
            height: auto !important;
            min-height: 100vh;
            padding-right: 0 !important;
            }
        
        .hl-main {
            position: relative;
            min-height: 100vh;
            overflow-x: hidden;
            overflow-y: visible;
            width: 100%;
            height: auto;
        }
        
        .hl-container {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        
        .page-section {
            width: 100%;
            height: auto;
            overflow: visible;
            position: relative;
        }
        
        .page-section.active {
            overflow: visible;
        }
        
        /* 优化文字显示 */
        .hl-hero-title,
        .hl-section-title {
            animation: textFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
        }
        
        @keyframes textFadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 支付方式选择弹窗 - 优化 */
        .payment-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px) saturate(180%);
            -webkit-backdrop-filter: blur(8px) saturate(180%);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .payment-modal.active {
            display: flex;
            animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }
        @keyframes modalFadeIn {
            from { 
                opacity: 0;
                backdrop-filter: blur(0px);
            }
            to { 
                opacity: 1;
                backdrop-filter: blur(8px) saturate(180%);
            }
        }
        .payment-modal-content {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 36px;
            max-width: 540px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 32px 96px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.3);
            transform: scale(0.9) translateY(20px);
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
            border: 1px solid rgba(255, 255, 255, 0.8);
        }
        .payment-modal.active .payment-modal-content {
            transform: scale(1) translateY(0);
            box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 12px 32px rgba(0, 0, 0, 0.4);
        }
        .payment-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 28px;
            padding-bottom: 20px;
            border-bottom: 2px solid rgba(0, 0, 0, 0.06);
        }
        .payment-modal-title {
            font-size: 22px;
            font-weight: 700;
            color: #1a1a1a;
            letter-spacing: -0.02em;
        }
        .payment-modal-close {
            background: rgba(0, 0, 0, 0.04);
            border: none;
            font-size: 20px;
            color: #6b7280;
            cursor: pointer;
            padding: 0;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .payment-modal-close:hover {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
            transform: rotate(90deg) scale(1.1);
        }
        .payment-modal-close:active {
            transform: rotate(90deg) scale(0.95);
        }
        .payment-method-list {
            margin-bottom: 24px;
        }
        .payment-method-item {
            border: 2px solid #e5e7eb;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 14px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 16px;
            position: relative;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        .payment-method-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.15), transparent);
            transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 0;
        }
        .payment-method-item:hover::before {
            left: 100%;
        }
        .payment-method-item:hover {
            border-color: #22c55e;
            background: linear-gradient(135deg, rgba(240, 253, 244, 0.9) 0%, rgba(220, 252, 231, 0.9) 100%);
            transform: translateX(6px) translateY(-2px);
            box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2), 0 2px 8px rgba(34, 197, 94, 0.1);
        }
        .payment-method-item.active {
            border-color: #22c55e;
            background: linear-gradient(135deg, rgba(220, 252, 231, 0.95) 0%, rgba(187, 247, 208, 0.95) 100%);
            box-shadow: 0 8px 28px rgba(34, 197, 94, 0.3), 0 4px 12px rgba(34, 197, 94, 0.15);
            transform: translateX(6px) translateY(-2px);
            border-width: 3px;
        }
        .payment-method-icon,
        .payment-method-info {
            position: relative;
            z-index: 1;
        }
        .payment-method-icon {
            font-size: 32px;
            width: 48px;
            text-align: center;
        }
        .payment-method-info {
            flex: 1;
        }
        .payment-method-name {
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 4px;
        }
        .payment-method-desc {
            font-size: 13px;
            color: #6b7280;
        }
        .payment-confirm-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
            color: white;
            border: none;
            border-radius: 14px;
            font-size: 17px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4), 0 2px 8px rgba(34, 197, 94, 0.2);
            position: relative;
            overflow: hidden;
            letter-spacing: 0.3px;
        }
        .payment-confirm-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        .payment-confirm-btn:hover:not(:disabled)::before {
            width: 400px;
            height: 400px;
        }
        .payment-confirm-btn:hover:not(:disabled) {
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(34, 197, 94, 0.5), 0 4px 12px rgba(34, 197, 94, 0.3);
            background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
        }
        .payment-confirm-btn:active:not(:disabled) {
            transform: translateY(-1px) scale(0.98);
            transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .payment-confirm-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        .selected-service-info, .selected-plan-info, .selected-qualification-info, .selected-miniprogram-info {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 20px;
        }
        .selected-service-name, .selected-plan-name, .selected-qualification-name, .selected-miniprogram-name {
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 8px;
        }
        .selected-service-price, .selected-plan-price, .selected-qualification-price, .selected-miniprogram-price {
            font-size: 24px;
            font-weight: 700;
            color: #07c160;
        }

/* ── 布局壳层 ── */
.hl-page {
    width: 100%;
    min-height: 100vh;
    background: #f8fafc;
}

.hl-main {
    padding-bottom: 24px;
}

.hl-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

body.has-legacy-notice .hl-header {
    top: 44px;
}

.hl-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hl-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
}

.hl-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ub-brand, #0d9488), var(--ub-brand-dark, #0f766e));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.hl-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    position: relative;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

.nav-link.hl-active {
    background: var(--ub-brand-light, #ccfbf1);
}

.hl-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.hl-user-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.hl-user-avatar {
    border-radius: 8px;
    object-fit: cover;
}

.hl-user-name {
    font-size: 13px;
    color: #4b5563;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hl-btn-sm {
    padding: 8px 14px !important;
    font-size: 13px !important;
}

.hl-nav-toggle {
    display: none;
    border: none;
    background: #f1f5f9;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #334155;
    margin-left: auto;
}

/* 卡片内容 */
.hl-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.hl-service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    height: 100%;
}

.hl-service-media {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdfa, #ecfeff);
    overflow: hidden;
}

.hl-service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hl-service-body {
    padding: 18px 18px 12px;
    flex: 1;
}

.hl-service-name {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 8px;
}

.hl-service-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hl-service-footer {
    padding: 14px 18px 18px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.hl-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.hl-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    font-size: 12px;
}

.hl-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.hl-quick-item {
    text-decoration: none;
    color: inherit;
    padding: 16px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hl-quick-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.hl-quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
}

.hl-quick-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.hl-quick-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.hl-quick-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eff6ff;
    color: #475569;
    font-size: 13px;
}

.hl-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #94a3b8;
}

.hl-empty-state i {
    font-size: 42px;
    margin-bottom: 12px;
    opacity: 0.45;
    display: block;
}

.hl-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 0;
    font-size: 13px;
}

.hl-footer-links a {
    color: var(--ub-muted, #64748b);
    text-decoration: none;
    margin-left: 16px;
}

.hl-footer-links a:hover {
    color: var(--ub-brand-dark, #0f766e);
}

.hl-section {
    padding: 48px 0;
}

.hl-services {
    padding: 48px 0;
}

.hl-section-sub {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 6px;
}

@media (max-width: 900px) {
    .hl-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hl-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
        padding: 12px 20px 16px;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    }

    .hl-nav.is-open {
        display: flex;
    }

    .hl-header {
        position: sticky;
    }

    .hl-header-inner {
        flex-wrap: wrap;
        position: relative;
    }

    .hl-header-actions .hl-user-name {
        display: none;
    }

    .hl-service-grid {
        grid-template-columns: 1fr;
    }

    .payment-modal-content {
        padding: 24px 20px !important;
        border-radius: 18px !important;
    }
}