/* LUMIÈRE Modal — 触发链接 + 弹框（响应式，移动端友好） */

/* ── 触发链接 ── */
.lumiere-modal-link a.lumiere-modal-open {
    display: inline-block;
    margin: 0.2em 0;
    padding-bottom: 2px;
    border-bottom: 1px dashed var(--lumiere-rose, #c9a087);
    color: var(--lumiere-rose-dark, #b0896b);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.lumiere-modal-link a.lumiere-modal-open:hover {
    color: var(--lumiere-rose, #c9a087);
    border-bottom-color: var(--lumiere-rose-dark, #b0896b);
}

/* ── 弹框（fixed 居中，z-index 高于促销弹框 9995） ── */
.lumiere-modal {
    position: fixed;
    inset: 0;
    z-index: 9996;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em;
}
.lumiere-modal[hidden] {
    display: none !important;
}
.lumiere-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.55);
}
.lumiere-modal-box {
    position: relative;
    z-index: 1;
    width: min(640px, 92vw);
    max-height: 82vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    padding: 2.2em 2.4em;
}
.lumiere-modal-title {
    margin: 0 0 0.8em;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.lumiere-modal-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ast-global-color-3, #3d3d3d);
}
.lumiere-modal-content p:first-child {
    margin-top: 0;
}
.lumiere-modal-content p:last-child {
    margin-bottom: 0;
}
.lumiere-modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.lumiere-modal-content th,
.lumiere-modal-content td {
    border: 1px solid var(--lumiere-border, #e9e4dd);
    padding: 0.55em 0.8em;
    text-align: left;
    font-size: 0.9rem;
}
.lumiere-modal-content th {
    background: var(--lumiere-sand, #f3efe9);
    font-weight: 600;
}

/* ── 关闭按钮（全量重置，防主题全局 button 规则 !important 覆盖） ── */
.lumiere-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    border-radius: 50% !important;
    color: #666 !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}
.lumiere-modal-close:hover {
    color: #111 !important;
    background: rgba(0, 0, 0, 0.06) !important;
}

/* 打开期间锁定页面滚动 */
body.lumiere-modal-lock {
    overflow: hidden;
}

/* ── 移动端 ── */
@media (max-width: 544px) {
    .lumiere-modal-box {
        width: 94vw;
        max-height: 86vh;
        padding: 1.5em 1.2em;
    }
    .lumiere-modal-close {
        top: 8px !important;
        right: 8px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.7rem !important;
    }
}
