/* =====================================================================
   detail-ui.css —— 主站 style.css 的详情页子集
   由 lib/build_detail_ui.php 生成，请勿手工编辑；
   模板/类变更后重新执行：php lib/build_detail_ui.php
   ===================================================================== */

:root {
            --bg-primary: #f3f6fb;
            --bg-secondary: #ffffff;
            --bg-sidebar: #1a1f2e;
            --text-primary: #2d3436;
            --text-secondary: #7b8794;
            --text-sidebar: #6e7d94;
            --text-sidebar-active: #e8ecf1;
            --border-color: #e8edf2;
            --accent: #4a7df3;
            --accent-hover: #3468d9;
            --accent-light: #eef3fd;
            --orange: #ff6000;
            --orange-light: #fff4ed;
            --card-shadow: 0 1px 4px rgba(0,0,0,0.06);
            --card-hover-shadow: 0 8px 28px rgba(0,0,0,0.1);
            --tag-bg: #f1f7fc;
            --tag-color: #9ca7ae;
            --search-bg: linear-gradient(135deg, #4a89f0 0%, #7bb3f4 100%);
            --hot-bg: #fff0f0;
            --hot-color: #e55050;
            --new-bg: #e8f8f0;
            --new-color: #3dbd7d;
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 14px;
            --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            --sidebar-width: 250px;
            --header-height: 64px;
            --topbar-bg: #edf2f9;       
        }

.dark {
            --bg-primary: #131820;
            --bg-secondary: #1a1f2a;
            --topbar-bg: #1a202c;       
            --bg-sidebar: #0f131b;
            --text-primary: #e2e6ed;
            --text-secondary: #8894a8;
            --text-sidebar: #57637d;
            --text-sidebar-active: #e2e6ed;
            --border-color: #262d39;
            --accent: #5b8fff;
            --accent-hover: #4a7de5;
            --accent-light: #1a2140;
            --orange: #ff6000;
            --orange-light: #2a1a10;
            --card-shadow: 0 1px 4px rgba(0,0,0,0.25);
            --card-hover-shadow: 0 8px 28px rgba(0,0,0,0.35);
            --tag-bg: #1e2a38;
            --tag-color: #7e89a0;
            --search-bg: linear-gradient(135deg, #2a5ad0 0%, #4a80e0 100%);
            --hot-bg: #351818;
            --hot-color: #e88383;
            --new-bg: #142a1f;
            --new-color: #5cd49a;
        }

body.theme-blue {
            --bg-primary: #eef6fc;
            --bg-secondary: #ffffff;
            --bg-sidebar: #ffffff;
            --text-primary: #243b53;
            --text-secondary: #64809b;
            --text-sidebar: #64809b;
            --text-sidebar-active: #075985;
            --border-color: #dcebf5;
            --accent: #0ea5e9;
            --accent-hover: #0284c7;
            --accent-light: #e0f2fe;
            --card-shadow: 0 1px 4px rgba(14, 95, 150, 0.08);
            --card-hover-shadow: 0 8px 28px rgba(14, 95, 150, 0.16);
            --tag-bg: #eaf6fd;
            --tag-color: #7c93a8;
            --search-bg: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 100%);
            --sb-accent-rgb: 14, 165, 233;
            --topbar-bg: #f2f8fd;       
        }

body.theme-blue .sidebar {
            --sb-accent-rgb: 14, 165, 233;
            box-shadow: 2px 0 14px rgba(14, 95, 150, 0.08);
        }

body.theme-blue .sidebar-logo,
body.theme-blue .sidebar-footer,
body.theme-blue .sidebar-toggle .toggle-inner {
            border-color: #e3eef7;   
        }

body.theme-blue .submit-link-btn { color: #0284c7; }

body.theme-blue .submit-link-btn:hover { color: #0369a1; }

body.theme-blue .sidebar-logo .logo-text {
            
            background: none;
            -webkit-text-fill-color: var(--text-sidebar-active);
            animation: none;
        }

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

body {
            font-family: "PingFang SC", "Lantinghei SC", "Microsoft YaHei", "HanHei SC", "Helvetica Neue", "Open Sans", "Hiragino Sans GB", "微软雅黑", STHeiti, "WenQuanYi Micro Hei", Arial, SimSun, sans-serif;
            font-size: 14px;
            line-height: 1.6;
            background: var(--bg-primary);
            color: var(--text-primary);
            display: flex;
            min-height: 100vh;
            transition: background 0.3s ease, color 0.3s ease;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

.sidebar {
            
            --sb-accent-rgb: 74, 125, 243;
            width: var(--sidebar-width);
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            background-color: var(--bg-sidebar);
            
            background-image: linear-gradient(180deg,
                rgba(var(--sb-accent-rgb), var(--sb-tint)) 0%,
                rgba(var(--sb-accent-rgb), 0.03) 28%,
                rgba(var(--sb-accent-rgb), 0) 50%);
            display: flex;
            flex-direction: column;
            z-index: 100;
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
            overflow: visible;
        }

:root {
            --sb-accent-rgb: 74, 125, 243;
            --sb-tint: 0.1;
        }

.sidebar.collapsed {
            width: 4px;
            overflow: visible;
        }

.sidebar.collapsed .sidebar-logo,
.sidebar.collapsed .sidebar-nav,
.sidebar.collapsed .sidebar-footer {
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
            transition: opacity 0.2s ease;
        }

.sidebar-toggle {
            position: absolute;
            display: flex;
            align-items: center;
            cursor: pointer;
            color: var(--text-sidebar);
            font-size: 12px;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 101;
            border: none;
            outline: none;
            background: transparent;
            padding: 0;
            white-space: nowrap;
        }

.sidebar-toggle .toggle-inner {
            display: flex;
            align-items: center;
            gap: 0;
            height: 32px;
            width: 18px;
            background: var(--bg-sidebar);
            border: 1px solid rgba(255,255,255,0.06);
            border-left: none;
            border-radius: 0 10px 10px 0;
            justify-content: center;
            overflow: hidden;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

.sidebar-toggle .toggle-icon {
            font-size: 10px;
            line-height: 1;
            flex-shrink: 0;
            width: 18px;
            text-align: center;
            transition: color 0.25s;
            color: var(--text-sidebar);
        }

.sidebar-toggle .toggle-text {
            font-size: 11px;
            letter-spacing: 0.3px;
            width: 0;
            opacity: 0;
            overflow: hidden;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
            pointer-events: none;
            color: var(--text-sidebar);
        }

.sidebar:not(.collapsed) .sidebar-toggle {
            right: 0;
            top: 50%;
            bottom: auto;
            transform: translateY(-50%);
        }

.sidebar:not(.collapsed) .sidebar-toggle .toggle-inner {
            width: 18px;
        }

.sidebar:not(.collapsed) .sidebar-toggle .toggle-text {
            width: 0;
            opacity: 0;
        }

.sidebar:not(.collapsed) .sidebar-toggle:hover .toggle-inner {
            width: 95px;
            background: rgba(65, 127, 249, 0.15);
            border-color: rgba(65, 127, 249, 0.3);
        }

.sidebar:not(.collapsed) .sidebar-toggle:hover .toggle-icon {
            color: var(--accent);
        }

.sidebar:not(.collapsed) .sidebar-toggle:hover .toggle-text {
            width: 72px;
            opacity: 1;
            color: var(--text-sidebar-active);
            padding-right: 6px;
        }

.sidebar.collapsed .sidebar-toggle {
            right: -18px;
            top: 50%;
            bottom: auto;
            transform: translateY(-50%);
        }

.sidebar.collapsed .sidebar-toggle .toggle-inner {
            width: 18px;
        }

.sidebar.collapsed .sidebar-toggle .toggle-text {
            width: 0;
            opacity: 0;
        }

.sidebar.collapsed .sidebar-toggle:hover {
            right: -85px;
        }

.sidebar.collapsed .sidebar-toggle:hover .toggle-inner {
            width: 95px;
            background: var(--bg-secondary);
            border-color: var(--border-color);
            box-shadow: 2px 4px 16px rgba(0,0,0,0.1);
        }

.sidebar.collapsed .sidebar-toggle:hover .toggle-icon {
            color: var(--accent);
            font-size: 12px;
        }

.sidebar.collapsed .sidebar-toggle:hover .toggle-text {
            width: 72px;
            opacity: 1;
            color: var(--text-primary);
            padding-right: 8px;
            font-weight: 500;
        }

.sidebar-logo {
            text-decoration: none;   
            padding: 22px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            flex-shrink: 0;
        }

.sidebar-logo .logo-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            object-fit: contain;
            flex-shrink: 0;
            will-change: transform;   
        }

.sidebar-logo .logo-text {
            color: var(--text-sidebar-active);
            font-size: 17px;
            font-weight: 800;
            letter-spacing: 0.6px;
            
            background: linear-gradient(100deg,
                rgba(255, 255, 255, 0.72) 42%,
                #ffffff 50%,
                rgba(255, 255, 255, 0.72) 58%);
            background-size: 240% 100%;
            background-position: 100% 0;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: logoTextShine 4.4s cubic-bezier(.4, 0, .2, 1) infinite;
        }

@keyframes logoTextShine{
            0%, 58%   { background-position: 100% 0; }
            86%, 100% { background-position: 0% 0; }
        }

.sidebar-nav {
            flex: 1;
            padding: 10px 10px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
        }

.sidebar-nav::-webkit-scrollbar {
            width: 5px;
        }

.sidebar-nav::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 3px;
        }

.sidebar-nav::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 3px;
            transition: background 0.2s;
        }

.sidebar-nav::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.25);
        }

.nav-section {
            margin-bottom: 2px;
        }

.nav-category {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 14px 14px 6px;
            color: var(--text-sidebar);
            opacity: 0.55;
            font-size: 11px;
            letter-spacing: 0.6px;
            font-weight: 600;
        }

.nav-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            margin: 1px 0;
            border-radius: var(--radius-md);
            color: var(--text-sidebar);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            position: relative;
            border: none;
            background: transparent;
        }

.nav-item:hover {
            color: var(--text-sidebar-active);
            background: rgba(var(--sb-accent-rgb), 0.12);
        }

.nav-item.active {
            color: #ffffff;
            background: rgba(var(--sb-accent-rgb), 0.2);
            font-weight: 500;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 2px 8px rgba(0, 0, 0, 0.16);
        }

.nav-item .nav-icon {
            display: inline-block;
            font-size: 16px;
            line-height: 1;
            width: 22px;
            text-align: center;
            flex-shrink: 0;
            transform-origin: 50% 60%;
        }

@keyframes navIconShake{
            0%, 100% { transform: rotate(0); }
            20%      { transform: rotate(-14deg) scale(1.15); }
            40%      { transform: rotate(12deg) scale(1.15); }
            60%      { transform: rotate(-9deg) scale(1.15); }
            80%      { transform: rotate(7deg) scale(1.1); }
        }

.nav-item:hover .nav-icon,
.nav-item:focus-visible .nav-icon {
            animation: navIconShake .55s ease-in-out;
        }

@media (prefers-reduced-motion: reduce){
.nav-item:hover .nav-icon,
.nav-item:focus-visible .nav-icon,
.group-tab:hover i,
.group-picker-btn:hover i { animation: none; }
}

.main-content {
            margin-left: var(--sidebar-width);
            flex: 1;
            min-width: 0;
            padding: 0;
            transition: margin-left 0.3s;
        }

.top-bar {
            height: var(--header-height);
            background: var(--topbar-bg, var(--bg-secondary));
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            padding: 0 28px;
            
            padding-left: 16px;
            padding-right: max(28px, calc((100% - 1400px) / 2 + 40px));
            gap: 16px;
            
            position: sticky;
            top: 0;
            z-index: 50;
            transition: background 0.3s, border-color 0.3s;
            backdrop-filter: blur(8px);
        }

.menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 22px;
            cursor: pointer;
            padding: 4px;
        }

.group-tabs {
            display: flex;
            gap: 4px;
            flex-wrap: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            perspective: 900px;     
            scrollbar-width: none;          
            -webkit-overflow-scrolling: touch;
            position: relative;
        }

.group-tabs::-webkit-scrollbar { display: none; }

.group-tabs-more {
            display: flex;
            align-items: center;
            gap: 4px;
            max-width: 0;
            opacity: 0;
            overflow: hidden;
            pointer-events: none;
            transition: max-width .42s cubic-bezier(.4, 0, .2, 1), opacity .24s ease;
        }

.group-tabs-more .group-tab {
            
            padding: 6px 12px;
            font-size: 12.5px;
            transform: translateX(-14px);
            opacity: 0;
            transition: transform .34s cubic-bezier(.4, 0, .2, 1), opacity .26s ease;
        }

.group-tabs:hover,
.group-tabs:focus-within {
            overflow: visible;
            z-index: 60;
            
            background: var(--topbar-bg, var(--bg-secondary));
            border-radius: 0;
            filter: none;
        }

.group-tabs:hover .group-tabs-more,
.group-tabs:focus-within .group-tabs-more {
            
            position: absolute;
            left: calc(100% - 1px);       
            top: 0;
            bottom: 0;
            max-width: 760px;
            opacity: 1;
            pointer-events: auto;
            overflow: visible;
            
            background: var(--topbar-bg, var(--bg-secondary));
            border-radius: 0;
            box-shadow: none;
            padding: 0 4px;
        }

.group-tabs:hover .group-tabs-more .group-tab,
.group-tabs:focus-within .group-tabs-more .group-tab {
            transform: none;
            opacity: 1;
        }

.group-tabs:hover .group-tabs-more .group-tab:nth-child(2),
.group-tabs:focus-within .group-tabs-more .group-tab:nth-child(2) { transition-delay: .06s; }

.group-tabs:hover .group-tabs-more .group-tab:nth-child(3),
.group-tabs:focus-within .group-tabs-more .group-tab:nth-child(3) { transition-delay: .12s; }

.group-tabs:hover .group-tabs-more .group-tab:nth-child(4),
.group-tabs:focus-within .group-tabs-more .group-tab:nth-child(4) { transition-delay: .18s; }

.group-tabs:hover .group-tabs-more .group-tab:nth-child(n+5),
.group-tabs:focus-within .group-tabs-more .group-tab:nth-child(n+5) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce){
.group-tabs-more,
.group-tabs-more .group-tab { transition: none; }
}

.group-tab {
            position: relative;
            flex: 0 0 auto;             
            padding: 6px 16px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            border: 1px solid transparent;
            border-radius: 8px;
            white-space: nowrap;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            background: transparent;
            font-family: inherit;
            position: relative;
            z-index: 1;
        }

.group-tab i,
.group-picker-btn i {
            font-size: 13px;
            line-height: 1;
            vertical-align: -0.125em;
            display: inline-block;
            transform-origin: 50% 60%;
        }

.group-tab:hover i,
.group-picker-btn:hover i {
            animation: navIconShake .55s ease-in-out;
        }

.group-tab:hover {
            
            background: transparent;
            border-color: transparent;
        }

.group-tab.active {
            color: rgb(var(--sb-accent-rgb));
            font-weight: 600;
            
            z-index: 3;
        }

.group-tab-indicator {
            position: absolute;
            top: auto;
            bottom: 0;
            left: 0;
            height: 2.5px;
            width: 0;
            border-radius: 2px;
            background: rgb(var(--sb-accent-rgb));
            pointer-events: none;
            
            z-index: 2;
            transition: transform .34s cubic-bezier(.22, 1.16, .36, 1), width .34s cubic-bezier(.22, 1.16, .36, 1);
        }

.group-tabs-more {
            perspective: 800px;
        }

.group-tabs-more .group-tab {
            transform-origin: left center;
            transform: translateX(-22px) scale(.78) rotateY(-28deg);
            opacity: 0;
            filter: blur(6px);
            transition:
                transform .48s cubic-bezier(.22, 1.16, .36, 1),
                opacity .3s ease,
                filter .38s ease,
                background .2s ease,
                color .2s ease,
                box-shadow .26s ease;
        }

.group-tabs:hover .group-tabs-more .group-tab,
.group-tabs:focus-within .group-tabs-more .group-tab {
            transform: none;
            opacity: 1;
            filter: blur(0);
        }

.group-tabs .group-tab:not(.active):hover {
            color: rgb(var(--sb-accent-rgb));
            background: transparent;
            border-color: transparent;
            transform: none;
            box-shadow: none;
        }

.group-tabs .group-tab:not(.active)::after {
            content: '';
            position: absolute;
            left: 10px;
            right: 10px;
            bottom: 0;
            height: 2.5px;
            border-radius: 2px;
            background: rgb(var(--sb-accent-rgb));
            opacity: 0;
            transition: opacity .2s ease;
        }

.group-tabs .group-tab:not(.active):hover::after {
            opacity: .35;
        }

@media (prefers-reduced-motion: reduce){
.group-tabs-more .group-tab {
                filter: none;
                transform: none;
            }
.group-tab-indicator {
                transition: none;
            }
.sidebar-logo .logo-text {
                background: none;
                -webkit-text-fill-color: var(--text-sidebar-active);
                animation: none;
            }
}

.top-bar .right-actions {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 8px;
        }

.action-btn {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 7px 12px;
            cursor: pointer;
            font-size: 16px;
            color: var(--text-primary);
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            min-width: 36px;
            height: 36px;
        }

.action-btn:hover {
            border-color: var(--accent);
            background: var(--accent-light);
            color: var(--accent);
            box-shadow: 0 2px 8px rgba(74,125,243,0.1);
        }

a.action-btn {
            text-decoration: none;
        }

.action-btn[hidden] {
            display: none !important;
        }

.action-btn .action-ico {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            flex: 0 0 auto;
            color: var(--text-secondary);
            transition: color var(--transition-base), transform var(--transition-base);
        }

.action-btn .action-ico svg {
            width: 18px;
            height: 18px;
            display: block;
            overflow: visible;
        }

.action-btn:hover .action-ico {
            color: var(--accent);
            transform: translateY(-1px);
        }

.action-btn:active .action-ico {
            transform: translateY(0) scale(0.96);
        }

.action-btn .action-ico .ico-admin {
            display: none;
        }

.action-btn .btn-label {
            font-size: 12.5px;
            margin-left: 6px;
            display: none;
            font-weight: 500;
            letter-spacing: .2px;
            white-space: nowrap;
            line-height: 1;
        }

@media (min-width: 1024px){
.action-btn .btn-label {
                display: inline;
            }
}

.pref-wrap { position: relative; display: inline-flex; }

.pref-dropdown {
            
            position: fixed;
            top: 0;
            left: 0;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            box-shadow: 0 12px 36px rgba(0,0,0,0.15);
            width: 186px;
            padding: 8px;
            display: none;
            z-index: 9998;
        }

.pref-dropdown.show {
            display: block;
            animation: dropdownDropIn .38s cubic-bezier(.22, 1, .36, 1);
        }

.pref-group + .pref-group {
            margin-top: 6px;
            padding-top: 6px;
            border-top: 1px solid var(--border-color);
        }

.pref-title {
            padding: 3px 9px 6px;
            font-size: 11.5px;
            font-weight: 600;
            color: var(--text-secondary);
            letter-spacing: .4px;
        }

.pref-option {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 8px 9px;
            border: 0;
            border-radius: 8px;
            background: transparent;
            font-size: 13px;
            font-family: inherit;
            color: var(--text-primary);
            text-align: left;
            cursor: pointer;
            transition: background 0.15s, color 0.15s;
        }

.pref-option:hover { background: var(--accent-light); color: var(--accent); }

.pref-option.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }

.pref-switch {
            margin-left: auto;
            flex: none;
            width: 30px; height: 17px;
            border-radius: 999px;
            background: var(--border-color);
            position: relative;
            transition: background 0.18s;
        }

.pref-switch::after {
            content: '';
            position: absolute; left: 2px; top: 2px;
            width: 13px; height: 13px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 1px 3px rgba(16, 24, 40, .28);
            transition: transform 0.18s;
        }

.lang-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            cursor: pointer;
            font-size: 13px;
            color: var(--text-primary);
            transition: background 0.15s;
        }

.lang-option:hover { background: var(--accent-light); color: var(--accent); }

.lang-option.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }

.user-dropdown {
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            min-width: 160px;
            overflow: hidden;
            display: none;
            z-index: 60;
        }

.user-dropdown.show {
            display: block;
            animation: dropdownDropIn .38s cubic-bezier(.22, 1, .36, 1);
        }

.user-dropdown .user-header {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }

.user-dropdown .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--accent);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

.user-dropdown .user-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

.user-dropdown .user-role {
            font-size: 11px;
            color: var(--text-secondary);
        }

.user-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            cursor: pointer;
            font-size: 13px;
            color: var(--text-primary);
            transition: all 0.15s;
            text-decoration: none;
        }

.user-menu-item:hover { background: var(--accent-light); color: var(--accent); }

.user-menu-item .menu-icon { font-size: 16px; width: 20px; display: inline-block; text-align: center; }

@keyframes menuIconWiggle{
            0%   { transform: rotate(0deg); }
            20%  { transform: rotate(-12deg); }
            40%  { transform: rotate(10deg); }
            60%  { transform: rotate(-8deg); }
            80%  { transform: rotate(6deg); }
            100% { transform: rotate(0deg); }
        }

.user-menu-item:hover .menu-icon { animation: menuIconWiggle 0.5s ease-in-out; }

.user-dropdown .user-avatar i { font-size: 15px; }

.pref-option .lang-tag {
            display: inline-flex; align-items: center; justify-content: center;
            min-width: 22px; height: 18px; padding: 0 4px;
            border-radius: 4px;
            background: var(--accent-light);
            color: var(--accent);
            font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
        }

.sidebar-footer {
            flex-shrink: 0;
            padding: 14px 16px;
            border-top: 1px solid rgba(255,255,255,0.06);
        }

.submit-link-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 11px 16px;
            background: linear-gradient(135deg, rgba(74,125,243,0.12), rgba(74,125,243,0.04));
            border: 1px solid rgba(74,125,243,0.16);
            border-radius: var(--radius-md);
            color: #97b8f0;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            font-family: inherit;
        }

.submit-link-btn:hover {
            background: linear-gradient(135deg, rgba(74,125,243,0.22), rgba(74,125,243,0.1));
            border-color: rgba(74,125,243,0.3);
            color: #b0c8ff;
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(65,127,249,0.15);
        }

.submit-link-btn .link-icon {
            font-size: 18px;
        }

.content-area {
            padding: 28px 40px;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
        }

@keyframes skyDrift{
            from{ transform: translate3d(0,0,0); }
            to  { transform: translate3d(-50%,0,0); }
        }

@keyframes jJitter{
    0%, 3.8%, 100%{ transform: none; }
    0.9% { transform: translateY(-2px) rotate(-2.5deg); }
    1.9% { transform: translateY(1px)  rotate(2deg); }
    2.8% { transform: translateY(-1px) rotate(1deg); }
}

@property --ring-angle{
            syntax: '<angle>';
            initial-value: 0deg;
            inherits: false;
        }

@keyframes ringSpin{
            to{ --ring-angle: 360deg; }
        }

@keyframes dropdownDropOut{
            from { opacity: 1; transform: translateY(0);     clip-path: inset(0 0 0 0); }
            to   { opacity: 0; transform: translateY(-22px); clip-path: inset(0 0 100% 0); }
        }

@keyframes dropdownDropIn{
            from { opacity: 0; transform: translateY(-26px); clip-path: inset(0 0 100% 0); }
            to   { opacity: 1; transform: translateY(0);     clip-path: inset(0 0 0 0); }
        }

@keyframes dropdownItemIn{
            from { opacity: 0; transform: translateY(-8px); }
            to   { opacity: 1; transform: translateY(0); }
        }

@keyframes chFloatIn{
            from{ opacity: 0; transform: translateY(10px); }
            to  { opacity: 1; transform: translateY(0); }
        }

@keyframes spin{ 100% { transform: rotate(360deg); } }

.footer {
            text-align: center;
            padding: 32px 24px;
            color: var(--text-secondary);
            font-size: 13px;
            border-top: 1px solid var(--border-color);
            margin-top: 32px;
        }

.footer-links {
            display: flex;
            gap: 16px;
            justify-content: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

.footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
        }

.footer-links a:hover {
            color: var(--accent);
        }

.footer-beian {
            margin-top: 6px;
            font-size: 13px;
        }

.footer-beian a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color var(--transition-base);
        }

.footer-beian a:hover {
            color: var(--accent);
        }

.sidebar-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 99;
        }

.sidebar-overlay.show {
            display: block;
        }

@media (max-width: 900px){
.group-tabs-more,
.group-tabs:hover .group-tabs-more,
.group-tabs:focus-within .group-tabs-more {
                max-width: none;
                opacity: 1;
                overflow: visible;
                pointer-events: auto;
                transition: none;
            }
.group-tabs-more .group-tab,
.group-tabs:hover .group-tabs-more .group-tab,
.group-tabs:focus-within .group-tabs-more .group-tab {
                transform: none;
                opacity: 1;
                transition: none;
                transition-delay: 0s;
            }
.group-tabs:hover { overflow-x: auto; }
}

@media (max-width: 768px){
.sidebar {
                transform: translateX(-100%);
            }
.sidebar.open {
                transform: translateX(0);
            }
.sidebar-overlay.show {
                display: block;
            }
.main-content {
                margin-left: 0;
            }
.menu-toggle {
                display: block;
            }
.content-area {
                padding: 20px;
            }
.top-bar {
                padding: 0 16px;
            }
}

@keyframes adminFadeIn{ from { opacity: 0; transform: scale(0.99); } to { opacity: 1; transform: scale(1); } }

@keyframes spin{ to { transform: rotate(360deg); } }

@keyframes pageSlideIn{ from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.toast-container {
            position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
            z-index: 2147483600; display: flex; flex-direction: column; align-items: center; gap: 8px;
            pointer-events: none; max-width: calc(100vw - 32px);
        }

.toast {
            padding: 14px 24px; border-radius: 12px; color: #fff; font-size: 13px;
            font-weight: 600; box-shadow: 0 8px 32px rgba(0,0,0,0.18);
            animation: toastSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            pointer-events: auto; display: flex; align-items: center; gap: 8px;
        }

.toast.info { background: rgba(99,102,241,0.92); }

@keyframes toastSlideIn{
            from { transform: translateY(-14px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

@keyframes fadeIn{ from { opacity: 0; } to { opacity: 1; } }

@keyframes modalPopIn{ from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.group-picker-btn {
    display: none;          
}

.group-sheet-mask {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.group-sheet-mask.show {
    opacity: 1;
    visibility: visible;
}

.group-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1201;
    background: var(--bg-secondary);
    border-radius: 20px 20px 0 0;
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    max-height: 74vh;
    overflow-y: auto;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .28s cubic-bezier(.32, .72, 0, 1), visibility .28s;
    box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.18);
}

.group-sheet.show {
    transform: translateY(0);
    visibility: visible;
}

.group-sheet-handle {
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    margin: 4px auto 14px;
}

.group-sheet-title {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.group-sheet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px){
.sidebar {
        width: min(76vw, 290px);
        box-shadow: 10px 0 44px rgba(0, 0, 0, 0.32);
        transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    }
.sidebar .sidebar-toggle {
        display: none;   
    }
.sidebar-overlay {
        display: block;
        opacity: 0;
        visibility: hidden;
        background: rgba(15, 23, 42, 0.55);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        transition: opacity .28s ease, visibility .28s ease;
    }
.sidebar-overlay.show {
        display: block;
        opacity: 1;
        visibility: visible;
    }
.content-area {
        padding: 14px;
    }
.top-bar {
        padding: 0 14px !important;
        gap: 10px;
    }
.top-bar .group-tabs {
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0;               
    }
.top-bar .group-tabs::-webkit-scrollbar {
        display: none;
    }
.top-bar .group-tabs {
        display: none;
    }
.group-picker-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        flex: 0 1 auto;
        min-width: 0;
        height: 32px;
        padding: 0 11px;
        border-radius: 16px;
        border: 1px solid var(--border-color);
        background: var(--bg-secondary);
        color: var(--text-primary);
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }
.group-picker-btn #groupPickerLabel {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
.group-picker-caret {
        font-size: 10px;
        opacity: .55;
        flex-shrink: 0;
    }
.top-bar .group-tabs .group-tabs-more {
        display: contents;            
    }
.top-bar .group-tab {
        padding: 6px 12px;
        font-size: 12.5px;
        white-space: nowrap;
        transform: none;
        opacity: 1;
    }
.top-bar .right-actions {
        flex-shrink: 0;
        gap: 8px;
    }
.top-bar .action-btn {
        padding: 7px 9px;
    }
.content-area {
        padding: 12px;
    }
.footer {
        padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
        margin-top: 24px;
    }
}

