/* ===================帝王云 ==================== */
/* ============= www.diwangyun.com ================ */
/* ============= www.diwangyun.cn ================= */
/* ============== 代码有价，版权无价 ================= */
/* =======帝王云模板为帝王云自行开发，已办理源码著作权 ========== */
/* =======未经允许 仿站或扒站 发现必究，请尊重开发者心血 ========== */
/* ==========="愿你走完山水万城 仍与理想重逢" ============ */
/* ============模板作者：江遇:QQ 1481234828=========== */


/* 优势对比模块样式 */

.comparison-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 60px 0;
}

.comparison-table-container {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  background: white;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

/* 表头样式 */
.comparison-table thead tr {
  background: linear-gradient(135deg, #0a1628 0%, #1a1033 100%);
}

.comparison-table th {
  padding: 15px 12px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  text-align: center;
  border: none;
  position: relative;
  vertical-align: middle;
}

.col-item {
  width: 20%;
  background: rgba(0, 0, 0, 0.3);
}

.col-other {
  width: 26%;
}

.col-us {
  width: 28%;
  background: linear-gradient(135deg, #c9a227 0%, #daa520 100%);
  position: relative;
}

.col-traditional {
  width: 26%;
  background: rgba(0, 0, 0, 0.3);
}

/* 帝王云列特殊样式 */
.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
}

.us-label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.icon-badge {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 8px;
}

/* 表格行样式 */
.comparison-table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: rgba(201, 162, 39, 0.05);
}

.comparison-table td {
  padding: 12px 10px;
  vertical-align: middle;
  text-align: center;
  border: none;
  font-size: 13px;
  line-height: 1.5;
}

/* 标题列样式 */
.row-title {
  background: var(--bg-light);
  font-weight: 600;
  min-width: 160px;
}

.title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dark);
}

.title-icon svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

/* 其他云列样式 */
.row-other {
  background: white;
}

.row-other .text-muted {
  color: var(--text-gray);
  font-size: 12px;
  line-height: 1.5;
}

/* 帝王云列样式 */
.row-us {
  background: rgba(201, 162, 39, 0.04);
  border-left: 3px solid #c9a227;
  border-right: 3px solid #c9a227;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-dark);
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item.highlight {
  font-weight: 600;
  color: #c9a227;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #c9a227 0%, #daa520 100%);
  color: #0a0a0a;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 6px;
}

.feature-list span {
  background: rgba(201, 162, 39, 0.1);
  color: #c9a227;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

/* 传统服务器列样式 */
.row-traditional {
  background: white;
}

.row-traditional .text-muted {
  color: var(--text-gray);
  font-size: 12px;
  line-height: 1.5;
}

/* 斑马纹效果 */
.comparison-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.comparison-table tbody tr:nth-child(even) .row-us {
  background: rgba(201, 162, 39, 0.06);
}

.comparison-table tbody tr:nth-child(even) .row-title {
  background: var(--bg-light);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .comparison-section {
    padding: 50px 0;
  }

  .comparison-table {
    min-width: 850px;
  }

  .comparison-table th {
    padding: 14px 10px;
    font-size: 14px;
  }

  .comparison-table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .us-label {
    font-size: 15px;
  }

  .title-icon {
    font-size: 12px;
  }

  .check-icon {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .comparison-section {
    padding: 40px 0;
  }

  .comparison-table {
    min-width: 750px;
  }

  .comparison-table th {
    padding: 12px 8px;
    font-size: 13px;
  }

  .comparison-table td {
    padding: 10px 8px;
    font-size: 11px;
  }

  .us-label {
    font-size: 14px;
  }

  .title-icon svg {
    width: 16px;
    height: 16px;
  }

  .feature-item {
    font-size: 11px;
    gap: 4px;
  }

  .feature-list span {
    font-size: 10px;
    padding: 2px 6px;
  }

  .row-title {
    min-width: 140px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comparison-table tbody tr {
  animation: fadeInUp 0.5s ease forwards;
}

.comparison-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.comparison-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.comparison-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.comparison-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.comparison-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.comparison-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.comparison-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.comparison-table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.comparison-table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.comparison-table tbody tr:nth-child(10) { animation-delay: 0.5s; }
.comparison-table tbody tr:nth-child(11) { animation-delay: 0.55s; }
.comparison-table tbody tr:nth-child(12) { animation-delay: 0.6s; }
.comparison-table tbody tr:nth-child(13) { animation-delay: 0.65s; }
