
/* gjgy.com 新样子（样稿 D，参考 ../gjgy 的 Hugo 版）。由 build.py 写出；颜色在 palette.json。 */
:root { --card:#fff; --dark:#1c2f4f; --p:#2a4a7a; --accent:#2f6db3; --light:#9cc3ea; --star:#f2b531; --star-line:#d99a16; --bg:#f7f8fb; --line:#e3e7ee; --muted:#6b7280; --fg:#1a1f2e; --map-region:#f2f5fa; --map-region-line:#a9bcd6; --map-border:#2a4a7a; --map-frame:#cfd9e6; --dot:#ef7d00; --dot-city:#c0392b; --dot-here:#e03131; }
* { box-sizing: border-box; }
body { margin: 0; -webkit-text-size-adjust: 100%; font: 16px/1.75 -apple-system, "PingFang SC", "PingFang TC", "Noto Sans SC", "Microsoft YaHei", sans-serif; color: var(--fg); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
/* 顶栏 */
.hd { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hd .in { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { color: #fff; font-weight: 700; font-size: 1.2rem; white-space: nowrap; display: flex; align-items: center; gap: 8px; } .brand span { color: var(--light); margin-left: 4px; }
.brand:hover { text-decoration: none; }
nav.groups { display: flex; gap: 2px; align-self: stretch; }
.ni { position: relative; display: flex; align-items: center; } .ni > a { color: rgba(255,255,255,.85); padding: 6px 11px; border-radius: 4px; font-size: .9rem; white-space: nowrap; }
.ni > a:hover { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
.ni .menu { display: none; position: absolute; top: 100%; left: 0; background: var(--dark); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 6px 0; min-width: 200px; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.ni .menu a { display: block; color: rgba(255,255,255,.85); padding: 6px 16px; font-size: .88rem; white-space: nowrap; } .ni .menu a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.ni.dd:hover .menu { display: block; }
.lang { margin-left: auto; font-size: .8rem; } .lang a { color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.3); padding: 2px 10px; border-radius: 12px; }
details.menu { display: none; } details.menu summary { list-style: none; cursor: pointer; } details.menu summary::-webkit-details-marker { display: none; }
/* 页面 */
.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 24px 40px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; } .crumbs span { margin: 0 6px; } .crumbs b { font-weight: 500; }
h1 { margin: 0; font-size: 2.2rem; line-height: 1.2; color: var(--dark); font-weight: 700; }
.en { color: var(--muted); font-style: italic; font-size: 1.1rem; margin-top: 4px; }
.rating { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; } .stars i { display: inline-flex; } .stars svg { display: block; }
.stars svg { overflow: visible; }
.stars .on svg { fill: var(--star); stroke: var(--star-line); stroke-width: 1; stroke-linejoin: round; }
.stars .off svg { fill: none; stroke: #c7cdd4; stroke-width: 1.2; stroke-linejoin: round; }
.stars .hf svg use { fill: none; stroke: #c7cdd4; stroke-width: 1.2; stroke-linejoin: round; } .stars .hf svg use.h { fill: var(--star); stroke: var(--star-line); stroke-width: 1; }
.cols { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; margin-top: 28px; }
.cols.wide { grid-template-columns: 1fr; }
.side { position: sticky; top: 72px; }
.scard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.st { background: var(--p); color: #fff; padding: 8px 16px; font-size: .85rem; font-weight: 600; }
.sb { padding: 10px 16px; } .toclist { display: flex; flex-direction: column; } .toclist a { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; } .toclist a:last-child { border: 0; }
/* 正文（老页面的内容原样放进来，这里只管样子） */
.content { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 28px 28px; min-width: 0; }
.content h3 { font-size: 1.3rem; color: var(--dark); border-left: 4px solid var(--p); padding: 0 0 0 12px; margin: 2rem 0 .8rem; }
.content hr { display: none; }
.content p { margin: .8em 0; }
.content center > img, .content p > img { display: block; margin: 12px auto; border-radius: 8px; }
.content font { font-size: inherit; color: inherit; }
.content table.facts { width: 100%; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.content table.facts td { border: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; vertical-align: top; font-size: .93rem; word-break: break-all; }
.content table.facts td:first-child { background: var(--bg); width: 30%; color: var(--muted); font-weight: 500; }
.content table.facts td b { font-weight: 500; }
.content table.facts tr:last-child td { border-bottom: 0; }
.content table:not(.facts) { max-width: 100%; }
.dotmap { position: relative; margin: 8px auto; line-height: 0; width: 100%; }
.dotmap > img { width: 100%; height: auto; display: block; }
.dotmap a, .dotmap span { position: absolute; transform: translate(-50%, -50%); padding: 4px; }
.dotmap i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.dotmap i.square { border-radius: 2px; background: var(--dot-city); }
.dotmap i.star { width: 14px; height: 14px; border-radius: 0; border: 0; box-shadow: none; background: var(--star); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.dotmap a:hover i { transform: scale(1.6); background: var(--dark); }
.dotmap .here i { width: 12px; height: 12px; background: var(--dot-here); box-shadow: 0 0 0 3px rgba(192,57,43,.25); }
.dotmap.small { margin: 0; }
.photos figure { margin: 0 0 12px; } .photos img { width: 100%; height: auto; border-radius: 6px; display: block; } .photos figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 4px; }
.dotmap.globe { max-width: 200px; } .dotmap.globe .here i { box-shadow: 0 0 0 3px rgba(192,57,43,.3), 0 0 0 6px rgba(192,57,43,.12); }
/* 世界遗产页 */
ul.whc { padding-left: 1.2em; } ul.whc li { margin: 4px 0; } ul.whc .en { color: var(--muted); font-size: .88em; margin-left: 4px; }
ul.whc .meta { color: var(--muted); font-size: .85em; margin-left: 6px; } ul.whc .ext { font-size: .8em; margin-left: 4px; }
ul.whc .danger { color: #c0392b; font-size: .8em; border: 1px solid #c0392b; border-radius: 8px; padding: 0 5px; }
/* 风景要素页 */
.kwintro { color: var(--muted); margin: 12px 0 4px; }
.kwg h3 { margin: 1.4rem 0 .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); font-size: .95rem; }
.chip b { font-weight: 500; font-size: .78rem; color: var(--accent); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 6px; }
.chip:hover { border-color: var(--accent); text-decoration: none; background: #fff; }
.chip.off { opacity: .5; }
/* 页脚 */
.foot { background: var(--dark); color: rgba(255,255,255,.7); margin-top: 48px; padding: 28px 24px; font-size: .875rem; text-align: center; line-height: 2; } .foot a { color: var(--light); }
/* 手机 */
@media (max-width: 820px) {
  nav.groups { display: none; } .cols { grid-template-columns: 1fr; } .side { position: static; }
  details.menu { display: block; margin-left: auto; } details.menu summary { color: #fff; padding: 6px 0; white-space: nowrap; }
  details.menu nav { position: absolute; left: 0; right: 0; top: 56px; background: var(--dark); display: flex; flex-direction: column; padding: 8px 24px 14px; box-shadow: 0 8px 16px rgba(0,0,0,.3); }
  details.menu nav a { color: #fff; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .lang { margin-left: 12px; white-space: nowrap; } .hd .in { gap: 12px; padding: 0 16px; } .wrap { padding: 20px 16px 32px; } h1 { font-size: 1.6rem; } .content { padding: 4px 16px 20px; }
}
