/* ===== 美皿丰 全局基础样式（窑变蓝 · 陶灰 · 釉白 · 陶土橙） ===== */
:root {
  --bg: #221D18;          /* 页面底：深陶灰 */
  --card: #3B332B;        /* 卡片/容器：陶灰 */
  --deep: #171310;        /* 更深一层：导航/封底 */
  --blue: #3A5A8C;        /* 窑变蓝：辅助版块 */
  --title: #FBF7F0;       /* 釉白：标题 */
  --text: #B4AA9C;        /* 正文：暖陶白 */
  --muted: #8E857A;       /* 弱文字 */
  --orange: #C0632F;      /* 陶土橙：主色/图标/点缀 */
  --orange-lt: #D07A44;   /* 陶土橙亮态 */
  --accent: #C0632F;      /* 兼容旧引用 */
  --line: rgba(251, 247, 240, 0.09);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
h1, h2, h3, h4 { color: var(--title); font-weight: 500; letter-spacing: 0.06em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { opacity: 0.6; }

/* 滚动淡入 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 导航 ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.solid { background: rgba(23, 19, 16, .92); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 36px; width: auto; }
.nav-slogan {
  font-style: normal;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: .14em;
  align-self: center;
  white-space: nowrap;
}
.nav-logo-text { color: var(--title); font-size: 20px; letter-spacing: .3em; display: flex; align-items: baseline; gap: 10px; }
.nav-logo-text i { font-style: normal; font-size: 11px; color: var(--orange); letter-spacing: .15em; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 14px; color: var(--text); letter-spacing: .1em; padding: 4px 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--title); border-bottom-color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; width: 30px; height: 24px; position: relative; }
.nav-toggle span { position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--title); transition: .3s; }
.nav-toggle span:nth-child(1) { top: 5px; } .nav-toggle span:nth-child(2) { top: 11px; } .nav-toggle span:nth-child(3) { top: 17px; }
.nav-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ===== 按钮（陶土橙主色） ===== */
.btn-line, .btn-solid {
  border: 1px solid rgba(251, 247, 240, .45); background: transparent; color: var(--title);
  padding: 11px 34px; font-size: 14px; letter-spacing: .25em; text-indent: .25em;
  transition: background .3s, color .3s, border-color .3s;
}
.btn-line:hover { background: var(--orange); border-color: var(--orange); color: var(--title); }
.btn-solid { background: var(--orange); color: var(--title); border-color: var(--orange); }
.btn-solid:hover { background: var(--orange-lt); border-color: var(--orange-lt); color: var(--title); }

/* ===== 页头（内页） ===== */
.page-head { padding: 130px 0 30px; }
.page-head h1 { font-size: 30px; letter-spacing: .2em; }
.page-head p { margin-top: 8px; font-size: 14px; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 80px 0; }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 18px; border: 1px solid var(--orange); border-radius: 50%; opacity: .6; }
.empty-state p { color: var(--text); letter-spacing: .2em; }

/* ===== 页脚 ===== */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; background: rgba(23, 19, 16, .6); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 50px 24px 30px; display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 40px; }
.footer-brand .nav-logo-text { font-size: 18px; }
.footer-note { margin-top: 14px; font-size: 13px; }
.footer-contact h4 { font-size: 14px; margin-bottom: 12px; letter-spacing: .2em; }
.footer-contact p { font-size: 13px; margin-bottom: 6px; }
.footer-contact p span { display: inline-block; width: 3em; opacity: .55; }
.footer-qr img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; }
.footer-qr p { font-size: 12px; margin-top: 8px; text-align: center; }
.footer-copy { border-top: 1px solid var(--line); text-align: center; padding: 16px; font-size: 12px; opacity: .5; letter-spacing: .15em; }
.footer-copy span { display: inline-block; }
.footer-copy .footer-beian { display: inline-block; margin: 0 10px; color: inherit; text-decoration: none; opacity: .9; }
.footer-copy .footer-beian:hover { opacity: 1; text-decoration: underline; }

/* ===== 预约定制悬浮按钮 ===== */
.float-cta {
  position: fixed; right: 26px; bottom: calc(30px + env(safe-area-inset-bottom)); z-index: 900;
  background: var(--orange); color: var(--title); border: 1px solid var(--orange);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; letter-spacing: .15em;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease, background .3s, box-shadow .3s;
}
.float-cta.show { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background: var(--orange-lt); border-color: var(--orange-lt); box-shadow: 0 8px 28px rgba(192, 99, 47, .4); }

.cta-mask { position: fixed; inset: 0; background: rgba(10, 8, 6, .72); z-index: 990; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cta-modal {
  position: fixed; z-index: 991; left: 50%; top: 50%; transform: translate(-50%, -46%);
  width: min(340px, calc(100vw - 40px)); background: var(--card); border: 1px solid var(--line);
  border-top: 2px solid var(--orange);
  border-radius: 8px; padding: 34px 28px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
body.cta-open .cta-mask { opacity: 1; pointer-events: auto; }
body.cta-open .cta-modal { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
body.cta-open { overflow: hidden; }
.cta-modal h3 { font-size: 18px; letter-spacing: .3em; text-indent: .3em; }
.cta-sub { margin: 8px 0 18px; font-size: 13px; }
.cta-qr { width: 190px; height: 190px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cta-qr img { width: 100%; height: 100%; object-fit: cover; }
.cta-qr-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; color: var(--text); }
.cta-qr-empty small { font-size: 11px; opacity: .6; }
.cta-wxid { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--title); }
.cta-wxid button { background: none; border: 1px solid var(--orange); color: var(--title); border-radius: 4px; padding: 3px 12px; font-size: 12px; transition: .25s; }
.cta-wxid button:hover { background: var(--orange); color: var(--title); }
.cta-tip { margin-top: 14px; font-size: 12px; opacity: .6; }
.cta-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--text); font-size: 22px; }

/* ===== 阅读进度条（详情页顶部） ===== */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-lt));
  z-index: 101;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(192, 99, 47, .5);
}

/* ===== 404 国风页 ===== */
.nf-head { text-align: center; }
.nf-num {
  font-size: 56px !important;
  letter-spacing: .35em !important;
  text-indent: .35em;
  color: var(--orange) !important;
}
.nf-sub { margin-top: 14px; font-size: 15px; letter-spacing: .15em; }
.nf-box { text-align: center; padding: 30px 0 70px; }
.nf-text { font-size: 17px; letter-spacing: .2em; color: var(--title); }
.nf-text small { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.nf-btn { display: inline-block; margin-top: 26px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .wrap { padding: 0 18px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(23, 19, 16, .98); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav-logo-text { font-size: 17px; gap: 6px; }
  .nav-logo-img { height: 30px; }
  .nav-slogan { display: none; }
  .page-head { padding: 100px 0 20px; }
  .page-head h1 { font-size: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; padding: 36px 18px 24px; }
  .float-cta { right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); padding: 10px 18px; }
}
