/* v3_inline.css
 * funnyfav/v3.php 内联样式（v3.php Line 190-381 addExtraStyle 内容）
 * 提取时间：2026-08-17
 * 用途：v3.php 通过 $header->addCSS('/funnyfav/v3_inline.css?v=20260817-1') 引入
 * 后续如果 v3_inline.css 变更：同步修改 ?v= 缓存版本号
 */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #ffffee;
}

/* 自定义提示信息面板 - 固定在右上角 */
.tip-panel {
    position: fixed;
    top: 48px;
    right: 8px;
    width: 240px;
    max-height: calc(100vh - 60px);
    background: rgba(255, 255, 240, 0.96);
    border: 1px solid #e0c080;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 9998;
    font-size: 12px;
    color: #333;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}
.tip-panel.tip-collapsed {
    width: auto;
    height: auto;
}
.tip-panel.tip-hidden {
    display: none;
}
.tip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    background: linear-gradient(to right, #fff4d6, #ffe7a0);
    border-bottom: 1px solid #e0c080;
    border-radius: 6px 6px 0 0;
    cursor: move;
    user-select: none;
}
.tip-header-title {
    font-weight: bold;
    color: #8b5a00;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tip-header-actions {
    display: flex;
    gap: 4px;
}
.tip-icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    color: #8b5a00;
    padding: 0 4px;
    border-radius: 3px;
}
.tip-icon-btn:hover {
    background: rgba(139, 90, 0, 0.15);
}
.tip-body {
    padding: 8px 10px;
    overflow: auto;
    max-height: 60vh;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
}
.tip-body.tip-empty {
    color: #999;
    font-style: italic;
}
.tip-editor {
    width: 100%;
    min-height: 100px;
    max-height: 50vh;
    box-sizing: border-box;
    padding: 6px;
    font-family: inherit;
    font-size: 12px;
    border: 1px solid #e0c080;
    border-radius: 4px;
    resize: vertical;
    outline: none;
}
.tip-editor:focus {
    border-color: #f0a000;
    box-shadow: 0 0 0 2px rgba(240, 160, 0, 0.15);
}
.tip-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 6px 8px;
    border-top: 1px solid #f0e0b0;
    background: rgba(255, 248, 220, 0.6);
    border-radius: 0 0 6px 6px;
}
.tip-btn {
    border: 1px solid #e0c080;
    background: #fff;
    color: #8b5a00;
    padding: 3px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}
.tip-btn:hover {
    background: #fff4d6;
}
.tip-btn-primary {
    background: linear-gradient(to bottom, #ffd970, #f0a000);
    color: #5a3a00;
    border-color: #d08000;
    font-weight: bold;
}
.tip-btn-primary:hover {
    background: linear-gradient(to bottom, #ffe084, #ffb020);
}
.tip-status {
    font-size: 11px;
    color: #888;
    margin-right: auto;
}
.tip-status.tip-status-ok { color: #2a8a2a; }
.tip-status.tip-status-err { color: #c0392b; }
.tip-restore {
    position: fixed;
    top: 48px;
    right: 8px;
    z-index: 9998;
    border: 1px solid #e0c080;
    background: #fff4d6;
    color: #8b5a00;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 12px;
    display: none;
}
.tip-restore.tip-show {
    display: block;
}
/* 暗色模式适配 */
[data-theme="dark"] .tip-panel {
    background: rgba(40, 40, 50, 0.96);
    border-color: #5a4a20;
    color: #ddd;
}
[data-theme="dark"] .tip-header {
    background: linear-gradient(to right, #4a3a10, #6a5018);
    border-bottom-color: #5a4a20;
}
[data-theme="dark"] .tip-header-title,
[data-theme="dark"] .tip-icon-btn {
    color: #ffd970;
}
[data-theme="dark"] .tip-body.tip-empty {
    color: #888;
}
[data-theme="dark"] .tip-editor {
    background: #2a2a35;
    color: #eee;
    border-color: #5a4a20;
}
[data-theme="dark"] .tip-footer {
    background: rgba(60, 50, 20, 0.4);
    border-top-color: #5a4a20;
}
[data-theme="dark"] .tip-btn {
    background: #3a3020;
    color: #ffd970;
    border-color: #5a4a20;
}
[data-theme="dark"] .tip-btn:hover {
    background: #4a4020;
}
[data-theme="dark"] .tip-restore {
    background: #3a3020;
    color: #ffd970;
    border-color: #5a4a20;
}
