* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', 'Microsoft YaHei', sans-serif; background-color: #f7f9ff; color: #091d2e; line-height: 1.6; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sidebar { position: fixed; left: 0; top: 0; height: 100vh; width: 260px; background: #fff; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; z-index: 50; transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 4px 0 20px rgba(54,163,247,0.05); }
.sidebar.collapsed { width: 80px; }
.sidebar-header { padding: 20px; border-bottom: 1px solid #f0f0f0; position: relative; display: flex; align-items: center; justify-content: flex-start; }
.sidebar.collapsed .sidebar-header { justify-content: center; }
.logo-area { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.logo-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; overflow: hidden; }
.logo-img { width: 100%; height: 100%; object-fit: cover; }
.logo-icon-svg { width: 24px; height: 24px; }
.logo-icon-svg svg { width: 24px; height: 24px; fill: #fff; }
.primary-gradient-bg { background: linear-gradient(135deg, #409eff, #36a3f7); }
.logo-text h1 { font-size: 16px; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text p { font-size: 9px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; }
.sidebar-toggle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #64748b; transition: all 0.2s; position: absolute; right: -12px; top: 0; bottom: 0; margin: auto 0; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.sidebar-toggle:hover { border-color: #409eff; color: #409eff; }
.sidebar.collapsed .sidebar-toggle { right: -16px; top: 0; bottom: 0; margin: auto 0; }
.toggle-icon-svg { width: 18px; height: 18px; }
.toggle-icon-svg svg { width: 18px; height: 18px; }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; padding: 12px 16px; border-radius: 8px; color: #64748b; margin-bottom: 4px; transition: all 0.2s; position: relative; }
.nav-item:hover { background: #f1f5f9; color: #409eff; }
.nav-item.active { background: #f0f7ff; color: #409eff; font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: linear-gradient(135deg, #409eff, #36a3f7); border-radius: 0 4px 4px 0; }
.nav-icon-svg { width: 20px; height: 20px; margin-right: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nav-icon-svg svg { width: 20px; height: 20px; }
.nav-text { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-footer { padding: 16px; border-top: 1px solid #f0f0f0; }
.user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #d3e4ff; }
.user-detail { flex: 1; }
.btn-settings-icon, .btn-bell-icon { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; display: flex; align-items: center; justify-content: center; color: #64748b; transition: all 0.2s; flex-shrink: 0; position: relative; }
.btn-settings-icon:hover, .btn-bell-icon:hover { border-color: #409eff; color: #409eff; }
.btn-bell-icon .badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; background: #ff4d4f; color: #fff; font-size: 10px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.user-name { font-size: 13px; font-weight: 600; color: #1e293b; }
.user-role { font-size: 11px; color: #94a3b8; }
.btn-publish { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 16px; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 4px 12px rgba(64,158,255,0.3); transition: transform 0.2s; margin-bottom: 8px; }
.btn-publish:active { transform: scale(0.98); }
.btn-login, .logout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 16px; border-radius: 10px; border: 1px solid #e5e7eb; color: #64748b; font-size: 14px; transition: all 0.2s; }
.btn-login:hover, .logout-btn:hover { border-color: #409eff; color: #409eff; }
.btn-icon-svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-icon-svg svg { width: 18px; height: 18px; }
.sidebar.collapsed .logo-text, .sidebar.collapsed .nav-text, .sidebar.collapsed .user-detail, .sidebar.collapsed .btn-publish span:last-child, .sidebar.collapsed .btn-login span:last-child, .sidebar.collapsed .logout-btn span:last-child, .sidebar.collapsed .sidebar-footer p { display: none; }
.sidebar.collapsed .btn-settings-icon { display: none; }
.sidebar.collapsed .user-info { flex-direction: column; align-items: center; gap: 8px; margin-bottom: 12px; }
.sidebar.collapsed .user-avatar-link { display: flex; align-items: center; justify-content: center; }
.sidebar.collapsed .user-avatar { width: 40px; height: 40px; }
.sidebar.collapsed .btn-bell-icon { margin: 0; }
.sidebar.collapsed .logo-area { justify-content: center; }
.sidebar.collapsed .nav-item { padding: 12px; justify-content: center; }
.sidebar.collapsed .nav-icon-svg { margin-right: 0; }
.sidebar.collapsed .nav-icon-svg svg { display: block; }
.sidebar.collapsed .btn-publish, .sidebar.collapsed .btn-login, .sidebar.collapsed .logout-btn { width: 36px; height: 36px; padding: 0; margin: 0 auto 8px auto; }
.sidebar.collapsed .btn-publish .btn-icon-svg, .sidebar.collapsed .logout-btn .btn-icon-svg { width: 18px; height: 18px; }
.sidebar.collapsed .btn-publish .btn-icon-svg svg, .sidebar.collapsed .logout-btn .btn-icon-svg svg { width: 18px; height: 18px; }
.main-content { margin-left: 260px; min-height: 100vh; transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: 24px; }
.sidebar.collapsed ~ .main-content { margin-left: 80px; }
.content-wrapper { max-width: 100%; margin: 0 auto; }
.header { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff; padding: 16px 0; display: none; }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 22px; font-weight: 700; color: #40a9ff; }
.nav a { color: #ccc; margin-left: 24px; font-size: 15px; transition: color .2s; }
.nav a:hover, .nav a.active { color: #40a9ff; }
.hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; text-align: center; padding: 80px 20px; border-radius: 16px; margin-bottom: 24px; }
.hero h1 { font-size: 36px; margin-bottom: 12px; }
.hero p { font-size: 16px; color: #ccc; }
.section { margin-bottom: 32px; }
.section h2 { font-size: 20px; margin-bottom: 16px; color: #1e293b; font-weight: 600; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.category-card { background: #fff; border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s; }
.category-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.category-card h3 { font-size: 14px; color: #334155; margin-bottom: 6px; font-weight: 600; }
.category-card .count { font-size: 12px; color: #94a3b8; }
.panorama-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s; }
.panorama-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.panorama-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.panorama-card .card-info { padding: 14px 16px; }
.panorama-card h3 { font-size: 14px; margin-bottom: 8px; color: #1e293b; font-weight: 600; }
.panorama-card .category-tag { display: inline-block; background: #f0f7ff; color: #409eff; padding: 2px 10px; border-radius: 20px; font-size: 12px; margin-right: 8px; }
.panorama-card .view-count { font-size: 12px; color: #94a3b8; float: right; }
.panorama-viewer { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.viewer-header { padding: 20px; border-bottom: 1px solid #f0f0f0; }
.viewer-header h1 { font-size: 20px; color: #1e293b; margin-bottom: 10px; }
.viewer-meta { display: flex; gap: 16px; font-size: 12px; color: #94a3b8; margin-bottom: 10px; }
.viewer-tags .tag { display: inline-block; background: #f1f5f9; padding: 2px 10px; border-radius: 12px; font-size: 11px; color: #64748b; margin-right: 6px; }
.viewer-desc { padding: 20px; }
.viewer-desc h3 { font-size: 14px; margin-bottom: 8px; color: #1e293b; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination a { display: inline-block; padding: 8px 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; color: #64748b; font-size: 13px; transition: all 0.2s; }
.pagination a:hover, .pagination a.active { background: #409eff; color: #fff; border-color: #409eff; }

/* ================= 客服浮标（把样式迁移到静态 CSS）================= */
/* 外层容器 */
#cs-widget{
    position: fixed;
    right: 40px;
    bottom: 130px;
    z-index: 9990;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 浮标按钮：参考 customer-service-button */
.cs-float-btn.customer-service-button,
.cs-float-btn{
    height: 46px;
    width: 46px;
    background-color: var(--el-bg-color, #fff);
    box-shadow: var(--el-box-shadow-lighter, 0 2px 12px rgba(0,0,0,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--el-text-color-primary, #303133);
    transition: var(--el-transition-all, all .2s ease);
    cursor: pointer;
    position: relative;
    z-index: 30;
    overflow: visible; /* 恢复：波纹外扩展示 */
}

.cs-float-btn:hover{
    transform: translateY(-1px);
    color: var(--el-color-primary, #409EFF);
}

.cs-float-btn:active{
    transform: translateY(0px) scale(0.96);
}

/* 波浪效果：保留 .cs-float-btn::before + cs-pulse */
.cs-float-btn::before{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    border-radius:50%;
    background: linear-gradient(135deg, #1890ff 0%, #2563EB 100%);
    animation: cs-pulse 2s ease-out infinite;
    z-index:-1;
    opacity:0.8;
}

@keyframes cs-pulse{
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(2.6); opacity: 0; }
}

.cs-float-icon{
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1; /* 图标在波纹之上 */
}

.cs-unread-badge{
    position:absolute;
    top:-6px;
    right:-6px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#ff4d4f;
    color:#fff;
    font-size:12px;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* ================= 返回顶部（统一放入静态 CSS）================= */
.el-backtop{
    position: fixed;
    z-index: 9991;
    right: 40px;
    bottom: 60px;
    display: none;
    user-select: none;
}
.back-to-top{
    height: 46px;
    width: 46px;
    background-color: var(--el-bg-color, #fff);
    box-shadow: var(--el-box-shadow-lighter, 0 2px 12px rgba(0,0,0,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--el-text-color-primary, #303133);
    transition: var(--el-transition-all, all .2s ease);
    cursor: pointer;
}
.back-to-top:hover{
    transform: translateY(-1px);
    color: var(--el-color-primary, #409EFF);
}
.back-to-top:active{
    transform: translateY(0px) scale(0.96);
}

.login-form { max-width: 400px; margin: 40px auto; background: #fff; padding: 32px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.login-form h2 { font-size: 20px; text-align: center; margin-bottom: 24px; color: #1e293b; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: #64748b; }
.form-group input { width: 100%; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.form-group input:focus { border-color: #409eff; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; pointer-events: none; }
.input-icon-wrap input { padding-left: 36px !important; }
.input-wrapper { position: relative; }
.input-wrapper .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; pointer-events: none; z-index: 1; }
.input-wrapper input { padding-left: 36px !important; }
.btn-primary i { margin-right: 6px; }
.btn-primary { display: inline-block; padding: 12px; background: linear-gradient(135deg, #409eff, #36a3f7); color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; text-align: center; transition: opacity 0.2s; font-weight: 600; }
.btn-primary:hover { opacity: 0.9; }
.empty { text-align: center; color: #94a3b8; padding: 40px; font-size: 14px; }
.footer { background: #fff; border-top: 1px solid #f0f0f0; text-align: center; padding: 16px 0; color: #94a3b8; font-size: 12px; margin-top: 40px; }
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-bar .filter-label { font-size: 13px; color: #64748b; font-weight: 600; margin-right: 8px; }
.filter-bar .filter-tag { padding: 6px 14px; background: #f1f5f9; border-radius: 20px; font-size: 12px; color: #64748b; cursor: pointer; transition: all 0.2s; }
.filter-bar .filter-tag:hover { background: #409eff; color: #fff; }
.filter-bar .filter-tag.active { background: #409eff; color: #fff; }
.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 28px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.page-header p { font-size: 14px; color: #94a3b8; }
.masonry-grid { column-count: 2; column-gap: 20px; }
@media (min-width: 768px) { .masonry-grid { column-count: 3; } }
@media (min-width: 1024px) { .masonry-grid { column-count: 4; } }
.masonry-item { break-inside: avoid; margin-bottom: 20px; }
.card-shadow { box-shadow: 0 4px 16px -4px rgba(54,163,247,0.1); }