body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
  color: #333;
}

header {
  background: url('1.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

header .logo h1 {
  font-size: 48px;
  margin: 0;
  font-weight: bold;
  letter-spacing: 2px;
}

header .logo p {
  font-size: 18px;
  margin-top: 10px;
  font-weight: lighter;
}

.buy-now-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background-color: #f5a623;
  color: white;
  font-size: 18px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s;
  will-change: transform;
  border-radius: 8px; /* 适当减少 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.buy-now-button:hover {
  background-color: #d6891f;
  transform: scale(1.05);
}

.domain-list {
  margin: 40px auto;
  width: 80%;
  max-width: 1200px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

/* 排序 */
th {
  background-color: #f5a623;
  color: white;
  font-size: 18px;
  position: relative;
  user-select: none;
  cursor: pointer;
}

th::after {
  content: " ⬆⬇"; 
  font-size: 14px;
  color: #ccc; 
  margin-left: 5px;
}

th.sort-asc::after {
  content: " ▲"; 
  color: #fff; 
}

th.sort-desc::after {
  content: " ▼"; 
  color: #fff; 
}

td {
  font-size: 16px;
}

td:hover {
  background-color: #f9f9f9;
  cursor: pointer;
}

td:hover, tr:hover td {
  background-color: #f0f0f0;
}

footer {
  background-color: #0e1b26;
  color: white;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  position: relative;
  margin-top: 40px;
}

/* 返回顶部按钮 */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f5a623;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 15px;
  font-size: 24px;
  cursor: pointer;
  opacity: 0; 
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  transform: scale(1);
  transition: transform 0.3s ease;
  will-change: transform; /* 提示浏览器优化缩放 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background-color: #d88b19;
  transform: scale(1.1);
}

#backToTop:focus {
  outline: none;
}


@media screen and (max-width: 768px) {
  .domain-list {
    width: 95%;
  }

  table {
    font-size: 14px;
  }

  th, td {
    padding: 10px;
  }

  th {
    font-size: 16px;
  }

  td {
    font-size: 14px;
  }
  
  th::after {
    font-size: 10px; 
    right: 3px; 
  }
  
  th.sorted-asc::after,
  th.sorted-desc::after {
    font-size: 10px; 
  }

  .buy-now-button {
    font-size: 16px;
    padding: 10px 25px;
  }
}


@media screen and (max-width: 480px) {
  header {
    padding: 40px 10px;
  }

  header .logo h1 {
    font-size: 32px;
  }

  header .logo p {
    font-size: 16px;
  }

  .domain-list {
    width: 100%;
  }

  table {
    font-size: 12px;
  }

  th, td {
    padding: 8px;
  }
  
  th::after {
    font-size: 8px; 
    right: 2px; 
  }

  th.sorted-asc::after,
  th.sorted-desc::after {
    font-size: 10px; 
  }

  .buy-now-button {
    font-size: 14px;
    padding: 8px 20px;
  }
}


