/**
 * 18-review-page.css —— 详情页：去掉站点截图，改为站点 logo 高清放大。
 *
 * 原因（用户决策）：目标站页面设计随时会变，我们不可能一直跟踪；
 * 缩略图对访客的参考意义也不大。展示 logo / 品牌更稳、也更快。
 *
 * 数据：761/763 个站有 128px favicon（/legacy/logos/{id}.png，共 1.6MB），
 * 2 个失败的在 logo-missing.json 里，用首字母兜底。
 *
 * 注意：这里刻意不复用 .big-thumb-holder 的类名。源站给它的
 * padding-top:100% / font-size:0 / overflow:hidden 以及按钮的绝对定位，
 * 覆盖成本远高于重写，所以用全新的 .site-hero 系列类名。
 */

/* ---------- logo 舞台 ---------- */
body.singlepage-page .big-thumb-holder-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 286px;
  background: #fbfbfd;
  border-radius: 0 0 6px 6px;
}

.site-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 26px 16px 24px;
  text-align: center;
}

.site-hero-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-hero-logo {
  width: 138px;
  height: 138px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 16px -7px rgba(0, 0, 0, 0.22);
}

/* 没有 favicon 的站：首字母方块，不用渐变 */
.site-hero-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 138px;
  border-radius: 22px;
  background: #ececf2;
  color: #8b8b97;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  user-select: none;
}

.site-hero-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1e;
}

.site-hero-domain {
  font-size: 12px;
  line-height: 1.2;
  color: #9a9aa5;
  letter-spacing: 0.01em;
}

/* 打开网站按钮 */
.site-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 22px;
  border-radius: 8px;
  background: #2eaf61;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s ease;
}

.site-hero-btn:hover {
  background: #279954;
}

.site-hero-btn .icon-site:before {
  transform: scale(1.25);
  transform-origin: center center;
}

.site-hero-btn .icon-mask {
  font-size: 15px;
  opacity: 0.85;
}

/* ---------- 详情页元信息 ---------- */
.site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #f0f0f5;
  font-size: 12.5px;
  line-height: 1.5;
  color: #8b8b97;
}

.site-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-meta-item strong {
  font-weight: 600;
  color: #55555f;
}

.site-meta a {
  color: #ff9701;
  text-decoration: none;
}

.site-meta a:hover {
  text-decoration: underline;
}

.site-meta-tag {
  display: inline-block;
  padding: 0 5px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-transform: uppercase;
}

.site-meta-tag-ai {
  color: #6b5bd6;
  background: #efecfa;
}

.site-meta-tag-zh {
  color: #1f8a4c;
  background: #e8f6ee;
}

/* ---------- 深色模式 ---------- */
.dark body.singlepage-page .big-thumb-holder-wrap,
body.singlepage-page.dark .big-thumb-holder-wrap {
  background: #1a1a20;
}

.dark .site-hero-logo {
  background: #24242c;
  box-shadow: 0 2px 16px -7px rgba(0, 0, 0, 0.7);
}

.dark .site-hero-fallback {
  background: #2b2b34;
  color: #6b6b78;
}

.dark .site-hero-name {
  color: #ececf2;
}

.dark .site-hero-domain {
  color: #7c7c88;
}

.dark .site-meta {
  border-top-color: #2b2b33;
  color: #7c7c88;
}

.dark .site-meta-item strong {
  color: #b9b9c4;
}

.dark .site-meta-tag-ai {
  color: #a99bff;
  background: #2b2545;
}

.dark .site-meta-tag-zh {
  color: #5fd08a;
  background: #1d3628;
}

/* ---------- 同分类导航（上一个 / 下一个）---------- */
.site-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3, 12px);
  margin-top: var(--sp-6, 32px);
  padding-top: var(--sp-4, 16px);
  border-top: 1px solid #f0f0f5;
}

.site-nav-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #e9e9ef;
  border-radius: 6px;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.site-nav-item:hover {
  border-color: #ff9701;
  background: #fffdf9;
}

.site-nav-next {
  text-align: right;
}

/* 首尾没有上一项/下一项时保持左右分栏对称 */
.site-nav-empty {
  border: 0;
  background: none;
  pointer-events: none;
}

.site-nav-label {
  font-size: 11px;
  line-height: 1.2;
  color: #9a9aa5;
}

.site-nav-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 相关推荐 ---------- */
.site-related {
  margin-top: var(--sp-6, 32px);
  padding-top: var(--sp-5, 24px);
  border-top: 1px solid #f0f0f5;
}

.site-related-title {
  margin: 0 0 var(--sp-3, 12px);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1e;
}

.site-related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--sp-5, 24px);
  row-gap: 0;
}

@media (max-width: 900px) {
  .site-related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-related-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px solid #f4f4f8;
  text-decoration: none;
  transition: border-color 0.14s ease;
}

.site-related-item:hover {
  border-bottom-color: #ffe0b8;
}

.site-related-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-related-item:hover .site-related-name {
  color: #ff9701;
}

.site-related-desc {
  font-size: 11px;
  line-height: 1.4;
  color: #9a9aa5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 深色模式 ---------- */
.dark .site-nav {
  border-top-color: #2b2b33;
}

.dark .site-nav-item {
  border-color: #2b2b33;
}

.dark .site-nav-item:hover {
  border-color: #ff9701;
  background: #202027;
}

.dark .site-nav-name {
  color: #ececf2;
}

.dark .site-nav-label {
  color: #7c7c88;
}

.dark .site-related {
  border-top-color: #2b2b33;
}

.dark .site-related-title {
  color: #ececf2;
}

.dark .site-related-item {
  border-bottom-color: #26262d;
}

.dark .site-related-name {
  color: #ececf2;
}

.dark .site-related-desc {
  color: #7c7c88;
}

/* 「返回分类」是次要动作，做成文字按钮而不是带下划线的链接 */
body.singlepage-page .link-actions .btn-secondary {
  padding: 0;
  border: 0;
  background: none;
  color: #8b8b97;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.14s ease;
}

body.singlepage-page .link-actions .btn-secondary:hover {
  color: #ff9701;
  text-decoration: none;
}

.dark body.singlepage-page .link-actions .btn-secondary,
body.singlepage-page.dark .link-actions .btn-secondary {
  color: #8b8b97;
}

.dark body.singlepage-page .link-actions .btn-secondary:hover,
body.singlepage-page.dark .link-actions .btn-secondary:hover {
  color: #ff9701;
}

/* ============================================================
   评分
   ============================================================ */
.site-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: var(--sp-4, 16px) 0 0;
}

.site-rating-stars {
  display: inline-flex;
  gap: 2px;
}

.site-rating-star {
  display: block;
  width: 13px;
  height: 13px;
  background: #e2e2ea;
  /* 用 clip-path 画五角星，不引图标字体 */
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2% 35%, 39% 35%
  );
}

.site-rating-star.is-on {
  background: #ff9701;
}

.site-rating-value {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: #1a1a1e;
  font-variant-numeric: tabular-nums;
}

.site-rating-max {
  font-size: 11px;
  font-weight: 600;
  color: #b0b0bc;
}

.site-rating-label {
  font-size: 11px;
  color: #a0a0ab;
}

/* ============================================================
   优缺点
   ============================================================ */
.site-procons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4, 16px);
  margin: var(--sp-4, 16px) 0 0;
}

@media (max-width: 900px) {
  .site-procons {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-procons-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-pros .site-procons-title {
  color: #1f8a4c;
}

.site-cons .site-procons-title {
  color: #c2410c;
}

.site-procons-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-procons-list li {
  position: relative;
  padding: 3px 0 3px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #55555f;
}

.site-procons-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

/* ============================================================
   评测正文
   ============================================================ */
.site-review-body {
  margin-top: var(--sp-6, 32px);
  padding-top: var(--sp-5, 24px);
  border-top: 1px solid #f0f0f5;
}

.site-review-body-title {
  margin: 0 0 var(--sp-4, 16px);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1e;
}

/* 正文排版：行宽控制在约 68 字符，长文才好读 */
.site-review-body-content {
  max-width: 68ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: #4a4a55;
}

.site-review-body-content p {
  margin: 0 0 var(--sp-3, 12px);
}

.site-review-body-content p:empty {
  margin: 0;
}

.site-review-body-content h3 {
  margin: var(--sp-5, 24px) 0 var(--sp-2, 8px);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1e;
}

.site-review-body-content h3:first-child {
  margin-top: 0;
}

.site-review-body-content strong {
  font-weight: 700;
  color: #1a1a1e;
}

.site-review-body-content a {
  color: #ff9701;
  text-decoration: none;
}

.site-review-body-content a:hover {
  text-decoration: underline;
}

.site-review-body-content ul,
.site-review-body-content ol {
  margin: 0 0 var(--sp-3, 12px);
  padding-left: 20px;
}

.site-review-body-content li {
  margin-bottom: 4px;
}

/* ---------- 深色模式 ---------- */
.dark .site-rating-star {
  background: #33333d;
}

.dark .site-rating-star.is-on {
  background: #ff9701;
}

.dark .site-rating-value {
  color: #ececf2;
}

.dark .site-procons-list li {
  color: #b0b0bc;
}

.dark .site-pros .site-procons-title {
  color: #5fd08a;
}

.dark .site-cons .site-procons-title {
  color: #f0916b;
}

.dark .site-review-body {
  border-top-color: #2b2b33;
}

.dark .site-review-body-title {
  color: #ececf2;
}

.dark .site-review-body-content {
  color: #a8a8b4;
}

.dark .site-review-body-content h3,
.dark .site-review-body-content strong {
  color: #ececf2;
}