/* ============================================================
   IIICE 导航主题 - 插件样式复刻包
   来源：side_contacts / lee_fankui / AppreciationDonation 等
   ============================================================ */

/* ---------- 侧边联系滑出面板（复刻 side_contacts） ---------- */
.side-contacts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transform: translateX(var(--slide-x));
    transition: transform 0.3s ease-in-out;
    pointer-events: none;
    z-index: 1000;
}
.side-contacts, .side-contacts * { box-sizing: border-box; }
.side-contacts-x-right { justify-content: flex-end; left: auto; right: var(--x); }
.side-contacts-y-center { align-items: center; margin-top: var(--y); }
.side-contacts-in {
    position: relative;
    padding: 10px;
    flex: 0 0 var(--width);
    width: var(--width);
    line-height: 1.6;
    border-radius: var(--border-radius);
    filter: drop-shadow(0 0 var(--shadow-size) rgba(0,0,0,calc(var(--shadow-opacity) / 100)));
    background-color: #fff;
    pointer-events: auto;
}
.side-contacts-in img { max-width: 100%; }
.side-contacts-divider { padding-top: 10px; border-top: solid 1px #e8e8e8; }
.side-contacts-item { margin-top: var(--margin-top); margin-bottom: var(--margin-bottom); }
.side-contacts-close {
    --radius: 3px;
    position: absolute;
    top: calc(var(--border-radius) + 5px);
    width: 20px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: inherit;
    cursor: pointer;
}
.side-contacts-close:hover { background: #f9f9f9; }
.side-contacts-x-right .side-contacts-close { right: 100%; border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius); }
.side-contacts-x-right .side-contacts-close img { transform: rotate(180deg); }
.side-contacts-hide.side-contacts-x-right .side-contacts-close img { transform: rotate(180deg); }
.side-contacts-hide .side-contacts-in { filter: none; }
.side-contacts-hide .side-contacts-close { box-shadow: 0 0 var(--shadow-size) rgba(0,0,0,calc(var(--shadow-opacity) / 100)); }
.side-contacts-logo { display: none; }
.side-contacts-hide-show-icon.side-contacts-hide .side-contacts-logo { display: block; transform: rotate(0deg) !important; }
.side-contacts-hide-show-icon.side-contacts-hide .side-contacts-close { width: 36px; height: 36px; padding: 3px; --radius: 50%; }
.side-contacts-hide-show-icon.side-contacts-hide .side-contacts-arrow { display: none; }
.side-contacts-head {
    margin: -10px -10px 10px;
    padding: 0 10px;
    color: #fff;
    height: 40px;
    line-height: 40px;
    background-color: #434341;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    background-image: url(assets/sc-logo.png);
    background-size: 40px;
    background-repeat: no-repeat;
    background-position: left center;
}
.side-contacts-head ~ .side-contacts-close { top: 40px; }
.side-contacts-name { margin-left: 30px; font-size: 18px; letter-spacing: 2px; }

/* ---------- 链接反馈弹窗（复刻 lee_fankui） ---------- */
#lf-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100000;
    background: rgba(0,0,0,.45);
}
#lf-modal.lf-show {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lf-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    width: 360px;
    max-width: 90vw;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    animation: lfFadeIn .2s ease;
}
@keyframes lfFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lf-title { font-size: 17px; font-weight: 600; color: #303133; margin-bottom: 4px; }
.lf-subtitle { font-size: 13px; color: #909399; margin-bottom: 18px; }
.lf-options { margin-bottom: 22px; }
.lf-option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
    font-size: 14px;
    color: #333;
}
.lf-option:hover { background: #f5f7fa; }
.lf-option input[type="radio"] { margin-right: 10px; accent-color: #409eff; width: 16px; height: 16px; }
.lf-option input[type="radio"]:checked + span { color: #409eff; font-weight: 500; }
.lf-actions { display: flex; }
.lf-submit {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    background: #409eff;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
    margin-right: 10px;
}
.lf-submit:hover { filter: brightness(1.15); }
.lf-submit:disabled { background: #a0cfff; cursor: not-allowed; filter: none; }
.lf-cancel {
    flex: 1;
    padding: 10px 0;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    background: #fff;
    color: #606266;
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s;
}
.lf-cancel:hover { border-color: #409eff; color: #409eff; }

/* ---------- 在线人数胶囊 ---------- */
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px 6px 14px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: #1f2a3a;
    font-weight: 500;
    transition: all .2s ease;
    user-select: none;
    margin-left: 10px;
}
.online-badge:hover {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}
.online-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: breathe 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
}
@keyframes breathe {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { opacity: .7; transform: scale(1.15); box-shadow: 0 0 12px 6px rgba(34,197,94,0.15); }
}
.online-count { font-weight: 700; color: #0f172a; margin: 0 2px; }

/* ---------- 悬浮侧边工具栏 ---------- */
.float-toolbar {
    position: fixed;
    right: 12px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 9999;
}
.float-btn {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.float-btn:hover { background: #f5f5f5; }
.btn-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.icon-top {
    width: 22px; height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.icon-save {
    width: 22px; height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.icon-share {
    width: 22px; height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.share-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.share-modal .modal-content {
    background: #f0f7ff;
    width: 85%;
    max-width: 500px;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
}
.share-modal .fist-icon {
    width: 60px; height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctext x='0' y='20' font-size='20'%3E%E2%9C%8A%3C/text%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    margin: 0 auto 15px;
}
.share-modal .modal-title { color: #008800; font-size: 18px; margin: 10px 0; }
.share-modal .modal-text { color: #333; line-height: 1.6; font-size: 14px; }
.share-modal .modal-platforms { display: flex; justify-content: center; gap: 12px; margin: 20px 0; }
.share-modal .platform { width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.share-modal .platform.weibo { background: #e6162d; }
.share-modal .platform.douyin { background: #000; }
.share-modal .platform.xiaohongshu { background: #fe2c55; }
.share-modal .platform.wechat { background: #07c160; }
.share-modal .platform.qq { background: #12b7f5; }
.share-modal .platform.bilibili { background: #fb7299; }
.share-modal .platform.douban { background: #007722; }
.share-modal .modal-footer { margin-top: 20px; color: #003399; font-weight: bold; font-size: 14px; }
.share-modal .modal-close {
    position: absolute;
    top: 10px; right: 10px;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    font-size: 18px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .float-toolbar { right: 8px; bottom: 15px; gap: 5px; }
    .float-btn { width: 38px; height: 38px; border-radius: 8px; }
    .icon-top, .icon-save, .icon-share { width: 20px; height: 20px; }
}

/* ---------- 收藏提示条 ---------- */
.bottom-bookmark-tip {
    width: 90%;
    max-width: 1300px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eaecef;
    text-align: center;
    font-size: 22px;
    line-height: 1.7;
    color: #222;
    box-sizing: border-box;
}
.key-label {
    display: inline-block;
    background: #e8f9ed;
    border: 2px solid #b9e9c9;
    border-radius: 6px;
    padding: 8px 22px;
    margin: 0 6px;
    font-weight: bold;
    color: #16a34a;
}
.green-url { color: #16a34a; font-weight: 600; }
@media (max-width: 768px) {
    .bottom-bookmark-tip { display: none !important; }
}

/* ---------- APP下载底部悬浮栏 ---------- */
.app-bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9998;
    padding: 15px;
    background: transparent;
    display: none;
    transform: translateY(0);
    transition: transform 0.3s ease;
}
.app-bottom-bar.show { display: block; }
.app-bottom-bar.hide { transform: translateY(100%); }
.app-bottom-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a7c 100%);
    border-radius: 16px;
    max-width: 800px;
    margin: 18px auto 0;
    padding: 16px 20px;
    position: relative;
    box-shadow: 0 -4px 30px rgba(30, 58, 95, 0.4);
    display: flex;
    align-items: center;
    gap: 15px;
}
.app-bottom-close {
    position: absolute;
    top: -12px; right: -8px;
    width: 28px; height: 28px;
    background: #fff;
    border: 2px solid #1e3a5f;
    border-radius: 50%;
    color: #1e3a5f;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.app-bottom-close:hover { background: #1e3a5f; color: #fff; transform: scale(1.1); }
.app-bottom-icon {
    flex-shrink: 0;
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-bottom-icon img { width: 44px; height: 44px; object-fit: contain; }
.app-bottom-info { flex: 1; min-width: 0; }
.app-bottom-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.app-bottom-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: normal;
}
.app-bottom-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-bottom-desc .highlight { color: #ffd54f; font-weight: 500; }
.app-bottom-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.app-bottom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    border: none;
    white-space: nowrap;
}
.app-bottom-btn-primary { background: #fff; color: #1e3a5f; }
.app-bottom-btn-primary:hover { background: #f5f5f5; transform: translateY(-2px); }
.app-bottom-btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.app-bottom-btn-secondary:hover { background: rgba(255,255,255,0.2); }
.app-bottom-btn-icon { width: 16px; height: 16px; }
.wechat-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}
.wechat-modal-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    max-width: 320px;
    width: 90%;
}
.wechat-modal-card .close {
    position: absolute;
    top: 12px; right: 15px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.wechat-modal-card h3 { margin: 0 0 20px; color: #333; font-size: 18px; }
.wechat-qrcode-img {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wechat-qrcode-img img { max-width: 200px; width: 100%; display: block; }
.wechat-tip { color: #666; font-size: 14px; margin: 0; }
@media (max-width: 600px) {
    .app-bottom-bar { padding: 10px; }
    .app-bottom-card { padding: 12px 14px; gap: 10px; flex-wrap: wrap; margin: 20px auto 0; }
    .app-bottom-icon { width: 48px; height: 48px; }
    .app-bottom-icon img { width: 38px; height: 38px; }
    .app-bottom-info { flex: 1 1 auto; min-width: 120px; }
    .app-bottom-title { font-size: 16px; }
    .app-bottom-desc { font-size: 12px; }
    .app-bottom-buttons { width: 100%; justify-content: center; margin-top: 5px; }
    .app-bottom-btn { padding: 8px 14px; font-size: 13px; flex: 1; }
    .app-bottom-close { top: -10px; right: -6px; width: 24px; height: 24px; font-size: 14px; }
}

/* ---------- APP 框架下载弹窗 ---------- */
.app-frame-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    animation: overlayFadeIn 0.25s ease;
}
@keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }
.app-frame-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: modalBounceIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalBounceIn {
    from { opacity: 0; transform: scale(0.85) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.app-frame-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a7c 100%);
    padding: 30px 20px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    position: relative;
}
.app-frame-header-icon {
    width: 72px; height: 72px;
    margin: 0 auto 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.app-frame-header-icon img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
.app-frame-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.app-frame-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: normal;
}
.app-frame-header-desc { font-size: 13px; color: rgba(255,255,255,0.8); margin: 5px 0 0; line-height: 1.5; }
.app-frame-body { padding: 20px; }
.app-frame-download-list { display: flex; flex-direction: column; gap: 12px; }
.app-frame-download-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.app-frame-download-item:hover { border-color: #1e3a5f; box-shadow: 0 2px 12px rgba(30,58,95,0.1); }
.app-frame-download-info { flex: 1; }
.app-frame-download-name { font-size: 15px; font-weight: 600; color: #1e293b; margin: 0 0 4px; }
.app-frame-download-guide { font-size: 12px; color: #94a3b8; margin: 0; line-height: 1.4; }
.app-frame-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    flex-shrink: 0;
}
.app-frame-download-btn:hover { background: #2d4a7c; transform: translateY(-1px); }
.app-frame-footer { margin-top: 20px; padding-top: 15px; border-top: 1px solid #e2e8f0; text-align: center; }
.app-frame-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.app-frame-footer-link:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}
.app-frame-close {
    position: absolute;
    top: 12px; right: 15px;
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 2;
    line-height: 1;
}
.app-frame-close:hover { background: rgba(255,255,255,0.35); transform: rotate(90deg); }
@media (max-width: 600px) {
    .app-frame-modal { max-width: 92%; border-radius: 16px; }
    .app-frame-header { padding: 25px 15px 15px; border-radius: 16px 16px 0 0; }
    .app-frame-header-icon { width: 60px; height: 60px; }
    .app-frame-header-icon img { width: 46px; height: 46px; }
    .app-frame-header-title { font-size: 18px; }
    .app-frame-body { padding: 15px; }
    .app-frame-download-item { padding: 12px; }
    .app-frame-download-name { font-size: 14px; }
    .app-frame-download-btn { padding: 6px 16px; font-size: 13px; }
}

/* ---------- 赞赏排行悬浮模块（复刻 AppreciationDonation） ---------- */
#ad-float {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
#ad-float .ad-heart { display: none; }
#ad-float .ad-card { display: none; }
#ad-float .ad-close { display: none; }
#ad-float .ad-heart {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255,71,87,0.35);
    cursor: pointer;
    transition: transform 0.2s;
    animation: ad-pulse 1.8s ease-in-out infinite;
}
@keyframes ad-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(255,71,87,0.35), 0 0 0 0 rgba(255,71,87,0.5); transform: scale(1); }
    50% { box-shadow: 0 6px 30px rgba(255,71,87,0.7), 0 0 0 14px rgba(255,71,87,0); transform: scale(1.06); }
}
#ad-float .ad-heart:hover { transform: scale(1.12); }
#ad-float .ad-heart svg { fill: #fff; }
#ad-float .ad-close {
    position: absolute;
    right: 10px; top: 10px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    color: #999;
    font-size: 18px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s;
}
#ad-float .ad-close:hover { background: rgba(0,0,0,0.12); color: #333; }
@media (min-width: 768px) {
    #ad-float[data-de="1"]:not(.ad-collapsed) .ad-card { display: block; }
    #ad-float[data-de="1"]:not(.ad-collapsed) .ad-close { display: block; }
    #ad-float[data-de="0"]:not(.ad-open) .ad-heart { display: flex; }
}
@media (max-width: 767px) {
    #ad-float { left: 12px; bottom: 20px; top: auto; transform: none; }
    #ad-float[data-me="1"]:not(.ad-collapsed) .ad-card { display: block; }
    #ad-float[data-me="1"]:not(.ad-collapsed) .ad-close { display: block; }
    #ad-float[data-me="0"]:not(.ad-open) .ad-heart { display: flex; }
    #ad-float.ad-open .ad-card {
        position: fixed;
        left: 50%; top: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 320px;
        z-index: 100001;
    }
    #ad-float.ad-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 100000;
    }
}
#ad-float.ad-open .ad-card { display: block !important; }
#ad-float.ad-open .ad-close { display: block !important; }
#ad-float.ad-open .ad-heart { display: none !important; }
#ad-float.ad-collapsed .ad-card { display: none !important; }
#ad-float.ad-collapsed .ad-close { display: none !important; }
#ad-float.ad-collapsed .ad-heart { display: flex !important; }
html.ad-float-preload-collapsed #ad-float[data-de="1"] .ad-card { display: none; }
html.ad-float-preload-collapsed #ad-float[data-de="1"] .ad-close { display: none; }
html.ad-float-preload-collapsed #ad-float[data-de="1"] .ad-heart { display: flex; }
html.ad-float-preload-collapsed #ad-float[data-me="1"] .ad-card { display: none; }
html.ad-float-preload-collapsed #ad-float[data-me="1"] .ad-close { display: none; }
html.ad-float-preload-collapsed #ad-float[data-me="1"] .ad-heart { display: flex; }
#ad-float .ad-card {
    width: 250px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}
#ad-float .ad-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 38px 10px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-bottom: 1px solid #f5f0f0;
}
#ad-float .ad-head-title { font-size: 15px; font-weight: 700; color: #1a1a1a; letter-spacing: 0.5px; }
#ad-float .ad-head-total { font-size: 14px; font-weight: 700; color: #ff4757; }
#ad-float .ad-sub { padding: 8px 16px; font-size: 12px; color: #888; background: #fafafa; border-bottom: 1px solid #f5f5f5; }
#ad-float .ad-sub b { color: #ff4757; font-weight: 600; }
#ad-float .ad-list { padding: 6px 8px; max-height: 300px; overflow-y: auto; }
#ad-float .ad-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 8px;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
#ad-float .ad-row:hover { background: #f9f9f9; }
#ad-float .ad-meta { flex: 1; min-width: 0; }
#ad-float .ad-name { font-size: 13px; font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
#ad-float .ad-site { font-size: 11px; color: #4CAF50; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
#ad-float .ad-site-empty { color: #ff4757; }
#ad-float .ad-site-msg { color: #ff4757; }
#ad-float .ad-money { font-size: 14px; font-weight: 700; color: #ff4757; flex-shrink: 0; font-variant-numeric: tabular-nums; }
#ad-float .ad-empty { text-align: center; padding: 28px 16px; }
#ad-float .ad-empty p { font-size: 13px; color: #999; margin: 0; }
#ad-float .ad-empty-sub { font-size: 11px !important; color: #ccc !important; margin-top: 2px !important; }
#ad-float .ad-foot { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid #f5f5f5; }
#ad-float .ad-btn { flex: 1; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 0; border-radius: 8px; text-decoration: none; transition: all 0.2s; cursor: pointer; }
#ad-float .ad-btn-outline { color: #666; background: #f5f5f5; border: 1px solid #eee; }
#ad-float .ad-btn-outline:hover { background: #eee; color: #333; }
#ad-float .ad-btn-solid { color: #fff; background: linear-gradient(135deg, #ff4757, #ff6b6b); border: 1px solid #ff4757; }
#ad-float .ad-btn-solid:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(255,71,87,0.3); }
.ad-fav-sm { display: none; }
#ad-float .ad-rank {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    background: #f0f0f0;
    color: #aaa;
}
#ad-float .ad-rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; }
#ad-float .ad-rank-2 { background: linear-gradient(135deg, #E0E0E0, #B0B0B0); color: #fff; }
#ad-float .ad-rank-3 { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #fff; }
#ad-float .ad-fav-fallback.ad-fav-sm {
    display: flex;
    width: 20px; height: 20px;
    border-radius: 5px;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    flex-shrink: 0;
}

/* ---------- 翻页条 & 评论锁定 ---------- */
.iiice-pagebar { text-align: center; margin: 20px 0; }
.iiice-pagebar .iiice-page {
    display: inline-block;
    min-width: 32px;
    padding: 6px 10px;
    margin: 0 3px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
    text-decoration: none;
}
.iiice-pagebar .iiice-page.now { background: #16a34a; border-color: #16a34a; color: #fff; }
.iiice-list-pagebar { margin: 10px 0 20px; }
.iiice-comment-locked { color: #999; font-size: 14px; padding: 15px 0; }
