/**
 * LightSNS Header Styles
 * 全新设计 - 现代化浅色调
 */

/* ========================================
   CSS 变量
   ======================================== */
:root {
    --ls-primary: #6366f1;
    --ls-primary-light: #eef2ff;
    --ls-primary-dark: #4f46e5;
    --ls-primary-rgb: 99, 102, 241;

    --ls-text-primary: #0f172a;
    --ls-text-secondary: #475569;
    --ls-text-muted: #94a3b8;

    --ls-bg-white: #ffffff;
    --ls-bg-light: #f8fafc;
    --ls-bg-hover: #f1f5f9;

    --ls-border: #e2e8f0;
    --ls-border-light: #f1f5f9;

    --ls-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --ls-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --ls-shadow-lg: 0 12px 32px rgba(0,0,0,0.12);

    --ls-radius-sm: 6px;
    --ls-radius-md: 8px;
    --ls-radius-lg: 12px;
    --ls-radius-xl: 16px;
    --ls-radius-full: 9999px;

    --ls-header-height: 64px;
    --ls-transition: all 0.2s ease;
}

/* ========================================
   全局基础样式
   ======================================== */
em {
    font-style: normal;
}

/*表情*/
.ls-emoji {
    width: 20px;
    height: 20px;
    max-height: 20px;
    padding: 0;
    margin: 0;
    vertical-align: -4px;
}

/* ========================================
   头部容器
   ======================================== */
.ls-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ls-header-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--ls-border-light);
    z-index: 10000;
}

.ls-header-inner {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ls-header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.ls-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   Logo
   ======================================== */
.ls-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ls-logo-img {
    height: 36px;
    width: auto;
}

.ls-logo-svg {
    height: 40px;
}

.ls-logo-svg svg {
    width: 100%;
    height: 100%;
}

.ls-logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ls-radius-md);
}

.ls-logo-icon i {
    font-size: 20px;
    color: #fff;
}

.ls-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--ls-text-primary);
    letter-spacing: -0.5px;
}

/* ========================================
   主导航
   ======================================== */
.ls-main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.ls-nav-item {
    position: relative;
}

.ls-nav-item > a,
.ls-nav-item.active {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ls-text-secondary);
    text-decoration: none;
    border-radius: var(--ls-radius-md);
    transition: var(--ls-transition);
}

.ls-nav-item > a:hover {
    color: var(--ls-text-primary);
    background: var(--ls-bg-hover);
}

.ls-nav-item.active > a,
.ls-nav-item.active {
    color: var(--ls-primary);
    background: var(--ls-primary-light);
}

/* 导航图标容器 */
.ls-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ls-nav-icon i {
    font-size: 18px;
}

/* 导航文字容器（用于小红点定位） */
.ls-nav-item > a > span:not(.ls-nav-icon):not(.ls-nav-badge) {
    position: relative;
}

.ls-arrow {
    font-size: 14px;
    opacity: 0.5;
    transition: var(--ls-transition);
}

.ls-has-dropdown:hover .ls-arrow {
    transform: rotate(180deg);
}

/* 导航角标 */
.ls-nav-badge {
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: #ef4444;
    border-radius: var(--ls-radius-full);
    margin-left: 4px;
}

.ls-nav-badge.sale {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

/* 小红点（右上角不占位） */
.ls-nav-dot {
    position: absolute;
    top: -2px;
    right: -6px;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--ls-bg-white);
}

/* ========================================
   下拉菜单基础
   ======================================== */
.ls-hd-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding-top: 8px;
    background: var(--ls-bg-white);
    border-radius: var(--ls-radius-xl);
    box-shadow: var(--ls-shadow-lg);
    border: 1px solid var(--ls-border-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--ls-transition);
    z-index: 100;
}

/* 桥接区域 - 防止鼠标移动时下拉框消失 */
.ls-hd-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.ls-has-dropdown:hover > .ls-hd-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉菜单项 */
.ls-hd-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--ls-text-secondary);
    text-decoration: none;
    transition: var(--ls-transition);
}

.ls-hd-dropdown-item:first-child {
    border-radius: var(--ls-radius-lg) var(--ls-radius-lg) 0 0;
}

.ls-hd-dropdown-item:last-child {
    border-radius: 0 0 var(--ls-radius-lg) var(--ls-radius-lg);
}

.ls-hd-dropdown-item:hover {
    color: var(--ls-primary);
    background: var(--ls-primary-light);
}

.ls-hd-dropdown-item i {
    font-size: 18px;
    opacity: 0.7;
}

.ls-hd-dropdown-divider {
    height: 1px;
    margin: 6px 0;
    background: var(--ls-border-light);
}

/* 下拉菜单角标 */
.ls-item-badge {
    margin-left: auto;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ls-primary);
    background: var(--ls-primary-light);
    border-radius: var(--ls-radius-full);
}

.ls-item-tag {
    margin-left: auto;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    border-radius: var(--ls-radius-sm);
}

.ls-item-tag.new { background: #22c55e; }
.ls-item-tag.hot { background: #ef4444; }

.ls-item-dot {
    width: 6px;
    height: 6px;
    margin-left: auto;
    background: #ef4444;
    border-radius: 50%;
}

/* ========================================
   Mega 下拉菜单
   ======================================== */
.ls-hd-dropdown-mega {
    width: 520px;
    padding: 16px;
}

.ls-hd-dropdown-section {
    margin-bottom: 16px;
}

.ls-hd-dropdown-section:last-child {
    margin-bottom: 0;
}

.ls-hd-dropdown-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--ls-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-left: 4px;
}

.ls-hd-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.ls-hd-dropdown-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    border-radius: var(--ls-radius-lg);
    transition: var(--ls-transition);
    position: relative;
}

.ls-hd-dropdown-card:hover {
    background: var(--ls-bg-hover);
}

.ls-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ls-radius-md);
    flex-shrink: 0;
}

.ls-card-icon i {
    font-size: 20px;
    color: #fff;
}

.ls-card-info {
    flex: 1;
    min-width: 0;
}

.ls-card-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ls-text-primary);
}

.ls-card-desc {
    display: block;
    font-size: 12px;
    color: var(--ls-text-muted);
    margin-top: 2px;
}

.ls-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    border-radius: var(--ls-radius-sm);
}

.ls-card-badge.hot { background: #ef4444; }
.ls-card-badge.new { background: #3b82f6; }
.ls-card-badge.beta { background: #a855f7; }

/* 话题列表 */
.ls-topic-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ls-topic-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: var(--ls-radius-md);
    transition: var(--ls-transition);
}

.ls-topic-item:hover {
    background: var(--ls-bg-hover);
}

.ls-topic-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--ls-text-muted);
    background: var(--ls-bg-hover);
    border-radius: var(--ls-radius-sm);
}

.ls-topic-rank.hot {
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.ls-topic-name {
    flex: 1;
    font-size: 14px;
    color: var(--ls-text-primary);
}

.ls-topic-heat {
    font-size: 12px;
    color: var(--ls-text-muted);
}

/* 热门列表通用样式 */
.ls-hot-section {
    border-top: 1px solid var(--ls-border-light);
    padding-top: 16px;
}

.ls-hot-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ls-hot-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    font-size: 13px;
    color: var(--ls-text-muted);
}

.ls-hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: var(--ls-radius-md);
    transition: var(--ls-transition);
}

.ls-hot-item:hover {
    background: var(--ls-bg-hover);
}

.ls-hot-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--ls-text-muted);
    background: var(--ls-bg-hover);
    border-radius: var(--ls-radius-sm);
    flex-shrink: 0;
}

.ls-hot-rank.top {
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.ls-hot-title {
    flex: 1;
    font-size: 14px;
    color: var(--ls-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-hot-count {
    font-size: 12px;
    color: var(--ls-text-muted);
    flex-shrink: 0;
}

/* ========================================
   搜索触发器
   ======================================== */
.ls-search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--ls-text-muted);
    background: var(--ls-bg-hover);
    border-radius: var(--ls-radius-full);
    cursor: pointer;
    transition: var(--ls-transition);
}

.ls-search-trigger:hover {
    background: var(--ls-bg-light);
    color: var(--ls-text-secondary);
}

.ls-search-trigger kbd {
    padding: 2px 6px;
    font-size: 11px;
    font-family: inherit;
    color: var(--ls-text-muted);
    background: var(--ls-bg-white);
    border: 1px solid var(--ls-border);
    border-radius: 4px;
}

/* ========================================
   图标按钮
   ======================================== */
.ls-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--ls-text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--ls-radius-md);
    cursor: pointer;
    transition: var(--ls-transition);
}

.ls-icon-btn:hover {
    color: var(--ls-text-primary);
    background: var(--ls-bg-hover);
}

.ls-dot-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--ls-bg-white);
}

.ls-count-badge {
    position: absolute;
    top: -2px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #ef4444;
    border-radius: var(--ls-radius-full);
    border: 2px solid var(--ls-bg-white);
}

/* ========================================
   消息下拉
   ======================================== */
.ls-messages {
    position: relative;
}

.ls-hd-dropdown-messages {
    width: 380px;
    right: 0;
    left: auto;
}

.ls-hd-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ls-border-light);
}

.ls-hd-dropdown-header span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ls-text-primary);
}

.ls-hd-dropdown-header span i {
    font-size: 18px;
    color: var(--ls-primary);
}

.ls-hd-dropdown-header a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--ls-primary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--ls-radius-sm);
    transition: var(--ls-transition);
}

.ls-hd-dropdown-header a:hover {
    background: var(--ls-primary-light);
}

.ls-hd-dropdown-header a i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.ls-hd-dropdown-header a:hover i {
    transform: translateX(2px);
}

.ls-message-list {
    min-height: 200px;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ls-border-light) transparent;
}

.ls-message-list::-webkit-scrollbar {
    width: 4px;
}

.ls-message-list::-webkit-scrollbar-track {
    background: transparent;
}

.ls-message-list::-webkit-scrollbar-thumb {
    background: var(--ls-border-light);
    border-radius: 2px;
}

/* 空状态 */
.ls-msg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--ls-text-muted);
}

.ls-msg-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.ls-msg-empty span {
    font-size: 14px;
}

.ls-message-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    transition: var(--ls-transition);
    border-bottom: 1px solid var(--ls-border-light);
    position: relative;
}

.ls-message-item:last-child {
    border-bottom: none;
}

.ls-message-item:hover {
    background: var(--ls-bg-hover);
}

.ls-message-item.unread {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.06) 0%, transparent 100%);
}

.ls-message-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--ls-primary);
    border-radius: 0 2px 2px 0;
}

.ls-msg-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.ls-msg-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--ls-radius-lg);
    object-fit: cover;
    border: 2px solid var(--ls-border-light);
}

.ls-msg-group-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ls-bg-secondary);
    color: var(--ls-text-tertiary);
    font-size: 20px;
}

.ls-message-item.unread .ls-msg-avatar {
    border-color: var(--ls-primary);
}

.ls-msg-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #ef4444;
    border-radius: var(--ls-radius-full);
    border: 2px solid var(--ls-bg-white);
}

.ls-msg-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ls-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ls-msg-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ls-text-primary);
}

.ls-msg-time {
    font-size: 12px;
    color: var(--ls-text-muted);
}

.ls-msg-text {
    font-size: 13px;
    color: var(--ls-text-secondary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.ls-message-item.unread .ls-msg-text {
    color: var(--ls-text-primary);
    font-weight: 500;
}

/* ========================================
   通知下拉
   ======================================== */
.ls-notifications {
    position: relative;
}

.ls-hd-dropdown-notifications {
    width: 420px;
    right: 0;
    left: auto;
}

.ls-mark-read {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ls-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--ls-radius-sm);
    transition: var(--ls-transition);
}

.ls-mark-read:hover {
    background: var(--ls-primary-light);
}

.ls-mark-read i {
    font-size: 14px;
}

.ls-notify-tabs {
    display: flex;
    gap: 2px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--ls-border-light);
    background: var(--ls-bg-secondary);
}

.ls-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--ls-text-secondary);
    background: none;
    border: none;
    border-radius: var(--ls-radius-md);
    cursor: pointer;
    transition: var(--ls-transition);
    flex: 1;
    position: relative;
}

.ls-tab i {
    font-size: 18px;
    line-height: 1;
}

.ls-tab span {
    font-size: 11px;
    line-height: 1;
}

.ls-tab:hover {
    background: var(--ls-bg-hover);
    color: var(--ls-text-primary);
}

.ls-tab.active {
    color: var(--ls-primary);
    background: var(--ls-bg-main);
    font-weight: 500;
}

.ls-tab.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--ls-primary);
    border-radius: 2px;
}

.ls-tab.active i {
    color: var(--ls-primary);
}

.ls-tab-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background: #ef4444;
    border-radius: var(--ls-radius-full);
}

.ls-notify-list {
    min-height: 200px;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ls-border-light) transparent;
}

.ls-notify-list::-webkit-scrollbar {
    width: 4px;
}

.ls-notify-list::-webkit-scrollbar-track {
    background: transparent;
}

.ls-notify-list::-webkit-scrollbar-thumb {
    background: var(--ls-border-light);
    border-radius: 2px;
}

.ls-notify-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    transition: var(--ls-transition);
    border-bottom: 1px solid var(--ls-border-light);
    position: relative;
    cursor: pointer;
}

.ls-notify-item:last-child {
    border-bottom: none;
}

.ls-notify-item:hover {
    background: var(--ls-bg-hover);
}

.ls-notify-item.unread {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.06) 0%, transparent 100%);
}

.ls-notify-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--ls-primary);
    border-radius: 0 2px 2px 0;
}

.ls-notify-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ls-radius-md);
    flex-shrink: 0;
    font-size: 18px;
}

.ls-notify-icon.like { background: linear-gradient(135deg, #fef2f2, #fee2e2); color: #ef4444; }
.ls-notify-icon.comment { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #3b82f6; }
.ls-notify-icon.follow { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #22c55e; }
.ls-notify-icon.system { background: linear-gradient(135deg, #faf5ff, #f3e8ff); color: #a855f7; }
.ls-notify-icon.at { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #f59e0b; }
.ls-notify-icon.notice { background: linear-gradient(135deg, #ecfeff, #cffafe); color: #06b6d4; }
.ls-notify-icon.reward { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #f97316; }
.ls-notify-icon.transfer { background: linear-gradient(135deg, #f0fdf4, #d1fae5); color: #10b981; }

.ls-notify-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ls-notify-content p {
    font-size: 13px;
    color: var(--ls-text-secondary);
    margin: 0 0 4px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ls-notify-content strong {
    color: var(--ls-text-primary);
    font-weight: 500;
}

.ls-notify-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ls-notify-time {
    font-size: 12px;
    color: var(--ls-text-muted);
}

.ls-notify-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--ls-radius-sm);
    background: var(--ls-bg-hover);
    color: var(--ls-text-muted);
}

/* 空状态 */
.ls-notify-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--ls-text-muted);
}

.ls-notify-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.ls-notify-empty span {
    font-size: 14px;
}

.ls-hd-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ls-primary);
    text-align: center;
    text-decoration: none;
    border-top: 1px solid var(--ls-border-light);
    transition: var(--ls-transition);
}

.ls-hd-dropdown-footer i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.ls-hd-dropdown-footer:hover {
    background: var(--ls-primary-light);
}

.ls-hd-dropdown-footer:hover i {
    transform: translateX(3px);
}

/* ========================================
   创作按钮
   ======================================== */
.ls-create {
    position: relative;
}

.ls-create-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--ls-primary);
    border: none;
    border-radius: var(--ls-radius-full);
    cursor: pointer;
    transition: var(--ls-transition);
}

.ls-create-btn:hover {
    background: var(--ls-primary-dark);
    box-shadow: 0 4px 12px rgba(var(--ls-primary-rgb), 0.3);
}

.ls-create-btn i {
    font-size: 18px;
}

.ls-hd-dropdown-create {
    width: 320px;
    right: 0;
    left: auto;
    padding: 12px;
}

.ls-create-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ls-create-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    text-decoration: none;
    border-radius: var(--ls-radius-lg);
    transition: var(--ls-transition);
    position: relative;
}

.ls-create-item:hover {
    background: var(--ls-bg-hover);
}

.ls-create-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ls-radius-lg);
    font-size: 22px;
    color: #fff;
}

.ls-create-icon.article { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.ls-create-icon.post { background: linear-gradient(135deg, #22c55e, #16a34a); }
.ls-create-icon.video { background: linear-gradient(135deg, #f97316, #ea580c); }
.ls-create-icon.question { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.ls-create-icon.album { background: linear-gradient(135deg, #ec4899, #db2777); }
.ls-create-icon.live { background: linear-gradient(135deg, #ef4444, #dc2626); }

.ls-create-item span {
    font-size: 13px;
    color: var(--ls-text-primary);
}

.ls-create-footer {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--ls-border-light);
}

.ls-create-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    font-size: 13px;
    color: var(--ls-text-secondary);
    text-decoration: none;
    border-radius: var(--ls-radius-md);
    transition: var(--ls-transition);
}

.ls-create-footer a:hover {
    color: var(--ls-primary);
    background: var(--ls-primary-light);
}

/* ========================================
   用户触发器
   ======================================== */
.ls-user {
    position: relative;
}

.ls-user-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: var(--jinsom-border-radius-avatar, 50%);
    cursor: pointer;
    transition: var(--ls-transition);
}

.ls-user-trigger:hover {
    background: var(--ls-bg-hover);
}

.ls-trigger-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--jinsom-border-radius-avatar, 50%);
    object-fit: cover;
}

.ls-user-trigger > i {
    font-size: 16px;
    color: var(--ls-text-muted);
    margin-right: 4px;
}

/* ========================================
   用户下拉面板
   ======================================== */
.ls-hd-dropdown-user {
    width: 280px;
    right: 0;
    left: auto;
    overflow: hidden;
    padding: 0;
}

/* 用户信息头部 */
.ls-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.ls-user-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.ls-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--jinsom-border-radius-avatar, 50%);
    object-fit: cover;
}

/* 头像认证角标 */
.ls-avatar-verify {
    position: absolute;
    bottom: -2px;
    right: -2px;
}

.ls-avatar-verify .jinsom-verify-icon {
    display: block;
}

.ls-avatar-verify .jinsom-verify-icon img {
    width: 16px;
    height: 16px;
    border-radius: var(--ls-radius-full);
    border: 2px solid #fff;
    background: #fff;
    right: 0px;
    bottom: 2px;
}

.ls-user-info {
    flex: 1;
    min-width: 0;
}

.ls-user-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.ls-user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ls-text-primary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-user-name:hover {
    color: var(--ls-primary);
}

.ls-user-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 等级标签（使用系统自带的 jinsom-lv 样式） */
.ls-user-meta .jinsom-lv {
    font-size: 10px;
    padding: 1px 5px;
}

.ls-meta-dot {
    width: 3px;
    height: 3px;
    background: var(--ls-text-muted);
    border-radius: 50%;
}

.ls-meta-text {
    font-size: 12px;
    color: var(--ls-text-muted);
}

.ls-user-goto {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ls-text-muted);
    background: var(--ls-bg-hover);
    border-radius: var(--ls-radius-full);
    transition: var(--ls-transition);
    flex-shrink: 0;
}

.ls-user-goto:hover {
    color: var(--ls-primary);
    background: var(--ls-primary-light);
}

.ls-user-goto i {
    font-size: 16px;
}

/* 经验进度 */
.ls-exp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 12px;
}

.ls-exp-bar {
    flex: 1;
    height: 4px;
    background: var(--ls-bg-hover);
    border-radius: var(--ls-radius-full);
    overflow: hidden;
}

.ls-exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: var(--ls-radius-full);
}

.ls-exp-text {
    font-size: 11px;
    color: var(--ls-text-muted);
    white-space: nowrap;
}

/* 数据统计 */
.ls-stats-grid {
    display: flex;
    margin: 0 12px 8px;
    background: var(--ls-bg-light);
    border-radius: var(--ls-radius-lg);
    overflow: hidden;
}

.ls-stat-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 0;
    text-decoration: none;
    transition: var(--ls-transition);
}

.ls-stat-box:hover {
    background: var(--ls-bg-hover);
}

.ls-stat-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--ls-text-primary);
}

.ls-stat-box:hover .ls-stat-num {
    color: var(--ls-primary);
}

.ls-stat-label {
    font-size: 11px;
    color: var(--ls-text-muted);
}

/* VIP 入口 */
.ls-vip-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 12px 8px;
    padding: 10px 12px;
    background: var(--ls-bg-light);
    border-radius: var(--ls-radius-lg);
    text-decoration: none;
    transition: var(--ls-transition);
}

.ls-vip-entry:hover {
    background: var(--ls-bg-hover);
}

.ls-vip-entry.is-vip {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.ls-vip-entry.is-vip:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
}

.ls-vip-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    border-radius: var(--ls-radius-md);
}

.ls-vip-entry.is-vip .ls-vip-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.ls-vip-icon i {
    font-size: 16px;
    color: #fff;
}

.ls-vip-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ls-vip-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ls-text-primary);
}

.ls-vip-entry.is-vip .ls-vip-title {
    color: #92400e;
}

.ls-vip-sub {
    font-size: 11px;
    color: var(--ls-text-muted);
}

.ls-vip-entry.is-vip .ls-vip-sub {
    color: #b45309;
}

.ls-vip-arrow {
    font-size: 16px;
    color: var(--ls-text-muted);
}

.ls-vip-entry.is-vip .ls-vip-arrow {
    color: #92400e;
}

/* 资产入口 */
.ls-assets-grid {
    display: flex;
    gap: 8px;
    margin: 0 12px 8px;
}

.ls-asset-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--ls-bg-light);
    border-radius: var(--ls-radius-lg);
    text-decoration: none;
    transition: var(--ls-transition);
}

.ls-asset-box:hover {
    background: var(--ls-bg-hover);
}

.ls-asset-box i {
    font-size: 20px;
}

.ls-asset-box.coin i {
    color: #f59e0b;
}

.ls-asset-box.balance i {
    color: #3b82f6;
}

.ls-asset-box.points i {
    color: #ec4899;
}

.ls-asset-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ls-asset-num {
    font-size: 14px;
    font-weight: 600;
    color: var(--ls-text-primary);
}

.ls-asset-label {
    font-size: 10px;
    color: var(--ls-text-muted);
}

/* 用户菜单 */
.ls-user-menu {
    padding: 8px;
}

.ls-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--ls-text-secondary);
    text-decoration: none;
    border-radius: var(--ls-radius-md);
    transition: var(--ls-transition);
}

.ls-menu-item:hover {
    color: var(--ls-text-primary);
    background: var(--ls-bg-hover);
}

.ls-menu-item i {
    font-size: 18px;
    opacity: 0.7;
}

.ls-menu-count {
    margin-left: auto;
    padding: 2px 8px;
    font-size: 12px;
    color: var(--ls-text-muted);
    background: var(--ls-bg-hover);
    border-radius: var(--ls-radius-full);
}

.ls-menu-divider {
    height: 1px;
    margin: 6px 0;
    background: var(--ls-border-light);
}

.ls-menu-item.admin {
    color: var(--ls-primary);
}

.ls-menu-item.logout {
    color: #ef4444;
}

.ls-menu-item.logout:hover {
    background: #fef2f2;
}

/* 社区号显示 */
.ls-menu-uid {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 11px;
    color: var(--ls-text-muted);
    background: var(--ls-bg-hover);
    border-radius: var(--ls-radius-full);
    cursor: pointer;
    transition: var(--ls-transition);
}

.ls-menu-uid:hover {
    color: var(--ls-primary);
    background: var(--ls-primary-light);
}

.ls-menu-uid em {
    font-style: normal;
    font-weight: 500;
    color: var(--ls-text-muted);
}

.ls-menu-uid:hover em {
    color: var(--ls-primary);
}

.ls-menu-uid span {
    font-weight: 600;
    color: var(--ls-text-secondary);
}

.ls-menu-uid:hover span {
    color: var(--ls-primary);
}

.ls-menu-uid i {
    font-size: 12px;
    opacity: 0.6;
}

.ls-menu-uid:hover i {
    opacity: 1;
}

/* ========================================
   搜索弹窗
   ======================================== */
.ls-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10005;
    display: none;
}

.ls-search-modal.active {
    display: block;
}

.ls-search-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.ls-search-container {
    position: relative;
    max-width: 600px;
    margin: 80px auto 0;
    background: var(--ls-bg-white);
    border-radius: var(--ls-radius-xl);
    box-shadow: var(--ls-shadow-lg);
    overflow: hidden;
}

.ls-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ls-border-light);
}

.ls-search-box i {
    font-size: 22px;
    color: var(--ls-text-muted);
}

.ls-search-box input {
    flex: 1;
    font-size: 16px;
    color: var(--ls-text-primary);
    border: none;
    outline: none;
    background: transparent;
}

.ls-search-box input::placeholder {
    color: var(--ls-text-muted);
}

.ls-search-box kbd {
    padding: 4px 8px;
    font-size: 12px;
    color: var(--ls-text-muted);
    background: var(--ls-bg-hover);
    border: 1px solid var(--ls-border);
    border-radius: var(--ls-radius-sm);
}

.ls-search-content {
    padding: 16px 20px;
}

.ls-search-section {
    margin-bottom: 20px;
}

.ls-search-section:last-child {
    margin-bottom: 0;
}

.ls-search-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--ls-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.ls-hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ls-hot-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--ls-text-secondary);
    background: var(--ls-bg-hover);
    border-radius: var(--ls-radius-full);
    text-decoration: none;
    transition: var(--ls-transition);
}

.ls-hot-tag:hover {
    color: var(--ls-primary);
    background: var(--ls-primary-light);
}

.ls-hot-tag i {
    color: #ef4444;
}

.ls-recent-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ls-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--ls-text-secondary);
    text-decoration: none;
    border-radius: var(--ls-radius-md);
    transition: var(--ls-transition);
}

.ls-recent-item:hover {
    background: var(--ls-bg-hover);
}

.ls-recent-item i {
    font-size: 16px;
    color: var(--ls-text-muted);
}

.ls-recent-item span {
    flex: 1;
}

.ls-recent-item .ls-remove {
    opacity: 0;
    transition: var(--ls-transition);
}

.ls-recent-item:hover .ls-remove {
    opacity: 1;
}

/* ========================================
   未登录状态
   ======================================== */
.ls-auth-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ls-login-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ls-primary);
    text-decoration: none;
    border-radius: var(--ls-radius-full);
    transition: var(--ls-transition);
}

.ls-login-btn:hover {
    background: var(--ls-primary-light);
}

.ls-register-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--ls-primary);
    text-decoration: none;
    border-radius: var(--ls-radius-full);
    transition: var(--ls-transition);
}

.ls-register-btn:hover {
    background: var(--ls-primary-dark);
}

/* ========================================
   空提示
   ======================================== */
.ls-empty-tip {
    padding: 32px 16px;
    font-size: 14px;
    color: var(--ls-text-muted);
    text-align: center;
}

/* 加载动画 */
@keyframes ri-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ri-spin {
    animation: ri-spin 1s linear infinite;
}


body {
    padding-top: var(--ls-header-height);
}

/* ========================================
   小工具通用样式
   Widget Styles - 侧边栏小工具组件
   ======================================== */

/* 小工具卡片基础样式 */
.ls-widget-card {
    background: var(--ls-bg-white, #fff);
    border-radius: var(--jinsom-border-radius, 12px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* 小工具头部 */
.ls-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 0;
}

.ls-widget-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ls-text-primary, #1f1f1f);
    margin: 0;
}

.ls-widget-header .ls-more {
    font-size: 12px;
    color: var(--ls-text-muted, #909090);
    cursor: pointer;
}

.ls-widget-header .ls-more:hover {
    color: var(--ls-primary, #1a73e8);
}

/* ---- 小工具标题样式变体 ---- */

/* 1. 彩色双斜杠：两条倾斜彩色竖条（::before + ::after） */
.widget-title-double-slash .ls-widget-header h3 {
    position: relative;
    padding-left: 20px;
}
.widget-title-double-slash .ls-widget-header h3::before,
.widget-title-double-slash .ls-widget-header h3::after {
    content: '';
    position: absolute;
    border-radius: 2px;
    top: 50%;
}
.widget-title-double-slash .ls-widget-header h3::before {
    left: 0;
    width: 3px;
    height: 15px;
    background: #ff5473;
    transform: translateY(-50%) rotate(15deg);
}
.widget-title-double-slash .ls-widget-header h3::after {
    left: 7px;
    width: 3px;
    height: 12px;
    background: #2196f3;
    transform: translateY(-50%) rotate(15deg);
}

/* 2. 波浪下划线：底部波浪 SVG */
.widget-title-wave-underline .ls-widget-header h3 {
    position: relative;
    padding-bottom: 10px;
}
.widget-title-wave-underline .ls-widget-header h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6'%3E%3Cpath d='M0 3 Q5 0 10 3 Q15 6 20 3 Q25 0 30 3 Q35 6 40 3' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
}

/* 3. 荧光标记：文字底部高亮色块，模拟荧光笔 */
.widget-title-highlight .ls-widget-header h3 {
    display: inline;
    padding: 2px 4px;
    background-image: linear-gradient(
        transparent 40%,
        rgba(251, 191, 36, 0.4) 40%
    );
}

/* 4. 方块图标：渐变小方块前缀 */
.widget-title-square-icon .ls-widget-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-title-square-icon .ls-widget-header h3::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, #3b82f6, #a78bfa);
}

/* 5. 底部渐变条：紫粉渐变色条装饰 */
.widget-title-gradient-bar .ls-widget-header h3 {
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}
.widget-title-gradient-bar .ls-widget-header h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
}

/* 6. 引号装饰：左上角大引号 */
.widget-title-quote .ls-widget-header h3 {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}
.widget-title-quote .ls-widget-header h3::before {
    content: '\201C';
    flex-shrink: 0;
    font-size: 28px;
    line-height: 0.6;
    font-weight: 700;
    font-family: Georgia, serif;
    color: #f472b6;
    opacity: 0.7;
}

/* 7. 火焰图标：emoji 火焰前缀（参考 Twitter/X 热门话题） */
.widget-title-fire .ls-widget-header h3 {
    display: flex;
    align-items: center;
    gap: 6px;
}
.widget-title-fire .ls-widget-header h3::before {
    content: '\1F525';
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1;
}

/* 8. 圆角色块：小圆角色块前缀（参考 Bilibili 分区标题） */
.widget-title-block .ls-widget-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-title-block .ls-widget-header h3::before {
    content: '';
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

/* 9. 双色下划线：两段不同颜色的下划线（参考 Notion 标题） */
.widget-title-dual-line .ls-widget-header h3 {
    position: relative;
    padding-bottom: 8px;
}
.widget-title-dual-line .ls-widget-header h3::before,
.widget-title-dual-line .ls-widget-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
}
.widget-title-dual-line .ls-widget-header h3::before {
    left: 0;
    width: 20px;
    background: #6366f1;
}
.widget-title-dual-line .ls-widget-header h3::after {
    left: 24px;
    width: 8px;
    background: #f472b6;
}

/* 10. 彩色竖线：左侧渐变竖线（参考 YouTube 频道页） */
.widget-title-stroke .ls-widget-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.widget-title-stroke .ls-widget-header h3::before {
    content: '';
    flex-shrink: 0;
    width: 4px;
    height: 1em;
    border-radius: 2px;
    background: linear-gradient(180deg, #6366f1, #ec4899);
}

/* 11. 圆点分隔：标题前彩色圆点（参考 Dribbble 分类标题） */
.widget-title-dot .ls-widget-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-title-dot .ls-widget-header h3::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f43f5e;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2);
}

/* 12. 左侧双竖线：两条平行竖线前缀（参考 Medium 引用风格） */
.widget-title-double-bar .ls-widget-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.widget-title-double-bar .ls-widget-header h3::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 1em;
    border-left: 3px solid #6366f1;
    border-right: 3px solid #a78bfa;
    border-radius: 1px;
}

/* 13. 括号装饰：左右方括号包裹（参考 Reddit 板块标题） */
.widget-title-bracket .ls-widget-header h3 {
    display: flex;
    align-items: center;
    gap: 2px;
}
.widget-title-bracket .ls-widget-header h3::before {
    content: '[';
    color: #6366f1;
    font-weight: 700;
    font-size: 1.1em;
}
.widget-title-bracket .ls-widget-header h3::after {
    content: ']';
    color: #6366f1;
    font-weight: 700;
    font-size: 1.1em;
}

/* 小工具内容区 */
.ls-widget-body {
    padding: 14px 16px 14px;
}

/* 小工具占位容器 */
.ls-sidebar-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
}

.ls-sidebar-wrap:empty {
    display: none;
}

.ls-sidebar-wrap.loading {
    min-height: 120px;
}

.ls-sidebar-wrap .widget-skeleton {
    padding: 15px;
    background-color: #fff;
    min-height: 250px;
}

.ls-sidebar-wrap .widget-skeleton .skeleton-line {
    height: 16px;
    background: var(--skeleton-color);
    border-radius: 4px;
    margin-bottom: 12px;
    animation: skeleton-effect-fade 1s infinite;
}

.ls-sidebar-wrap .widget-skeleton .skeleton-line.short {
    width: 60%;
}

/* 最后一个小工具滚动时自动悬浮 */
.ls-sidebar-right > .ls-sidebar-wrap:last-child,
.ls-sidebar-left > .ls-sidebar-wrap:last-child {
    position: sticky;
    top: 73px;
}

/* ========================================
   侧边栏容器公共样式
   ======================================== */
.ls-sidebar-right,
.ls-sidebar-left {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--ls-gap, 12px);
}

/* ========================================
   实时动态吐司（左下角）
   ======================================== */
.ls-now-toast {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 340px;
    transform: translateX(-120%);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.ls-now-toast-show {
    transform: translateX(0);
}
.ls-now-toast-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}
.ls-now-toast-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.ls-now-toast-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ls-now-toast-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ls-now-toast-tip {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ls-now-toast-close {
    cursor: pointer;
    color: #9ca3af;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.ls-now-toast-close:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.05);
}

/* 聊天消息吐司 */
.ls-now-toast-chat {
    max-width: 380px;
}
.ls-now-toast-tip-chat {
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    color: #6b7280;
}
.ls-now-toast-tip-chat .ls-chat-toast-text {
    max-width: 180px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}
.ls-now-toast-tip-chat .ls-chat-toast-text .ls-emoji {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
}
.ls-now-toast-tip-chat .ls-chat-toast-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #6366f1;
    font-size: 12px;
}
.ls-now-toast-tip-chat .ls-chat-toast-tag .remix-icon {
    font-size: 14px;
}

/* ========================================
   新内容提示条
   ======================================== */
.ls-new-post-bar {
    text-align: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    user-select: none;
}
.ls-new-post-bar-show {
    opacity: 1;
    transform: translateY(0);
}
.ls-new-post-bar:hover {
    filter: brightness(1.05);
}
.ls-new-post-bar i {
    margin-right: 4px;
    font-size: 14px;
    vertical-align: -1px;
}

/* ========================================
   Footer 底部区域
   v3 - 精致浅色系，无统计区
   ======================================== */

/* --- Footer 容器 --- */
.ls-footer {
    margin-top: 48px;
}

/* --- Footer 主体区域 --- */
.ls-footer-main {
    background: var(--ls-bg-light);
    border-top: 1px solid var(--ls-border);
    position: relative;
}

/* 顶部装饰线 */
.ls-footer-main::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ls-primary), transparent);
    opacity: 0.4;
}

.ls-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 24px 36px;
    display: flex;
    gap: 56px;
}

/* --- 品牌区 --- */
.ls-footer-brand {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
}

/* Logo */
.ls-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 14px;
}

.ls-footer-logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ls-primary), var(--ls-primary-dark));
    border-radius: var(--ls-radius-md);
    box-shadow: 0 2px 8px rgba(var(--ls-primary-rgb), 0.25);
}

.ls-footer-logo-icon i {
    font-size: 17px;
    color: #fff;
}

.ls-footer-logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--ls-text-primary);
    letter-spacing: -0.5px;
}

/* 简介 */
.ls-footer-desc {
    font-size: 13px;
    line-height: 1.75;
    color: var(--ls-text-muted);
    margin: 0 0 18px;
}

/* 社交图标 */
.ls-footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ls-footer-social-item {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ls-text-muted);
    background: transparent;
    border-radius: var(--ls-radius-full);
    text-decoration: none;
    transition: var(--ls-transition);
}

.ls-footer-social-item i {
    font-size: 16px;
}

.ls-footer-social-item:hover {
    color: var(--ls-primary);
    background: var(--ls-primary-light);
    transform: translateY(-1px);
}

/* --- 导航列 --- */
.ls-footer-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ls-footer-nav-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ls-text-primary);
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ls-footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ls-footer-nav-link {
    font-size: 13px;
    color: var(--ls-text-muted);
    text-decoration: none;
    transition: var(--ls-transition);
    display: inline-flex;
    align-items: center;
    padding: 2px 0 2px 0;
    position: relative;
}

.ls-footer-nav-link::before {
    content: '';
    width: 2px;
    height: 0;
    background: var(--ls-primary);
    border-radius: 2px;
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    transition: height 0.2s ease;
}

.ls-footer-nav-link:hover {
    color: var(--ls-primary);
}

.ls-footer-nav-link:hover::before {
    height: 12px;
}

/* --- 右侧二维码 + 下载 --- */
.ls-footer-aside {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.ls-footer-aside > .ls-footer-nav-title {
    margin-bottom: 0;
}

/* 二维码组 */
.ls-footer-qrcode-group {
    display: flex;
    gap: 14px;
}

/* 二维码 */
.ls-footer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ls-footer-qrcode-img {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ls-bg-white);
    border: 1px solid var(--ls-border);
    border-radius: var(--ls-radius-lg);
    transition: var(--ls-transition);
}

.ls-footer-qrcode-img:hover {
    border-color: var(--ls-primary);
    box-shadow: 0 2px 12px rgba(var(--ls-primary-rgb), 0.1);
}

.ls-footer-qrcode-img i {
    font-size: 40px;
    color: var(--ls-text-muted);
    opacity: 0.3;
}

.ls-footer-qrcode-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--ls-radius-lg);
}

/* Logo 图片/SVG 模式 */
.ls-footer-logo-img {
    height: 36px;
    width: auto;
}

.ls-footer-logo-svg {
    height: 36px;
}

.ls-footer-logo-svg svg {
    width: 100%;
    height: 100%;
}

.ls-footer-qrcode-text {
    font-size: 11px;
    color: var(--ls-text-muted);
}

/* 下载按钮 */
.ls-footer-download {
    display: flex;
    gap: 6px;
    width: 100%;
}

.ls-footer-download-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ls-text-muted);
    background: var(--ls-bg-white);
    border: 1px solid var(--ls-border);
    border-radius: var(--ls-radius-md);
    text-decoration: none;
    transition: var(--ls-transition);
    white-space: nowrap;
    line-height: 1;
}

.ls-footer-download-btn > i {
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.ls-footer-download-btn > span {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.ls-footer-download-btn:hover {
    color: var(--ls-primary);
    border-color: var(--ls-primary);
    background: var(--ls-primary-light);
}

/* --- 底部版权栏 --- */
.ls-footer-bottom {
    background: var(--ls-bg-light);
    border-top: 1px solid var(--ls-border-light);
}

.ls-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ls-footer-copyright {
    font-size: 12px;
    color: var(--ls-text-muted);
    margin: 0;
    opacity: 0.7;
}

.ls-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ls-footer-bottom-links a {
    font-size: 12px;
    color: var(--ls-text-muted);
    text-decoration: none;
    transition: var(--ls-transition);
    opacity: 0.7;
}

.ls-footer-bottom-links a:hover {
    color: var(--ls-primary);
    opacity: 1;
}

.ls-footer-bottom-dot {
    width: 3px;
    height: 3px;
    background: var(--ls-text-muted);
    border-radius: 50%;
    opacity: 0.3;
}

/* --- Footer 响应式 --- */
@media (max-width: 1024px) {
    .ls-footer-inner {
        flex-wrap: wrap;
        gap: 32px;
    }

    .ls-footer-brand {
        flex: 0 0 100%;
    }

    .ls-footer-aside {
        flex: 0 0 100%;
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }

    .ls-footer-download {
        width: auto;
    }
}

/* ========================================
   悬浮菜单 - Float Menu
   ======================================== */

/* ----------------------------------------
   类型一：悬浮按钮（Float）
   悬浮在页面角落的圆角胶囊式菜单
   ---------------------------------------- */

/* --- 样式1：经典胶囊 --- */

/* 容器 */
.ls-float-menu {
    position: fixed;
    bottom: 140px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 位置：右侧 / 左侧（JS 会动态计算对齐 .ls-sns-page，style4 除外） */
.ls-float-menu--right {
    right: 20px;
}
.ls-float-menu--left {
    left: 20px;
}

/* 菜单列表 */
.ls-float-menu__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: var(--ls-bg-white);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    max-height: 500px;
    opacity: 1;
}

/* 菜单项 */
.ls-float-menu__item {
    position: relative;
}

.ls-float-menu__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--ls-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.ls-float-menu__item a:hover {
    background: var(--ls-bg-hover);
    color: var(--ls-primary);
}

.ls-float-menu__item a i {
    font-size: 20px;
    line-height: 1;
}

/* Tooltip 提示 */
.ls-float-menu__tooltip {
    position: absolute;
    white-space: nowrap;
    background: var(--ls-text-primary);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease;
    top: 50%;
    transform: translateY(-50%);
}

/* 右侧菜单 - tooltip 显示在左边 */
.ls-float-menu--right .ls-float-menu__tooltip {
    right: calc(100% + 10px);
}
.ls-float-menu--right .ls-float-menu__item a:hover .ls-float-menu__tooltip {
    opacity: 1;
    right: calc(100% + 12px);
}

/* 左侧菜单 - tooltip 显示在右边 */
.ls-float-menu--left .ls-float-menu__tooltip {
    left: calc(100% + 10px);
}
.ls-float-menu--left .ls-float-menu__item a:hover .ls-float-menu__tooltip {
    opacity: 1;
    left: calc(100% + 12px);
}

/* 角标（消息数） */
.ls-float-menu__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: #ef4444;
    border-radius: 10px;
    padding: 0 4px;
    pointer-events: none;
}

/* 回到顶部按钮 - 默认隐藏，滚动后显示 */
.ls-float-menu__item--top {
    display: none;
}

/* 折叠按钮 */
.ls-float-menu__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--ls-bg-white);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    color: var(--ls-text-muted);
    transition: all 0.2s ease;
}

.ls-float-menu__toggle:hover {
    color: var(--ls-primary);
    background: var(--ls-bg-hover);
}

.ls-float-menu__toggle i {
    font-size: 18px;
    line-height: 1;
}

/* 折叠状态 */
.ls-float-menu--collapsed .ls-float-menu__list {
    max-height: 0;
    padding: 0 6px;
    opacity: 0;
    box-shadow: none;
    pointer-events: none;
    overflow: hidden;
}

/* ----------------------------------------
   样式2：独立气泡
   每个按钮独立成圆，之间有间距，散落式排列
   ---------------------------------------- */

/* 列表容器 - 无背景，纯间距排列 */
.ls-float-menu--style2 .ls-float-menu__list {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    gap: 10px;
    overflow: visible;
}

/* 每个按钮独立圆形卡片 */
.ls-float-menu--style2 .ls-float-menu__item a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ls-bg-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.08);
    color: var(--ls-text-secondary);
}

.ls-float-menu--style2 .ls-float-menu__item a i {
    font-size: 21px;
}

.ls-float-menu--style2 .ls-float-menu__item a:hover {
    background: var(--ls-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    transform: scale(1.1);
}

/* 折叠按钮 - 同样独立圆形 */
.ls-float-menu--style2 .ls-float-menu__toggle {
    width: 46px;
    height: 46px;
    margin-top: 10px;
    background: var(--ls-bg-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.08);
}

.ls-float-menu--style2 .ls-float-menu__toggle:hover {
    background: var(--ls-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

/* 折叠动画 - 每个气泡依次缩小消失 */
.ls-float-menu--style2 .ls-float-menu__item {
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.25s ease, margin 0.25s ease;
    opacity: 1;
    transform: scale(1);
    max-height: 50px;
}

.ls-float-menu--style2.ls-float-menu--collapsed .ls-float-menu__list {
    gap: 0;
    padding: 0;
}

.ls-float-menu--style2.ls-float-menu--collapsed .ls-float-menu__item {
    opacity: 0;
    transform: scale(0);
    max-height: 0;
    margin: 0;
    pointer-events: none;
}

/* ----------------------------------------
   样式3：方形工具面板
   方形圆角按钮，带左侧彩色指示条，工具面板风格
   ---------------------------------------- */

/* 列表容器 - 圆角矩形卡片 */
.ls-float-menu--style3 .ls-float-menu__list {
    background: var(--ls-bg-white);
    border-radius: 12px;
    padding: 6px;
    gap: 4px;
    border: 1px solid var(--ls-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* 按钮 - 方形圆角，带左侧指示条 */
.ls-float-menu--style3 .ls-float-menu__item a {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    position: relative;
    color: var(--ls-text-muted);
}

.ls-float-menu--style3 .ls-float-menu__item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 0 3px 3px 0;
    background: var(--ls-primary);
    transition: height 0.2s ease;
}

.ls-float-menu--style3 .ls-float-menu__item a:hover {
    background: var(--ls-primary-light);
    color: var(--ls-primary);
}

.ls-float-menu--style3 .ls-float-menu__item a:hover::before {
    height: 20px;
}

.ls-float-menu--style3 .ls-float-menu__item a i {
    font-size: 20px;
}

/* 折叠按钮 */
.ls-float-menu--style3 .ls-float-menu__toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--ls-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: var(--ls-bg-white);
}

.ls-float-menu--style3 .ls-float-menu__toggle:hover {
    background: var(--ls-primary-light);
    color: var(--ls-primary);
    border-color: rgba(var(--ls-primary-rgb), 0.2);
}

/* 折叠状态 */
.ls-float-menu--style3.ls-float-menu--collapsed .ls-float-menu__list {
    max-height: 0;
    padding: 0 6px;
    opacity: 0;
    border-color: transparent;
    box-shadow: none;
    pointer-events: none;
}

/* ----------------------------------------
   样式4：侧边标签抽屉
   按钮贴着页面边缘，只露出图标，hover 滑出显示文字
   布局完全不同于前三种的独立浮动式
   ---------------------------------------- */

/* 容器 - 贴边定位 */
.ls-float-menu--style4 {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
}

/* 右侧贴边 */
.ls-float-menu--style4.ls-float-menu--right {
    right: 0;
}

/* 左侧贴边 */
.ls-float-menu--style4.ls-float-menu--left {
    left: 0;
}

/* 列表容器 - 无背景无阴影 */
.ls-float-menu--style4 .ls-float-menu__list {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    gap: 3px;
    overflow: visible;
}

/* 每个按钮 - 横向布局，贴边标签 */
.ls-float-menu--style4 .ls-float-menu__item a {
    display: flex;
    align-items: center;
    width: auto;
    height: 40px;
    border-radius: 20px 0 0 20px;
    padding: 0 12px 0 14px;
    background: var(--ls-bg-white);
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.06);
    color: var(--ls-text-secondary);
    gap: 0;
    transform: translateX(calc(100% - 44px));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

/* 左侧时圆角反转 */
.ls-float-menu--style4.ls-float-menu--left .ls-float-menu__item a {
    border-radius: 0 20px 20px 0;
    padding: 0 14px 0 12px;
    flex-direction: row-reverse;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.06);
    transform: translateX(calc(-100% + 44px));
}

/* 图标需要相对定位，给角标做参考 */
.ls-float-menu--style4 .ls-float-menu__item a i {
    font-size: 19px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    position: relative;
}

/* 文字标签 */
.ls-float-menu--style4 .ls-float-menu__label {
    font-size: 13px;
    font-weight: 500;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

/* hover 滑出 */
.ls-float-menu--style4 .ls-float-menu__item a:hover {
    transform: translateX(0);
    background: var(--ls-primary);
    color: #fff;
    box-shadow: -4px 4px 16px rgba(var(--ls-primary-rgb), 0.2);
}

.ls-float-menu--style4.ls-float-menu--left .ls-float-menu__item a:hover {
    transform: translateX(0);
    box-shadow: 4px 4px 16px rgba(var(--ls-primary-rgb), 0.2);
}

.ls-float-menu--style4 .ls-float-menu__item a:hover .ls-float-menu__label {
    max-width: 80px;
    opacity: 1;
    margin-left: 8px;
}

.ls-float-menu--style4.ls-float-menu--left .ls-float-menu__item a:hover .ls-float-menu__label {
    margin-left: 0;
    margin-right: 8px;
}

/* 隐藏 tooltip（用 label 代替） */
.ls-float-menu--style4 .ls-float-menu__tooltip {
    display: none;
}

/* 角标 - 右侧时贴左上角，左侧时贴右上角 */
.ls-float-menu--style4.ls-float-menu--right .ls-float-menu__badge {
    position: absolute;
    top: 4px;
    left: 0;
    right: auto;
    z-index: 5;
}
.ls-float-menu--style4.ls-float-menu--left .ls-float-menu__badge {
    position: absolute;
    top: 4px;
    right: 0;
    left: auto;
    z-index: 5;
}

/* 角标挂在图标上，需要图标的父级不裁切 */
.ls-float-menu--style4 .ls-float-menu__item a {
    overflow: visible;
}

/* 折叠按钮 - 同样贴边 */
.ls-float-menu--style4 .ls-float-menu__toggle {
    width: 40px;
    height: 40px;
    border-radius: 20px 0 0 20px;
    margin-top: 3px;
    background: var(--ls-bg-white);
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.06);
    color: var(--ls-text-muted);
}

.ls-float-menu--style4.ls-float-menu--left .ls-float-menu__toggle {
    border-radius: 0 20px 20px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.06);
}

.ls-float-menu--style4 .ls-float-menu__toggle:hover {
    background: var(--ls-primary-light);
    color: var(--ls-primary);
}

/* 折叠状态 - 标签缩回只剩细条 */
.ls-float-menu--style4.ls-float-menu--collapsed .ls-float-menu__list {
    max-height: none;
    opacity: 1;
    padding: 0;
}

.ls-float-menu--style4.ls-float-menu--collapsed .ls-float-menu__item a {
    transform: translateX(calc(100% - 6px));
    height: 32px;
    padding: 0;
    box-shadow: none;
    background: var(--ls-border);
    border-radius: 4px 0 0 4px;
}

.ls-float-menu--style4.ls-float-menu--collapsed.ls-float-menu--left .ls-float-menu__item a {
    transform: translateX(calc(-100% + 6px));
    border-radius: 0 4px 4px 0;
}

.ls-float-menu--style4.ls-float-menu--collapsed .ls-float-menu__item a i,
.ls-float-menu--style4.ls-float-menu--collapsed .ls-float-menu__item a .ls-float-menu__badge,
.ls-float-menu--style4.ls-float-menu--collapsed .ls-float-menu__item a .ls-float-menu__tooltip {
    opacity: 0;
}

/* 折叠时 hover 仍可展开单个 */
.ls-float-menu--style4.ls-float-menu--collapsed .ls-float-menu__item a:hover {
    transform: translateX(0) !important;
    height: 40px;
    padding: 0 12px 0 14px;
    background: var(--ls-primary);
    color: #fff;
    border-radius: 20px 0 0 20px;
    box-shadow: -4px 4px 16px rgba(var(--ls-primary-rgb), 0.2);
}

.ls-float-menu--style4.ls-float-menu--collapsed.ls-float-menu--left .ls-float-menu__item a:hover {
    padding: 0 14px 0 12px;
    border-radius: 0 20px 20px 0;
    box-shadow: 4px 4px 16px rgba(var(--ls-primary-rgb), 0.2);
}

.ls-float-menu--style4.ls-float-menu--collapsed .ls-float-menu__item a:hover i,
.ls-float-menu--style4.ls-float-menu--collapsed .ls-float-menu__item a:hover .ls-float-menu__badge {
    opacity: 1;
}

.ls-float-menu--style4.ls-float-menu--collapsed .ls-float-menu__item a:hover .ls-float-menu__label {
    max-width: 80px;
    opacity: 1;
    margin-left: 8px;
}

/* ========================================
   类型二：紧贴侧边栏（Sidebar）
   从顶部到底部的全高度固定侧栏
   ======================================== */

/* ----------------------------------------
   侧边栏样式1：简约窄栏
   全高度白色窄条，上中下三区域布局
   ---------------------------------------- */

/* 容器 - 全高度固定 */
.ls-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    width: 54px;
    background: var(--ls-bg-white);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 位置 */
.ls-sidebar--right {
    right: 0;
    border-left: 1px solid var(--ls-border-light);
}
.ls-sidebar--left {
    left: 0;
    border-right: 1px solid var(--ls-border-light);
}

/* 三个区域 */
.ls-sidebar__top {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.ls-sidebar__mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
}

.ls-sidebar__bottom {
    display: flex;
    flex-direction: column;
    padding: 8px 0 12px;
    border-top: 1px solid var(--ls-border-light);
}

/* 菜单项 */
.ls-sidebar__item {
    position: relative;
}

.ls-sidebar__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 4px;
    color: var(--ls-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    gap: 2px;
}

.ls-sidebar__item a i {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease;
}

/* 文字标签 */
.ls-sidebar__text {
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    opacity: 0.8;
    transition: all 0.2s ease;
}

/* hover 效果 */
.ls-sidebar__item a:hover {
    color: var(--ls-primary);
}

.ls-sidebar__item a:hover i {
    transform: scale(1.1);
}

/* 右侧栏 - hover 左边出现指示条 */
.ls-sidebar--right .ls-sidebar__item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 0 3px 3px 0;
    background: var(--ls-primary);
    transition: height 0.2s ease;
}

.ls-sidebar--right .ls-sidebar__item a:hover::before {
    height: 24px;
}

/* 左侧栏 - hover 右边出现指示条 */
.ls-sidebar--left .ls-sidebar__item a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 3px 0 0 3px;
    background: var(--ls-primary);
    transition: height 0.2s ease;
}

.ls-sidebar--left .ls-sidebar__item a:hover::before {
    height: 24px;
}

/* 分割线 */
.ls-sidebar__item--divider {
    height: 1px;
    margin: 6px 12px;
    background: var(--ls-border-light);
}

/* 强调按钮（发布） */
.ls-sidebar__item--accent a {
    color: #fff !important;
}

.ls-sidebar__item--accent a::after {
    content: '';
    position: absolute;
    inset: 6px 8px;
    border-radius: 12px;
    background: var(--ls-primary);
    z-index: -1;
    transition: all 0.2s ease;
}

.ls-sidebar__item--accent a:hover::after {
    background: var(--ls-primary-dark);
    box-shadow: 0 4px 12px rgba(var(--ls-primary-rgb), 0.3);
    inset: 4px 6px;
}

.ls-sidebar__item--accent a::before {
    display: none;
}

/* 角标 */
.ls-sidebar__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: #ef4444;
    border-radius: 10px;
    padding: 0 4px;
    pointer-events: none;
}

/* 收起/展开按钮 */
.ls-sidebar__item--toggle a {
    color: var(--ls-text-muted) !important;
}

.ls-sidebar__item--toggle a:hover {
    color: var(--ls-primary) !important;
}

.ls-sidebar__item--toggle a::before {
    display: none !important;
}

/* ---- 折叠状态 ---- */
.ls-sidebar--collapsed {
    width: 0;
    overflow: hidden;
    border-color: transparent;
}

/* 折叠时显示一个小触发条 */
.ls-sidebar--collapsed::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 48px;
    background: var(--ls-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ls-sidebar--collapsed.ls-sidebar--right::after {
    right: -8px;
    border-radius: 4px 0 0 4px;
}

.ls-sidebar--collapsed.ls-sidebar--left::after {
    left: -8px;
    border-radius: 0 4px 4px 0;
}

.ls-sidebar--collapsed:hover::after {
    background: var(--ls-primary);
    width: 5px;
}

/* ========================================
   全高度侧边栏 Dock（ls-dock）
   ======================================== */

.ls-dock {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 9998;
    width: 52px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: visible;
}
.ls-dock--right { right: 0; border-left: 1px solid #eee; }
.ls-dock--left  { left: 0;  border-right: 1px solid #eee; }

/* 上部格子区（从上往下，可滚动） */
.ls-dock-grid {
    flex: 1;
    margin-top: 65px;
    overflow: visible;
    min-height: 0;
}
.ls-dock-grid-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
}

/* 下部固定区（从下往上） */
.ls-dock-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    overflow: visible;
}

/* 分隔线 */
.ls-dock-sep {
    width: 28px;
    height: 1px;
    background: #eee;
    margin: 6px auto;
    flex-shrink: 0;
}

/* ---- 格子单元 ---- */
.ls-dock-cell {
    display: flex;
    align-items: center;
    width: 52px;
    height: 48px;
    text-decoration: none;
    color: #8b8fa3;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}
.ls-dock-cell-icon {
    width: 52px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.ls-dock-cell-icon i { font-size: 20px; line-height: 1; }
.ls-dock-cell:hover { color: #6366f1; }

/* hover 有标签时图标变白 */
.ls-dock-cell:hover .ls-dock-cell-icon i { color: #fff; }
/* 展开面板类 hover 图标不变白 */
.ls-dock-cell--expandable:hover .ls-dock-cell-icon i { color: #6366f1; }

/* ---- 头像类型 ---- */
.ls-dock-cell--avatar { justify-content: center; }
.ls-dock-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.ls-dock-verify {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #fff;
}
/* 头像 hover 标签：图标不变白 */
.ls-dock-cell--avatar:hover .ls-dock-cell-icon i { color: inherit; }
.ls-dock-cell--avatar:hover .ls-dock-avatar { opacity: 1; }

/* ---- hover 凸出标签（纯 CSS） ---- */
.ls-dock-cell .ls-dock-tag {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    padding: 0 14px;
    z-index: 1;
    pointer-events: none;
    color: #fff;
    line-height: 48px;
}
/* 右侧 dock */
.ls-dock--right .ls-dock-tag {
    right: 0;
    border-radius: 4px 0 0 4px;
    text-align: right;
    padding-right: 52px;
}
/* 左侧 dock */
.ls-dock--left .ls-dock-tag {
    left: 0;
    border-radius: 0 4px 4px 0;
    text-align: left;
    padding-left: 52px;
}
.ls-dock-cell:hover .ls-dock-tag { display: block; }
/* 展开面板类不显示标签 */
.ls-dock-cell--expandable:hover .ls-dock-tag { display: none; }

/* ---- 展开面板（纯 CSS hover） ---- */
.ls-dock-panel {
    position: absolute;
    bottom: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    display: none;
    z-index: 99999;
    white-space: nowrap;
}
.ls-dock-cell--expandable:hover .ls-dock-panel { display: block; }
.ls-dock--right .ls-dock-panel { right: calc(100% + 8px); }
.ls-dock--left  .ls-dock-panel { left: calc(100% + 8px); }
/* 桥接区域：填充格子和面板之间的间隙，防止 hover 断开 */
.ls-dock-panel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 16px;
}
.ls-dock--right .ls-dock-panel::after { left: 100%; }
.ls-dock--left  .ls-dock-panel::after { right: 100%; }

/* 二维码面板 */
.ls-dock-panel--qrcode { padding: 16px; }
.ls-dock-qr-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.ls-dock-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
}
.ls-dock-qr-item img {
    width: 100px;
    height: 100px;
    display: block;
    border-radius: 4px;
}
.ls-dock-qr-item span {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

/* 客服联系面板 */
.ls-dock-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 13px;
    color: #4b5563;
    white-space: nowrap;
}
.ls-dock-contact-item:not(:last-child) { border-bottom: 1px solid #f3f4f6; }
.ls-dock-contact-item i { font-size: 18px; flex-shrink: 0; }

/* 公告面板 */
.ls-dock-notice-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    padding: 12px 14px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ls-dock-notice-title i { color: #f59e0b; font-size: 16px; }
.ls-dock-notice-list { list-style: none; margin: 0; padding: 0 14px 10px; }
.ls-dock-notice-list li {
    padding: 6px 0;
    font-size: 13px;
    color: #6b7280;
    border-bottom: 1px dashed #f3f4f6;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ls-dock-notice-list li:last-child { border-bottom: none; }
.ls-dock-notice-list li:hover { color: #6366f1; }

/* 反馈面板 */
.ls-dock-feedback-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px;
}

/* 分享面板 */
.ls-dock-share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px;
}
.ls-dock-share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    min-width: 60px;
}
.ls-dock-share-item:hover { background: #f3f4f6; }
.ls-dock-share-item i { font-size: 22px; line-height: 1; }
.ls-dock-share-item span { font-size: 11px; color: #6b7280; }

/* ---- 角标 ---- */
.ls-dock-badge {
    position: absolute;
    top: 8px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    color: #fff;
    background: #ef4444;
    border-radius: 10px;
    padding: 0 4px;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}
/* 左侧 dock 角标在左上角 */
.ls-dock--left .ls-dock-badge {
    right: 0;
    left: auto;
}
