/* ============ 精选网址导航大全 整站样式 ============ */
:root {
  --cygfw-blue: #2563eb;
  --cygfw-blue-dark: #1d4ed8;
  --cygfw-indigo: #4f46e5;
  --cygfw-sky: #0ea5e9;
  --cygfw-ink: #0f172a;
  --cygfw-gray: #64748b;
  --cygfw-line: #e2e8f0;
  --cygfw-bg: #f6f8fc;
  --cygfw-card: #ffffff;
  --cygfw-radius: 14px;
}

.cygfw-container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.cygfw-hero {
  position: relative;
  color: #fff;
  padding: 74px 0 64px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 42%, #0ea5e9 100%);
}
.cygfw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .16) 0, transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, .14) 0, transparent 26%),
    radial-gradient(circle at 70% 88%, rgba(255, 255, 255, .10) 0, transparent 30%);
}
.cygfw-hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.cygfw-hero-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 14px;
  letter-spacing: .5px;
}
.cygfw-hero-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .5px;
}
.cygfw-hero-desc {
  margin: 0 auto 22px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .92);
}
.cygfw-hero-kws {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}
.cygfw-hero-kw {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: 13px;
}
.cygfw-hero-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .22);
}
.cygfw-hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 15px;
  color: var(--cygfw-ink);
}
.cygfw-hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  background: var(--cygfw-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.cygfw-hero-search button:hover { background: var(--cygfw-blue-dark); }

/* ---------- 通用 section ---------- */
.cygfw-sec {
  padding: 52px 0;
}
.cygfw-sec:nth-child(odd) { background: var(--cygfw-bg); }
.cygfw-sec-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  color: var(--cygfw-ink);
}
.cygfw-sec-title span {
  position: relative;
  padding-bottom: 10px;
}
.cygfw-sec-title span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cygfw-blue), var(--cygfw-sky));
}
.cygfw-sec-sub {
  margin: 0 0 30px;
  text-align: center;
  color: var(--cygfw-gray);
  font-size: 15px;
}

/* ---------- 热门网站 ---------- */
.cygfw-hot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.cygfw-hot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--cygfw-card);
  border: 1px solid var(--cygfw-line);
  border-radius: var(--cygfw-radius);
  text-decoration: none;
  color: var(--cygfw-ink);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cygfw-hot-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .10);
  border-color: rgba(37, 99, 235, .45);
  text-decoration: none;
}
.cygfw-hot-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cygfw-blue), var(--cygfw-sky));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.cygfw-hot-item:nth-child(4n+2) .cygfw-hot-ico { background: linear-gradient(135deg, #db2777, #f472b6); }
.cygfw-hot-item:nth-child(4n+3) .cygfw-hot-ico { background: linear-gradient(135deg, #d97706, #fbbf24); }
.cygfw-hot-item:nth-child(4n+4) .cygfw-hot-ico { background: linear-gradient(135deg, #059669, #34d399); }
.cygfw-hot-name {
  font-weight: 700;
  font-size: 15px;
  display: block;
}
.cygfw-hot-tag {
  font-size: 12px;
  color: var(--cygfw-gray);
  display: block;
  margin-top: 2px;
}

/* ---------- 分类网址导航 ---------- */
.cygfw-nav-group {
  margin-bottom: 34px;
}
.cygfw-nav-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--cygfw-blue);
}
.cygfw-nav-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--cygfw-ink);
}
.cygfw-nav-count {
  font-size: 13px;
  color: var(--cygfw-gray);
}
.cygfw-nav-more {
  margin-left: auto;
  font-size: 13px;
  color: var(--cygfw-blue);
  text-decoration: none;
}
.cygfw-nav-more:hover { text-decoration: underline; }
.cygfw-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.cygfw-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  background: var(--cygfw-card);
  border: 1px solid var(--cygfw-line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--cygfw-ink);
  transition: border-color .18s, box-shadow .18s;
}
.cygfw-nav-item:hover {
  border-color: rgba(37, 99, 235, .5);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
  text-decoration: none;
}
.cygfw-nav-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: #eef4ff;
  color: var(--cygfw-blue);
  font-size: 15px;
  font-weight: 700;
}
.cygfw-nav-item:nth-child(5n+2) .cygfw-nav-ico { background: #fdf2f8; color: #db2777; }
.cygfw-nav-item:nth-child(5n+3) .cygfw-nav-ico { background: #fef3c7; color: #d97706; }
.cygfw-nav-item:nth-child(5n+4) .cygfw-nav-ico { background: #d1fae5; color: #059669; }
.cygfw-nav-item:nth-child(5n) .cygfw-nav-ico { background: #ede9fe; color: #6d28d9; }
.cygfw-nav-txt {
  min-width: 0;
}
.cygfw-nav-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cygfw-nav-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--cygfw-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 文章栏目卡片 ---------- */
.cygfw-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.cygfw-cat-card {
  display: block;
  padding: 22px 20px;
  background: var(--cygfw-card);
  border: 1px solid var(--cygfw-line);
  border-radius: var(--cygfw-radius);
  text-decoration: none;
  color: var(--cygfw-ink);
  transition: transform .18s, box-shadow .18s;
}
.cygfw-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
  text-decoration: none;
}
.cygfw-cat-name {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--cygfw-blue);
}
.cygfw-cat-desc {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--cygfw-gray);
  margin-bottom: 14px;
}
.cygfw-cat-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--cygfw-ink);
}

/* ---------- 最新文章 ---------- */
.cygfw-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.cygfw-post-card {
  display: block;
  background: var(--cygfw-card);
  border: 1px solid var(--cygfw-line);
  border-radius: var(--cygfw-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--cygfw-ink);
  transition: transform .18s, box-shadow .18s;
}
.cygfw-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
  text-decoration: none;
}
.cygfw-post-thumb {
  position: relative;
  display: block;
  height: 158px;
  background-size: cover;
  background-position: center;
}
.cygfw-post-thumb-empty {
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}
.cygfw-post-cat {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .92);
  color: #fff;
  font-size: 12px;
}
.cygfw-post-body {
  display: block;
  padding: 14px 16px 16px;
}
.cygfw-post-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  min-height: 45px;
}
.cygfw-post-meta {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--cygfw-gray);
}

/* ---------- 友情链接 ---------- */
.cygfw-friends .cygfw-nav-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ---------- 关于 ---------- */
.cygfw-about-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 36px;
  text-align: center;
  background: var(--cygfw-card);
  border: 1px solid var(--cygfw-line);
  border-radius: var(--cygfw-radius);
}
.cygfw-about-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
}
.cygfw-about-card p {
  margin: 0 0 14px;
  color: var(--cygfw-gray);
  line-height: 1.8;
}
.cygfw-btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--cygfw-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s;
}
.cygfw-btn:hover {
  background: var(--cygfw-blue-dark);
  text-decoration: none;
  color: #fff;
}

/* ---------- 面包屑 / 相关 / 栏目链接 ---------- */
.cygfw-breadcrumbs {
  margin-bottom: 18px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--cygfw-gray);
}
.cygfw-breadcrumbs a {
  color: var(--cygfw-blue);
  text-decoration: none;
}
.cygfw-breadcrumbs a:hover { text-decoration: underline; }
.cygfw-bc-sep {
  margin: 0 8px;
  color: #94a3b8;
}
.cygfw-bc-current { color: var(--cygfw-ink); }

.cygfw-related {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--cygfw-line);
}
.cygfw-related-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
}
.cygfw-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.cygfw-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--cygfw-card);
  border: 1px solid var(--cygfw-line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--cygfw-ink);
  transition: border-color .18s;
}
.cygfw-related-card:hover {
  border-color: rgba(37, 99, 235, .5);
  text-decoration: none;
}
.cygfw-related-thumb {
  width: 58px;
  height: 46px;
  flex: 0 0 58px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #eef4ff;
}
.cygfw-related-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cygfw-tax-links {
  margin-top: 34px;
  padding: 26px 24px;
  background: var(--cygfw-card);
  border: 1px solid var(--cygfw-line);
  border-radius: var(--cygfw-radius);
}
.cygfw-tax-links h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
}

/* ---------- 文章正文 ---------- */
.entry-content img {
  border-radius: 12px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .cygfw-hero { padding: 54px 0 46px; }
  .cygfw-hero-search { border-radius: 16px; flex-direction: column; }
  .cygfw-hero-search button { width: 100%; }
  .cygfw-nav-grid { grid-template-columns: 1fr 1fr; }
  .cygfw-nav-item { padding: 10px; }
  .cygfw-nav-desc { display: none; }
  .cygfw-hot-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .cygfw-sec { padding: 40px 0; }
}
