.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px 12px 36px;
  background: #fff;
  border-bottom: 1px solid #e3eaf5;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  height: 44px;
  border-radius: 8px;
}

.header-title {
  font-size: 1.45em;
  font-weight: 700;
  color: #4682e4;
  margin-top: 0;
}

.fav-btn {
  background: #eaf4fb;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: #4682e4;
  font-size: 1.3em;
  padding: 7px 13px;
  cursor: pointer;
  transition: all .16s;
}

.fav-btn:hover {
  background: #4682e4;
  color: #fff;
}

/* 增强版收藏按钮样式 */
.fav-btn.enhanced {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  border: 1px solid #ff6b35;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  animation: glow-pulse 2s infinite;
  font-weight: 600;
}

.fav-btn.enhanced:hover {
  background: linear-gradient(135deg, #e55a2b, #d4841a);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.fav-btn.enhanced i {
  animation: star-twinkle 2s infinite;
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  }

  50% {
    box-shadow: 0 4px 25px rgba(255, 107, 53, 0.5);
  }
}

@keyframes star-twinkle {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.entry-bar {
  background: #f7faff;
  border-bottom: 1px solid #e3eaf5;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  padding: 10px 0;
}

.entry-btn {
  background: #f3f8ff;
  color: #4682e4;
  border: 1.5px solid #bcdcfb;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 1.08em;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin: 2px 0;
}

.entry-btn:hover {
  background: #4682e4;
  color: #fff;
  border-color: #4682e4;
}

.entry-btn.link {
  background: #eaf4fb;
  border: 1.5px solid #dbeafe;
}

.entry-btn.link:hover {
  background: #4682e4;
  color: #fff;
  border-color: #4682e4;
}

.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 40px 16px;
}

.fc-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(62, 130, 227, .06);
  padding: 28px 18px;
  margin: 15px auto 22px auto;
  /* 减小顶部外边距 */
}

.section-header {
  font-size: 1.3em;
  font-weight: 700;
  color: #4682e4;
  margin-bottom: 10px;
  border-bottom: 1.5px solid #e3eaf5;
  padding-bottom: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.refresh-btn {
  background: #f0f9ff;
  color: #0ea5e9;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8em;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.refresh-btn:hover {
  background: #0ea5e9;
  color: #fff;
  transform: translateY(-1px);
}

.refresh-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.table-wrap {
  display: flex;
  justify-content: center;
}

.main-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 1em;
  margin: 0 auto;
  background: #fff;
}

.main-table thead {
  background: #f3f8ff;
}

.main-table th {
  padding: 28px 18px;
  text-align: center;
  font-weight: 600;
  color: #4682e4;
  border-bottom: 2px solid #e3eaf5;
  font-size: 1.06em;
}

.main-table td {
  padding: 14px 10px;
  color: #23395d;
  text-align: center;
  border-bottom: 1px solid #e3eaf5;
}

.main-table tbody tr:hover {
  background: #f7faff;
}

.domain-name {
  font-weight: 600;
  color: #4682e4;
}

.speed-badge,
.status-badge {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.85em;
  /* 缩小字体 */
  font-weight: 400;
  /* 不加粗 */
}

.speed-badge.excellent,
.status-badge.high-speed {
  background: #d1fae5;
  color: #047857;
  /* 浅一个度 */
  border: 1px solid #a7f3d0;
}

.speed-badge.good,
.status-badge.normal {
  background: #eaf4fb;
  color: #3b72d9;
  /* 浅一个度 */
  border: 1px solid #bcdcfb;
}

.speed-badge.slow,
.status-badge.delay {
  background: #fef3c7;
  color: #b45309;
  /* 浅一个度 */
  border: 1px solid #fcd34d;
}

.domain-actions {
  white-space: nowrap;
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 1em;
}

.access-item,
.report-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 4px;
  border-radius: 6px;
}

.access-item:hover {
  background: rgba(70, 130, 228, 0.1);
}

.report-item:hover {
  background: rgba(245, 158, 11, 0.1);
}

.access-btn,
.report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf4fb;
  color: #4682e4;
  border-radius: 6px;
  padding: 4px 6px;
  transition: all 0.2s;
  font-size: 1.1em;
  min-width: 28px;
  height: 28px;
}

.access-item:hover .access-btn {
  background: #4682e4;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(70, 130, 228, 0.3);
}

.report-btn {
  background: #fef3c7;
  color: #d97706;
}

.report-item:hover .report-btn {
  background: #f59e0b;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(245, 158, 11, 0.3);
}

.access-label {
  font-size: 0.7em;
  color: #6b7280;
  font-weight: 500;
  margin-top: 1px;
}

.tool-table th,
.tool-table td {
  text-align: center;
}

.table-btn {
  background: #4682e4;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 18px;
  margin: 2px 2px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 500;
  transition: background .15s;
}

.table-btn:hover {
  background: #2561b0;
}

@media (max-width: 900px) {

  .main-table,
  .tool-table {
    width: 100%;
    min-width: unset;
    font-size: 0.95em;
  }

  .table-wrap {
    padding: 0;
  }

  .entry-bar {
    flex-wrap: wrap;
    gap: 8px;
    min-height: 48px;
    padding: 8px 0;
  }

  .entry-btn {
    font-size: 1em;
    padding: 7px 11px;
    border-radius: 10px;
  }

  .domain-actions {
    gap: 7px;
    font-size: 1em;
  }

  .domain-actions span {
    padding: 2px 5px;
    min-width: 27px;
    font-size: 1em;
  }

  .fc-section {
    padding: 14px 4px;
  }
}

.footer {
  background: #fff;
  border-top: 1px solid #e3eaf5;
  padding: 24px 0;
  text-align: center;
  color: #7ca0c5;
  font-size: 0.9em;
  margin-top: 40px;
}

.footer-content a {
  color: #4682e4;
  text-decoration: none;
  margin: 0 8px;
}

.footer-content a:hover {
  text-decoration: underline;
}

/* 快速注册按钮醒目样式 */
.register-highlight {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e) !important;
  color: #fff !important;
  border: 1.5px solid #ff6b6b !important;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  animation: pulse-glow 2s infinite;
  position: relative;
}

.register-highlight:hover {
  background: linear-gradient(135deg, #ff5252, #ff7575) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* 快速登录按钮醒目样式 */
.quick-login-highlight {
  background: linear-gradient(135deg, #4CAF50, #66BB6A) !important;
  color: #fff !important;
  border: 1.5px solid #4CAF50 !important;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  animation: lightning-pulse 1.8s infinite;
  position: relative;
  font-weight: 600;
}

.quick-login-highlight:hover {
  background: linear-gradient(135deg, #43A047, #5CB85C) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.quick-login-highlight::before {
  content: '⚡';
  position: absolute;
  top: -8px;
  right: -8px;
  background: #FFC107;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  animation: bounce-lightning 1.5s infinite;
}

@keyframes lightning-pulse {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  }

  50% {
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.7);
  }
}

@keyframes bounce-lightning {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.2) rotate(5deg);
  }
}

.highlight-badge {
  background: #ffeb3b;
  color: #333;
  font-size: 0.7em;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: bold;
  margin-left: 4px;
  animation: flash 1.5s infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  }

  50% {
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.5);
  }
}

@keyframes flash {

  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0.7;
  }
}

/* 收藏弹窗样式 */
.modal {
  position: fixed;
  z-index: 600;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 0;
  border-radius: 10px;
  width: 220px;
  max-width: 50vw;
  max-height: 30vh;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #e3eaf5;
  background: #f8faff;
  border-radius: 10px 10px 0 0;
}

.modal-header h3 {
  margin: 0;
  color: #4682e4;
  font-size: 1.1em;
  font-weight: 600;
}

.close {
  color: #aaa;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #666;
}

.modal-body {
  padding: 18px;
}

.favorite-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.favorite-method {
  padding: 12px;
  border: 1px solid #e3eaf5;
  border-radius: 8px;
  background: #f8faff;
  transition: all 0.2s;
}

.favorite-method:hover {
  border-color: #4682e4;
  background: #f0f7ff;
}

.favorite-method h4 {
  margin: 0 0 8px 0;
  color: #4682e4;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.favorite-method p {
  margin: 0 0 12px 0;
  color: #666;
  font-size: 0.9em;
  line-height: 1.4;
}

.favorite-btn {
  background: #4682e4;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.favorite-btn:hover {
  background: #3a6bc7;
}

kbd {
  background: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 0.8em;
  color: #333;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 900px) {

  /* 顶部栏移动端优化 */
  .top-bar {
    padding: 12px 16px 8px 16px;
  }

  .top-left {
    gap: 8px;
  }

  .header-logo {
    height: 32px;
  }

  /* 标题在移动端自动隐藏 */
  .header-title {
    display: none;
  }

  /* 收藏按钮缩小尺寸适配单行显示 */
  .fav-btn.enhanced {
    font-size: 1em;
    padding: 6px 10px;
  }

  /* 功能入口栏移动端优化 */
  .entry-bar {
    padding: 10px 8px;
    gap: 8px;
  }

  .entry-btn {
    font-size: 0.9em;
    padding: 8px 12px;
    border-radius: 10px;
  }

  /* 主内容区域移动端优化 */
  .main-content {
    padding: 0 8px 20px 8px;
  }

  .fc-section {
    padding: 16px 12px;
    margin: 10px auto 16px auto;
  }

  /* 域名区域标题和刷新按钮字体缩小 */
  .section-header {
    font-size: 1.1em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    /* 确保不换行 */
  }

  .section-header h2 {
    font-size: 1em;
    white-space: nowrap;
    /* 防止标题换行 */
  }

  .refresh-btn {
    font-size: 0.7em;
    padding: 4px 8px;
    gap: 3px;
    flex-shrink: 0;
    /* 防止按钮被压缩 */
  }

  /* 表格移动端优化 */
  .table-wrap {
    overflow-x: auto;
    /* 允许水平滚动 */
    padding: 0 4px;
  }

  .main-table {
    min-width: 100%;
    font-size: 0.85em;
  }

  .main-table th,
  .main-table td {
    padding: 8px 4px;
    font-size: 0.9em;
  }

  /* 域名访问入口功能键移动端优化 */
  .domain-actions {
    gap: 4px;
    /* 缩小间距 */
    font-size: 0.85em;
  }

  .access-item,
  .report-item {
    padding: 2px;
    /* 缩小内边距 */
    gap: 1px;
  }

  .access-btn,
  .report-btn {
    padding: 3px 4px;
    /* 缩小按钮内边距 */
    font-size: 0.9em;
    min-width: 24px;
    height: 24px;
  }

  .access-label {
    font-size: 0.6em;
    /* 缩小标签字体 */
    margin-top: 0;
  }

  /* 排名徽章移动端优化 */
  .rank-badge {
    width: 22px;
    height: 22px;
    font-size: 0.8em;
  }

  /* 速度和状态标签移动端优化 */
  .speed-badge,
  .status-badge {
    font-size: 0.75em;
    padding: 3px 6px;
  }

  /* 弹窗移动端优化 */
  .modal-content {
    width: 40% !important;
    min-width: 50px !important;
    max-width: 200px !important;
    margin: 10% auto !important;
  }

  .favorite-options {
    gap: 12px;
  }

  .favorite-method {
    padding: 12px;
  }
}

/* 超小屏幕优化 (小于480px) */
@media (max-width: 480px) {
  .top-bar {
    padding: 8px 12px 6px 12px;
  }

  .header-logo {
    height: 28px;
  }

  .fav-btn.enhanced {
    font-size: 0.9em;
    padding: 5px 8px;
  }

  .entry-btn {
    font-size: 0.8em;
    padding: 6px 10px;
  }

  .section-header h2 {
    font-size: 0.9em;
  }

  .refresh-btn {
    font-size: 0.65em;
    padding: 3px 6px;
  }

  .domain-actions {
    gap: 3px;
  }

  .access-btn,
  .report-btn {
    padding: 2px 3px;
    min-width: 20px;
    height: 20px;
    font-size: 0.8em;
  }

  .access-label {
    font-size: 0.55em;
  }

  .main-table th,
  .main-table td {
    padding: 6px 2px;
    font-size: 0.8em;
  }

  /* 超小屏幕弹窗优化 */
  .modal-content {
    width: 90% !important;
    min-width: 80px !important;
    max-width: 200px !important;
    margin: 15% auto !important;
  }

  .modal-header {
    padding: 12px 16px !important;
  }

  .modal-body {
    padding: 8px !important;
  }
}

/* 美化的tooltip样式 - 显示在鼠标下方 */
[title] {
  position: relative;
  cursor: help;
}

/* 禁用浏览器默认tooltip */
[title]:hover:not([title=""]):not([data-no-tooltip]) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

[title]:hover::before {
  content: attr(title);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2d3748, #4a5568);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85em;
  line-height: 1.4;
  white-space: pre-line;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: tooltipFadeIn 0.2s ease-out;
  min-width: 80px;
  max-width: 900px;
  text-align: left;
  backdrop-filter: blur(10px);
  margin-top: 8px;
  pointer-events: none;
}

[title]:hover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #2d3748;
  z-index: 1001;
  animation: tooltipFadeIn 0.2s ease-out;
  pointer-events: none;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 排名列标识 */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.9em;
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #b45309;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #c0c0c0, #e5e7eb);
  color: #374151;
  box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #d97706);
  color: #fff;
  box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.rank-badge.rank-other {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

/* 自定义tooltip样式 - 专门用于异常反馈按钮 */
.custom-tooltip {
  position: relative;
}

.custom-tooltip:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.8em;
  line-height: 1.4;
  white-space: pre-line;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
  z-index: 1100;
  animation: customTooltipFadeIn 0.3s ease-out;
  min-width: 100px;
  max-width: 600px;
  text-align: left;
  backdrop-filter: blur(10px);
  margin-top: 8px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-tooltip:hover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #dc2626;
  z-index: 1101;
  animation: customTooltipFadeIn 0.3s ease-out;
  pointer-events: none;
}

@keyframes customTooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 禁用特定元素的默认title tooltip */
[data-no-tooltip] {
  position: relative;
}

[data-no-tooltip]:hover::before,
[data-no-tooltip]:hover::after {
  display: none !important;
}

/* Toast动画样式 */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100%);
  }
}