/* ========== 移动端优化增强版 - 深色科技感 ========== */

/* 全局重置与基础 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, #0a1628 0%, #0d1f3c 50%, #0a1628 100%);
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

/* ========== 顶栏 ========== */
.top-bar {
  background: linear-gradient(135deg, #0d1f3c 0%, #1a365d 100%);
  border: none;
  border-bottom: 1px solid rgba(66, 153, 225, 0.2);
  padding: 16px 20px;
  margin: 0;
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.header-logo {
  height: 44px;
  width: 44px;
  border-radius: 12px;
  filter: drop-shadow(0 4px 12px rgba(66, 153, 225, 0.5));
}

.header-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-title {
  font-size: 1.4em;
  font-weight: 700;
  background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.header-subtitle {
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(72, 187, 120, 0.15);
  border: 1px solid rgba(72, 187, 120, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  color: #48bb78;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #48bb78;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.header-time {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9em;
  color: #e2e8f0;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  letter-spacing: 2px;
}

/* ========== 温馨提示栏 ========== */
.notice-bar {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.25);
  margin: 12px 16px;
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.notice-icon {
  color: #ffc107;
  font-size: 1.2em;
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
  font-weight: 900;
}

.notice-text {
  color: #ffc107;
  font-size: 0.9em;
  line-height: 1.5;
}

.notice-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 1.2em;
  padding: 4px;
  transition: color 0.3s;
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
  font-weight: 900;
}

.notice-close:hover {
  color: #fff;
}

/* ========== 地区信息显示 ========== */
.region-info-bar {
  text-align: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03) !important;
  margin: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.region-info-bar span {
  color: #8a9bb8 !important;
  font-size: 0.9em;
}

/* 轮播区 - 与内容区对齐 */
.banner-carousel {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.03) 100%);
  flex-shrink: 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  flex-shrink: 0;
}

.carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.carousel-slide.active {
  display: flex;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-dot.active {
  width: 20px;
  border-radius: 3px;
  background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
  border-color: rgba(66, 153, 225, 0.8);
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.4);
}

/* ========== 功能入口栏 ========== */
.entry-bar {
  background: transparent;
  border: none;
  display: flex;
  gap: 12px;
  max-width: 100%;
  margin: 0;
  padding: 16px;
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.entry-bar::-webkit-scrollbar {
  display: none;
}

.entry-btn {
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 12px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.entry-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.entry-btn:active {
  transform: translateY(-2px);
}

/* 一键登录 - 蓝色 */
.entry-btn.quick-login-highlight {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #e2e8f0;
}

.entry-btn.quick-login-highlight i {
  background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(49, 130, 206, 0.4);
}

/* 立即注册 - 绿色 */
.entry-btn.register-highlight {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #e2e8f0;
}

.entry-btn.register-highlight i {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(72, 187, 120, 0.4);
}

.entry-btn i {
  font-size: 1.8em;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 4px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
  font-weight: 900;
}

.entry-btn-label {
  font-size: 0.9em;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
}

/* APP下载 - 紫色 */
.entry-btn:nth-child(3) i {
  background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(128, 90, 213, 0.4);
}

/* 客服咨询 - 橙色 */
.entry-btn:nth-child(4) i {
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(237, 137, 54, 0.4);
}

/* 代理后台 - 粉色 */
.entry-btn:nth-child(5) i {
  background: linear-gradient(135deg, #ed64a6 0%, #d53f8c 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(237, 100, 166, 0.4);
}

/* ========== 主内容区 ========== */
.main-content {
  flex: 1;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 16px 120px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ========== 添加到桌面区块 ========== */
.add-to-home-section {
  background: linear-gradient(180deg, rgba(13, 31, 60, 0.8) 0%, rgba(10, 22, 40, 0.9) 100%);
  border: 1px solid rgba(66, 153, 225, 0.15);
  border-radius: 16px;
  padding: 32px 24px;
  margin: 0 0 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.add-to-home-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  color: #fff;
  box-shadow: 0 8px 24px rgba(66, 153, 225, 0.4);
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
  font-weight: 900;
}

.add-to-home-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #fff;
}

.add-to-home-desc {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.add-to-home-btn-inline {
  background: linear-gradient(135deg, #4299e1 0%, #38b2ac 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 14px 32px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(66, 153, 225, 0.4);
}

.add-to-home-btn-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(66, 153, 225, 0.5);
}

/* ========== 域名排名区块 ========== */
.fc-section {
  background: linear-gradient(180deg, rgba(13, 31, 60, 0.6) 0%, rgba(10, 22, 40, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header h2 {
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.refresh-btn:active {
  transform: scale(0.98);
}

.refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.refresh-btn i {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
  font-weight: 900;
}

.refresh-btn:not(:disabled):hover i {
  animation: rotate360 0.6s ease-in-out;
}

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

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

/* ========== 表格样式 ========== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}

.main-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

.main-table thead th {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85em;
  letter-spacing: 0.5px;
}

.main-table tbody td {
  padding: 16px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 0.9em;
  vertical-align: middle;
}

.main-table tbody tr {
  transition: all 0.3s ease;
}

.main-table tbody tr:hover {
  background: rgba(66, 153, 225, 0.08);
}

/* 序号样式 */
.row-number {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85em;
  font-weight: 600;
}

/* 响应时间 */
.response-time {
  color: #f6ad55;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  font-size: 1em;
}

/* 状态标签样式 */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  border: 1px solid;
}

.status-tag.status-fast {
  background: rgba(72, 187, 120, 0.15);
  border-color: rgba(72, 187, 120, 0.3);
  color: #48bb78;
}

.status-tag.status-fast::before {
  content: "🚀";
}

.status-tag.status-normal {
  background: rgba(72, 187, 120, 0.15);
  border-color: rgba(72, 187, 120, 0.3);
  color: #48bb78;
}

.status-tag.status-normal::before {
  content: "✅";
}

.status-tag.status-slow {
  background: rgba(246, 173, 85, 0.15);
  border-color: rgba(246, 173, 85, 0.3);
  color: #f6ad55;
}

.status-tag.status-slow::before {
  content: "🟡";
}

.status-tag.status-delay {
  background: rgba(245, 101, 101, 0.15);
  border-color: rgba(245, 101, 101, 0.3);
  color: #fc8181;
}

.status-tag.status-delay::before {
  content: "🔴";
}

.status-tag.status-unavailable {
  background: rgba(160, 160, 160, 0.15);
  border-color: rgba(160, 160, 160, 0.3);
  color: #a0a0a0;
}

/* 线路按钮 */
.line-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 14px;
  color: #e2e8f0;
  font-size: 0.85em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.line-btn i {
  color: #4299e1;
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
  font-weight: 900;
}

/* 旧状态类兼容 */
.status-available {
  color: #48bb78;
  font-weight: 700;
}

.status-unavailable {
  color: #fc8181;
  font-weight: 600;
}

/* 访问入口按钮 */
.visit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px;
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
}

.visit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
}

.visit-btn.app-btn {
  background: linear-gradient(135deg, #805ad5 0%, #b794f6 100%);
}

.visit-btn.app-btn:hover {
  box-shadow: 0 4px 16px rgba(128, 90, 213, 0.5);
}

.visit-btn:disabled {
  background: rgba(100, 100, 100, 0.3);
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

/* ========== 版权信息 ========== */
.copyright-section {
  text-align: center;
  padding: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8em;
  margin-top: 8px;
}

/* ========== 固定在底部的添加至主屏幕按钮 ========== */
.fixed-add-to-home {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: transparent;
  padding: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.add-to-home-btn {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #4299e1 0%, #38b2ac 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 14px 28px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(66, 153, 225, 0.5);
}

.add-to-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(66, 153, 225, 0.6);
}

.add-to-home-btn:active {
  transform: translateY(0);
}

.add-to-home-btn i {
  font-size: 1.1em;
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
  font-weight: 900;
}

/* ========== 模态框样式 ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

.modal-container {
  background: linear-gradient(180deg, #1a365d 0%, #0d1f3c 100%);
  border: 1px solid rgba(66, 153, 225, 0.2);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h2 {
  font-size: 1.3em;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1em;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.modal-content {
  padding: 20px 24px;
  color: #e2e8f0;
  line-height: 1.8;
}

/* ========== 响应式调整 ========== */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .top-bar {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .header-status {
    width: 100%;
    justify-content: center;
  }

  .entry-bar {
    padding: 12px;
    gap: 10px;
  }

  .entry-btn {
    min-width: 80px;
    padding: 16px 8px;
  }

  .entry-btn i {
    width: 44px;
    height: 44px;
    font-size: 1.5em;
  }

  .carousel-container {
    height: 120px;
  }

  .main-table {
    font-size: 0.8em;
  }

  .main-table thead th,
  .main-table tbody td {
    padding: 12px 6px;
  }

  .visit-btn {
    padding: 6px 12px;
    font-size: 0.8em;
  }

  .add-to-home-btn {
    padding: 12px 24px;
    font-size: 0.95em;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .carousel-container {
    height: 140px;
  }

  .entry-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .entry-btn {
    flex: 0 1 calc(33% - 10px);
    min-width: 100px;
  }
}

@media (min-width: 769px) {
  html {
    font-size: 16px;
  }

  .carousel-container {
    height: 180px;
  }

  .main-content {
    padding: 0 24px 120px 24px;
  }

  .entry-bar {
    justify-content: center;
  }

  .entry-btn {
    flex: 0 1 auto;
    min-width: 120px;
    max-width: 160px;
  }
}