/**
 * PC端右侧悬浮导航样式
 * 
 * @package GoodBase
 * @since 1.0.0
 */

/* 悬浮导航容器 */
.pc-floating-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 悬浮导航项 */
.floating-nav-item {
    position: relative;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.floating-nav-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.floating-nav-item i {
    font-size: 18px;
    color: #ff6600;
}

/* VIP按钮 */
.floating-nav-vip {
    background: #ffffff;
}

.floating-nav-vip i {
    color: #ff6600;
}

/* 微信按钮 */
.floating-nav-wechat {
    background: #ffffff;
}

.floating-nav-wechat i {
    color: #ff6600;
}

/* 电话按钮 */
.floating-nav-phone {
    background: #ffffff;
}

.floating-nav-phone i {
    color: #ff6600;
}

/* 签到按钮 */
.floating-nav-checkin {
    background: #ffffff;
}

.floating-nav-checkin i {
    color: #ff6600;
}

/* 已签到状态 */
.floating-nav-checkin.checked {
    background: #ffffff;
}

.floating-nav-checkin.checked i {
    color: #52c41a;
}

/* 返回顶部按钮 */
.floating-nav-top {
    background: #ffffff;
    opacity: 0;
    visibility: hidden;
}

.floating-nav-top.visible {
    opacity: 1;
    visibility: visible;
}

.floating-nav-top i {
    color: #ff6600;
}

/* 悬浮提示框 - 显示在按钮左侧 */
.floating-nav-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #ff6600;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.floating-nav-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #ffffff;
}

.floating-nav-item:hover .floating-nav-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 互斥显示 - 隐藏其他悬浮框 */
.floating-nav-item.hide-popup .floating-nav-tooltip,
.floating-nav-item.hide-popup .floating-wechat-popup,
.floating-nav-item.hide-popup .floating-phone-popup {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 微信二维码弹窗 - 悬浮显示 */
.floating-wechat-popup {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    pointer-events: none;
}

.floating-nav-wechat:hover .floating-wechat-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.floating-wechat-popup::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #ffffff;
}

.floating-wechat-popup .popup-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 8px;
}

.floating-wechat-popup .qrcode-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
}

.floating-wechat-popup .qrcode-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-wechat-popup .qrcode-placeholder {
    color: #999;
    font-size: 12px;
    text-align: center;
}

.floating-wechat-popup .scan-tip {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

/* 电话/客服弹窗 - 悬浮显示 */
.floating-phone-popup {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #e8f4ff 0%, #ffffff 100%);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    width: 180px;
    pointer-events: none;
}

.floating-nav-phone:hover .floating-phone-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.floating-phone-popup::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #f0f8ff;
}

.floating-phone-popup .popup-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1890ff;
    font-size: 12px;
    margin-bottom: 12px;
}

.floating-phone-popup .popup-header i {
    font-size: 14px;
}

.floating-phone-popup .popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.floating-phone-popup .popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    background: #ffffff;
    color: #ff6600;
    border: 1px solid #ff6600;
}

.floating-phone-popup .popup-btn:hover {
    background: #fff5f0;
}

.floating-phone-popup .popup-btn i {
    font-size: 14px;
    color: #ff6600;
}

.floating-phone-popup .popup-notice {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-bottom: 10px;
}

.floating-phone-popup .popup-verify {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #1890ff;
    background: rgba(24, 144, 255, 0.08);
    padding: 8px 12px;
    border-radius: 4px;
}

.floating-phone-popup .popup-verify i {
    font-size: 14px;
}

/* 签到成功提示 */
.floating-checkin-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #ffffff;
    padding: 32px 48px;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-checkin-success.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.floating-checkin-success .success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.floating-checkin-success .success-icon i {
    font-size: 32px;
    color: #ffffff;
}

.floating-checkin-success .success-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.floating-checkin-success .success-reward {
    font-size: 14px;
    color: #666;
}

.floating-checkin-success .success-reward span {
    color: #ff6600;
    font-weight: 600;
}

/* 签到遮罩层 */
.floating-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 响应式隐藏 - 移动端不显示 */
@media (max-width: 1024px) {
    .pc-floating-nav {
        display: none;
    }
}

/* 右侧有更多空间时的位置调整 */
@media (min-width: 1600px) {
    .pc-floating-nav {
        right: 40px;
    }
}

/* 按钮加载状态 */
.floating-nav-item.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ==================== 签到弹窗样式 ==================== */

/* 弹窗遮罩 */
.checkin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.checkin-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗主体 */
.checkin-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 588px;
    height: 400px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.checkin-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* 关闭按钮 */
.checkin-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkin-modal-close:hover {
    background: #fff;
    color: #ff6600;
    transform: rotate(90deg);
}

/* 上部：签到奖励区域 */
.checkin-modal-header {
    height: 98px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8c42 50%, #ffab5c 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    gap: 1px;
}

/* 装饰圆圈 */
.checkin-modal-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -80px;
    left: -50px;
}

.checkin-modal-header::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -60px;
    right: -30px;
}

.checkin-reward-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.checkin-reward-icon i {
    font-size: 28px;
    color: #fff;
}

.checkin-reward-text {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    position: relative;
    z-index: 1;
    text-align: center;
}

.checkin-reward-text em {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    color: #0dd1e7fa;
    margin: 0 4px;
}

/* 中部：签到按钮区域 */
.checkin-modal-body {
    padding: 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
}

.checkin-submit-btn {
    width: 168px;
    height: 42px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    border: none;
    border-radius: 26px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.checkin-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.checkin-submit-btn:hover::before {
    left: 100%;
}

.checkin-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 102, 0, 0.45);
}

.checkin-submit-btn:active {
    transform: translateY(-1px);
}

.checkin-submit-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}

.checkin-submit-btn.checked {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    box-shadow: 0 8px 24px rgba(82, 196, 26, 0.35);
}

.checkin-tip {
    font-size: 13px;
    color: #999;
    margin: 14px 0 0 0;
}

/* 下部：颁奖台区域 */
.checkin-modal-footer {
    flex: 1;
    padding: 25px 0px 0px 0px;
    background: linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%);
    border-top: 1px solid #f0f0f0;
}

.checkin-podium-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 16px;
}

.checkin-podium-title i {
    color: #ffc107;
    font-size: 14px;
}

/* 颁奖台容器 */
.checkin-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 颁奖台项目 */
.checkin-podium .podium-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    max-width: 140px;
}

.checkin-podium .podium-stand {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

/* 奖品图片 */
.checkin-podium .podium-image {
    width: 100%;
    max-width: 36px;
    height: 28px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
}

.checkin-podium .podium-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.checkin-podium .podium-first .podium-image {
    max-width: 42px;
    height: 32px;
}

/* 排名图标 - emoji */
.checkin-podium .podium-rank {
    font-size: 1.8rem;
    margin-bottom: 6px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.checkin-podium .podium-first .podium-rank {
    font-size: 2.2rem;
}

/* 颁奖台底座 */
.checkin-podium .podium-base {
    width: 100%;
    border-radius: 8px 8px 0 0;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.checkin-podium .podium-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    pointer-events: none;
}

/* 一等奖底座 - 最高 */
.checkin-podium .podium-first .podium-base {
    height: 88px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border: 2px solid #ffed4e;
}

/* 二等奖底座 - 中等 */
.checkin-podium .podium-second .podium-base {
    height: 66px;
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 50%, #c0c0c0 100%);
    border: 2px solid #e8e8e8;
}

/* 三等奖底座 - 最低 */
.checkin-podium .podium-third .podium-base {
 /*    height: 56px; */
    background: linear-gradient(135deg, #cd7f32 0%, #e6a85c 50%, #cd7f32 100%);
    border: 2px solid #e6a85c;
}

/* 标签 */
.checkin-podium .podium-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 1px;
}

/* 奖品值 */
.checkin-podium .podium-value {
    font-size: 10px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

