/* ===== 右侧浮动技巧卡片样式 ===== */
.tip-widget {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 260px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(200, 200, 220, 0.25);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    z-index: 998;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 16px 12px 14px 12px;
    color: #1e1e2a;
}

.tip-widget.tip-hidden {
    display: none;
}

.tip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.tip-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-title i {
    color: #f1c40f;
    font-size: 16px;
}

.tip-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0 4px;
    transition: color 0.15s;
    border-radius: 12px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.tip-content {
    background: #f8faff;
    border-radius: 16px;
    padding: 14px 14px;
    margin-bottom: 12px;
    min-height: 70px;
    display: flex;
    align-items: center;
    border: 1px solid #eaeef5;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

#tipText {
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
    margin: 0;
    word-break: break-word;
}

.tip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
}

.tip-nav {
    display: flex;
    gap: 10px;
}

.tip-nav-btn {
    background: #ffffff;
    border: 1px solid #d0d9e8;
    border-radius: 30px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4a5b6e;
    font-size: 14px;
    transition: all 0.15s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.tip-nav-btn:hover {
    background: #edf2f9;
    border-color: #a0b3cc;
    color: #1e2a3a;
}

.tip-nav-btn:active {
    transform: scale(0.95);
}

.tip-indicator {
    font-size: 13px;
    font-weight: 500;
    color: #5e7180;
    background: #eef2f7;
    padding: 5px 10px;
    border-radius: 30px;
    letter-spacing: 0.3px;
}

/* 适配深色主题 —— 后续可由主题切换器增强，这里保持中性 */
@media (prefers-color-scheme: dark) {
    .tip-widget {
        background: rgba(30, 35, 48, 0.95);
        border-color: #2f3a4b;
        color: #e0e4f0;
    }
    .tip-title {
        color: #dfe7f0;
    }
    .tip-content {
        background: #252b38;
        border-color: #384153;
    }
    #tipText {
        color: #d6dfec;
    }
    .tip-nav-btn {
        background: #2a3240;
        border-color: #3f4b5e;
        color: #b0bed6;
    }
    .tip-nav-btn:hover {
        background: #3a4558;
        border-color: #5f6f86;
    }
    .tip-indicator {
        background: #2e3849;
        color: #b7c4d9;
    }
}

/* 移动端适配：小屏幕时适当缩小宽度 */
@media (max-width: 600px) {
    .tip-widget {
        width: 220px;
        right: 10px;
        top: 100px;
        padding: 12px 10px;
    }
}