@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Patrick+Hand&display=swap');

:root{
  --ink:#1F1D2B;
  --coral:#FF6B4A;
  --cream:#FFF4E6;
  --paper:#FFFBF3;
  --deep:#B93A1E;
  --line:2px solid #1F1D2B;
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Patrick Hand','Kalam',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.78;
  letter-spacing:.012em;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3,h4{font-weight:700;line-height:1.25;letter-spacing:.015em;overflow-wrap:break-word}

/* ---- 首屏 ---- */
.hero{
  position:relative;
  overflow:hidden;
  min-height:45vh;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  padding:26px 6vw 46px;
  background:var(--ink);
  border-bottom:var(--line);
  border-radius:0 0 46% 46% / 0 0 68px 68px;
  isolation:isolate;
}

.hero-media{position:absolute;inset:0;z-index:0}
.hero-photo{width:100%;height:100%;object-fit:cover;opacity:.82}

.hero-ghost{
  position:absolute;
  left:2vw;
  top:50%;
  transform:translateY(-50%);
  z-index:1;
  margin:0;
  font-size:clamp(92px,23vw,270px);
  line-height:.78;
  font-weight:700;
  color:rgba(255,107,74,.38);
  white-space:nowrap;
  pointer-events:none;
  will-change:transform;
}

.hero-copy{position:relative;z-index:2;text-align:right}
.hero-copy h1{
  display:inline-block;
  margin:0;
  padding:6px 16px 8px;
  font-size:clamp(28px,5.4vw,56px);
  line-height:1.16;
  color:var(--ink);
  background:var(--coral);
  border:var(--line);
  border-radius:4px;
  text-align:right;
}

/* ---- 框架 ---- */
.wrap{display:grid;grid-template-columns:236px minmax(0,1fr)}

/* ---- 侧栏导航 ---- */
.rail{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:14px;
  padding:24px 16px 20px;
  border-right:var(--line);
  background:var(--cream);
}

.rail-logo{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:54px;
  overflow:hidden;
  border:var(--line);
  border-radius:16px;
  background:var(--coral);
  color:var(--ink);
  font-size:26px;
  font-weight:700;
  line-height:1;
  transition:background .15s ease,color .15s ease;
}
.rail-logo img{width:100%;height:100%;object-fit:cover}
.rail-logo:hover{background:var(--ink);color:var(--coral)}

.rail-nav{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.rail-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.rail-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 14px;
  font-size:16px;
  line-height:1.4;
  border:var(--line);
  border-radius:999px;
  background:var(--paper);
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.rail-nav a:hover,.rail-nav a:focus-visible{background:var(--ink);border-color:var(--ink);color:var(--cream)}

.rail-contact{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 14px;
  font-size:16px;
  line-height:1.4;
  border:var(--line);
  border-radius:999px;
  background:var(--coral);
  transition:background .15s ease,color .15s ease;
}
.rail-contact:hover,.rail-contact:focus-visible{background:var(--ink);color:var(--coral)}

/* ---- 正文 ---- */
.main{min-width:0;padding:34px 5vw 84px}

.body{max-width:768px}

.body-head{margin:0 0 8px;font-size:clamp(23px,3.8vw,34px)}

section hr{
  width:76px;
  height:6px;
  margin:0 0 22px;
  border:0;
  border-radius:3px;
  background:var(--coral);
}

section > div{
  margin:0 0 30px;
  padding:22px 22px 26px;
  background:var(--paper);
  border:var(--line);
  border-radius:18px;
  scroll-margin-top:28px;
}
section > div:last-child{margin-bottom:0}

section h2{margin:0 0 8px;font-size:clamp(21px,3.2vw,29px)}
section h3{margin:26px 0 8px;font-size:19px;color:var(--deep)}
section h2 + hr{margin-top:0}

section p{margin:0 0 16px}
section p:last-child{margin-bottom:0}
section ul,section ol{margin:0 0 16px;padding-left:22px}
section li{margin:0 0 8px}
section strong{color:var(--deep)}
section em{font-style:normal;background:rgba(255,107,74,.28);padding:0 3px}
section a{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;text-decoration-color:var(--coral)}
section a:hover{color:var(--deep)}
section blockquote{
  margin:0 0 16px;
  padding:10px 0 10px 16px;
  border-left:6px solid var(--coral);
  color:#413E4E;
}
section code{
  padding:1px 5px;
  border:1px solid #D8CFC2;
  border-radius:4px;
  background:#F4EADD;
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:15px;
}
section table{width:100%;border-collapse:collapse;margin:0 0 16px;font-size:16px}
section th,section td{border:1px solid #D8CFC2;padding:8px 10px;text-align:left}
section th{background:#F4EADD}

/* ---- 页脚 ---- */
.foot{
  margin-top:24px;
  padding:36px 6vw 18px;
  background:var(--ink);
  color:var(--cream);
  border-top:var(--line);
}
.foot-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:22px;align-items:start;max-width:940px}
.foot-addr{font-style:normal;font-size:23px;line-height:1.3;letter-spacing:.04em}
.foot-links{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px 12px;justify-content:flex-end}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 14px;
  font-size:16px;
  border:2px solid var(--cream);
  border-radius:999px;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.foot-links a:hover,.foot-links a:focus-visible{background:var(--coral);border-color:var(--coral);color:var(--ink)}

.foot-bar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:26px;
  padding-top:14px;
  border-top:2px solid rgba(255,244,230,.28);
}
.foot-copy{margin:0;font-size:15px;opacity:.86}
.foot-top{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 14px;
  font-size:15px;
  border:2px dashed rgba(255,244,230,.5);
  border-radius:999px;
}
.foot-top:hover{background:var(--coral);border-color:var(--coral);color:var(--ink)}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms !important}
  .hero-ghost{transform:translateY(-50%) !important}
}

/* ---- 移动端 ---- */
@media (max-width:900px){
  body{padding-bottom:76px}
  .wrap{grid-template-columns:1fr}

  .rail{
    position:fixed;
    z-index:40;
    left:0;
    right:0;
    bottom:0;
    top:auto;
    height:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:9px 12px;
    border-right:0;
    border-top:var(--line);
    background:var(--cream);
  }
  .rail-logo{width:44px;height:44px;border-radius:12px;font-size:21px}
  .rail-nav{flex:1 1 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .rail-nav::-webkit-scrollbar{display:none}
  .rail-nav ul{flex-direction:row;gap:8px}
  .rail-nav a{white-space:nowrap}
  .rail-contact{padding:10px 16px}

  .hero{min-height:45vh;padding:18px 20px 34px;border-radius:0 0 40% 40% / 0 0 42px 42px}
  .hero-ghost{font-size:clamp(84px,32vw,150px)}
  .hero-copy h1{font-size:clamp(26px,8vw,40px);padding:5px 12px 7px}

  .main{padding:24px 16px 48px}
  section > div{padding:18px 16px 20px;border-radius:14px}

  .foot{padding:30px 20px 16px}
  .foot-grid{grid-template-columns:1fr;gap:16px}
  .foot-addr{font-size:21px}
  .foot-links{justify-content:flex-start}
}

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