/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fafafa;
  color: #171717;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  flex: 1;
}

.friend-links{
    margin-bottom:10px;
    font-size: 14px;
}

.friend-links a{
    color:#666;
    text-decoration:none;
    margin: 0 6px;
}

/* 导航栏样式 */
.main-nav {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 102, 255, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  height: 60px;
  margin-bottom: 2rem;
  z-index: 999;
}

/* 导航栏内容容器 */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo 样式 */
.logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  letter-spacing: -0.025em;
  background: linear-gradient(90deg, #000 0%, #0066FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-align: left;
}

.admin-link {
  color: #666666;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 10px;
}

.admin-link:hover {
  background: rgba(0, 0, 0, 0.03);
  color: #0066FF;
}

/* 搜索框区域 */
.search-form {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 102, 255, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* 搜索表单布局 */
.search-form form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

/* 搜索输入框 */
.search-input {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 102, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 1.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  height: 60px;
  line-height: 1;
}

/* 搜索框占位符文字样式 */
.search-input::placeholder {
  font-weight: 600;
  color: #666666;
  font-size: 1.8rem;
}

.search-input:focus {
  outline: none;
  border-color: #0066FF;
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
}

/* 搜索按钮 */
.search-button {
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 2rem;
  height: 60px;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-button:hover {
  background: #171717;
  transform: translateY(-1px);
}

/* 搜索提示文字 */
.search-tip {
  color: #666666;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  font-weight: 500;
}


/* 标签页容器 */
.tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 2.5rem auto 1.5rem;
  background: #f1f5f9;
  padding: 0.5rem;
  border-radius: 8px;
  width: fit-content;
  border: none;
}

/* 单个标签样式 */
.tab {
  color: #666666;
  padding: 0.5rem 2rem;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0;
  position: relative;
  white-space: nowrap;
}

/* 激活状态 */
.tab.active {
  color: #000000;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 移除之前的下划线 */
.tab.active::after {
  display: none;
}

/* 悬停状态 */
.tab:hover:not(.active) {
  color: #000000;
  background: rgba(255, 255, 255, 0.5);
}



/* 表格基础样式 */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 102, 255, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* 表头样式 */
th {
  background: #fafafa;
  color: #666666;
  font-weight: 500;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 102, 255, 0.08);
  border-top: none;
  border-right: none;
  height: 54px;
  vertical-align: middle;
}

th:last-child {
  border-right: 1px solid rgba(0, 102, 255, 0.08);
}

/* 单元格样式 */
td {
  padding: 1rem 1.5rem;
  color: #1e293b;
  font-size: 1rem;
  text-align: center;
  border: 1px solid rgba(0, 102, 255, 0.08);
  border-right: none;
  border-top: none;
  height: 54px;
  vertical-align: middle;
}

td:last-child {
  border-right: 1px solid rgba(0, 102, 255, 0.08);
}

/* 第一行表头的上边框 */
thead tr:first-child th {
  border-top: 1px solid rgba(0, 102, 255, 0.08);
}

/* 高亮列样式 */
th.highlight-column,
td.price-cell.highlight {
  background: rgba(0, 102, 255, 0.04);
}

td.price-cell.highlight {
  color: #0066FF;
  font-weight: 600;
}

th.highlight-column {
  color: #666666;
}

/* 添加表格内容的左右内边距 */
thead tr:first-child th:first-child,
tbody tr td:first-child {
  padding-left: 2rem;
}

thead tr:first-child th:last-child,
tbody tr td:last-child {
  padding-right: 2rem;
}

/* 价格单元格样式 */
.price-cell {
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
  font-weight: 500;
}



/* 网站链接样式 */
.website-link {
  color: #fff;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #000000;
  font-weight: 500;
  display: inline-block;
}

.website-link:hover {
  background: #171717;
  transform: translateY(-1px);
}

/* 热门域名后缀 */
.popular-tlds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.tld-link {
  color: #171717;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
  transition: all 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tld-link:hover {
  border-color: #0066FF;
  color: #0066FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

/* 无结果提示 */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: #666666;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
}





/* 域名后缀样式 */
.domain-suffix {
  display: inline-block;
  background: rgba(239, 68, 68, 0.04);  /* 浅红色背景 */
  padding: 0.125rem 0.375rem;           /* 添加内边距 */
  border-radius: 4px;                   /* 小圆角 */
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;  /* 等宽字体 */
  font-weight: 500;                     /* 稍微加粗 */
  color: #ef4444;                       /* 红色文字 */
  margin-right: 0.25rem;                /* 与后面文字的间距 */
}



/* 式 */
h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-align: left;
  width: 100%;
  max-width: none;
}


/* 主页特定样式 */
.home-container {
  width: 40%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: 40px;
}

/* 主标题样式 */
.home-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

/* 副标题/说明文字样式 */
.home-subtitle h2{
  font-size: 1.125rem;
  color: #666666;
  margin-bottom: 2rem;
  font-weight: normal;
}

/* 搜索框区域调整 */
.home-container .search-form {
  margin-bottom: 2rem;
}

/* 热门搜索区域 */
.hot-search {
  margin-top: 3rem;
}



.hot-search-title h2 {
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 1rem;
  font-weight: 500;
}

.hot-search-items {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.hot-search-link {
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #ffffff;
  text-decoration: none;
  color: #1e293b;
  font-size: 0.875rem;
  border: 1px solid rgba(0, 102, 255, 0.08);
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hot-search-link:hover {
  border-color: #0066FF;
  color: #0066FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}



/* 语言切换器样式 */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-switcher .lang-link {
    color: #666;
    text-decoration: none;
    padding: 5px 8px;
    font-size: 14px;
    transition: color 0.2s;
}

.language-switcher .lang-link:hover {
    color: #333;
}

.language-switcher .lang-link.active {
    color: #1a73e8;
    font-weight: 500;
}

.language-switcher .divider {
    color: #ddd;
    margin: 0 2px;
}



/* 语言切换下拉菜单样式 */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-button {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #666;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.language-button:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.12);
}

.language-button .arrow {
    font-size: 10px;
    transition: transform 0.2s;
    opacity: 0.5;
}

.language-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    min-width: 140px;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 4px;
}

.language-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

.language-dropdown:hover .language-menu {
    display: block;
    margin-top: 8px;
}

.language-dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* 语言选项样式 */
.lang-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.lang-option:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: #333;
}

.lang-option.active {
    background-color: rgba(0, 102, 255, 0.04);
    color: #0066FF;
}

.check-mark {
    margin-left: 8px;
    color: #0066FF;
    font-size: 12px;
}



/* TLD 基础信息区块样式 */
.tld-info-section {
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.tld-info-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.info-block {
    margin-bottom: 1.5rem;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666666;
    margin-bottom: 0.75rem;
}

.info-content {
    background: rgba(0, 102, 255, 0.04);
    padding: 1rem;
    border-radius: 8px;
    font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    color: #1e293b;
}

.nameservers-list {
    display: flex;
    gap: 2rem;
}

.nameservers-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nameserver-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nameserver-item .host {
    font-weight: 500;
    color: #0066FF;
}

.nameserver-item .ips {
    color: #666666;
    font-size: 0.813rem;
    word-break: break-all;
}



/* WHOIS 服务器复制按钮样式 */
.whois-server {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.server-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-btn {
    background: #f5f7fa;
    border: 1px solid #e5e7eb;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #666666;
    transition: all 0.2s ease;
    font-size: 0.813rem;
    line-height: 1.5;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e1;
    color: #0066FF;
}

.copy-btn.success {
    background: #dcfce7;
    border-color: #86efac;
    color: #059669;
}



/* FAQ 区块样式 */
.faq-section {
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.faq-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 102, 255, 0.08);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.faq-item:hover {
    background: #f1f5f9;
}

.faq-question {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.faq-answer {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.75;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0, 102, 255, 0.08);
}

/* FAQ 答案中的关键信息高亮 - 只加粗不改色 */
.faq-answer .highlight {
    font-weight: 600;
    display: inline;
}

/* FAQ 答案中的注册商链接样式 - 保持蓝色 */
.faq-answer .registrar-link {
    color: #0066FF;
    text-decoration: none;
    font-weight: 500;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    background: rgba(0, 102, 255, 0.04);
    transition: all 0.2s ease;
}

.faq-answer .registrar-link:hover {
    background: rgba(0, 102, 255, 0.08);
    text-decoration: underline;
}

/* 价格高亮 - 只加粗不改色 */
.faq-answer .price {
    font-weight: 600;
    font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
}

/* FAQ 高亮文本样式 */
.highlight-text {
    color: #0066FF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.highlight-text:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.highlight-price {
    color: #0066FF;
    font-weight: 500;
}

/* 确保链接在深色背景下也清可见 */
.faq-answer .highlight-text {
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    background: rgba(0, 102, 255, 0.04);
}

.faq-answer .highlight-text:hover {
    background: rgba(0, 102, 255, 0.08);
}



/* FAQ 答中键信息高亮 */
.faq-answer .highlight {
    font-weight: 600;
    display: inline;
}

/* FAQ 答案中的注册商链接样式 */
.faq-answer .registrar-link {
    color: #0066FF;
    text-decoration: none;
    font-weight: 500;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    background: rgba(0, 102, 255, 0.04);
    transition: all 0.2s ease;
}

.faq-answer .registrar-link:hover {
    background: rgba(0, 102, 255, 0.08);
    text-decoration: underline;
}

/* 价格高亮 */
.faq-answer .price {
    font-weight: 600;
    font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
}


/* 随机域名展示区块 */
.random-tlds-section {
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.random-tlds-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 102, 255, 0.08);
}




/* 页脚样式 */
.footer {
  padding: 2rem 0;
  text-align: center;
  color: #666666;
  font-size: 0.875rem;
  background: none;
  border: none;
}

.footer-container {
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}

/* 页面整体布局 */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主内容区域 */
.container {
    flex: 1 0 auto; /* 不允许内容区域压缩 */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Footer 样式 */
.footer {
    flex-shrink: 0; /* 防止 footer 被压缩 */
    padding: 2rem 0;
    text-align: center;
    color: #666666;
    font-size: 0.875rem;
    margin-top: auto; /* 确保 footer 推到底部 */
}

@media (max-width: 1680px) {
.home-container{
  width:50%;
} 
} 

@media (max-width: 1380px) {
.home-container{
  width:60%;
} 
} 

@media (max-width: 1080px) {
.home-container{
  width:80%;
} 
} 


@media (max-width: 768px) {
  /* 容器相关 */
  .container {
      padding: 1.5rem 1rem;
  }
  
  .home-container {
      width:90%;
      justify-content: flex-start;
      margin-top: 0;
      padding-top: 2rem;
  }

  .hot-search-items {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

  /* 搜索相关 */
  .search-form {
      padding: 1.25rem;
      border-radius: 8px;
      margin-bottom: 1.5rem;
  }
  
  .search-form form {
      gap: 0.5rem;
  }
  
  .search-input {
      padding: 0.75rem 1rem;
      font-size: 1.4rem;
      height: 52px;
  }
  
  .search-input::placeholder {
      font-size: 1.4rem;
  }
  
  .search-button {
      padding: 0 1.5rem;
      height: 52px;
      font-size: 1rem;
  }

  /* 表格相关 */
  table {
      padding: 1.25rem;
      border-radius: 8px;
  }
  
  th {
      padding: 1.125rem 0.5rem;
      font-size: 0.75rem;
      letter-spacing: 0;
      font-weight: 600;
  }
  
  td {
      padding: 1.125rem 0.5rem;
      font-size: 0.75rem;
      line-height: 1.4;
  }
  
  .price-cell {
      font-size: 0.75rem;
      line-height: 1.4;
  }

  /* 其他UI元素 */
  .tabs {
      margin: 2rem 0 1rem;
      overflow-x: auto;
      white-space: nowrap;
  }
  
  .tab {
      padding: 0.5rem 1.5rem;
      min-width: 100px;
  }
  
  .domain-suffix {
      padding: 0.125rem 0.25rem;
      font-size: 0.75rem;
  }

  /* FAQ相关 */
  .faq-section {
      padding: 1.5rem;
      border-radius: 8px;
  }
  
  .faq-section h2 {
      font-size: 1.125rem;
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
  }
  
  .faq-item {
      padding: 1.25rem;
  }
  
  .faq-question {
      font-size: 1rem;
      margin-bottom: 0.75rem;
  }
  
  .faq-answer {
      font-size: 0.938rem;
      line-height: 1.6;
      padding-top: 0.75rem;
  }

  /* 页脚相关 */
  .footer {
      padding: 1.5rem 0;
      margin-top: 80px;
  }

  /* 表格容器样式 */
  table {
      padding: 0;
      background: none;
      border: none;
      box-shadow: none;
  }

  /* 隐藏表头 */
  thead {
      display: none;
  }

  /* 将行变成卡片式布局 */
  tr {
      display: block;
      background: #fff;
      padding: 1.25rem;
      margin-bottom: 1rem;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      border: 1px solid rgba(0, 102, 255, 0.08);
  }

  thead tr:first-child th:first-child, tbody tr td:first-child {
      padding:0.875rem 0.375rem;
  }

  thead tr:first-child th:last-child, tbody tr td:last-child
  {
    padding: 0.875rem 0.375rem;
  }

  /* 调整单元格布 */
  td {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem 0;
      border: none;
      text-align: left;
      height: auto;
      background: none;
      font-size: 0.875rem;
      color: #666666;
  }

  /* 添加标签文字 */
  td::before {
      content: attr(data-label);
      font-weight: normal;
      color: #666666;
      text-align: left;
      padding-right: 1rem;
      font-size: 0.875rem;
  }

  /* 价格单元格样式调整 */
  td.price-cell {
      font-size: 0.875rem;
  }

  /* 网站链接按钮容器样式调整 */
  td:last-child {
      padding-top:10px;
      border:none;
  }

  /* 网站链接按钮样式调整 */
  td .website-link {
      margin-left: auto;
      padding: 0.5rem 1.25rem;
      font-size: 0.875rem;
  }

  /* 价格高样式 */
  td.price-cell.highlight {
      color: #0066FF;
      font-weight: 500;
  }

  /* 标签页容器适配 */
  .tabs {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding: 0.5rem;
      margin: 1rem -1rem;
      width: calc(100% + 2rem);
      justify-content: center;
      background: none;
  }
  

  /* 标签按钮样式调整 */
  .tab {
      flex: 0 0 auto;
      padding: 0.5rem 1rem;
      min-width: auto;
      white-space: nowrap;
      background: #f1f5f9;
  }

  .tab.active {
      background: #0066FF;
      color: #fff;
  }

  /* 移动端隐藏完整文案,显示简短文案 */
  .tab {
      font-size: 0.875rem;
  }
  
  .tab span {
      display: none;  /* 隐藏完整文案 */
  }
  
  .tab::before {
      content: attr(data-short);  /* 显示简短文案 */
  }

  /* 域名服务器列表移动端样式 */
  .nameservers-list {
      display: block;  /* 改为块级显示 */
      gap: 0;
  }
  
  .nameservers-column {
      width: 100%;
      margin-bottom: 0.75rem;
  }
  
  .nameservers-column:last-child {
      margin-bottom: 0;
  }
  
  .nameserver-item {
      padding: 0.75rem 0;
  }
  
  .nameserver-item:last-child {
      border-bottom: none;
      padding-bottom: 0;
  }
  
  .nameserver-item:first-child {
      padding-top: 0;
  }
  
  .nameserver-item .host {
      font-size: 0.875rem;
  }
  
  .nameserver-item .ips {
      font-size: 0.813rem;
  }

  .tld-list {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.tld-group {
    padding: 1rem;
}

.group-letter {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
}

    /* 全部后缀页面的移动端适配 */
    .tld-groups {
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .tld-group {
        padding: 1rem;
        border-radius: 8px;
    }

    .group-letter {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .tld-list {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.75rem;
    }

    .tld-item {
        font-size: 0.875rem;
    }

    .domain-suffix {
        padding: 0.25rem 0.5rem;
        font-size: 0.813rem;
    }
}

@media (max-width: 500px) {
  th, td {
      padding: 0.875rem 0.375rem;
  }
  
  .home-container {
      padding-top: 1.5rem;
      width:100%;
  }
  
  .hot-search-items {
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
  }
  
  .website-link {
      padding: 0.375rem 0.75rem;
  }

  /* 全部后缀页面的小屏幕适配 */
  .tld-list {
      grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
      gap: 0.5rem;
  }

  .tld-group {
      padding: 0.875rem;
  }
} 

/* TLD 分组列表样式 */
.tld-groups {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.tld-group {
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.group-letter {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tld-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.tld-item {
    text-decoration: none;
    transition: transform 0.2s ease;
}

.tld-item:hover {
    transform: translateY(-2px);
}

/* 查看全部后缀链接样式 */
.view-all-tlds {
    margin-top: 2.5rem;
    text-align: center;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    color: #666666;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.view-all-link:hover {
    color: #0066FF;
    border-color: #0066FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .view-all-tlds {
        margin-top: 1.25rem;
    }
    
    .view-all-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.813rem;
    }
}

/* 全部后缀页面的域名后缀样式 */
.tld-item {
    color: #555;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: block;
    padding: 0.625rem 1.25rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.tld-item:hover {
    border-color: #0066FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.tld-item .domain-suffix {
    display: inline-block;
    background: none;
    padding: 0;
    border-radius: 0;
    font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .tld-item {
        padding: 0.5rem 1rem;
    }
}

/* 注册商单元格样式 */
.registrar-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    border-bottom: 1px dashed rgba(102, 102, 102, 0.4);
    transition: all 0.2s ease;
}

.registrar-favicon {
    flex-shrink: 0;
    object-fit: contain;
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.registrar-name {
    flex: none;
    color: #666666;
    text-decoration: none;
    padding-bottom: 1px;
}

.registrar-name:hover {
    color: #0066FF;
    border-bottom-color: #0066FF;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .registrar-cell {
        justify-content: flex-end;
        margin-left: auto;
    }
}

/* 分页组件样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 8px;
    color: #666666;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.page-link:hover {
    color: #0066FF;
    border-color: #0066FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.page-link.active {
    background: #0066FF;
    color: #ffffff;
    border-color: #0066FF;
}

.page-link.prev,
.page-link.next {
    padding: 0 1rem;
}

.page-ellipsis {
    color: #666666;
    padding: 0 0.5rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .pagination {
        gap: 0.375rem;
        margin: 1.5rem 0;
    }

    .page-link {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0 0.5rem;
        font-size: 0.813rem;
    }

    .page-link.prev,
    .page-link.next {
        padding: 0 0.75rem;
    }
}

/* 注册商页面的域名后缀链接样式 */
.registrar-tld-link {
    display: inline-block;
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed rgba(102, 102, 102, 0.4);
    transition: all 0.2s ease;
    padding-bottom: 1px;
    cursor: pointer;
}

.registrar-tld-link:hover {
    color: #0066FF;
    border-bottom-color: #0066FF;
}

/* 注册商页面标题样式 */
.registrar-page h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 3rem auto 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.registrar-page .top-registrar-name {
    color: inherit;
    text-decoration: none;
    cursor: default;
}

/* 隐藏注册商页面的搜索框 */
.registrar-page .search-form {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 注册商分组列表样式 */
.registrar-groups {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.registrar-group {
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.registrar-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.registrar-list .registrar-item {
    text-decoration: none;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.registrar-list .registrar-item:hover {
    border-color: #0066FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.registrar-list.registrar-favicon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    object-fit: contain;
}

.registrar-list .registrar-name {
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 500;
    flex: 1;
    text-align: left;
    padding: 0;
    margin: 0;
    border: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .registrar-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.5rem;
    }
    
    .registrar-group {
        padding: 0.875rem;
    }
    
    .registrar-list .registrar-item {
        padding: 0.75rem;
    }
}

/* 查看全部链接容器样式 */
.view-all-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 调整移动端样式 */
@media (max-width: 768px) {
    .view-all-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}

/* 导航链接样式 */
.nav-link {
    color: #666666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 10px;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #0066FF;
}


/* 导航右侧布局 */
.nav-container {
    position: relative;  /* 添加相对定位 */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0rem;
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    align-items: center;
}

/* 导航菜单样式改进 */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    margin-left: 1rem;
    height: 40px;
    width: 40px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
}

/* 汉堡菜单图标样式 */
.nav-toggle .menu-icon,
.nav-toggle .close-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

/* 使用伪元素创建汉堡菜单的三条线 */
.nav-toggle .menu-icon::before,
.nav-toggle .menu-icon::after,
.nav-toggle .menu-icon {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #888;
    position: absolute;
    transition: all 0.3s ease;
}

.nav-toggle .menu-icon::before {
    top: -8px;
}

.nav-toggle .menu-icon::after {
    bottom: -8px;
}

/* 关闭图标动画 */
.nav-toggle.active .menu-icon {
    background: transparent;
}

.nav-toggle.active .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .menu-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* 移动端菜单样式改进 */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 1;
    }

    .nav-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        padding: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link, 
    .admin-link {
        display: block;
        padding: 12px 16px;
        margin: 4px 0;
        border-radius: 8px;
        transition: all 0.2s ease;
        border: none;
    }

    .nav-link:hover, 
    .admin-link:hover {
        background: rgba(0, 102, 255, 0.04);
        color: #0066FF;
    }

    /* 确保语言切换器样式 */
    .language-dropdown {
        display: flex;
        order: 0;
        margin-right: 8px;
    }
}