/* 欢迎面板：屏幕正中，视觉与指引登录气泡一致（不用 guide-login-prompt-tooltip 类名，避免与指引脚本冲突） */
.welcome-panel {
    position: fixed;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: min(320px, calc(100vw - 32px));
    max-width: min(320px, calc(100vw - 32px));
    max-height: min(75vh, 480px);
    overflow: auto;
    padding: 30px 30px 20px;
    background: linear-gradient(145deg, #f1fbf1 0%, #ffffff 55%, #fff9e6 100%);
    border: 2px solid #66bb6a;
    border-radius: 18px;
    box-shadow:
        0 8px 24px rgba(76, 175, 80, 0.22),
        0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 13px;
    line-height: 1.55;
    color: #444;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.82);
    z-index: 10001;
    box-sizing: border-box;
}

.welcome-panel .guide-login-prompt-lead {
    display: inline;
    font-size: inherit;
    font-weight: 700;
    color: #2e7d32;
    letter-spacing: 0.02em;
}

.welcome-panel .guide-login-prompt-dismiss {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    color: #7a8f7c;
    cursor: pointer;
    user-select: none;
}

.welcome-panel .guide-login-prompt-dismiss:hover {
    color: #43a047;
}

.welcome-panel .guide-login-prompt-dismiss input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #45a049;
    cursor: pointer;
}

.welcome-panel.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: welcomePanelPopIn 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes welcomePanelPopIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.82) translateY(8px);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.04) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

.welcome-panel-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #7a8f7c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
}

.welcome-panel-close:hover {
    color: #43a047;
    background: rgba(102, 187, 106, 0.12);
}

.welcome-panel-title-line {
    margin: 0 28px 10px 0;
    white-space: normal;
}

.welcome-panel-greet {
    margin: 0 0 10px;
    white-space: normal;
}

.welcome-panel-invite {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(102, 187, 106, 0.45);
    font-size: 13px;
    line-height: 1.55;
    color: #444;
}

.welcome-panel-subtitle {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #2e7d32;
    letter-spacing: 0.02em;
}

.welcome-panel-benefits {
    margin: 0 0 10px;
    padding: 0 0 0 18px;
    font-size: 13px;
    line-height: 1.55;
    color: #444;
}

.welcome-panel-benefits li {
    margin: 3px 0;
}

.welcome-panel-benefits .welcome-panel-benefit-invite {
    padding: 8px 10px;
    margin: 4px 0 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(102, 187, 106, 0.45);
    list-style: none;
    margin-left: -18px;
    padding-left: 10px;
}

.welcome-panel-points {
    margin: 0 0 10px;
    font-size: 12px;
    color: #7a8f7c;
}

.welcome-panel .welcome-panel-assets-link {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.welcome-panel .welcome-panel-assets-link:hover {
    color: #1b5e20;
}

.welcome-panel .welcome-panel-assets-link:visited {
    color: #2e7d32;
}

.welcome-panel-dismiss-label {
    margin-bottom: 4px;
}

.welcome-panel-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 10px 18px;
    border: 2px solid #dbf5dd;
    border-radius: 12px;
    background: #c1e0c3;
    color: #2e7d32;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.welcome-panel-btn:hover {
    background: #dbf5dd;
}
