@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@300;400;500;700&display=swap');

:root{
  --paper:#fafaf8;
  --mid:#4a4a4a;
  --ink:#1a1a1a;
  --line:#d8d5cb;
  --card:#fffdf9;
  --wash:#f2f1eb;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  padding-bottom:118px;
  font-family:'Noto Sans Arabic',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    repeating-linear-gradient(0deg,rgba(26,26,26,.03) 0 1px,rgba(26,26,26,0) 1px 4px),
    radial-gradient(circle at 14% 6%,rgba(74,74,74,.07),rgba(74,74,74,0) 40%),
    radial-gradient(circle at 86% 68%,rgba(74,74,74,.05),rgba(74,74,74,0) 36%);
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
p{margin:0 0 14px}
h1,h2,h3{
  font-family:'Noto Naskh Arabic','Songti SC',Georgia,serif;
  font-weight:700;
  line-height:1.28;
  margin:0 0 12px;
  letter-spacing:.01em;
}

/* 底部固定条 */
.bar{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:40;
  background:rgba(250,250,248,.97);
  border-top:2px solid var(--ink);
  padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px));
}
.bar-nav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:4px;
  max-width:1080px;
  margin:0 auto;
}
.bar-side{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;margin:0;flex:1 1 auto}
.bar-side a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:2px 8px;
  font-size:16px;
  color:var(--mid);
  text-decoration:none;
  border-radius:4px;
}
.bar-side a:hover{color:var(--ink);background:rgba(26,26,26,.06);text-decoration:underline}
.bar-mid{order:-1;flex:1 1 100%;text-align:center;padding-bottom:2px}
.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 12px;
  font-family:'Noto Naskh Arabic','Songti SC',Georgia,serif;
  font-weight:700;
  font-size:17px;
  letter-spacing:.08em;
  text-decoration:none;
  border-bottom:2px solid var(--ink);
}
.mark-img{height:24px;width:auto;filter:grayscale(1) contrast(1.1)}
.bar-tel{position:absolute;right:10px;top:6px;margin:0}
.bar-tel a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 10px;
  font-size:16px;
  text-decoration:none;
  border:1.5px solid var(--ink);
  border-radius:4px;
  transform:rotate(-1.6deg);
}

main{max-width:1080px;margin:0 auto;padding:0 16px}

/* 首屏 */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
  align-content:center;
  min-height:calc(100svh - 140px);
  padding:44px 0 26px;
  overflow:hidden;
}
.hero-big{
  position:absolute;
  right:2px;top:2vh;
  z-index:0;
  font-family:'Noto Naskh Arabic',Georgia,serif;
  font-weight:700;
  font-size:clamp(96px,30vw,260px);
  line-height:.8;
  letter-spacing:-.05em;
  color:#e9e7de;
  transform:rotate(-5deg);
  pointer-events:none;
  user-select:none;
}
.hero-copy{position:relative;z-index:1;text-align:center}
.hero h1{font-size:clamp(28px,7.4vw,54px)}
.hero-lede{color:var(--mid);font-size:17px;margin:0 auto 18px;max-width:36ch}
.hero-jump{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 20px;
  border:2px solid var(--ink);
  border-radius:4px;
  text-decoration:none;
  font-size:16px;
  transform:rotate(-1.2deg);
  background:var(--card);
}
.hero-jump:hover{background:var(--wash)}
.hero-fig{
  position:relative;
  z-index:1;
  margin:0;
  padding:10px 10px 12px;
  border:2px solid var(--ink);
  border-radius:4px;
  background:#fff;
  transform:rotate(1.3deg);
}
.hero-fig::before{
  content:"";
  position:absolute;
  top:-12px;left:26%;
  width:74px;height:20px;
  background:rgba(74,74,74,.16);
  border-left:1px dashed rgba(26,26,26,.25);
  border-right:1px dashed rgba(26,26,26,.25);
  transform:rotate(-3deg);
}
.hero-img{width:100%;filter:grayscale(1) contrast(1.08)}
.hero-fig-empty{
  aspect-ratio:4/3;
  background:
    repeating-linear-gradient(45deg,rgba(74,74,74,.10) 0 1px,rgba(74,74,74,0) 1px 9px),
    var(--wash);
}

/* 正文双栏 */
.sheet{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  align-items:start;
  padding:6px 0 26px;
}
.rail{
  order:-1;
  align-self:start;
  padding:14px 14px 10px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--card);
  transform:rotate(-.7deg);
}
.rail-title{font-size:18px;margin:0 0 8px}
.rail-list{list-style:none;counter-reset:rail;margin:0;padding:0}
.rail-list li{counter-increment:rail;border-bottom:1px dashed var(--line)}
.rail-list li:last-child{border-bottom:0}
.rail-list a{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  font-size:16px;
  color:var(--mid);
  text-decoration:none;
}
.rail-list a::before{
  content:counter(rail,decimal-leading-zero);
  font-family:'Noto Naskh Arabic',Georgia,serif;
  font-size:14px;
  color:#9c988e;
  min-width:1.6em;
}
.rail-list a:hover,.rail-list a[aria-current]{color:var(--ink);text-decoration:underline}

.sheet-body{min-width:0}
.sheet-body>*:first-child{margin-top:0}
.sheet-body>article{
  padding:22px 16px 8px;
  margin:0 0 20px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--card);
}
.sheet-body>article:nth-of-type(even){transform:rotate(-.25deg)}
main article[id]{scroll-margin-top:18px;scroll-margin-bottom:130px}
.sheet-body h2{font-size:clamp(20px,3.6vw,25px)}
.sheet-body h3{font-size:18px;margin-top:18px}
.sheet-body h2>span,.foot-h>span,.rail-title>span{
  display:inline-block;
  padding-bottom:4px;
  background-image:linear-gradient(rgba(74,74,74,.3),rgba(74,74,74,.3));
  background-repeat:no-repeat;
  background-size:100% 6px;
  background-position:0 100%;
}
.sheet-body ul,.sheet-body ol{padding-left:1.3em;margin:0 0 16px}
.sheet-body li{margin:0 0 8px}
.sheet-body blockquote{
  margin:0 0 16px;
  padding:10px 14px;
  border-left:3px solid var(--mid);
  background:var(--wash);
  color:var(--mid);
}
.sheet-body figure{margin:0 0 16px}
.sheet-body figcaption{font-size:16px;color:var(--mid)}
.sheet-body table{width:100%;border-collapse:collapse;margin:0 0 16px;font-size:16px}
.sheet-body th,.sheet-body td{border:1px solid var(--line);padding:8px 10px;text-align:left}
.sheet-body aside{border:1px dashed var(--mid);padding:12px 14px;border-radius:4px;margin:0 0 16px;background:var(--wash)}

/* 页脚 */
.foot{
  margin-top:34px;
  padding:26px 16px 22px;
  border-top:2px solid var(--ink);
  background:var(--wash);
}
.foot-top{
  display:flex;
  flex-wrap:wrap;
  gap:18px 26px;
  justify-content:space-between;
  max-width:1080px;
  margin:0 auto 22px;
  padding-bottom:18px;
  border-bottom:1px dashed rgba(26,26,26,.28);
}
.foot-contact,.foot-form{margin:0}
.foot-cap{font-size:16px;letter-spacing:.16em;color:var(--mid);margin:0 0 6px}
.foot-host{margin:0;font-size:17px;word-break:break-all}
.foot-field{display:flex;flex-wrap:wrap;gap:8px}
.foot-field input{
  min-height:44px;
  min-width:0;
  flex:1 1 160px;
  padding:0 12px;
  font-size:16px;
  font-family:inherit;
  color:var(--ink);
  background:var(--card);
  border:1.5px solid var(--ink);
  border-radius:4px;
}
.foot-field button{
  min-height:44px;
  padding:0 20px;
  font-size:16px;
  font-family:inherit;
  color:var(--paper);
  background:var(--ink);
  border:1.5px solid var(--ink);
  border-radius:4px;
  cursor:pointer;
  transform:rotate(1deg);
}
.foot-cols{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px 16px;
  max-width:1080px;
  margin:0 auto 20px;
}
.foot-h{font-size:17px;margin:0 0 8px}
.foot-col dl{margin:0}
.foot-col dt{font-size:16px;color:var(--mid);margin:0 0 4px}
.foot-col dd{margin:0 0 12px;font-size:16px;word-break:break-all}
.foot-col dd a{display:block;min-height:40px;line-height:40px}
.foot-col-brand .foot-mark{
  font-family:'Noto Naskh Arabic','Songti SC',Georgia,serif;
  font-size:19px;
  font-weight:700;
  letter-spacing:.08em;
  margin:0 0 8px;
}
.foot-kw{font-size:16px;color:var(--mid)}
.foot-up{display:inline-flex;align-items:center;min-height:40px;font-size:16px}
.foot-copy{
  max-width:1080px;
  margin:0 auto;
  padding-top:12px;
  border-top:1px dashed rgba(26,26,26,.28);
  font-size:16px;
  color:var(--mid);
}

/* 动效 */
.js-on .reveal{opacity:0;transform:translateY(9px)}
.js-on .reveal.in{opacity:1;transform:none;transition:opacity .3s steps(3),transform .3s steps(3)}

@media (min-width:860px){
  body{padding-bottom:96px}
  .bar{padding:6px 18px calc(6px + env(safe-area-inset-bottom,0px))}
  .bar-mid{order:0;flex:0 0 auto;padding-bottom:0}
  .bar-side{flex:1 1 0}
  .bar-side-l{justify-content:flex-end}
  .bar-side-r{justify-content:flex-start}
  .bar-tel{right:18px;top:50%;transform:translateY(-50%);margin:0}
  .hero{
    grid-template-columns:1.05fr .95fr;
    align-items:center;
    gap:34px;
    min-height:calc(100svh - 130px);
  }
  .hero-big{top:4vh;right:6px}
  .sheet{grid-template-columns:218px minmax(0,1fr);gap:30px}
  .rail{position:sticky;top:18px;order:0}
  .sheet-body>article{padding:26px 24px 10px}
  .foot-cols{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js-on .reveal{opacity:1;transform:none;transition:none}
  .hero-fig,.rail,.hero-jump,.bar-tel a,.sheet-body>article:nth-of-type(even),.foot-field button{transform:none}
}

button[aria-expanded]{min-width:44px;min-height:44px}
