/* 18+ 访问提示弹窗 —— 按 400x408 设计稿还原，1rem = 16px */
body.age-warning-lock {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}
body.age-warning-lock > * {
    pointer-events: none;
}
body.age-warning-lock > #age-warning {
    pointer-events: auto;
    display: flex;
}
.age-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    box-sizing: border-box;
    z-index: 99999;
}
/* 卡片 400x408 */
.age-warning-modal {
    position: relative;
    width: 25rem;
    max-width: 100%;
    padding: 1.25rem 0;
    border-radius: 0.9375rem;
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, #133733 0%, #131D19 100%) padding-box,
        linear-gradient(180deg, #D2FFED 0%, #1ABC9D 100%) border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}
/* 盾牌图标 104x104 */
.age-warning-icon {
    width: 6.5rem;
    height: 6.5rem;
    overflow: hidden;
    flex-shrink: 0;
}
.age-warning-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* 标题 28px/30px，浅青 → 主色渐变 */
.age-warning-title {
    margin-top: 0.875rem;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.875rem;
    text-align: center;
    background: linear-gradient(90deg, #E8F7EB 0%, #1ABC9D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
/* 说明文案 14px/21px */
.age-warning-desc {
    margin: 0.75rem 0 0;
    width: 22.5rem;
    max-width: calc(100% - 1.75rem);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.3125rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}
/* 提示条 343x60 */
.age-warning-notice {
    margin-top: 1.125rem;
    width: 21.4375rem;
    max-width: calc(100% - 1.75rem);
    min-height: 3.75rem;
    border-radius: 0.625rem;
    border: 1px solid transparent;
    background:
        linear-gradient(#0F2826, #0F2826) padding-box,
        linear-gradient(90deg, #D2FFED 0%, #1ABC9D 100%) border-box;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    box-sizing: border-box;
    cursor: pointer;
}
.age-warning-badge {
    flex-shrink: 0;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    border: 1.5px solid #1ABC9D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    color: #1ABC9D;
    box-sizing: border-box;
}
.age-warning-notice-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.age-warning-notice-zh {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.125rem;
    color: #1ABC9D;
    white-space: nowrap;
}
/* 英文行较长，指定拉丁字体并禁止换行，保证单行显示 */
.age-warning-notice-en {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* 按钮 269x44 胶囊 */
.age-warning-confirm {
    margin-top: 1.25rem;
    width: 16.8125rem;
    max-width: calc(100% - 1.75rem);
    height: 2.75rem;
    padding: 0;
    border-radius: 1.375rem;
    border: none;
    cursor: pointer;
    background: #1ABC9D;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.age-warning-confirm:hover {
    filter: brightness(1.05);
}
