
    :root {
        --modal-bg: #fff;
        --modal-border-radius: 3px;
        --modal-box-shadow: 0 1px 10px rgba(0,0,0,0.15);
        --modal-close-bg: rgba(255,255,255,0.95);
        --modal-close-color: #666;
        --modal-overlay: rgba(0,0,0,0.9);
        --modal-padding: 8px;
    }

    .custom-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }
    .custom-modal.active {
        display: flex;
        animation: modalFadeIn 0.2s ease;
    }
    .custom-modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--modal-overlay);
        transition: opacity 0.3s ease;
    }
    .custom-modal-content {
        position: relative;
        background: var(--modal-bg);
        border-radius: var(--modal-border-radius);
        padding: var(--modal-padding);
        box-shadow: var(--modal-box-shadow);
        width: 80%;
        height: 80%;
        overflow: hidden;
        transition: all 0.2s ease;
        z-index: 1010;
    }
    .custom-modal-content.fullscreen {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
    .custom-modal-close {
        position: absolute;
        top: 3px;
        right: 3px;
        font-size: 18px;
        cursor: pointer;
        color: var(--modal-close-color);
        background: var(--modal-close-bg);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s ease;
        border: 1px solid rgba(0,0,0,0.08);
        z-index: 1020;
    }
    .custom-modal-close:hover {
        color: #e74c3c;
        background: rgba(255,255,255,1);
        transform: rotate(90deg) scale(1.05);
    }
    .custom-modal-iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 2px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .custom-modal-iframe.loaded {
        opacity: 1;
    }
    .modal-button {
        display: inline-flex;
        align-items: center;
        padding: 10px 18px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        text-decoration: none !important;
        color: white !important;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        transition: all 0.15s ease;
        margin: 5px;
    }
    .modal-button i {
        display: inline-block !important;
        margin-right: 5px !important;
        font-size: 14px !important;
        width: auto !important;
    }
    .modal-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    }
    .modal-button:active {
        transform: translateY(1px);
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    .modal-button.blue { background: #3498db; }
    .modal-button.green { background: #2ecc71; }
    .modal-button.red { background: #e74c3c; }
    .modal-button.purple { background: #9b59b6; }
    .modal-button.orange { background: #f39c12; }
    .modal-button.teal { background: #1abc9c; }

    /* 加载动画 */
    .modal-loading {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        background: #f9f9f9;
    }
    .modal-spinner {
        width: 30px;
        height: 30px;
        border: 3px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        border-top-color: #3498db;
        animation: spin 1s ease-in-out infinite;
    }
    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* 响应式设计 - 增强移动端体验 */
    @media (max-width: 1024px) {
        .custom-modal-content {
            width: 90%;
            height: 85%;
            padding: 6px;
        }
    }

    @media (max-width: 768px) {
        .custom-modal-content {
            width: 92%;
            height: 88%;
        }
        .custom-modal-close {
            top: 2px;
            right: 2px;
            width: 22px;
            height: 22px;
            font-size: 16px;
        }
    }

    /* 移动端优化 */
    @media (max-width: 480px) {
        .custom-modal-content {
            width: 100% !important;
            height: 90% !important;
            border-radius: 0 !important;
            position: absolute;
            bottom: 0;
            top: auto;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .custom-modal.active .custom-modal-content {
            transform: translateY(0);
        }

        .custom-modal-close {
            top: -40px;
            right: 10px;
            background: rgba(0,0,0,0.7);
            color: white;
        }

        .modal-button {
            width: 100%;
            margin: 5px 0;
            padding: 12px 15px;
        }
    }

    /* 动画 */
    @keyframes modalFadeIn {
        from { opacity: 0; transform: scale(0.98); }
        to { opacity: 1; transform: scale(1); }
    }

    /* 内联类名样式 */
    .modal-button.large-button {
        padding: 15px 30px !important;
        font-size: 16px !important;
    }
    .modal-button.rounded-button {
        border-radius: 30px !important;
    }
    .modal-button.bordered-button {
        background: transparent !important;
        border: 2px solid currentColor !important;
    }
    .modal-button.shadow-button {
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    .modal-button.gradient-button {
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%) !important;
    }
    .modal-button.hover-grow:hover {
        transform: scale(1.05) !important;
    }
    .modal-button.hover-shine:hover {
        position: relative;
        overflow: hidden;
    }
    .modal-button.hover-shine:hover::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: rgba(255,255,255,0.2);
        transform: rotate(30deg);
        animation: shine 1.5s infinite;
    }
    @keyframes shine {
        100% {
            left: 150%;
            top: 150%;
        }
    }
    