/* 全球顶级域名研究 · 全站共享设计系统
   字体资源相对本文件解析，任意层级目录引用同一份即可。 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/noto-sans-sc-subset.woff2') format('woff2');
}
:root {
  --paper: #F8FAFC;
  --paper-2: #EEF3F9;
  --card: #FFFFFF;
  --ink: #0B1B2B;
  --ink-2: #33475F;
  --muted: #64748B;
  --line: #E5ECF4;
  --line-2: #CFDBE8;
  --blue: #1A73E8;
  --cyan: #0EA5E9;
  --teal: #14B8A6;
  --violet: #7C3AED;
  --coral: #E5484D;
  --slate: #94A3B8;
  --accent: var(--blue);
  --accent-2: var(--cyan);
}
::selection {
  background: rgba(26, 115, 232, 0.16);
}
body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Microsoft YaHei UI', 'Source Han Sans SC', 'Noto Sans CJK SC', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #EEF3F9 0%, #FFFFFF 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 0.9375rem;
}
a { color: inherit; }

/* ---------- 版心与顶部留白 ---------- */
.page-shell {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1280px) {
  .page-shell { width: 96%; }
}
.page-top { padding-top: 6rem; }
@media (max-width: 767px) {
  .page-top { padding-top: 5.5rem; }
}

/* ---------- 导航 ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(229, 236, 244, 0.7);
  box-shadow: 0 2px 8px rgba(11, 27, 43, 0.06);
}
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand svg {
  width: 22px;
  height: 22px;
  margin-right: 0.6rem;
  color: var(--accent);
  flex: none;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0 0.45rem;
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--ink-2);
  transition: color 0.18s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active {
  color: var(--ink);
  font-weight: 600;
}
.nav-toggle {
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.nav-toggle:hover {
  background: var(--paper-2);
  border-color: var(--line-2);
}
.mobile-menu {
  background: #FFFFFF;
  border-top: 1px solid var(--line);
}
.mobile-link {
  padding: 0.8rem 0.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.mobile-link:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.mobile-link.is-active {
  color: var(--accent);
  font-weight: 600;
  background: var(--paper-2);
}

/* ---------- 卡片与容器 ---------- */
.data-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(11, 27, 43, 0.04);
}
.data-card:hover {
  box-shadow: 0 4px 16px rgba(11, 27, 43, 0.08);
  transform: translateY(-1px);
}
.card-plain {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 1rem;
}
.section-text {
  color: var(--ink-2);
  line-height: 1.8;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.page-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ---------- 标签 / 徽标 ---------- */
.tld-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--paper-2);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.375rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}
.tld-switch {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.tld-switch a.is-cur {
  background: var(--accent);
  color: #FFFFFF;
}
.type-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  background: var(--paper-2);
  color: var(--ink-2);
}
.type-tag.newG { background: #EFF6FF; color: var(--blue); }
.type-tag.ccTLD { background: #ECFDF5; color: #059669; }
.type-tag.gTLD { background: #F3E8FF; color: var(--violet); }
.type-tag.idn { background: #FFF1F2; color: var(--coral); }

/* ---------- 统计卡 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  padding: 1.25rem;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- 搜索与筛选 ---------- */
.search-box {
  position: relative;
  margin-bottom: 1.5rem;
}
.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}
.search-box input::placeholder { color: var(--slate); }
.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: var(--slate);
}
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.btn-primary:hover { filter: brightness(0.92); }
.text-link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.text-link:hover {
  color: var(--ink);
  border-color: var(--accent);
}
.filter-tab {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-tab:hover {
  background: var(--paper-2);
  border-color: var(--line-2);
}
.filter-tab.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.btn-ghost {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-ghost:hover {
  background: var(--paper-2);
  border-color: var(--line-2);
  color: var(--ink);
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}
.field-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.page-size {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.page-size select {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
}

/* ---------- 表格 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.data-table th {
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.875rem;
  vertical-align: middle;
  overflow-wrap: break-word;
}
.data-table tbody tr { transition: background 0.15s ease; }
.data-table tbody tr:hover { background: var(--paper); }
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.page-btn {
  padding: 0.4375rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 2.125rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.page-btn:hover:not(:disabled) {
  background: var(--paper-2);
  border-color: var(--accent);
  color: var(--accent);
}
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-btn.nav { min-width: auto; padding: 0.4375rem 0.875rem; }
.page-gap {
  padding: 0 0.25rem;
  color: var(--slate);
  font-size: 0.8125rem;
  user-select: none;
}
.page-info {
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ---------- 空状态 / 来源说明 ---------- */
.no-data {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.no-data svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  opacity: 0.4;
}
.source-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
}
.source-note a { color: var(--accent); text-decoration: none; }
.source-note a:hover { text-decoration: underline; }

/* ---------- 百科面包屑 ---------- */
.wiki-crumb {
  max-width: 56rem;
  margin: 0 auto 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.art-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.art-crumb a { color: var(--muted); text-decoration: none; }
.art-crumb a:hover { color: var(--accent); }
.art-crumb .sep { color: var(--line-2); }
.art-crumb .cur { color: var(--ink-2); }
@media (min-width: 640px) {
  .wiki-crumb { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ---------- 正文排版（资讯 / 百科文章） ---------- */
.article-body {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.9;
}
.article-body h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent);
}
.article-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1rem 1.25rem;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.375rem; }
.article-body a { color: var(--accent); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}
.article-body th {
  background: var(--paper-2);
  text-align: left;
  padding: 0.625rem 0.75rem;
  font-weight: 600;
  color: var(--ink);
}
.article-body td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  background: var(--paper-2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.article-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ---------- 资讯 / 百科文章页框架 ---------- */
.article-head { border-top: 3px solid var(--accent); }
.article-head h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0.75rem 0;
}
.article-meta-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.article-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: #EFF6FF;
  color: var(--blue);
}
.article-date {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.article-lead { color: var(--ink-2); font-size: 1rem; line-height: 1.8; }

/* 提示框：更正说明、政策依据 */
.note-box {
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  padding: 0.875rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--ink-2);
}
.note-box.risk { border-left-color: var(--coral); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.fact-row:last-child { border-bottom: 0; }
.fact-row span:first-child { color: var(--muted); }
.fact-row span:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 时间轴：政策节点、流程阶段 */
.timeline { position: relative; }
.timeline-item { position: relative; padding-left: 2.25rem; }
.timeline-item:not(:last-child) { padding-bottom: 1.5rem; }
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0.6875rem;
  top: 1.75rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--line);
}
.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.125rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 9999px;
  background: #DBEAFE;
  color: var(--blue);
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.timeline-head h3 { font-size: 1rem; font-weight: 600; color: var(--ink); }
.timeline-when {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.timeline-item p { margin-top: 0.25rem; color: var(--muted); font-size: 0.875rem; line-height: 1.8; }

/* ---------- 列表卡片（工具 / 资讯 / 百科） ---------- */
.item-card {
  display: block;
  height: 100%;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.item-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(11, 27, 43, 0.08);
  transform: translateY(-2px);
}
.item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.875rem;
  border-radius: 8px;
  background: #DBEAFE;
  color: var(--blue);
}
.item-icon svg { width: 1.375rem; height: 1.375rem; }
.item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.375rem;
}
.item-desc {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.footer-text {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--muted);
}
.footer-link {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.18s ease;
}
.footer-link:hover { color: var(--accent); }
.footer-social a {
  color: #8FA1B5;
  transition: color 0.18s ease;
}
.footer-social a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: #8494A8;
}

@media (max-width: 767px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .stat-card { padding: 0.75rem 0.625rem; }
  .stat-label { font-size: 0.6875rem; margin-bottom: 0.25rem; }
  .stat-value { font-size: 1.125rem; }
  .filter-tab { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
  .data-table th, .data-table td { padding: 0.625rem 0.5rem; }
  .pagination { gap: 0.25rem; }
  .page-btn { padding: 0.375rem 0.5rem; min-width: 1.875rem; }
  .page-btn.nav { padding: 0.375rem 0.625rem; }
  .page-title { font-size: 1.25rem; }
  .table-toolbar { font-size: 0.75rem; }
}
