* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  color: #333;
  background: #fafafa;
  line-height: 1.7;
}

nav {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}
nav a { color: #c0392b; text-decoration: none; }
nav a:hover { text-decoration: underline; }

h1 {
  font-size: 26px;
  color: #c0392b;
  margin-bottom: 12px;
}
h2 {
  font-size: 18px;
  margin: 32px 0 12px;
  padding-left: 10px;
  border-left: 4px solid #c0392b;
}

p { color: #555; font-size: 15px; margin-bottom: 16px; }
.answer {
  background: #fff8f6;
  border-left: 3px solid #c0392b;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 15px;
  color: #444;
}

.meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}

ul { list-style: none; margin-bottom: 16px; }
li { margin: 0; }

section {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
section h2 { margin-top: 0; }

section ul { display: block; list-style: disc; padding-left: 20px; }
section ul li { margin-bottom: 4px; font-size: 14px; color: #555; }

.btn {
  display: inline-block;
  padding: 8px 18px;
  background: #c0392b;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 8px;
}
.btn:hover { background: #a93226; }

details {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 8px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}
details p { margin-top: 8px; font-size: 14px; color: #666; }

footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #999;
}
footer a { color: #c0392b; text-decoration: none; }

/* ====== 相关工具（3 列网格） ====== */
.related-tools-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 0 !important;
}
.related-tools-list li {
  margin: 0 !important;
  width: auto !important;
}
.related-tools-list a {
  display: block !important;
  padding: 10px 12px !important;
  background: #fff !important;
  border: 1px solid #eee !important;
  border-radius: 6px !important;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  text-align: center !important;
  transition: all 0.2s !important;
}
.related-tools-list a:hover {
  background: #c0392b !important;
  color: #fff !important;
  border-color: #c0392b !important;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.15) !important;
}

/* ====== 手机端 ====== */
@media (max-width: 750px) {
  .related-tools-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .related-tools-list a {
    font-size: 13px !important;
    padding: 9px 10px !important;
  }
}

/* ====== 八字系统：城市折叠面板 ====== */
.city-nav {
    padding: 50px 15px;
    background: #f7f7f7;
}
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
    padding: 0 15px;
}
.section-title {
    font-size: 22px;
    color: #c0392b;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #c0392b;
}
.section-subtitle {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
    margin-top: 8px;
}
.city-accordion {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.city-details {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.2s;
}
.city-details[open] {
    border-color: #c0392b;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.08);
}
.city-details summary {
    cursor: pointer;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    user-select: none;
}
.city-details summary::-webkit-details-marker { display: none; }
.city-details summary::after {
    content: '+';
    font-size: 18px;
    color: #c0392b;
    margin-left: 10px;
}
.city-details[open] summary::after { content: '−'; }
.city-details summary:hover { background: #fafafa; }
.city-province-name { flex: 1; }
.city-count {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-right: 4px;
}
.city-list {
    list-style: none;
    padding: 12px 18px 18px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #f0f0f0;
    background: #fcfcfc;
}
.city-list a {
    display: inline-block;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}
.city-list a:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}
@media (max-width: 750px) {
    .city-accordion { grid-template-columns: 1fr; }
}