[v-cloak] {
  display: none;
}

/* 全局所有元素的焦点阴影 */
*:focus,
*:focus-visible,
*:active:focus {
    box-shadow: none !important;
    /* 可选：移除默认outline（谨慎需谨慎，可能影响可访问性） */
    /* outline: none !important; */
}

/* 特殊组件的额外处理（部分些些些5的特定组件样式） */
.form-control:focus,
.form-select:focus,
.btn:focus,
.dropdown-toggle:focus,
.nav-link:focus,
.accordion-button:focus,
.modal-content:focus,
.close:focus,
.btn-close:focus,
.page-link:focus,
.form-check-input:focus {
    box-shadow: none !important;
}

header {
    .navbar-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    }

    .nav-link {
        color: #555;
    }

    .nav-link:hover {
        color: #007bff;
    }
    @media (min-width: 992px){
        .navbar-brand{
            width: 70px;
            height: 70px;
        }
    }
    @media (max-width: 991.98px){
        .navbar-brand{
            width: 36px;
            height: 36px;
        }
    }

    &#site-header{
        .dropdown-menu {
            min-width: 450px;
            max-width: 650px;
            /* left: 50% !important;
            transform: translateX(-50%) !important; */
            .dropdown-item:hover { 
                background-color: #f8f9fa;
                color: #0d6efd;
            }
            .main-menu {
                min-width: 180px;
                border-right: 1px solid #eee;
                max-height: 300px;
                overflow-y: auto;
                .dropdown-item {
                    transition: all 0.2s ease;
                    border-radius: 0.25rem;
                    margin: 2px 0;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
                .main-menu-item {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    &.active {
                        background-color: #e9ecef;
                    }
                }

            }
            .sub-menu {
                min-width: 240px;
                min-height: 120px;
                position: relative;
                max-height: 300px;
                .submenu-content {
                    display: none;
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    min-height: 100px;
                    max-height: 300px;
                    background: #fff;
                    z-index: 2;
                    color: #222;
                    overflow-y: auto;
                    overflow-x: hidden;
                    &.active {
                        display: block;
                        z-index: 3;
                    }
                }
            }
        }
    }
    

    @media (max-width: 767.98px) {
        #site-header{
            .dropdown-menu {
                min-width: 280px;
                max-width: 95vw;
                .main-menu {
                    min-width: 120px;
                }
                .sub-menu {
                    max-height: 200px; /* 小屏幕下的最大高度 */
                    .submenu-content {
                        max-height: 200px; /* 小屏幕下的最大高度 */
                    }
                }
            }
        }
    }

    .form-control { 
        height: 46px; /* 举例高度 */
        padding-top: 0;
        padding-bottom: 0;
        line-height: 46px;
    }

    @media (min-width: 992px){
        .form-control {
            min-width: 300px !important;
        }
    }

    .form-control:focus {
        box-shadow: none; /* 移除默认聚焦阴影 */
        border-color: #ced4da; /* 恢复默认边框颜色（非聚焦状态） */
        /* 可选：如果需要完全移除边框变化，可设置为继承父元素样式 */
        /* border-color: inherit; */
    }

    .form-control::placeholder {
        font-size: 1rem;
        line-height: normal; /* 需要时可以调整 */
        vertical-align: middle;
       
    }
}

footer {
    background-color: #f8f9fa; /* Bootstrap 的 light 灰色 */
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
    margin-top: 5rem;
    ul {
        list-style: none;
        padding-left: 0;
        li {
            line-height: 2.5rem;
            a {
                color: #555;
                text-decoration: none;
            }
            &:hover {
                color: #007bff;
            }
        }
    }
}


.text-truncate-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.text-truncate-3 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.text-truncate-4 {
    -webkit-line-clamp: 4;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.text-truncate-5 {
    -webkit-line-clamp: 5;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flying-item {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    font-size: 2rem;
    transform: scale(0);
}

.gray-filter {
    filter: grayscale(1);
    /* 可选：让内容看起来禁用 */
    pointer-events: none;
    opacity: 0.6;
}




#toc {
    position: sticky;
    top: 20px; /* 根据需要调整 */
    max-height: 80vh;
    overflow-y: auto;
    ul {
        list-style: none;
        padding-left: 0;
        li {
            margin-bottom: 5px;
            a {
                text-decoration: none;
                color: #333;
                &:hover {
                    text-decoration: underline;
                }
            }
        }
        ul {
            padding-left: 20px;
        }
    }
}

/* Reveal.js 样式 */
.reveal {
    font-size: 36px; /* 调整字体大小 */
    h1, h2, h3, h4, h5, h6 {
        text-transform: none; /* 取消标题默认的大写转换 */
    }
}



#payment-block{
    /* 自定义模态框样式 */
    .modal-content {
        border: none;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        overflow: hidden;
    }

    .modal-header {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        color: white;
        border: none;
        padding: 1.5rem 2rem;
        position: relative;
    }

    .modal-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706);
    }

    .modal-title {
        font-weight: 600;
        font-size: 1.25rem;
        display: flex;
        align-items: center;
    }

    .modal-body {
        padding: 2rem;
        background: #fafafa;
    }

    .payment-option {
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 15px;
        padding: 1.5rem;
        margin-bottom: 1rem;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .payment-option:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .payment-option.selected {
        border-color: #6366f1;
        background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    }

    .payment-option.selected::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #6366f1, #8b5cf6);
    }

    .payment-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: white;
        margin-right: 1rem;
    }

    .wechat-icon {
        background: linear-gradient(135deg, #07c160 0%, #059652 100%);
    }

    .alipay-icon {
        background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    }

    .payment-info h6 {
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #1f2937;
    }

    .payment-info p {
        color: #6b7280;
        margin: 0;
        font-size: 0.9rem;
    }

    .check-icon {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 24px;
        height: 24px;
        background: #10b981;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        opacity: 0;
        transform: scale(0);
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .payment-option.selected .check-icon {
        opacity: 1;
        transform: scale(1);
    }

    .btn-payment {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        border: none;
        color: white;
        padding: 0.75rem 2rem;
        border-radius: 50px;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .btn-payment:hover {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
        color: white;
    }

    .btn-payment:disabled {
        background: #9ca3af;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .btn-secondary-custom {
        background: white;
        border: 2px solid #e5e7eb;
        color: #6b7280;
        padding: 0.75rem 2rem;
        border-radius: 50px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .btn-secondary-custom:hover {
        background: #f9fafb;
        border-color: #d1d5db;
        color: #374151;
    }

    /* .modal-footer {
        background: white;
        border: none;
        padding: 1.5rem 2rem 2rem;
    } */

    .amount-display {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        color: white;
        padding: 1rem 1.5rem;
        border-radius: 15px;
        text-align: center;
        margin-bottom: 1.5rem;
        font-weight: 600;
    }

    .security-info {
        background: #ecfdf5;
        border: 1px solid #d1fae5;
        border-radius: 10px;
        padding: 0.75rem 1rem;
        margin-top: 1rem;
        font-size: 0.85rem;
        color: #065f46;
    }

    .security-danger {
        background: #fee2e2;
        border: 1px solid #fca5a5;
        border-radius: 10px;
        padding: 0.75rem 1rem;
        margin-top: 1rem;
        font-size: 0.85rem;
        color: #991b1b;
    }

    .ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(99, 102, 241, 0.3);
        transform: scale(0);
        animation: ripple 0.6s linear;
        pointer-events: none;
    }

    @keyframes ripple {
        to {
            transform: scale(4);
            opacity: 0;
        }
    }

    /* 加载动画 */
    .loading-spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

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

    /* 弹入动画 */
    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: translateY(-50px) scale(0.8);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .modal.show .modal-dialog {
        animation: modalSlideIn 0.3s ease-out;
    }

    /* 响应式设计 */
    @media (max-width: 576px) {
        .modal-dialog {
            margin: 1rem;
        }
        
        .payment-option {
            padding: 1rem;
        }
        
        .payment-icon {
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
        }
    }
}