* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
input {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}
html, body {
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}
body {
    font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}

.display-area {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    overflow: hidden;
    position: relative;
    padding-bottom: 10vh;
}

.random-number {
    max-width: 96%;
    font-size: 40vw;
    font-weight: 800;
    color: #333333;
    text-align: center;
    line-height: 1;
    text-shadow: none;
    letter-spacing: 2px;
    word-break: break-word;
    will-change: transform;
}

.range-tip {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 130px;
    border: none;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    text-align: center;
    font-size: 34px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.98);
    font-weight: 500;
    padding: 0.35rem 1.8rem;
    border-radius: 80px;
    white-space: nowrap;
    display: inline-block;
    pointer-events: auto;
    cursor: pointer;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
    transition: background 0.25s ease, transform 0.15s ease, opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 3;
    touch-action: none;
}
.range-tip:active {
    transform: translateX(-50%) scale(0.95);
}
.range-tip.hidden {
    display: none;
}

.combo-hint {
    position: absolute;
    top: 11%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffd966;
    font-size: 3.6rem;
    font-weight: 900;
    padding: 0.8rem 2.4rem;
    border-radius: 80px;
    letter-spacing: 4px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.3;
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    /* 和「范围」提示一样：只能上下拖动 */
    touch-action: none;
    transition: opacity 0.25s ease;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}
.combo-hint.show {
    opacity: 1;
    /* 显示时才可拖（隐藏时点击要穿透过去） */
    pointer-events: auto;
}

.blessing-scroll-container {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    width: 100vh;
    height: 100vw;
    transform: translate(-50%, -50%) rotate(90deg);
    overflow: hidden;
    background: #ffffff;
    align-items: center;
    z-index: 5;
}
.blessing-scroll-container.active {
    display: flex;
}
.blessing-scroll-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    align-items: center;
}
.blessing-scroll-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 100vw;
    font-weight: 900;
    color: #111111;
    letter-spacing: 0;
    padding: 0;
    line-height: 1;
}
.blessing-placeholder {
    display: none;
    color: rgba(30, 41, 59, 0.4);
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-align: center;
    letter-spacing: 4px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 2;
}
.blessing-placeholder.active {
    display: block;
}

.bottom-bar {
    display: none;
}

.settings-fab {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.3s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    letter-spacing: 0;
    user-select: none;
}
.settings-fab:active {
    transform: scale(0.92);
}
.settings-fab.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.auto-click-ball {
    position: fixed;
    right: 20px;
    bottom: 184px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
    z-index: 91;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    letter-spacing: 0;
    user-select: none;
}
.auto-click-ball.visible {
    display: flex;
}
.auto-click-ball:active {
    transform: scale(0.92);
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.settings-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.settings-panel {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(120%);
    width: 94%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.8rem 1.8rem 2.2rem;
    z-index: 100;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-height: 80vh;
    overflow-y: auto;
    color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}
.settings-panel.open {
    transform: translateX(-50%) translateY(0);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 0.7rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
}
.panel-header .action-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.3rem;
    letter-spacing: 0;
}
.panel-tabs {
    display: flex;
    align-items: center;
    /* 永远排成一行；真放不下就横向滑动，不折行 */
    flex-wrap: nowrap;
    gap: 0.2rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.panel-tabs::-webkit-scrollbar {
    display: none;
}
.close-panel-btn {
    flex-shrink: 0;
    margin-left: auto;
    background: none;
    border: none;
    color: #64748b;
    font-size: 2.4rem;
    line-height: 1;
    padding: 0 0.3rem;
    cursor: pointer;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.close-panel-btn:hover {
    color: #1e293b;
}

.range-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0.1rem 0;
}
.input-field {
    background: rgba(241, 245, 249, 0.8);
    border: 1.5px solid rgba(203, 213, 225, 0.9);
    border-radius: 24px;
    padding: 1rem 0.7rem;
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 600;
    width: 0;
    flex: 1 1 0;
    min-width: 70px;
    max-width: 180px;
    outline: none;
    text-align: center;
    letter-spacing: 0.5px;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.2s;
}
.input-field::-webkit-inner-spin-button,
.input-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}
.range-separator {
    font-size: 2rem;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
    padding: 0 0.1rem;
}

.settings-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    width: 100%;
}
/* tab：只要文字，没有背景和边框 */
.action-btn {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 0.55rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: 0.4px;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.action-btn:hover {
    color: #1e293b;
}

.toggle-mini-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    white-space: nowrap;
}
.toggle-mini-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #475569;
}
.toggle-switch-sm {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 23px;
    flex-shrink: 0;
    cursor: pointer;
}
.toggle-switch-sm input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-sm {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    border-radius: 34px;
    transition: background-color 0.2s;
}
.slider-sm:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}
input:checked+.slider-sm {
    background-color: #3b82f6;
}
input:checked+.slider-sm:before {
    transform: translateX(19px);
}

.history-overlay {
    background: rgba(248, 250, 252, 0.85);
    border-radius: 20px;
    padding: 1rem;
    margin-top: 0.3rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: none;
    flex-direction: column;
    max-height: 220px;
    overflow-y: auto;
}
.history-overlay.visible {
    display: flex;
}
.history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: #1e293b;
}
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    font-size: 0.95rem;
}
.history-time {
    color: #64748b;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.combo-badge {
    background: #3b82f6;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.12rem 0.5rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-right: 0.3rem;
}
.history-value {
    font-weight: 700;
    font-size: 1.35rem;
    color: #1e293b;
}
.empty-history {
    color: #94a3b8;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}
.close-history-inline {
    background: transparent;
    border: 1px solid rgba(203, 213, 225, 0.9);
    color: #64748b;
    padding: 0.4rem 1rem;
    border-radius: 18px;
    align-self: flex-end;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.close-history-inline:hover {
    background: rgba(226, 232, 240, 0.9);
    color: #1e293b;
}

.floating-ball {
    position: fixed;
    right: 20px;
    bottom: calc(14% + 28px);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, bottom 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.floating-ball.visible {
    display: flex;
}
.floating-ball:active {
    transform: scale(0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-box {
    background: #ffffff;
    border-radius: 32px;
    width: 80%;
    max-width: 340px;
    padding: 1.8rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transform: scale(0.9);
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.modal-overlay.active .modal-box {
    transform: scale(1);
}
.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}
.modal-input {
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: 20px;
    padding: 1rem;
    font-size: 1.2rem;
    text-align: center;
    outline: none;
    color: #1e293b;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}
.modal-input::-webkit-outer-spin-button,
.modal-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.modal-input:focus {
    border-color: #3b82f6;
}
.modal-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}
.modal-btn {
    flex: 1;
    border: none;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.9rem 1.2rem;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.modal-btn.cancel {
    background: #e2e8f0;
    color: #1e293b;
}
/* 黑白配色的确认按钮（自动点击次数弹窗） */
.modal-btn.dark {
    background: #111827;
    color: #ffffff;
}
.modal-btn.dark:hover {
    filter: brightness(1.3);
}
.modal-btn:hover {
    filter: brightness(1.05);
}

.range-modal-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
}
.range-modal-input {
    flex: 1;
    min-width: 0;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: 20px;
    padding: 1rem 0.5rem;
    font-size: 1.2rem;
    text-align: center;
    outline: none;
    color: #1e293b;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}
.range-modal-input::-webkit-outer-spin-button,
.range-modal-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.range-modal-input:focus {
    border-color: #3b82f6;
}
.range-modal-separator {
    font-size: 1.8rem;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
}

.blessing-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.blessing-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.blessing-modal {
    background: #ffffff;
    border-radius: 28px;
    width: 92%;
    max-width: 520px;
    padding: 1.2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(12px) scale(0.96);
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.blessing-modal-overlay.active .blessing-modal {
    transform: translateY(0) scale(1);
}
.blessing-modal-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.blessing-modal-input {
    flex: 1;
    min-width: 0;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 20px;
    padding: 1.15rem 1.1rem;
    color: #1e293b;
    font-size: 1.2rem;
    outline: none;
    min-height: 60px;
}
.blessing-modal-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}
.blessing-modal-input.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
    animation: shakeInput 0.45s ease;
}
@keyframes shakeInput {
    0%,
    100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}
.blessing-modal-confirm {
    flex: none;
    border: none;
    background: #3a3f47;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 1.15rem 1.6rem;
    border-radius: 22px;
    cursor: pointer;
    transition: filter 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.blessing-modal-confirm:hover {
    background: #4a4f57;
}

.blessing-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 160px;
    overflow-y: auto;
    padding-top: 0.2rem;
}
.blessing-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    font-size: 1rem;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.2s;
}
.blessing-history-item:hover {
    background: #e2e8f0;
}
.blessing-history-item-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 0.4rem;
}
.blessing-history-delete {
    flex: none;
    background: #e11d48;
    color: #ffffff;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}
.blessing-history-delete:hover {
    background: #be123c;
}
.blessing-history-delete:active {
    transform: scale(0.9);
}
.blessing-history-empty {
    color: #94a3b8;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.6rem 0;
}

.secret-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 210;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 14vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.secret-settings-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.secret-settings-modal {
    background: #1e293b;
    border-radius: 28px;
    width: 88%;
    max-width: 460px;
    padding: 2rem 1.8rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(12px) scale(0.96);
    transition: transform 0.28s ease;
}
.secret-settings-overlay.active .secret-settings-modal {
    transform: translateY(0) scale(1);
}
.secret-settings-title {
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}
.secret-settings-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cbd5e1;
    font-size: 1.5rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.secret-settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.secret-settings-content {
    color: #94a3b8;
    text-align: center;
    font-size: 0.95rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 500px) {
    .input-field {
        font-size: 1.2rem;
        padding: 0.8rem 0.4rem;
    }
    .range-separator {
        font-size: 1.7rem;
    }
    .floating-ball {
        width: 48px;
        height: 48px;
        right: 14px;
        bottom: calc(14% + 20px);
        font-size: 1.5rem;
    }
    .auto-click-ball {
        width: 56px;
        height: 56px;
        right: 14px;
        bottom: 162px;
        font-size: 1.35rem;
    }
    .settings-fab {
        width: 56px;
        height: 56px;
        right: 14px;
        bottom: 90px;
        font-size: 1.35rem;
    }
    .combo-hint {
        font-size: 2.8rem;
        padding: 0.6rem 2rem;
        top: 9%;
    }
    .range-tip {
        font-size: 26px;
        bottom: 108px;
        padding: 0.3rem 1.4rem;
    }
    .panel-header {
        gap: 0.35rem;
    }
    .panel-tabs {
        gap: 0.35rem;
    }
    .panel-header .action-btn {
        font-size: 0.78rem;
        padding: 0.4rem 0.55rem;
        letter-spacing: 0.2px;
    }
    .settings-actions-row {
        gap: 0.3rem;
    }
    .action-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.55rem;
        letter-spacing: 0.2px;
    }
    .toggle-mini-label {
        font-size: 0.75rem;
    }
    .toggle-switch-sm {
        width: 36px;
        height: 20px;
    }
    .slider-sm:before {
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
    }
    input:checked+.slider-sm:before {
        transform: translateX(16px);
    }
    .blessing-modal-input {
        padding: 1rem 1rem;
        min-height: 56px;
    }
    .blessing-modal-confirm {
        padding: 1rem 1.4rem;
    }
}
@media (max-width: 360px) {
    .action-btn {
        font-size: 0.72rem;
        padding: 0.45rem 0.4rem;
    }
    .toggle-mini-label {
        font-size: 0.7rem;
    }
    .toggle-switch-sm {
        width: 32px;
        height: 18px;
    }
    .slider-sm:before {
        height: 12px;
        width: 12px;
        left: 2px;
        bottom: 3px;
    }
    input:checked+.slider-sm:before {
        transform: translateX(14px);
    }
}
