/* 默认样式（适用于 PC） */
:root {
  --theme-color: #000;
  --bg-color: #fff;
}

.container {
    width: 90%;
    margin: 0 auto;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    background-position: top left, bottom right;
    background-size: 150px 150px, 150px 150px;
}

header {
    background: var(--header-bg-image) center center / cover no-repeat;
    color: white;
    text-align: center;
    padding: 10px 0;
    height: 100px; 
    display: flex;
    justify-content: center;
    flex-wrap: wrap;  /* 让超出部分换行 */
    align-items: center;
    position: relative;
}


.no-link-color {
  color: inherit; /* 继承父元素的颜色 */
  text-decoration: none; /* 去掉下划线 */
}

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%); /* 水平居中 */
    display: flex;
    align-items: center; /* 垂直居中img */
}

.logo img {
    height: 60px; /* 设置logo的高度 */
    width: auto; /* 保持宽高比例 */
}


/* 当屏幕宽度小于 768px（手机）时 */
@media screen and (max-width: 768px) {
        .logo {
        position: relative; /* 取消 absolute 定位 */
        left: -30%;
        top: 32%;
    }
    .logo img {
        content: url('/images/789logo3.png');  /* 手机端 Logo */
        max-width: 120px;
    }
    .container {
        overflow-x: auto;
    }
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* 当屏幕宽度小于 480px（更小屏幕，如 iPhone SE） */
@media screen and (max-width: 480px) {
    .table {
        font-size: 12px;
        /* 进一步缩小字体 */
    }

    .button {
        padding: 8px 12px;
        /* 按钮缩小 */
    }
}

.social-links {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
}

.social-links a {
    margin: 0 10px;
    color: white;
    font-size: 1.5rem;
}

.social-links a:hover {
    text-decoration: none;
}

.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
/*
.intro-text {
    font-size: 0.7rem;
    color: #333;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f5fcfc;
    border-left: 5px solid #008C8C;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.intro-text h2 {
    font-size: 1.6rem;
    color: #008C8C;
    margin-bottom: 10px;
}

.intro-text p {
    line-height: 1.6;
    margin: 0;
}
*/

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #f8f8f8;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

td a {
    color: var(--theme-color);
    text-decoration: none;
}

td a:hover {
    text-decoration: underline;
}

.btn-sort {
    padding: 10px 20px;
    border: none;
    background-color: var(--bg-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
}

.btn-sort:hover {
    background-color: #45a049;
}

/* 鼠标停留时的效果 */
tr:hover {
    background-color: #e0f7fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.pagination {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.pagination button {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: var(--theme-color);
    padding: 8px 12px;
    margin: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ✅ 鼠标悬停效果 */
.pagination button:hover {
    background-color: var(--bg-color);
    color: white;
}

.pagination button.active {
    background-color: var(--bg-color);
    color: white;
    font-weight: bold;
    border-color: var(--bg-color);
}

/* ✅ 禁用状态 */
.pagination button:disabled {
    background-color: #ebebeb;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ✅ 修改分页下拉框，使其风格和筛选区一致 */
#perPage {
    padding: 6px 6px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px; /* 圆角 */
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

/* ✅ 选中状态 */
#perPage:focus {
    outline: none;
    border-color: var(--bg-color);
    box-shadow: 0 0 5px rgba(0, 140, 140, 0.5);
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--bg-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: none; /* 默认隐藏 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: var(--theme-color);
}

#filterTLD {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

#filterTLD input {
    margin-right: 5px;
}

#filterTLD input[type="checkbox"] {
    width: 16px;  /* 复选框大小 */
    height: 16px;
}

#filterTLD label {
    font-size: 1rem;  /* 让文字也变大 */
    margin-right: 15px; /* 让复选框之间的间距更大 */
}

#searchInput{
    padding: 15px;
    width: 75%;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.filter-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.filter-box label {
    font-weight: bold;
}

.filter-box input,
.filter-box select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.filter-box input[type="number"] {
    width: 80px;  /* 你可以调整为更大的值，比如 100px */
}

.filter-box button {
    padding: 16px 25px;
    background-color: var(--bg-color);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
}

.filter-box button:hover {
    background-color: var(--bg-color);
}

/* 隐藏选择框的上下箭头 */
  .no-arrow::-webkit-outer-spin-button,
  .no-arrow::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .no-arrow {
    -moz-appearance: none;
  }
  
.marquee {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  padding: 5px 0;
  border-top: 1px solid #ddd;
  z-index: 9999;
}
.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: scroll-marquee 50s linear infinite;
}

.marquee-content a {
  color: #fff;
  font-weight: bold;
  margin: 0 0.5em;
  text-decoration: none;
}

.separator {
  color: #ccc;
  margin: 0 0.5em;
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* 核心动画 - 无限无缝滚动 */
@keyframes scroll-marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.highlight {
  font-weight: bold;
  background: linear-gradient(90deg, red, orange, gold,lime, cyan, green, blue, indigo, violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: rainbow 4s linear infinite;
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}