/* ============================================================
 * antd 组件样式补齐
 * 说明：原站使用 antd 的 Segmented 组件，其样式由 JS 运行时以
 *      css-in-js（class: css-18nzaqh）注入，未包含在静态 CSS 中。
 *      手工克隆时无 JS 注入，故在此静态补齐，保证分段控件外观一致。
 * ============================================================ */
:where(.css-18nzaqh).ant-segmented {
    box-sizing: border-box;
    margin: 0;
    padding: 2px;
    color: #495366;
    font-size: 14px;
    list-style: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    display: inline-block;
    background: #f7f9fc;
    border-radius: 24px;
    transition: 0.2s;
}

:where(.css-18nzaqh).ant-segmented .ant-segmented-group {
    position: relative;
    display: flex;
    place-items: stretch flex-start;
    flex-direction: row;
    width: 100%;
}

:where(.css-18nzaqh).ant-segmented .ant-segmented-item {
    position: relative;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s;
    border-radius: 6px;
    transform: translateZ(0);
}

:where(.css-18nzaqh).ant-segmented .ant-segmented-item-selected {
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
    color: #000;
}

:where(.css-18nzaqh).ant-segmented .ant-segmented-item-focused {
    outline: #c7c9ff solid 3px;
    outline-offset: 1px;
}

:where(.css-18nzaqh).ant-segmented .ant-segmented-item::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    inset-inline-start: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.2s, background-color 0.2s;
    pointer-events: none;
}

:where(.css-18nzaqh).ant-segmented .ant-segmented-item:not(.ant-segmented-item-selected):not(.ant-segmented-item-disabled):hover,
:where(.css-18nzaqh).ant-segmented .ant-segmented-item:not(.ant-segmented-item-selected):not(.ant-segmented-item-disabled):active {
    color: #495366;
}

:where(.css-18nzaqh).ant-segmented .ant-segmented-item:not(.ant-segmented-item-selected):not(.ant-segmented-item-disabled):hover::after,
:where(.css-18nzaqh).ant-segmented .ant-segmented-item:not(.ant-segmented-item-selected):not(.ant-segmented-item-disabled):active::after {
    opacity: 1;
    background-color: #fff;
}

:where(.css-18nzaqh).ant-segmented .ant-segmented-item-label {
    min-height: 36px;
    line-height: 36px;
    padding: 0 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

:where(.css-18nzaqh).ant-segmented .ant-segmented-item-input {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

:where(.css-18nzaqh).ant-segmented.ant-segmented-lg .ant-segmented-item-label {
    min-height: 36px;
    line-height: 36px;
    padding: 0 20px;
    font-size: 16px;
}

:where(.css-18nzaqh).ant-segmented.ant-segmented-lg .ant-segmented-item {
    border-radius: 24px;
}

:where(.css-18nzaqh).ant-segmented.ant-segmented-shape-round,
:where(.css-18nzaqh).ant-segmented.ant-segmented-shape-round .ant-segmented-item {
    border-radius: 9999px;
}

/* ============================================================
 * 购买提示弹窗（补齐原站 antd Modal 的等价样式）
 * ============================================================ */
.site-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
}

.site-modal {
    width: 380px;
    max-width: calc(100vw - 32px);
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, .08);
}

.site-modal-title {
    margin-bottom: 12px;
    color: #10131a;
    font-size: 16px;
    font-weight: 600;
}

.site-modal-body {
    margin-bottom: 24px;
    color: #495366;
    font-size: 14px;
    line-height: 22px;
}

.site-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.site-modal-btn {
    height: 36px;
    padding: 0 20px;
    color: #495366;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e5e9ed;
    border-radius: 50px;
    cursor: pointer;
}

.site-modal-btn-primary {
    color: #fff;
    background: #000;
    border-color: #000;
}
