/* ================= 顶部导航与图标 ================= */
    .top-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; position: sticky; top: 0; background: var(--bg-main); opacity: 0.95; backdrop-filter: blur(10px); z-index: 50; transition: 0.3s; }
    .nav-left { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
    .nav-item { color: var(--text-secondary); cursor: pointer; transition: 0.2s; }
    .nav-item:hover, .nav-item.active { color: var(--text-primary); }
    .nav-right { display: flex; align-items: center; gap: 16px; }
    
    .icon-btn-group { display: flex; gap: 12px; align-items: center; margin-right: 8px; }
    .icon-btn { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-panel); border: 1px solid var(--border-color); color: var(--text-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
    .icon-btn:hover { background: rgba(128,128,128,0.1); }
    .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .badge { position: absolute; top: -4px; right: -4px; background: var(--accent-red); color: white; font-size: 10px; font-weight: bold; padding: 2px 5px; border-radius: 10px; line-height: 1; border: 2px solid var(--bg-main); transition: 0.3s; }

    .vip-ad-btn { background: var(--accent-red); color: white; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: bold; cursor: pointer; }


/* ================= 用户胶囊与悬浮面板 ================= */
    .user-module { position: relative; display: inline-block; }
    .user-info-pill { display: flex; align-items: center; gap: 8px; background: var(--bg-panel-light); padding: 4px 4px 4px 12px; border-radius: 24px; font-size: 14px; font-weight: bold; cursor: pointer; border: 1px solid var(--border-color); transition: 0.2s; }
    .user-info-pill:hover { border-color: var(--text-secondary); }
    .user-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
    
    .user-popover { position: absolute; top: 48px; right: 0; width: 280px; background: var(--dropdown-bg); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,0.4); padding: 20px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); z-index: 200; cursor: default; }
    .user-module:hover .user-popover { opacity: 1; visibility: visible; transform: translateY(0); }
    
    .pop-header { display: flex; gap: 12px; margin-bottom: 20px; }
    .pop-avatar { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); flex-shrink: 0; }
    .pop-user-info { flex: 1; }
    .pop-name { font-size: 16px; font-weight: bold; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
    .vip-tag { font-size: 10px; background: var(--accent-gold); color: #000; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
    .pop-uid { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
    
    .pop-asset-card { background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 100%); border-radius: 12px; padding: 16px; color: #5c4300; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; position: relative; overflow: hidden; }
    .pop-asset-card::after { content: '¥'; position: absolute; font-size: 80px; opacity: 0.1; right: -10px; bottom: -20px; font-weight: bold; }
    .asset-col { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 2; }
    .asset-label { font-size: 12px; opacity: 0.8; }
    .asset-value { font-size: 16px; font-weight: bold; }
    .asset-total { font-size: 24px; font-weight: bold; }
    
    .pop-footer-info { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 16px; margin-bottom: 16px; }
    .pop-footer-text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
    .renew-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--text-primary); padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; transition: 0.2s; }
    .renew-btn:hover { background: rgba(255,255,255,0.2); }
    [data-theme="light"] .renew-btn { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }
    
    .pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-top: 1px solid var(--border-color); padding-top: 16px; }
    .pop-grid-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); cursor: pointer; transition: 0.2s; }
    .pop-grid-item:hover { color: var(--text-primary); }
    .pop-grid-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }


/* ================= 主题切换悬浮菜单 ================= */
    .theme-controller { position: relative; display: inline-block; }
    .theme-dropdown { position: absolute; top: 48px; right: 0; width: 200px; background: var(--dropdown-bg); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.3); padding: 0; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); z-index: 200; }
    .theme-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
    .theme-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; transition: 0.2s; color: var(--text-secondary); }
    .theme-option:hover { background: rgba(128,128,128,0.05); color: var(--text-primary); }
    .theme-option.active { background: var(--dropdown-active-bg); color: var(--text-primary); }
    .theme-option svg { flex-shrink: 0; opacity: 0.7; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .theme-option.active svg { opacity: 1; color: var(--text-primary); }
    .theme-option-text { display: flex; flex-direction: column; gap: 4px; }
    .theme-option-title { font-size: 14px; font-weight: 500; color: var(--text-primary); transition: 0.2s; }
    .theme-option-sub { font-size: 12px; color: var(--text-secondary); transition: 0.2s; }
    .theme-option.active .theme-option-sub { color: var(--text-primary); opacity: 0.7; }
