/* ========== 首页重要提示悬浮按钮 & 弹窗 ========== */

/* 悬浮按钮 */
.float-tips-btn {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 9999;
    background: #e74c3c;
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}
.float-tips-btn:hover {
    background: #c0392b;
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.6);
    transform: translateY(-2px);
}

/* 弹窗遮罩 */
.tips-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    overflow-y: auto;
}
.tips-overlay.show {
    display: flex;
}

/* 弹窗主体 */
.tips-dialog {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: tipsFadeIn 0.3s ease;
}
@keyframes tipsFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 弹窗头部 */
.tips-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
    z-index: 1;
}
.tips-dialog-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.tips-dialog-close {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.tips-dialog-close:hover {
    color: #333;
}

/* 弹窗内容 */
.tips-dialog-body {
    padding: 20px 24px 30px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}
.tips-dialog-body p {
    margin-bottom: 12px;
    text-indent: 2em;
}
.tips-dialog-body p:first-child {
    text-indent: 0;
}
.tips-dialog-body ol {
    margin: 10px 0 10px 2em;
    padding: 0;
}
.tips-dialog-body ol li {
    margin-bottom: 8px;
    padding-left: 4px;
}
.tips-dialog-body strong {
    color: #e74c3c;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .float-tips-btn {
        right: 10px;
        bottom: 100px;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 20px;
    }
    .tips-overlay {
        padding-top: 30px;
    }
    .tips-dialog {
        width: 95%;
        max-height: 85vh;
    }
    .tips-dialog-header {
        padding: 16px 18px;
    }
    .tips-dialog-title {
        font-size: 16px;
    }
    .tips-dialog-body {
        padding: 16px 18px 24px;
        font-size: 13px;
    }
}
