﻿/* ========================================
   自动生成：port_list.asp 页面样式
   ======================================== */

.auto-style-1 {
  display:none;
}

.auto-style-2 {
  width:160px;
  height:160px;
  margin:10px auto;
}

.auto-style-3 {
  color:#6b7280;
  margin-bottom:20px;
}

.auto-style-4 {
  margin-bottom:20px;
}

.auto-style-5 {
  width:100%;
  padding:12px 16px;
  border:1px solid #d1d5db;
  border-radius:6px;
  font-size:14px;
  box-sizing:border-box;
}

.auto-style-6 {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

.auto-style-7 {
  overflow-x:auto;
}

.auto-style-8 {
  width:100px;
}

.auto-style-9 {
  width:80px;
}

.auto-style-10 {
  width:120px;
}

.auto-style-11 {
  display:none;
  text-align:center;
  padding:40px;
  color:#6b7280;
}

.auto-style-12 {
  font-size:32px;
  margin-bottom:12px;
}

.auto-style-13 {
  background:#fef3c7;
  border-radius:8px;
  padding:16px;
  margin-top:24px;
  border-left:4px solid #f59e0b;
}

.auto-style-14 {
  margin:0 0 8px 0;
  font-size:14px;
  color:#92400e;
}

.auto-style-15 {
  margin:0;
  padding-left:20px;
  font-size:13px;
  color:#78350f;
  line-height:1.8;
}

.auto-style-16 {
  background:linear-gradient(135deg,#eff6ff,#dbeafe);
  border-left:4px solid #3b82f6;
  margin-top:24px;
}

.auto-style-17 {
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.auto-style-18 {
  font-size:24px;
  color:#3b82f6;
  margin-top:2px;
}

.auto-style-19 {
  margin:0 0 8px 0;
  font-size:16px;
  color:#1e40af;
}

.auto-style-20 {
  margin:0 0 10px 0;
  font-size:14px;
  color:#374151;
  line-height:1.6;
}

.auto-style-21 {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.auto-style-22 {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  background:#3b82f6;
  color:#fff;
  text-decoration:none;
  border-radius:6px;
  font-size:13px;
  font-weight:500;
}

.auto-style-23 {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  background:#10b981;
  color:#fff;
  text-decoration:none;
  border-radius:6px;
  font-size:13px;
  font-weight:500;
}


/* ===== 搜索历史 ===== */
.search-history-box {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 50;
  padding: 10px;
}
.search-history-title {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
  padding: 0 4px;
}
.search-history-item {
  display: inline-block;
  padding: 4px 12px;
  margin: 3px;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s;
}
.search-history-item:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

/* ===== 搜索高亮 ===== */
.port-highlight {
  background: #fef08a;
  color: #92400e;
  padding: 0 2px;
  border-radius: 2px;
}

/* ===== 复制提示 ===== */
.copy-tip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  animation: copyTipFade 1.5s ease;
}
.copy-tip i {
  color: #4ade80;
  margin-right: 6px;
}
@keyframes copyTipFade {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ===== 表格头部 ===== */
.port-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.result-count {
  font-size: 13px;
  color: #6b7280;
}
.result-count strong {
  color: #2563eb;
  font-size: 15px;
}
.port-table-tip {
  font-size: 12px;
  color: #9ca3af;
}
.port-table-tip i {
  color: #f59e0b;
}

/* ===== 表格排序 ===== */
.port-table th {
  cursor: pointer;
  user-select: none;
  position: relative;
}
.port-table th i.fa-sort {
  font-size: 11px;
  color: #d1d5db;
  margin-left: 4px;
}
.port-table th.sort-asc i.fa-sort,
.port-table th.sort-desc i.fa-sort {
  color: #2563eb;
}
.port-table th.sort-asc i.fa-sort::before {
  content: "\f0de";
}
.port-table th.sort-desc i.fa-sort::before {
  content: "\f0dd";
}
.port-number {
  cursor: pointer;
  transition: all 0.2s;
}
.port-number:hover {
  text-decoration: underline;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ===== 端口号范围说明 ===== */
.port-range-card {
  margin-top: 24px;
}
.port-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.port-section-title i {
  color: #2563eb;
}
.port-range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.port-range-item {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #2563eb;
}
.port-range-num {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 4px;
  font-family: monospace;
}
.port-range-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}
.port-range-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}
.port-protocol-tip {
  background: #eff6ff;
  border-radius: 8px;
  padding: 12px 16px;
}
.port-protocol-tip p {
  margin: 0;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.7;
}
.port-protocol-tip i {
  color: #3b82f6;
  margin-right: 4px;
}

/* ===== 常用场景速查 ===== */
.port-scene-card {
  margin-top: 24px;
}
.port-scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.port-scene-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}
.port-scene-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dbeafe;
}
.port-scene-item h4 i {
  color: #2563eb;
  font-size: 14px;
}
.port-scene-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.port-scene-item li {
  font-size: 12px;
  color: #4b5563;
  padding: 5px 0;
  border-bottom: 1px dashed #f3f4f6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.port-scene-item li:last-child {
  border-bottom: none;
}
.port-num-mini {
  font-family: monospace;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}

/* ===== 端口安全建议 ===== */
.port-security-card {
  margin-top: 24px;
}
.port-security-warning {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.port-security-warning p {
  margin: 0;
  font-size: 14px;
  color: #991b1b;
  font-weight: 500;
  line-height: 1.6;
}
.port-security-warning i {
  color: #dc2626;
  margin-right: 6px;
}
.port-security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.port-security-item {
  border-radius: 8px;
  padding: 16px;
  border: 1px solid;
}
.port-security-item.danger {
  background: #fef2f2;
  border-color: #fecaca;
}
.port-security-item.warning {
  background: #fffbeb;
  border-color: #fde68a;
}
.port-security-item.safe {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.port-security-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.port-security-item.danger h4 { color: #991b1b; }
.port-security-item.warning h4 { color: #92400e; }
.port-security-item.safe h4 { color: #166534; }
.port-security-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.port-security-item li {
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed;
  display: flex;
  align-items: center;
  gap: 8px;
}
.port-security-item.danger li { color: #7f1d1d; border-color: #fecaca; }
.port-security-item.warning li { color: #78350f; border-color: #fde68a; }
.port-security-item.safe li { color: #14532d; border-color: #bbf7d0; }
.port-security-item li:last-child {
  border-bottom: none;
}
.port-num-mini.danger {
  background: #fee2e2;
  color: #991b1b;
}
.port-num-mini.warning {
  background: #fef3c7;
  color: #92400e;
}
.port-security-item.safe li i {
  color: #16a34a;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

/* ===== 相关工具推荐 ===== */
.port-related-card {
  margin-top: 24px;
}
.port-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.port-related-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.port-related-item:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}
.port-related-item i {
  font-size: 22px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 2px;
}
.port-related-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}
.port-related-item p {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* ===== 监控端口说明中的code ===== */
.auto-style-15 code {
  background: #fef3c7;
  color: #92400e;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-family: monospace;
  word-break: break-all;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
  .port-range-grid {
    grid-template-columns: 1fr;
  }
  .port-scene-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .port-security-grid {
    grid-template-columns: 1fr;
  }
  .port-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .port-table-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .port-table {
    font-size: 12px;
  }
  .port-table th, .port-table td {
    padding: 8px 6px;
  }
  .port-range-num {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .port-scene-grid {
    grid-template-columns: 1fr;
  }
  .port-related-grid {
    grid-template-columns: 1fr;
  }
}
