/* ========================================
   安康电信政企产品资料库 - 高端简洁风格
   设计理念：留白、层次、质感、克制
   ======================================== */

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

:root {
  /* 主色调 - 沉稳天翼蓝 */
  --primary: #0A4D8C;
  --primary-light: #EBF4FB;
  --primary-lighter: #F5FAFD;
  --primary-dark: #073868;
  --accent: #3DA5F5;

  /* 背景 */
  --bg: #FAFBFC;
  --bg-alt: #F4F6F8;
  --card-bg: #FFFFFF;

  /* 文字 */
  --text: #1A1D21;
  --text-secondary: #5A6068;
  --text-light: #9BA1A8;
  --text-disabled: #C5C9CC;

  /* 线条 */
  --border: #E8EAED;
  --border-light: #F0F1F3;

  /* 功能色 */
  --success: #2DB77B;
  --warning: #F5A623;
  --danger: #E84848;
  --info: #3DA5F5;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(16,24,40,0.04);
  --shadow-sm: 0 1px 3px rgba(16,24,40,0.06), 0 1px 2px rgba(16,24,40,0.04);
  --shadow-md: 0 4px 12px rgba(16,24,40,0.06), 0 2px 4px rgba(16,24,40,0.04);
  --shadow-lg: 0 12px 32px rgba(16,24,40,0.08), 0 4px 8px rgba(16,24,40,0.04);
  --shadow-xl: 0 20px 56px rgba(16,24,40,0.12), 0 8px 16px rgba(16,24,40,0.06);

  /* 圆角 */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* 过渡 */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ==================== 登录页 ==================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0A4D8C 0%, #0D6BC0 50%, #0A4D8C 100%);
}

.login-wrapper::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(61,165,245,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.login-wrapper::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.login-card {
  position: relative;
  z-index: 10;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 48px rgba(7,56,104,0.25), 0 0 0 1px rgba(255,255,255,0.5);
  animation: loginIn 0.6s cubic-bezier(0.16,1,0.3,1);
}

@keyframes loginIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo { text-align: center; margin-bottom: 24px; }

.login-logo .logo-img-lg {
  width: 72px; height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(10,77,140,0.25);
}

.login-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.login-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ==================== 表单通用 ==================== */
.form-group { margin-bottom: 22px; }

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  transition: all var(--transition);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
}

.form-input { height: 48px; }

.form-input:hover, .form-textarea:hover, .form-select:hover {
  border-color: var(--text-disabled);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10,77,140,0.08);
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}

.form-select { height: 48px; cursor: pointer; }

/* ==================== 按钮系统 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(10,77,140,0.2);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(10,77,140,0.3);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lighter);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 0 16px;
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--primary); }

.btn-danger {
  background: #fff;
  border: 1.5px solid #FECACA;
  color: var(--danger);
}
.btn-danger:hover { background: #FEF2F2; border-color: var(--danger); }

.btn-success { background: var(--success); color: #fff; }

.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ==================== 主布局 ==================== */
.app-layout { display: flex; min-height: 100vh; }

/* 侧边栏 - 深色高级感 */
.sidebar {
  width: 240px;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  background: linear-gradient(180deg, #14181E 0%, #0F1318 100%);
}

.sidebar-header {
  padding: 28px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-header .logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-header .logo-img-sm {
  width: 36px; height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.sidebar-header h2 {
  font-size: 15px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sidebar-header p {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  margin-bottom: 4px;
  transition: all var(--transition);
  gap: 12px;
  font-weight: 500;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

.nav-item.active {
  background: rgba(61,165,245,0.12);
  color: #3DA5F5;
  box-shadow: inset 3px 0 0 #3DA5F5;
}

.nav-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}

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

.user-info-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius);
}

.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3DA5F5, #0A4D8C);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.user-info-mini .user-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.user-info-mini .user-role {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.user-info-mini .btn {
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.6);
}
.user-info-mini .btn:hover { background: rgba(232,72,72,0.2); color: #ff8484; }

/* 主内容区 */
.main-content {
  flex: 1;
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
  color: var(--text);
  letter-spacing: 0.3px;
}

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

.content-body {
  flex: 1;
  padding: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ==================== 页面组件 ==================== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
}

/* 搜索栏 */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-bar .form-input {
  flex: 1;
  min-width: 200px;
}

/* 分类标签 - pill 风格 */
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 7px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  user-select: none;
}

.cat-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cat-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(10,77,140,0.2);
}

/* ==================== 产品卡片 ==================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0A4D8C, #3DA5F5);
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card:hover::before { opacity: 1; }

.product-card .prod-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: 0.2px;
}

.product-card .prod-cat {
  display: inline-block;
  background: var(--primary-lighter);
  color: var(--primary);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.product-card .prod-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card .prod-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
}

.product-card .prod-manager {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card .prod-manager b {
  color: var(--text-secondary);
  font-weight: 600;
}

.material-badge {
  background: var(--primary-lighter);
  color: var(--primary);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
}

/* ==================== 产品详情 ==================== */
.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.detail-title h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: 0.3px;
}

.detail-cat-badge {
  display: inline-block;
  background: var(--primary-lighter);
  color: var(--primary);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 500;
}

.detail-info {
  display: flex;
  gap: 36px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.detail-info span b {
  color: var(--text);
  font-weight: 600;
}

/* 资料区 */
.material-section { margin-top: 28px; }

.material-section-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.material-section-title .count-badge {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
}

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

.material-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
  background: #fff;
}

.material-item:hover {
  border-color: var(--primary-light);
  background: var(--primary-lighter);
  box-shadow: var(--shadow-xs);
}

.material-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.material-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.material-meta { flex: 1; min-width: 0; }

.material-meta .m-title {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.material-meta .m-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.material-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* 文件类型图标 */
.file-type-icon {
  width: 40px; height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  position: relative;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.file-type-icon::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  background: rgba(255,255,255,0.25);
  border-radius: 0 6px 0 6px;
}

/* PDF - 红色 */
.ft-pdf { background: #DC2626; }
/* Word - 蓝色 */
.ft-doc { background: #2563EB; }
/* Excel - 绿色 */
.ft-xls { background: #16A34A; }
/* PPT - 橙色 */
.ft-ppt { background: #EA580C; }
/* 图片 - 紫色 */
.ft-img { background: #9333EA; }
/* 压缩包 - 棕黄色 */
.ft-zip { background: #CA8A04; }
/* 文本 - 灰色 */
.ft-txt { background: #6B7280; }
/* 默认 */
.ft-default { background: #9CA3AF; }
/* 云盘 */
.ft-cloud { background: #0284C7; color: #fff; font-size: 14px; align-items: center; }
.ft-cloud::before { display: none; }

/* 云盘标签 */
.tag-cloud {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
  background: #E0F2FE;
  color: #0284C7;
  font-weight: 500;
  margin-left: 6px;
  vertical-align: middle;
}

/* ==================== 模态框 ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,19,24,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.16,1,0.3,1);
}

@keyframes modalIn {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.modal-body { padding: 28px; }

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ==================== 表格 ==================== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}

.card > .card-body { padding: 24px; }

.table-wrapper { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 14px 20px;
  text-align: left;
  white-space: nowrap;
}

th {
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

td { border-bottom: 1px solid var(--border-light); }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--primary-lighter); }
tbody tr:last-child td { border-bottom: none; }

/* 角色标签 */
.role-tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.role-admin { background: #FEF2F2; color: #DC2626; }
.role-pm { background: #EBF4FB; color: #0A4D8C; }
.role-manager { background: #F0FDF4; color: #059669; }

/* ==================== 分页 ==================== */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  transition: all var(--transition);
  font-weight: 500;
  color: var(--text-secondary);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ==================== Toast ==================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  animation: toastIn 0.35s cubic-bezier(0.16,1,0.3,1);
  max-width: 380px;
  border-left: 4px solid var(--info);
}

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--info); }

/* ==================== 空状态 ==================== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}

.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state .empty-text { font-size: 15px; }

/* ==================== 上传区 ==================== */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-alt);
}

.upload-area:hover {
  border-color: var(--accent);
  background: var(--primary-lighter);
}

.upload-area .upload-icon { font-size: 40px; margin-bottom: 12px; }
.upload-area .upload-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; font-weight: 500; }
.upload-area .upload-hint { font-size: 12px; color: var(--text-light); }

.file-preview {
  background: var(--primary-lighter);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
}

/* ==================== 详情描述区 ==================== */
.desc-box {
  margin-top: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary-lighter), #fff);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.desc-box .desc-label {
  display: block;
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==================== 统计卡片 ==================== */
.stat-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-card {
  flex: 1;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-xs);
}

.stat-card .stat-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* ==================== 信息列表 ==================== */
.info-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.info-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
}
.info-line:last-child { border-bottom: none; }
.info-line .info-label { font-size: 14px; color: var(--text-light); }
.info-line .info-val { font-size: 14px; color: var(--text); font-weight: 500; }

/* ==================== back 按钮 ==================== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all var(--transition);
  background: none;
  border: none;
}
.back-btn:hover { background: var(--bg-alt); color: var(--primary); }

/* ==================== 侧边栏遮罩 ==================== */
.sidebar-mask {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
  backdrop-filter: blur(2px);
}
.sidebar-mask.show { display: block; }

/* ==================== 加载 ==================== */
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loading-text {
  text-align: center;
  padding: 60px;
  color: var(--text-light);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: block; }
  .content-body { padding: 20px 16px; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .detail-info { flex-direction: column; gap: 10px; }
  .topbar { padding: 0 16px; height: 56px; }
  .topbar-title { font-size: 16px; }
  .search-bar { flex-direction: column; }
  .modal { max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .page-header { flex-direction: column; align-items: stretch; }
  .page-title { font-size: 19px; }
  .login-card { padding: 36px 28px; max-width: calc(100% - 32px); }
  .login-title { font-size: 19px; }
  th, td { padding: 10px 12px; }
}

/* ==================== v2.0 新增样式 ==================== */

/* 登录页验证码 */
.sms-section { display: none; margin-top: 16px; }
.sms-section .sms-hint { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.sms-input-row { display: flex; gap: 10px; }
.sms-input-row .form-input { flex: 1; }

/* 工具箱 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  text-align: center;
}

.tool-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tool-card .tool-icon { font-size: 40px; margin-bottom: 16px; }
.tool-card .tool-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.tool-card .tool-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.tool-card .tool-meta { font-size: 11px; color: var(--text-light); letter-spacing: 0.3px; }

/* 工具详情 */
.tool-detail-header { display: flex; align-items: center; gap: 20px; }

.tool-icon-lg {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--primary-lighter);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}

/* 工具结果 */
.tool-result-box {
  background: linear-gradient(135deg, var(--primary-lighter), #fff);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 24px;
}
.tool-result-box.error { background: #FEF2F2; border-color: #FECACA; }
.tool-result-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.tool-result-summary { font-size: 14px; color: var(--text-secondary); line-height: 1.8; white-space: pre-wrap; margin-bottom: 16px; }
.tool-result-table table { font-size: 13px; }
.tool-result-table td:first-child { color: var(--text-light); width: 40%; }
.tool-result-table td:last-child { font-weight: 600; color: var(--text); }

.tool-result-text-block { margin-top: 16px; }
.tool-result-text-label { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.tool-result-pre {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-all;
  font-family: "SF Mono", "Monaco", "Consolas", monospace; max-height: 400px; overflow-y: auto;
}

/* 标签栏 */
.tab-bar {
  display: flex; gap: 4px; margin-bottom: 20px;
  border-bottom: 2px solid var(--border-light); padding-bottom: 0;
}
.tab-item {
  padding: 10px 20px; cursor: pointer; font-size: 14px; font-weight: 500;
  color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-item:hover { color: var(--text-secondary); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* 操作标签 */
.action-tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.action-create { background: #EBF4FB; color: #0A4D8C; }
.action-update { background: #FEF3C7; color: #D97706; }
.action-delete { background: #FEF2F2; color: #DC2626; }
.action-upload { background: #F0FDF4; color: #059669; }
.action-login { background: #F3F4F6; color: #6B7280; }
.action-execute { background: #F5F3FF; color: #7C3AED; }

/* 收藏按钮已收藏状态 */
.btn-favorited {
  background: var(--primary-lighter) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* 统计看板 */
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 20px;
}
.stats-section-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--text); }

/* 趋势图 */
.trend-chart {
  display: flex; align-items: flex-end; justify-content: space-between;
  height: 200px; gap: 12px; margin-top: 16px;
}
.trend-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.trend-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.trend-bar {
  width: 70%; max-width: 48px;
  background: linear-gradient(180deg, #3DA5F5, #0A4D8C);
  border-radius: 6px 6px 0 0; transition: height 0.5s ease; min-height: 2px; position: relative;
}
.trend-bar:hover { filter: brightness(1.1); }
.trend-count {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: var(--primary);
}
.trend-date { font-size: 11px; color: var(--text-light); margin-top: 8px; }

/* 排行列表 */
.rank-list { display: flex; flex-direction: column; gap: 2px; }
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
}
.rank-item:last-child { border-bottom: none; }
.rank-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--bg-alt); color: var(--text-light);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rank-num.rank-top { background: linear-gradient(135deg, #3DA5F5, #0A4D8C); color: #fff; }
.rank-name {
  flex: 1; font-size: 13px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-count { font-size: 13px; font-weight: 600; color: var(--primary); flex-shrink: 0; }

/* 分类分布条 */
.cat-bar-wrap { flex: 1; height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.cat-bar { height: 100%; background: linear-gradient(90deg, #3DA5F5, #0A4D8C); border-radius: 4px; min-width: 2px; transition: width 0.5s ease; }

/* 工具管理页样式 */
.version-badge { display: inline-block; padding: 2px 8px; background: var(--bg-input); border-radius: 4px; font-size: 12px; font-weight: 600; color: var(--primary); }
.status-on { color: #27ae60; font-weight: 600; font-size: 13px; }
.status-off { color: #e74c3c; font-weight: 600; font-size: 13px; }
.tag { display: inline-block; padding: 2px 8px; background: var(--bg-input); border-radius: 4px; font-size: 12px; color: var(--text-secondary); }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* v2.0 移动端适配 */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
  .trend-chart { height: 150px; gap: 6px; }
  .trend-bar { width: 80%; }
  .tool-grid { grid-template-columns: 1fr; }
}

/* ==================== v2.3 ICP备案号 ==================== */
/* 登录页底部备案 - 绝对定位到页面最底部 */
.icp-footer {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}
.icp-footer a {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.icp-footer a:hover {
  color: rgba(255,255,255,0.8);
}

/* 主界面底部备案 */
.app-footer {
  text-align: center;
  padding: 12px 20px 16px;
  flex-shrink: 0;
}
.app-footer a {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}
.app-footer a:hover {
  color: var(--primary);
}

/* 移动端备案号适配 */
@media (max-width: 768px) {
  .app-footer { padding: 12px 16px 16px; }
}
