/* go.html —— 站点富详情页（数据全部来自 data.js，无第三方接口） */
.go-main { padding: 22px 0 48px; }
.go-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: flex-start;
}
.go-side { position: sticky; top: calc(var(--header-h) + 14px); display: grid; gap: 14px; }

/* 面包屑 */
.go-crumb {
  font-size: 13px; color: var(--text-2);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.go-crumb a { color: var(--text-2); }
.go-crumb a:hover { color: var(--brand); }
.go-crumb .sep { color: var(--text-3); }
.go-crumb .cur { color: var(--text); font-weight: 600; }

/* 站点头部卡 */
.go-head-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: flex-start;
}
.go-head-main { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.go-head-logo {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff; font-size: 28px; font-weight: 700;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(30, 115, 190, .25);
}
.go-head-logo img { width: 100%; height: 100%; object-fit: cover; }
.go-head-meta { min-width: 0; flex: 1; }
.go-head-name { font-size: 19px; font-weight: 700; margin: 0; line-height: 1.3; }
.go-head-desc {
  margin: 6px 0 10px;
  font-size: 13.5px; color: var(--text-2);
  line-height: 1.65;
}
.go-head-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: flex-start;
}
.go-act-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12.5px;
  background: var(--accent); color: #fff;
  border: 0; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.go-act-btn:hover { background: #d12f3a; }
.go-act-btn.muted { background: #5a6470; }
.go-act-btn.muted:hover { background: #455160; }
.go-act-btn.soft { background: var(--brand); }
.go-act-btn.soft:hover { background: var(--brand-strong); }
.go-visit-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  background: #4cb863; color: #fff;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.go-visit-btn:hover { background: #3ea355; transform: translateY(-1px); }
.go-visit-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* 标签行 */
.go-tags-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-top: 12px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}
.go-tags-row .label {
  background: var(--accent); color: #fff;
  padding: 2px 10px; border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}
.go-tag {
  display: inline-block;
  padding: 2px 10px;
  background: #eaf7ed;
  color: #2e7d3a;
  border: 1px solid #b8e0c0;
  border-radius: 4px;
  font-size: 12.5px;
}

/* 通用区块标题 */
.go-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
  overflow: hidden;
}
.go-block-title {
  background: var(--bg-soft);
  padding: 10px 18px;
  font-weight: 700; font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.go-block-title::before {
  content: '#'; color: var(--brand); font-weight: 700;
}

/* 数据分析结果表 —— 卡片式 + 条纹底 + 分层徽章 */
.go-data-table-wrap {
  overflow-x: auto;
  /* 小屏允许横向滚动避免单元格挤压 */
}
.go-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  table-layout: fixed;
}
.go-data-table td {
  padding: 11px 16px;
  color: var(--text);
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  word-break: break-word;
}
.go-data-table tr:last-child td { border-bottom: 0; }

/* 奇数行关键列浅色，偶数行整行白底（视觉层次） */
.go-data-table tbody tr:nth-child(odd) td.k { background: var(--bg-soft); }
.go-data-table tbody tr:nth-child(even) td { background: var(--surface); }
.go-data-table tbody tr:hover td { background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }

/* 关键列：标签宽度统一、左对齐、灰底 */
.go-data-table td.k {
  color: var(--text-2);
  font-weight: 500;
  font-size: 12.5px;
  width: 13%;
  min-width: 80px;
  letter-spacing: .2px;
  position: relative;
}
/* 关键列与值列之间用细竖线划分 */
.go-data-table td.k::after {
  content: '';
  position: absolute;
  right: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: color-mix(in srgb, var(--border) 60%, transparent);
}
.go-data-table td.v {
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  width: 20%;
}
.go-data-table td.v.empty { color: var(--text-3); font-weight: 400; }
.go-data-table td.v a { color: var(--brand); }
.go-data-table td.v a:hover { text-decoration: underline; }

/* 强值（分类 / 收录） */
.go-data-table td.v-strong { color: var(--brand-strong); font-weight: 700; }

/* 网站链接行：链接整行高亮、半透明边框包裹 */
.go-data-table tr.row-url td.k,
.go-data-table tr.row-url td.v { background: color-mix(in srgb, var(--brand) 5%, var(--bg-soft)); }
.go-data-table tr.row-url td.v.url-cell {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand-strong);
  word-break: break-all;
}
.go-data-table tr.row-url td.v.url-cell a { color: inherit; }

/* 网站打分：星 + 数值 */
.go-score {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px;
  color: #f5a623;
  letter-spacing: 1px;
  line-height: 1;
}
.go-score .num {
  color: var(--text-3);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0;
}
.go-score .num::before { content: '('; }
.go-score .num::after  { content: ')'; }

/* 服务器位置：带地球仪小图标 */
.go-loc::before {
  content: '📍';
  margin-right: 4px;
  font-size: 12px;
  filter: grayscale(.2);
}

/* 状态徽章（绿色 = 正常 / 红色 = 异常 / 灰色 = 未知） */
.go-status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eaf7ed;
  color: #2e7d3a;
}
.go-status-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4cb863;
  box-shadow: 0 0 0 2px rgba(76, 184, 99, .2);
}
.go-status-pill.danger { background: #fdecec; color: #c0392b; }
.go-status-pill.danger::before { background: #e74c3c; box-shadow: 0 0 0 2px rgba(231, 76, 60, .2); }
.go-status-pill.muted { background: var(--bg-soft); color: var(--text-3); }
.go-status-pill.muted::before { background: var(--text-3); box-shadow: none; }

/* 抓取友链按钮 */
.go-friend-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.go-friend-btn:hover { background: var(--brand-strong); transform: translateY(-1px); }
.go-friend-btn:active { transform: translateY(0); }
.go-friend-btn::before {
  content: '↗';
  font-size: 13px;
  font-weight: 800;
}

/* 表尾注释 */
.go-data-foot {
  padding: 11px 18px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--bg-soft);
  line-height: 1.7;
}
.go-data-foot strong { color: var(--brand-strong); }

/* 搜索引擎权重徽章 —— 分层色阶 */
.seo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--bg-soft);
  color: var(--text-2);
  letter-spacing: 0;
  transition: transform .15s var(--ease);
}
.seo-badge:hover { transform: scale(1.06); }
.seo-badge.tier-zero { background: transparent; color: var(--text-3); border: 1px dashed var(--border-strong); font-weight: 600; }
.seo-badge.tier-low  { background: #eef4f9; color: #5a6acf; }     /* 1-2 */
.seo-badge.tier-mid  { background: #fff5e6; color: #f2994a; }     /* 3-4 */
.seo-badge.tier-high { background: linear-gradient(135deg, #fff0ec 0%, #ffe3e3 100%); color: #eb5757; box-shadow: 0 1px 0 rgba(235,87,87,.1); }  /* 5+ */

[data-theme="dark"] .seo-badge.tier-low  { background: rgba(90,106,207,.15); color: #9aa6e8; }
[data-theme="dark"] .seo-badge.tier-mid  { background: rgba(242,153,74,.15); color: #f6b370; }
[data-theme="dark"] .seo-badge.tier-high { background: rgba(235,87,87,.18);  color: #ff8b8b; }
[data-theme="dark"] .seo-badge.tier-zero { background: transparent; color: var(--text-3); border-color: var(--border-strong); }
[data-theme="dark"] .go-status-pill      { background: rgba(76,184,99,.15); color: #6fcf97; }
[data-theme="dark"] .go-status-pill::before { background: #6fcf97; }
[data-theme="dark"] .go-score { color: #f5c069; }

/* 权重规则解析 */
.weight-rule-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.weight-rule-table th, .weight-rule-table td {
  padding: 8px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.weight-rule-table th {
  background: var(--bg-soft);
  font-weight: 700; color: var(--text-2);
  font-size: 12.5px;
}
.weight-rule-table tr:last-child td { border-bottom: 0; }
.weight-rule-table td .w-tag {
  display: inline-block;
  padding: 1px 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}
.weight-rule-table td .w-tag.zero {
  background: transparent; color: var(--text-3);
  border: 1px dashed var(--border-strong);
}

/* 统计 4 块 */
.go-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
}
.go-stat {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  position: relative;
  background: var(--surface);
}
.go-stat::before {
  content: '';
  position: absolute; left: 50%; top: -10px;
  width: 20px; height: 12px;
  border: 1px solid var(--brand);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  transform: translateX(-50%);
  background: var(--bg-soft);
}
.go-stat .v { font-size: 22px; font-weight: 800; color: var(--brand-strong); }
.go-stat .k {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 4px;
  background: #eaf7ed;
  color: #2e7d3a;
  font-size: 12px;
  font-weight: 700;
}

/* 侧栏位（广告位占位） */
.go-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  position: relative;
}
.go-side-card .label {
  position: absolute; top: 6px; right: 8px;
  font-size: 10px; color: var(--text-3);
  background: var(--bg-soft);
  padding: 1px 6px; border-radius: 4px;
}
.go-side-card .pic {
  display: grid; place-items: center;
  height: 280px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  background:
    radial-gradient(120% 80% at 0% 0%, #ff7e3a 0%, #ff5a3a 45%, #d6263a 100%);
  position: relative; overflow: hidden;
}
.go-side-card .pic::before {
  content: '恭';
  position: absolute;
  font-size: 60px; font-weight: 900;
  top: 14px; left: 16px;
  color: rgba(255, 255, 255, .9);
  letter-spacing: -2px;
}
.go-side-card .pic::after {
  content: '祝';
  position: absolute;
  font-size: 60px; font-weight: 900;
  top: 14px; left: 56px;
  color: rgba(255, 255, 255, .9);
  letter-spacing: -2px;
}
.go-side-card .pic-title {
  margin-top: 70px;
  font-size: 22px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}
.go-side-card .pic-sub { font-size: 14px; opacity: .92; margin-top: 4px; }
.go-side-card .pic-year {
  margin-top: 18px;
  font-size: 38px; font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.go-side-card .pic-foot { margin-top: 8px; font-size: 12px; opacity: .9; }

/* 联系信息卡 */
.go-side-contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.go-side-contact h4 {
  margin: 0 0 10px; font-size: 13px; color: var(--text-2);
  font-weight: 700;
}
.go-side-contact p {
  margin: 6px 0; font-size: 13px; color: var(--text);
}
.go-side-contact a { color: var(--brand); }
.go-side-contact a:hover { text-decoration: underline; }

/* 侧栏图片广告卡 */
.go-side-ad { padding: 12px; }
.go-side-ad a { display: block; line-height: 0; border-radius: 8px; overflow: hidden; }
.go-side-ad img {
  width: 100%; height: auto; display: block;
  border-radius: 8px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.go-side-ad a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 23, 27, .14);
}

/* 数据分析结果上方的横幅广告 */
.go-data-ad {
  display: block; line-height: 0;
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 23, 27, .06);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.go-data-ad img { width: 100%; height: 60px; display: block; object-fit: cover; }
.go-data-ad:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(20, 23, 27, .10); }

/* 安全提示（已停用：用户要求去除） */
  .go-notice { display: none; }

/* 返回导航 */
.go-back-row {
  display: flex; gap: 10px;
  margin-top: 16px;
}
.go-back-row a {
  flex: 1; text-align: center;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.go-back-row a:hover { color: var(--brand); border-color: var(--brand); }

/* 响应式 */
@media (max-width: 900px) {
  .go-layout { grid-template-columns: 1fr; }
  .go-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .go-side-card .pic { height: 180px; }
}
@media (max-width: 640px) {
  .go-head-card { grid-template-columns: 1fr; padding: 14px; }
  .go-head-actions { width: 100%; justify-content: space-between; }
  .go-visit-btn { flex: 1; justify-content: center; }
  .go-stats { grid-template-columns: repeat(2, 1fr); }
  .go-side { grid-template-columns: 1fr; }
  .go-comment-input { flex-direction: column; }
  .go-comment-actions { flex-direction: row; }
  .go-comment-actions button { flex: 1; }
  .go-data-table { min-width: 560px; font-size: 12.5px; }
  .go-data-table td { padding: 9px 12px; font-size: 12.5px; }
  .go-data-table td.k { width: 14%; min-width: 70px; }
  .go-data-foot { padding: 9px 14px; font-size: 12px; }
}
@media (max-width: 400px) {
  .go-head-logo { width: 52px; height: 52px; font-size: 22px; }
  .go-head-name { font-size: 17px; }
  .go-tags-row { padding: 10px 12px; font-size: 12.5px; }
}