body {
    pointer-events: auto !important;
}

.layui-link {
    text-decoration: underline;
    cursor: pointer;
}

.layui-layer-radius {
    border-radius: 20px;
}

.layui-layer-radius .layui-layer-content {
    border-radius: 20px;
    overflow: hidden;
}

/* ģʹ */
.lg\:absolute.lg\:w-full {
    display: none !important;
}

[data-testid="model-switcher-o1-pro"] {
    display: none !important;
}

.list-dropdown-tabs {
    border-radius: 15px;
    padding: 10px 20px;
    width: 335px;
    background-color: #f9f9f9;
}

.list-dropdown-tabs .layui-row {
    margin: 5px 0;
}

.list-dropdown-tabs .layui-row .width {
    width: 180px;
    text-align: left;
}

[data-testid="model-switcher-o1-pro"] {
    display: none !important;
}

.right-action {
    position: fixed;
    top: 80px;
    right: 0;
    height: 36px;
    line-height: 36px;
    padding-right: 10px;
    background-color: #000;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    cursor: pointer;
    z-index: 2025;
}

.right-action>.right-action-text {
    font-size: 36px;
    line-height: 36px;
    color: #fff;
    padding-left: 10px;
}

.pr-3.init {
    display: none;
}


/* Custom Dialog */
.custom-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2026;
}

.custom-dialog-content {
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
    overflow: hidden;
}

.custom-dialog-title {
    padding: 10px 0 10px 20px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    color: #000;
}

.custom-dialog-close {
    position: absolute;
    top: 13px;
    right: 18px;
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
    color: #000;
}

.custom-dialog-input {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.custom-dialog-btn {
    padding: 8px 16px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.custom-dialog-confirm {
    background: #007bff;
    color: #fff;
}

.custom-dialog-cancel {
    background: #ddd;
}

/* Custom Message */
.custom-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

/* Custom Dropdown */
.custom-dropdown {
    display: none;
    position: absolute;
    right: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    /* Increased z-index */
    min-width: 260px;
    padding: 10px;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #666666;
    font-size: 14px;
}

.dropdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-col-4 {
    flex: 0 0 33.333%;
}

.dropdown-col-8 {
    flex: 0 0 66.667%;
}

.dropdown-col-6 {
    flex: 0 0 50%;
}

.dropdown-inline {
    display: inline-flex;
    align-items: center;
}

.dropdown-subscribe {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

.dropdown-actions {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.dropdown-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-small {
    font-size: 12px;
}

/* Menu Items */
.menu-row {
    display: flex;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

.menu-item:hover {
    background: #f5f5f5;
}

.menu-item-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.menu-item-top:hover {
    background: #f5f5f5;
}

.menu-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.menu-subscribe {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
}

/* Menu Items */
.menu-row {
    display: flex;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    /* Reduced font size */
}

.menu-item:hover {
    background: #f5f5f5;
}

.pr-3.init,
.pe-3.init {
    display: none;
}

/* 通用卡密激活弹窗。 */
.agent-card-layer.layui-layer {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(20, 34, 58, .2);
}
.agent-card-layer .layui-layer-content { overflow: visible; }
.agent-card-dialog { padding: 30px; color: #202d41; }
.agent-card-dialog-header { display: flex; align-items: center; justify-content: space-between; }
.agent-card-icon {
    display: grid; place-items: center; width: 46px; height: 46px;
    border-radius: 14px; background: #edf3f8; color: #7184a5; font-size: 23px;
}
.agent-card-close {
    width: 32px; height: 32px; border: 0; border-radius: 8px;
    background: transparent; color: #91a0b2; font-size: 24px; cursor: pointer;
}
.agent-card-close:hover { background: #f2f5f9; color: #53637c; }
.agent-card-dialog h2 { margin: 20px 0 8px; font-size: 22px; font-weight: 700; }
.agent-card-dialog p { color: #8393aa; font-size: 14px; line-height: 1.7; }
.agent-card-dialog label { display: block; margin: 24px 0 9px; font-weight: 600; font-size: 14px; }
.agent-card-dialog input {
    box-sizing: border-box; width: 100%; height: 50px; padding: 0 14px;
    border: 1px solid #dce5ef; border-radius: 10px; outline: none; color: #263752;
    font-size: 15px; transition: border-color .18s, box-shadow .18s;
}
.agent-card-dialog input::placeholder { color: #b0bdcc; }
.agent-card-dialog input:focus { border-color: #8b9ac2; box-shadow: 0 0 0 3px rgba(116, 134, 177, .13); }
.agent-card-actions { display: flex; gap: 12px; margin-top: 26px; }
.agent-card-actions button {
    flex: 1; height: 46px; border: 0; border-radius: 10px; font-size: 14px;
    font-weight: 600; cursor: pointer;
}
.agent-card-cancel { background: #edf3f8; color: #63758e; }
.agent-card-confirm { background: #555f88; color: #fff; }
.agent-card-cancel:hover { background: #e3ebf2; }
.agent-card-confirm:hover { background: #49537b; }
.agent-card-dialog button:focus-visible { outline: 3px solid #a9bad7; outline-offset: 2px; }
