/* ============================================================
   高佬庄古建筑 · 岭南风格 Ghost 主题
   移动端优先（H5），桌面端居中呈现手机画布
   ============================================================ */

:root{
  --paper:#f6f1e4;
  --paper-2:#efe7d3;
  --ink:#26262a;
  --ink-soft:#57534a;
  --brick:#37423f;
  --cinnabar:#a4342a;
  --cinnabar-deep:#7e211f;
  --gold:#b08d4f;
  --gold-soft:#c9ab72;
  --line:rgba(38,38,42,.14);
}

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  background:#22201c;
  font-family:"Noto Serif SC","Source Han Serif SC","Songti SC",STSong,SimSun,serif;
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%}
a{color:inherit;text-decoration:none}

/* H5 画布：手机上全宽，桌面呈手机画布 */
.phone{
  max-width:430px;margin:0 auto;min-height:100vh;
  background:var(--paper);
  box-shadow:0 0 60px rgba(0,0,0,.5);
  position:relative;overflow:hidden;
}
@media (min-width:520px){
  body{padding:28px 0}
  .phone{border-radius:24px}
}

/* ===== 顶栏 ===== */
.topbar{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;
  position:sticky;top:0;z-index:60;
  background:rgba(246,241,228,.92);backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.brand{display:flex;align-items:center;gap:10px}
.seal{
  width:38px;height:38px;background:var(--cinnabar);color:#f8f2e4;
  display:grid;place-items:center;border-radius:6px;
  font-size:13px;font-weight:700;line-height:1.05;text-align:center;
  box-shadow:inset 0 0 0 2px rgba(248,242,228,.55);
  letter-spacing:1px;
}
.brand-logo{
  width:40px;height:40px;border-radius:8px;object-fit:cover;
}
.brand-name{font-size:17px;font-weight:700;letter-spacing:2px}
.brand-sub{font-size:10px;color:var(--ink-soft);letter-spacing:3px;margin-top:1px}
.nav-btn{
  width:36px;height:36px;border:1px solid var(--line);border-radius:8px;
  background:transparent;display:grid;place-items:center;cursor:pointer;
}
.nav-btn span{display:block;width:16px;height:1.5px;background:var(--ink);margin:2px 0;transition:.3s}
.nav-btn.open span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
.nav-btn.open span:nth-child(2){opacity:0}
.nav-btn.open span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}

/* ===== 导航浮层 ===== */
.nav-overlay{
  position:fixed;inset:0;z-index:55;
  background:rgba(38,38,42,.97);
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  opacity:0;visibility:hidden;transition:.35s;
}
.nav-overlay.show{opacity:1;visibility:visible}
.nav-list{list-style:none;text-align:center}
.nav-list li{margin:6px 0}
.nav-list a{
  display:block;font-size:24px;font-weight:700;letter-spacing:6px;color:#f2ecdc;
  padding:12px 20px;
}
.nav-list a span{
  display:block;font-size:10px;letter-spacing:3px;color:var(--gold-soft);
  margin-top:4px;text-transform:uppercase;font-weight:400;
}
.nav-deco{
  position:absolute;bottom:48px;font-size:11px;letter-spacing:4px;
  color:rgba(242,236,220,.35);
}
@media (min-width:520px){
  .nav-overlay{left:50%;transform:translateX(-50%);max-width:430px;border-radius:24px}
}

/* ===== 首屏 ===== */
.hero{position:relative;height:72vh;min-height:480px;overflow:hidden;background:var(--brick)}
.hero img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.92) contrast(1.03)}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(24,22,18,.28) 0%,rgba(24,22,18,0) 34%,rgba(24,22,18,.62) 100%);
}
.hero-content{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:0 22px 30px;color:#f8f2e4}
.hero-tag{
  display:inline-block;font-size:11px;letter-spacing:4px;color:var(--gold-soft);
  border:1px solid rgba(201,171,114,.55);padding:5px 12px 4px;border-radius:2px;margin-bottom:14px;
}
.hero-title{font-size:34px;font-weight:900;letter-spacing:4px;line-height:1.25;text-shadow:0 2px 12px rgba(0,0,0,.4)}
.hero-slogan{margin-top:10px;font-size:13px;letter-spacing:3px;color:rgba(248,242,228,.85)}
.gable{position:absolute;top:0;left:0;right:0;z-index:2;pointer-events:none}
.gable svg{display:block;width:100%;height:64px}

/* 回纹分隔 */
/* 琉璃瓦当分隔 */
.keyline{height:16px;opacity:.75;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Cpath d='M3 14 A9 9 0 0 1 21 14' fill='none' stroke='%23b08d4f' stroke-width='2'/%3E%3Cpath d='M7.5 14 A4.5 4.5 0 0 1 16.5 14' fill='none' stroke='%23b08d4f' stroke-width='1' opacity='.6'/%3E%3Cline x1='0' y1='14.8' x2='24' y2='14.8' stroke='%23b08d4f' stroke-width='1' opacity='.5'/%3E%3C/svg%3E");
  background-repeat:repeat-x;background-position:center;
}

/* ===== 通用区块 ===== */
.section{padding:34px 22px 8px}
.sec-head{display:flex;align-items:baseline;gap:10px;margin-bottom:6px}
.sec-cn{font-size:22px;font-weight:900;letter-spacing:3px;margin:0}
h3.case-name{margin:0}
.sec-en{font-size:10px;letter-spacing:2px;color:var(--gold);text-transform:uppercase}
.sec-desc{font-size:12.5px;color:var(--ink-soft);line-height:1.9;letter-spacing:1px;margin:8px 0 18px}
.sec-mark{width:26px;height:3px;background:var(--cinnabar);margin-bottom:14px;border-radius:2px}

/* 数据带 */
.stats{
  display:flex;margin:6px 22px 0;background:var(--brick);border-radius:10px;
  color:#efe8d6;padding:18px 0;box-shadow:0 8px 24px rgba(55,66,63,.25);
}
.stat{flex:1;text-align:center;position:relative}
.stat+.stat::before{content:"";position:absolute;left:0;top:18%;bottom:18%;width:1px;background:rgba(239,232,214,.2)}
.stat b{display:block;font-size:24px;font-weight:900;color:var(--gold-soft);letter-spacing:1px}
.stat i{font-style:normal;font-size:11px;letter-spacing:2px;color:rgba(239,232,214,.75)}

/* ===== 案例卡片 ===== */
.case-list{display:flex;flex-direction:column;gap:20px}
.case{
  background:#fffdf6;border:1px solid var(--line);border-radius:12px;overflow:hidden;
  box-shadow:0 6px 18px rgba(38,38,42,.07);
}
.case-link{display:block}
.case-img{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--paper-2)}
.case-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.case:active .case-img img{transform:scale(1.04)}
.case-idx{
  position:absolute;top:10px;left:10px;background:rgba(164,52,42,.92);color:#f8f2e4;
  font-size:10px;letter-spacing:2px;padding:4px 9px;border-radius:3px;
}
.case-body{padding:14px 16px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.case-name{font-size:16px;font-weight:700;letter-spacing:1.5px}
.case-loc{font-size:11px;color:var(--ink-soft);letter-spacing:1px;margin-top:4px}
.case-arrow{
  flex:none;width:34px;height:34px;border:1px solid var(--gold);border-radius:50%;
  display:grid;place-items:center;color:var(--gold);font-size:14px;
}

/* 分页 */
.pagination{display:flex;justify-content:center;gap:14px;margin:26px 0 10px}
.page-btn{
  border:1px solid var(--ink);font-size:13px;letter-spacing:3px;
  padding:10px 22px;border-radius:3px;
}

/* ===== 工艺 ===== */
.craft{background:var(--brick);margin-top:34px;padding:36px 22px 30px;color:#efe8d6;position:relative;overflow:hidden}
.craft .sec-cn{color:#f2ecdc}
.craft .sec-desc{color:rgba(239,232,214,.6)}
.craft-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:6px}
.craft-item{
  border:1px solid rgba(239,232,214,.16);border-radius:10px;padding:16px 14px;
  background:rgba(246,241,228,.04);
}
.craft-item b{display:block;font-size:15px;letter-spacing:2px;margin:0 0 6px;color:var(--gold-soft)}
.craft-item p{font-size:11px;line-height:1.8;color:rgba(239,232,214,.6);letter-spacing:.5px}

/* ===== 关于 ===== */
.about-card{
  background:#fffdf6;border:1px solid var(--line);border-radius:12px;padding:20px 18px;
  font-size:13px;line-height:2.1;color:var(--ink-soft);letter-spacing:1px;
  box-shadow:0 6px 18px rgba(38,38,42,.06);
}
.about-card b{color:var(--cinnabar)}

/* ===== 底部 ===== */
.footer{background:var(--ink);color:#cfc8b8;margin-top:36px;padding:34px 22px 40px}
.footer .f-name{font-size:18px;letter-spacing:3px;color:#f2ecdc;font-weight:700}
.footer .f-line{font-size:12px;letter-spacing:1.5px;margin-top:12px;line-height:2;color:rgba(207,200,184,.85)}
.footer nav{margin-top:16px}
.footer nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:14px}
.footer nav a{font-size:12px;letter-spacing:2px;color:rgba(207,200,184,.7)}
.f-tel{color:var(--gold-soft);letter-spacing:2px}
.call-btn{
  display:flex;align-items:center;justify-content:center;gap:8px;margin-top:22px;
  background:var(--cinnabar);color:#f8f2e4;
  font-size:14px;letter-spacing:3px;padding:13px 0 12px;border-radius:6px;
}
.copy{font-size:10px;text-align:center;color:rgba(207,200,184,.4);margin-top:24px;letter-spacing:1px}
.tech-support{margin-top:8px}
.tech-support a{color:rgba(207,200,184,.55);text-decoration:underline;text-underline-offset:2px}

/* ===== 文章/案例详情页 ===== */
.page-head{padding-bottom:14px}
.post-hero{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--brick)}
.post-hero img{width:100%;height:100%;object-fit:cover;display:block}
.post-hero-mask{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(24,22,18,.2),rgba(24,22,18,.66));
}
.post-hero-text{position:absolute;left:0;right:0;bottom:0;padding:0 22px 24px;color:#f8f2e4;z-index:2}
.post-back{
  display:inline-block;font-size:11px;letter-spacing:2px;color:rgba(248,242,228,.8);
  border:1px solid rgba(248,242,228,.4);padding:5px 12px;border-radius:3px;margin-bottom:12px;
}
.post-title{font-size:26px;font-weight:900;letter-spacing:2px;line-height:1.4;text-shadow:0 2px 10px rgba(0,0,0,.4)}
.post-loc{margin-top:8px;font-size:12.5px;letter-spacing:2px;color:var(--gold-soft)}

.post-content{padding:26px 22px 10px;font-size:14.5px;line-height:2.15;letter-spacing:1px;color:var(--ink)}
.post-content p{margin-bottom:1.2em;color:var(--ink-soft)}
.post-content h1,.post-content h2,.post-content h3,.post-content h4{
  font-weight:900;letter-spacing:2px;margin:1.6em 0 .8em;line-height:1.5;
}
.post-content h1{font-size:22px}
.post-content h2{font-size:20px}
.post-content h3{font-size:17px}
.post-content a{color:var(--cinnabar);text-decoration:underline;text-underline-offset:3px}
.post-content blockquote{
  border-left:3px solid var(--cinnabar);padding:6px 0 6px 16px;margin:1.4em 0;
  color:var(--ink-soft);font-style:italic;background:var(--paper-2);border-radius:0 8px 8px 0;
}
.post-content hr{border:none;height:1px;background:var(--line);margin:2em 0}
.post-content ul,.post-content ol{margin:0 0 1.2em 1.4em;color:var(--ink-soft)}
.post-content li{margin-bottom:.4em}
.post-content strong{color:var(--ink)}

/* Ghost 卡片（图片/视频/画廊等） */
.post-content figure{margin:1.6em 0}
.post-content figcaption{
  text-align:center;font-size:11px;color:var(--ink-soft);letter-spacing:1px;margin-top:10px;
}
.post-content .kg-image-card img,
.post-content .kg-card.kg-width-wide img,
.post-content .kg-card.kg-width-full img{
  width:100%;height:auto;display:block;border-radius:10px;
}
.post-content .kg-card.kg-width-full{margin-left:-22px;margin-right:-22px}
.post-content .kg-card.kg-width-full img{border-radius:0}
.post-content .kg-gallery-grid{display:grid;gap:8px}
.post-content .kg-gallery-image img{width:100%;height:100%;object-fit:cover;border-radius:8px;display:block}
.post-content .kg-video-card video,
.post-content video{width:100%;border-radius:10px;display:block;background:#000}
.post-content iframe{width:100%;border:0;border-radius:10px}
.post-content .kg-audio-card{background:var(--paper-2);border-radius:10px}
.post-content .kg-bookmark-card{
  border:1px solid var(--line);border-radius:10px;overflow:hidden;display:block;background:#fffdf6;
}
.post-content .kg-btn-card .kg-btn,
.post-content .kg-button-card a{
  display:inline-block;background:var(--cinnabar);color:#f8f2e4 !important;
  padding:12px 26px;border-radius:6px;letter-spacing:2px;font-size:13px;
}

.post-cta{
  margin:30px 22px 0;background:var(--brick);border-radius:12px;
  padding:26px 20px;color:#efe8d6;text-align:center;
}
.post-cta-title{font-size:19px;font-weight:900;letter-spacing:3px;color:#f2ecdc}
.post-cta p{font-size:12px;color:rgba(239,232,214,.7);letter-spacing:1px;margin-top:8px;line-height:1.9}
.post-cta .call-btn{margin-top:16px}

/* ===== 背景音乐按钮 ===== */
.bgm-btn{
  position:fixed;right:18px;bottom:96px;z-index:70;
  width:44px;height:44px;border-radius:50%;
  background:rgba(164,52,42,.94);color:#f8f2e4;
  border:2px solid rgba(248,242,228,.5);
  display:grid;place-items:center;cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.3);
  transition:transform .2s;
}
@media (min-width:520px){
  .bgm-btn{right:calc(50% - 215px + 18px)}
}
.bgm-btn .bgm-note{display:none;font-size:16px}
.bgm-btn.playing .bgm-disc{animation:bgm-spin 4s linear infinite}
.bgm-btn:not(.playing) .bgm-disc{display:none}
.bgm-btn:not(.playing) .bgm-note{display:block;opacity:.85}
@keyframes bgm-spin{to{transform:rotate(360deg)}}

/* ===== 图片灯箱 ===== */
.post-content img{cursor:zoom-in}
.post-content .kg-video-card video,.post-content video{cursor:auto}
.lightbox{
  position:fixed;inset:0;z-index:200;
  background:rgba(24,22,18,.94);
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;transition:.25s;
  cursor:zoom-out;padding:4vw;
}
.lightbox.show{opacity:1;visibility:visible}
.lightbox img{
  max-width:96vw;max-height:90vh;object-fit:contain;
  border-radius:6px;box-shadow:0 12px 48px rgba(0,0,0,.5);
  cursor:zoom-out;
}

/* 订阅/表单等 Ghost 注入元素保持隐藏（沿用原站设置） */
.gh-form{display:none !important}
