﻿/* --- 布局容器 --- */
.slider_container { display: flex; height: auto; width: 100vw;margin-top:68px;padding-right:var(--margin); }

/* --- 移动端头部 --- */
.mobile-header { display: none; height: var(--header-h); background: var(--bg-color); color: white; align-items: center; padding: 0 15px; position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.menu-toggle { background: none; border: 1px solid rgba(255,255,255,0.3); color: white; padding: 8px 12px; border-radius: 6px; cursor: pointer; }

/* --- 侧边栏 --- */
.sidebar { width: var(--sidebar-width);height:calc(100vh - var(--nav-h)); background: var(--bg-color); color: #fff; display: flex; flex-direction: column; z-index: 200; transition: transform 0.3s ease; }
.sidebar-title { padding:0px 20px;height:60px; font-size: var(--header-font-size); font-weight: bold;   display: flex; justify-content: space-between; align-items: center; }

.nav-home { padding: 15px 20px; cursor: pointer; border:1px solid var(--form-bg-color); background:#000; margin: var(--margin); border-radius: 8px; transition: 0.2s; font-weight: 500; }
.nav-home.active { background: #1f2937; }
.main-content {height:calc(100vh - var(--nav-h)); flex: 1; overflow-y: auto; padding: 0px 10px; position: relative; }
.view-header {height:60px; display: flex;color:var(--color-unimport); justify-content: space-between; align-items: center;   }
.view-header h1 { font-size:var(--header-font-size); margin: 0; }

.menu-list { flex: 1; overflow-y: auto; list-style: none; padding: 0 10px; margin: 0; }
.menu-item { padding: 0px 15px;height:46px;background:#000; color:var(--color-unimport); border-radius: 8px; cursor: pointer; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem;border:1px solid var(--border-color) }
.menu-item:hover{ background: var(--form-bg-color); color:#fff;font-weight:700;}
.menu-item.active { background: var(--form-bg-color); color:#fff;}
.menu-item .actions { display: flex; gap: 4px; opacity: 0.7;font-weight:700; }

/* --- 类别卡片 --- */
.cat-container { display: flex; flex-direction: column; gap: var(--margin); padding-bottom: 100px; }
.cat-card { background:#000 ; border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.cat-card:hover{background:var(--btn-hover-color2); }
.cat-header { padding: 14px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; cursor: move;  }
.cat-title { font-weight: 700; color: #fff; }
.cat-actions{display:flex;justify-content:flex-end;gap:10px;}

/* --- 网站 Item 结构优化 --- */
.web-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; padding: 20px; min-height: 60px; }
.web-item {position:relative; background-color: var(--border-color);   padding: 12px 15px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; cursor: move; transition: 0.2s; }
 
.web-info { display: flex; align-items: center; gap: 12px; overflow: hidden; flex: 1; }
.web-icon { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #f3f4f6; flex-shrink: 0; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--blue-color); font-size: 1.2rem; }
.web-text { overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.web-text strong { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.web-text span { font-size: 0.8rem; color: var(--color-unimport); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.web-actions {position:absolute;right:-10px;top:-10px; display: flex; gap: 4px; margin-left: var(--margin); flex-shrink: 0; }
/* --- 遮罩与弹窗 --- */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; backdrop-filter: blur(2px); }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; z-index: 1000; padding: 20px; }
.modal-box { background-color:var(--form-bg-color); width: 100%; max-width: 440px; border-radius: 16px; padding: 24px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: #4b5563; }
.form-group input { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; box-sizing: border-box; font-size: 1rem; outline: none; }
.form-group input:focus { border-color: var(--blue-color); ring: 2px var(--blue-color); }
.modal-btns { display: flex; gap: 12px; margin-top: 24px; }
.modal-btns .btn { flex: 1; padding: 12px; }

 
/*右下角导出按钮*/
.toolbar { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; gap: 10px;   }
.toolbar .btn-export-data { border-radius: 50px; padding: 10px 28px; }

@media (max-width: 768px) {
    .mobile-header { display: flex; }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { padding: 80px 16px 20px 16px; }
  
    .web-grid { grid-template-columns: repeat(auto-fill, minmax(40%, 1fr)); padding: 12px; }
}