 
/* ========== 设计变量 ========== */
:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --bg: #ffffff;
  --card-bg: #f7f9fc;
  --text: #333333;
  --link: #0066ff;
  --link-hover: #0053d9;
  --radius: 12px;
  --gap: 1rem;
  --max-width: 1200px;
  --shadow: 0 4px 12px rgba(0, 0, 0, .08);
  --transition: all .3s ease;
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --card-bg: #1e1e1e;
    --text: #e5e5e5;
    --link: #4d94ff;
    --link-hover: #3d7ae0;
    --shadow: 0 4px 16px rgba(0, 0, 0, .4);
  }
}

/* ========== 全局 Reset ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* ========== 整体布局 ========== */
.sitemap_main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 var(--gap);
}

/* 一级卡片 */
.sitemap_site,
.sitemap_sub {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.sitemap_site:hover,
.sitemap_sub:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

/* 标题 */
h1, h2 {
  margin-bottom: .6em;
}
h1 a, h2 a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}
h1 a {
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--link) 0%, #00c6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 a {
  font-size: 1.2rem;
  padding-left: .8rem;
  border-left: 3px solid var(--link);
}

/* SEO 描述块 */
.sitemap_seo {
  margin-top: .8rem;
  font-size: .95rem;
  color: var(--text);
}
.sitemap_seo_title {
  font-weight: 600;
  margin-bottom: .4rem;
}
.sitemap_seo_keywords,
.sitemap_seo_description {
  font-size: .85rem;
  opacity: .8;
  margin-bottom: .3rem;
}

/* 手风琴折叠 */
/*
.sitemap_seo {
  max-height: 9rem;
  overflow: hidden;
  transition: max-height .4s;
}
.sitemap_sub:hover .sitemap_seo {
  max-height: 300px;
}
*/

/* ========== PC 端：并排卡片 ========== */
@media (min-width: 768px) {
  .sitemap_main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
  }
  .sitemap_site {
    grid-column: 1/-1;
  }
}

/* ========== 移动端单独补丁 ========== */
@media (max-width: 767px) {
  /* 强制单列 */
  .sitemap_main {
    display: block !important;
  }
  .sitemap_site,
  .sitemap_sub {
    width: 100%;
    margin-bottom: 1.2rem;
  }

  /* 字号整体放大 */
  html {
    font-size: 16px;
  }
  h1 a {
    font-size: 1.4rem;
  }
  h2 a {
    font-size: 1.2rem;
  }
  .sitemap_seo {
    font-size: 1rem;
  }
  .sitemap_seo_keywords,
  .sitemap_seo_description {
    font-size: .9rem;
  }

  /* 更宽松留白 & 大圆角 */
  :root {
    --gap: .8rem;
    --radius: 16px;
  }
  .sitemap_site,
  .sitemap_sub {
    padding: 1.2rem;
  }

  /* 手风琴高度放宽 */
  .sitemap_seo {
    max-height: 10.5rem;
  }
}
 