/* ==========================================================================
 * cilizhenzhu.com「磁力珍珠」- 前台样式
 * 主题：深海墨绿 + 珍珠贝母光泽（iridescent pearl）
 * 说明：页面内容全部由 PHP 服务端直出，本文件只负责视觉，不参与内容渲染。
 * ========================================================================== */

:root {
  --ink: #0d2f38;
  --ink-soft: #3d5f68;
  --muted: #63787f;
  --faint: #93a5ab;
  --pearl: #fffdf9;
  --shell: #f7f2ea;
  --sand: #f1ece2;
  --teal: #0f6d75;
  --teal-deep: #093f48;
  --rose: #d98aa8;
  --gold: #c9a45c;
  --line: rgba(13, 47, 56, .10);
  --line-strong: rgba(13, 47, 56, .18);
  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 2px 14px rgba(13, 47, 56, .06);
  --shadow-hover: 0 14px 32px rgba(13, 47, 56, .14);
  --irid: linear-gradient(120deg, #a9e5d6 0%, #bfd3ff 45%, #f3c6da 100%);
  --deep: linear-gradient(140deg, #093f48 0%, #10636d 62%, #2b8f92 100%);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  background-color: var(--shell);
  background-image:
    url("/assets/images/bg-nacre.svg"),
    radial-gradient(900px 520px at 12% -8%, rgba(169, 229, 214, .30), transparent 65%),
    radial-gradient(760px 420px at 92% 4%, rgba(243, 198, 218, .26), transparent 62%);
  background-repeat: repeat, no-repeat, no-repeat;
  background-attachment: scroll, fixed, fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.32; }
h1, h2 { font-family: var(--serif); letter-spacing: .2px; }
.muted { color: var(--muted); font-size: 13px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--teal-deep); color: #fff;
  padding: 8px 14px; border-radius: 0 0 10px 0; z-index: 99;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------------- 顶栏 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 253, 249, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.logo-img {
  width: 38px; height: 38px; border-radius: 12px; display: block;
  box-shadow: 0 3px 10px rgba(13, 47, 56, .14);
}
.logo-text {
  font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 1.2px;
  display: flex; flex-direction: column; line-height: 1.08;
}
.logo-domain {
  font-family: var(--sans); font-size: 10.5px; font-weight: 400; letter-spacing: .6px;
  color: var(--faint); margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; flex-wrap: wrap; }
.main-nav a {
  padding: 7px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-soft);
  white-space: nowrap; transition: background .18s, color .18s;
}
.main-nav a:hover { background: rgba(15, 109, 117, .08); color: var(--teal-deep); }
.main-nav .nav-home {
  color: var(--teal-deep); font-weight: 600;
  background: rgba(15, 109, 117, .09);
}

.top-search { display: flex; align-items: center; flex: 0 0 auto; }
.top-search input {
  width: 176px; height: 38px; border: 1px solid var(--line-strong); border-right: none;
  border-radius: 999px 0 0 999px; padding: 0 15px; font-size: 13.5px; font-family: inherit;
  color: var(--ink); background: #fff; outline: none;
}
.top-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 109, 117, .10); }
.top-search button {
  height: 38px; width: 46px; border: none; border-radius: 0 999px 999px 0; cursor: pointer;
  background: var(--teal-deep); color: #fff; display: flex; align-items: center; justify-content: center;
}
.top-search button:hover { background: var(--teal); }

.domain-tip {
  background: linear-gradient(90deg, rgba(201, 164, 92, .16), rgba(217, 138, 168, .14));
  color: #7a5a1f; border-bottom: 1px solid rgba(201, 164, 92, .28);
  text-align: center; font-size: 12.5px; padding: 8px 18px; letter-spacing: .3px;
}

.page-main { padding-top: 22px; padding-bottom: 40px; }

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, .78fr);
  gap: 20px; align-items: center;
  border-radius: 28px; padding: 42px 40px;
  color: #f4fbfa;
  background-image: url("/assets/images/bg-hero.svg"), var(--deep);
  background-size: cover, cover;
  background-position: center, center;
  box-shadow: 0 22px 48px rgba(9, 63, 72, .24);
  margin-bottom: 20px;
}
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero-kicker {
  margin: 0 0 12px; font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(214, 245, 240, .78);
}
.hero-title {
  font-size: 31px; margin: 0 0 12px; font-weight: 700; letter-spacing: .6px;
  color: #ffffff;
}
.hero-sub { margin: 0 0 24px; font-size: 14px; color: rgba(226, 246, 243, .82); }

.hero-search {
  display: flex; align-items: center; max-width: 600px;
  background: rgba(255, 253, 249, .97); border-radius: 999px; padding: 6px 6px 6px 18px;
  box-shadow: 0 12px 28px rgba(4, 34, 40, .28);
}
.hs-icon { display: flex; color: var(--teal); flex: 0 0 auto; }
.hs-input {
  flex: 1 1 auto; min-width: 0; border: none; outline: none; height: 44px; padding: 0 12px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: transparent;
}
.hs-btn {
  flex: 0 0 auto; border: none; cursor: pointer; height: 44px; padding: 0 26px; border-radius: 999px;
  background: linear-gradient(135deg, #0f6d75, #093f48); color: #fff;
  font-size: 15px; font-weight: 600; font-family: inherit; letter-spacing: .5px;
}
.hs-btn:hover { filter: brightness(1.08); }
.hero-tip { margin: 16px 0 0; font-size: 12.5px; color: rgba(214, 240, 236, .72); }
.hero-tip a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

.hero-quick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hq-label { font-size: 12px; color: rgba(214, 240, 236, .7); letter-spacing: .5px; }
.chip-light {
  background: rgba(255, 255, 255, .14); color: #f2fbf9;
  border: 1px solid rgba(255, 255, 255, .26);
}
.chip-light:hover { background: rgba(255, 255, 255, .26); }

.hero-visual { position: relative; min-height: 210px; z-index: 1; }
.pearl-orb {
  position: absolute; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #ffffff 0%, #f0fbf8 38%, #dcd4f1 68%, #efc4d8 100%);
  box-shadow: 0 20px 40px rgba(4, 34, 40, .30), inset 0 -10px 24px rgba(147, 105, 140, .18);
}
.pearl-orb::after {
  content: ""; position: absolute; inset: 16%; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
}
.pearl-orb-a { width: 148px; height: 148px; right: 26px; top: -6px; }
.pearl-orb-b { width: 74px; height: 74px; right: 156px; top: 118px; opacity: .92; }

.hero-stats {
  position: absolute; left: 0; bottom: 4px; right: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.stat {
  background: rgba(255, 253, 249, .12); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px; padding: 10px 12px; text-align: center;
  backdrop-filter: blur(4px);
}
.stat strong {
  display: block; font-family: var(--serif); font-size: 21px; color: #ffffff; line-height: 1.2;
}
.stat span { font-size: 11.5px; color: rgba(219, 243, 239, .78); letter-spacing: .5px; }

/* ---------------- 最新文章条 ---------------- */
.latest-art {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--pearl); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 18px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.la-label {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: #fff; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  border-radius: 999px; padding: 3px 12px;
}
.la-title {
  flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.la-title:hover { color: var(--teal); }
.la-date { flex: 0 0 auto; font-size: 12px; color: var(--faint); }
.la-more { flex: 0 0 auto; font-size: 13px; color: var(--teal); }
.la-more:hover { text-decoration: underline; }
.la-empty { flex: 1 1 auto; font-size: 14px; color: var(--faint); }

/* ---------------- 榜单 ---------------- */
.board-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px; margin-bottom: 20px;
}
.rank-box {
  background: var(--pearl); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.rank-box::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--irid);
}
.rank-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rank-title { font-size: 16.5px; margin: 0; display: flex; align-items: center; gap: 9px; }
.pearl-dot {
  width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; display: inline-block;
  background: radial-gradient(circle at 32% 28%, #ffffff, #cfeae3 45%, #e2c3d8 100%);
  box-shadow: 0 0 0 3px rgba(15, 109, 117, .10);
}
.rank-more { font-size: 12.5px; color: var(--teal); }
.rank-tip { font-size: 12px; color: var(--faint); }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-item a {
  display: flex; align-items: center; gap: 11px; padding: 7px 8px; border-radius: 10px; font-size: 14px;
  transition: background .16s;
}
.rank-item a:hover { background: rgba(15, 109, 117, .07); }
.rank-no {
  flex: 0 0 auto; width: 21px; height: 21px; border-radius: 7px;
  background: var(--sand); color: var(--muted);
  font-size: 11.5px; display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.rank-no.top { background: var(--irid); color: #23434a; }
.rank-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { flex: 0 0 auto; font-size: 11.5px; color: var(--faint); }

/* ---------------- 内容模块 ---------------- */
.sec {
  background: var(--pearl); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 22px; margin-bottom: 20px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.sec::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--irid); opacity: .8;
}
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-title { font-size: 19px; margin: 0; display: flex; align-items: center; gap: 10px; }
.sec-tip { font-size: 12.5px; color: var(--faint); }
.sec-more { font-size: 13px; color: var(--teal); }
.sec-more:hover { text-decoration: underline; }
.sub-title {
  font-size: 13.5px; color: var(--muted); margin: 18px 0 11px; font-weight: 600;
  padding-left: 11px; border-left: 3px solid rgba(15, 109, 117, .22); letter-spacing: .4px;
}
.sub-title:first-child { margin-top: 0; }

/* 入口卡片 */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 12px; }
.site-card {
  display: flex; align-items: center; gap: 11px; min-width: 0;
  background: linear-gradient(180deg, #ffffff, #fdfaf4);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 13px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.site-card:hover {
  transform: translateY(-3px); border-color: rgba(15, 109, 117, .28);
  box-shadow: var(--shadow-hover);
}
.sc-ico {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff, #eef7f4 55%, #ecdfe9 100%);
  border: 1px solid rgba(13, 47, 56, .08);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sc-ico img { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; }
.ico-char { font-size: 17px; line-height: 1; color: var(--teal-deep); font-weight: 600; }
.sc-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sc-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-desc { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.sc-go { flex: 0 0 auto; color: rgba(15, 109, 117, .34); font-size: 19px; }

/* ---------------- 文章 ---------------- */
.art-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(286px, 1fr)); gap: 13px; }
.art-card {
  background: linear-gradient(180deg, #ffffff, #fdfaf4);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.art-card:hover {
  transform: translateY(-2px); border-color: rgba(15, 109, 117, .26);
  box-shadow: var(--shadow-hover);
}
.art-title { font-size: 15.5px; margin: 0 0 8px; }
.art-title a:hover { color: var(--teal); }
.art-summary {
  margin: 0 0 12px; font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--faint); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(15, 109, 117, .07); color: var(--teal-deep);
  border: 1px solid rgba(15, 109, 117, .10);
  border-radius: 999px; padding: 2px 12px; font-size: 12px; white-space: nowrap;
}
.chip:hover { background: rgba(15, 109, 117, .13); }
.chip-cat { background: rgba(201, 164, 92, .14); color: #7a5a1f; border-color: rgba(201, 164, 92, .24); }
.chip .cnt { color: var(--faint); font-size: 10.5px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; margin: 22px 0 4px; }
.pg-btn {
  display: inline-block; min-width: 38px; padding: 6px 13px; text-align: center; font-size: 13.5px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
}
a.pg-btn:hover { border-color: var(--teal); color: var(--teal); }
.pg-btn.current { background: var(--deep); border-color: transparent; color: #fff; }
.pg-btn.disabled { opacity: .45; }
.pg-gap { color: var(--faint); }
.pg-info { font-size: 12.5px; color: var(--faint); margin-left: 6px; }

/* ---------------- 面包屑 ---------------- */
.breadcrumb { margin-bottom: 16px; font-size: 12.5px; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 7px; color: rgba(15, 109, 117, .3); }
.breadcrumb a { color: var(--teal); }

/* ---------------- 通用区块 ---------------- */
.mod {
  background: var(--pearl); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.mod::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--irid); opacity: .7;
}
.mod-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mod-title { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 10px; }
.mod-tip { font-size: 12.5px; color: var(--faint); }
.mod-more { font-size: 13px; color: var(--teal); }
.seo-text { margin-top: 18px; }
.seo-text p { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.seo-text p:last-child { margin-bottom: 0; }

.empty { text-align: center; color: var(--faint); padding: 28px 10px; margin: 0; }

/* ---------------- 两栏 ---------------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 18px; align-items: start; }
.col-main { min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 14px; }
.side-box {
  background: var(--pearl); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; box-shadow: var(--shadow);
}
.side-title { font-size: 15px; margin: 0 0 11px; display: flex; align-items: center; gap: 8px; }
.side-title::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff, #cfeae3 50%, #e2c3d8 100%);
  box-shadow: 0 0 0 2px rgba(15, 109, 117, .10);
}
.side-cats, .side-arts { list-style: none; margin: 0; padding: 0; }
.side-cats li a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 9px; border-radius: 9px; font-size: 13.5px; color: var(--ink-soft);
}
.side-cats li a:hover { background: rgba(15, 109, 117, .07); color: var(--teal-deep); }
.side-cats li a.current { background: rgba(15, 109, 117, .11); color: var(--teal-deep); font-weight: 600; }
.side-arts li a {
  display: block; padding: 7px 9px; border-radius: 9px; font-size: 13px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-arts li a:hover { background: rgba(15, 109, 117, .07); color: var(--teal-deep); }
.side-text { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.side-btn {
  display: block; text-align: center; padding: 10px; border-radius: 999px; font-size: 13.5px;
  background: var(--deep); color: #fff;
}
.side-btn:hover { filter: brightness(1.08); }

/* ---------------- 详情页 ---------------- */
.detail {
  background: var(--pearl); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 28px; box-shadow: var(--shadow); margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.detail::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--irid);
}
.detail-title { font-size: 25px; margin: 0 0 12px; }
.detail-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--faint); margin-bottom: 16px; }
.detail-summary {
  background: linear-gradient(120deg, rgba(169, 229, 214, .18), rgba(243, 198, 218, .14));
  border-left: 3px solid var(--teal); border-radius: 0 12px 12px 0;
  padding: 12px 16px; font-size: 14px; color: var(--ink-soft); margin: 0 0 18px;
}
.detail-h2 {
  font-size: 17px; margin: 26px 0 12px; padding-bottom: 8px;
  border-bottom: 1px dashed rgba(15, 109, 117, .18);
}
.rich { font-size: 15px; line-height: 1.92; word-break: break-word; color: #22434b; }
.rich h2 { font-size: 18px; margin: 22px 0 10px; }
.rich h3 { font-size: 16px; margin: 18px 0 8px; }
.rich p { margin: 0 0 12px; }
.rich ul, .rich ol { margin: 0 0 12px; padding-left: 22px; }
.rich li { margin-bottom: 5px; }
.rich img { border-radius: 12px; }
.rich blockquote {
  margin: 0 0 12px; padding: 10px 15px; background: var(--sand);
  border-left: 3px solid rgba(15, 109, 117, .3); color: var(--muted); border-radius: 0 10px 10px 0;
}
.tip-list { margin: 0; padding-left: 20px; font-size: 14px; color: var(--muted); }
.tip-list li { margin-bottom: 7px; }

.magnet-demo {
  margin: 0 0 8px; padding: 12px 14px; overflow-x: auto;
  background: #0b2630; color: #b8f0e4; border-radius: 12px;
  font-family: Consolas, Menlo, monospace; font-size: 12.5px; line-height: 1.6;
}
.magnet-demo code { white-space: pre-wrap; word-break: break-all; }

.go-panel {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(169, 229, 214, .22), rgba(191, 211, 255, .18));
  border: 1px dashed rgba(15, 109, 117, .30); border-radius: 16px;
  padding: 16px 18px; margin: 0 0 20px;
}
.go-btn {
  display: inline-block; background: var(--deep); color: #fff;
  font-weight: 600; font-size: 15px; padding: 12px 28px; border-radius: 999px;
  box-shadow: 0 10px 22px rgba(9, 63, 72, .22);
}
.go-btn:hover { filter: brightness(1.08); }
.go-hint { font-size: 12px; color: var(--muted); }

/* 文章页引导按钮（后台可配文案，跳转 /so.php；位置在正文上方，便于第一屏看到） */
.art-so-wrap {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 0 0 22px; padding: 16px 18px;
  background: linear-gradient(120deg, rgba(191, 211, 255, .20), rgba(243, 198, 218, .22));
  border: 1px solid rgba(15, 109, 117, .14); border-radius: 16px;
}
.art-so {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--deep); color: #fff; font-weight: 600; font-size: 14.5px;
  padding: 11px 24px; border-radius: 999px;
  box-shadow: 0 10px 22px rgba(9, 63, 72, .20);
}
.art-so:hover { filter: brightness(1.08); }
.art-so-tip { font-size: 12.5px; color: var(--muted); }

/* /nav 分组 */
.link-group { margin-bottom: 24px; }
.link-group:last-child { margin-bottom: 0; }
.lg-title { font-size: 15.5px; margin: 0 0 12px; display: flex; align-items: center; gap: 9px; }
.lg-main { color: var(--ink); }
.lg-sub { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.lg-count { font-size: 11.5px; color: var(--faint); font-weight: 400; }

/* 内联搜索 */
.inline-search { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.inline-search input {
  flex: 1 1 220px; height: 42px; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0 16px; font-size: 14px; font-family: inherit; outline: none; background: #fff;
}
.inline-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 109, 117, .10); }
.inline-search button {
  flex: 0 0 auto; height: 42px; padding: 0 24px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--deep); color: #fff; font-size: 14px; font-family: inherit;
}
.inline-search button:hover { filter: brightness(1.08); }

.nf-wrap { text-align: center; }
.nf-wrap .inline-search { max-width: 460px; margin-left: auto; margin-right: auto; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 34px; padding-top: 34px; color: rgba(212, 232, 230, .78);
  background-image: url("/assets/images/bg-nacre.svg"), linear-gradient(180deg, #0a3139, #072730);
  background-repeat: repeat, no-repeat;
}
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 24px; padding-bottom: 24px; }
.foot-title { font-size: 13.5px; margin: 0 0 11px; color: #ffffff; letter-spacing: .6px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 7px; font-size: 12.5px; }
.foot-links a:hover { color: #ffffff; }
.foot-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.foot-about p { font-size: 12.5px; margin: 0; color: rgba(200, 224, 221, .70); }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 18px 24px;
  font-size: 12px; color: rgba(186, 212, 209, .66);
}
.foot-bottom p { margin: 0 0 6px; }
.foot-bottom a { color: rgba(212, 232, 230, .86); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 34px 28px; }
  .hero-visual { display: none; }
  .top-search input { width: 150px; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .header-inner { gap: 10px; min-height: 60px; }
  .logo-text { font-size: 17px; }
  .main-nav {
    order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap;
    padding-bottom: 6px; gap: 0;
  }
  .main-nav a { padding: 5px 10px; font-size: 13px; }
  .top-search { flex: 1 1 100%; }
  .top-search input { width: 100%; }
  .hero { padding: 26px 18px 22px; border-radius: 20px; }
  .hero-title { font-size: 22px; line-height: 1.4; }
  .hero-kicker { letter-spacing: 2px; font-size: 10.5px; }
  .hero-search { padding: 4px 4px 4px 14px; }
  .hs-input { height: 40px; font-size: 14px; }
  .hs-btn { height: 40px; padding: 0 18px; font-size: 14px; }
  .site-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  .site-card { padding: 11px 10px; gap: 9px; }
  .sc-desc { display: none; }
  .art-list { grid-template-columns: 1fr; }
  .sec, .mod, .detail { padding: 16px 15px; border-radius: 16px; }
  .detail-title { font-size: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .rank-meta { display: none; }
  .latest-art { padding: 10px 14px; gap: 8px; }
  .la-title { flex-basis: 100%; order: 3; white-space: normal; }
  .la-date { display: none; }
  .board-grid { grid-template-columns: 1fr; }
  .stat strong { font-size: 18px; }
}
