/* ========================================= */
/* 文件：network-records.css                    */
/* 功能：联网面板与搜索记录                     */
/*       ——联网面板双入口菜单、搜索记录列表、    */
/*       联网触发词管理（关键词开关/标签/输入行）、*/
/*       骨架屏加载状态                          */
/* ========================================= */

/* 通用返回按钮（所有内嵌抽屉共用） */
.sheet-back {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  flex-shrink: 0;
}

/* ============ 联网触发词抽屉 ============ */
.kw-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.kw-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.kw-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  min-height: 36px;
  max-height: calc(7 * (28px + 8px));
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;

}
.kw-tag, .keyword-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 12px;
  background: linear-gradient(135deg, rgba(255,179,122,0.12), rgba(162,155,254,0.10));
  border: 1px solid rgba(255,179,122,0.22);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  cursor: default;
}
.kw-tag-del, .keyword-tag i {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.2s;
}
.kw-tag-del:active, .keyword-tag i:active { color: rgba(255,100,100,0.8); }
.kw-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.kw-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  outline: none;
}
.kw-input::placeholder { color: rgba(255,255,255,0.25); }
.kw-input:focus { border-color: rgba(255,179,122,0.4); background: rgba(255,255,255,0.1); }
.kw-add-btn {
  padding: 9px 18px;
  background: linear-gradient(135deg, rgba(255,179,122,0.3), rgba(162,155,254,0.25));
  border: 1px solid rgba(255,179,122,0.3);
  border-radius: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.kw-add-btn:active {
  background: linear-gradient(135deg, rgba(255,179,122,0.5), rgba(162,155,254,0.4));
  transform: scale(0.96);
}

/* ============ 联网面板菜单 ============ */
.search-panel-menu {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-panel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px;
  border-radius: 20px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255,179,122,0.1), rgba(162,155,254,0.09));
  border: 1px solid rgba(255,179,122,0.16);
  box-shadow: 0 0 10px rgba(255,179,122,0.06), inset 0 0 8px rgba(162,155,254,0.04);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.88);
  transition: all 0.2s ease;
}
.search-panel-item:active {
  background: linear-gradient(135deg, rgba(255,179,122,0.26), rgba(162,155,254,0.22));
  box-shadow: 0 0 18px rgba(255,179,122,0.2), 0 0 10px rgba(162,155,254,0.15);
  transform: scale(0.97);
}
.search-panel-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-panel-item-icon {
  font-size: 22px;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
  line-height: 1;
}
.search-panel-item-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
}
.search-panel-item-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}
.search-panel-item-arrow {
  font-size: 20px;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* ============ 搜索记录列表 ============ */
.search-log-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.search-log-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-log-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  width: fit-content;
}
.tag-auto { background: rgba(162,155,254,0.2); color: #b9b3fb; }
.tag-manual { background: rgba(255,179,122,0.18); color: #ffb37a; }
.search-log-query {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding-left: 2px;
}
.search-log-time {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-left: auto;
  white-space: nowrap;
}
