@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

:root{
  --sand:#f5e6c8;
  --amber:#d4a574;
  --ink:#262117;
  --paper:#fbf2d9;
  --line:rgba(38,33,23,.16);
  --soft:0 14px 30px -18px rgba(38,33,23,.7);
  --band:rgba(38,33,23,.9);
}

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

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

body{
  margin:0;
  background:var(--sand);
  color:var(--ink);
  font-family:'Cabin',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:85;
  pointer-events:none;
  mix-blend-mode:soft-light;
  background:
    radial-gradient(38% 30% at 88% 6%,rgba(255,150,80,.42),transparent 70%),
    radial-gradient(32% 26% at 4% 94%,rgba(255,90,60,.28),transparent 72%);
}

body::after{
  content:"";
  position:fixed;
  inset:-25%;
  z-index:90;
  pointer-events:none;
  opacity:.17;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size:180px 180px;
  animation:grain 1.2s steps(3,end) infinite;
}

@keyframes grain{
  0%{transform:translate3d(0,0,0)}
  33%{transform:translate3d(-2%,1%,0)}
  66%{transform:translate3d(1%,-2%,0)}
  100%{transform:translate3d(0,0,0)}
}

a{color:var(--ink);text-decoration:none}

img{max-width:100%;height:auto;display:block}

:focus-visible{outline:2px dashed var(--ink);outline-offset:3px}

/* ---------- 细条 ---------- */
.ticker{
  position:fixed;
  top:0;left:0;right:0;
  height:30px;
  line-height:30px;
  z-index:50;
  background:var(--ink);
  color:var(--amber);
  text-align:center;
  font-size:15px;
  letter-spacing:.26em;
  overflow:hidden;
  border-bottom:1px solid rgba(245,230,200,.25);
}

/* ---------- 顶栏 ---------- */
.topbar{
  position:fixed;
  top:30px;left:0;right:0;
  height:64px;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 16px;
  background:rgba(245,230,200,.9);
  backdrop-filter:blur(7px);
  border-bottom:1px solid var(--line);
}

.brand{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;height:44px;
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--paper);
  box-shadow:var(--soft);
}

.brand-ico{
  width:30px;height:30px;
  border-radius:5px;
  object-fit:cover;
}

.brand-ico--tx{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--ink);
  color:var(--sand);
  font-family:'Amatic SC',"Songti SC",serif;
  font-size:22px;
  font-weight:700;
  line-height:1;
}

.burger{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 16px;
  border:1px solid var(--ink);
  border-radius:8px;
  background:transparent;
  font-size:16px;
  letter-spacing:.14em;
  cursor:pointer;
}

.burger-bar,
.burger-bar::before{
  display:block;
  width:18px;height:2px;
  background:var(--ink);
  content:"";
}

.burger-bar{position:relative}
.burger-bar::before{position:absolute;top:-6px;left:0;box-shadow:0 12px 0 var(--ink)}

.burger:hover{background:var(--ink);color:var(--sand)}
.burger:hover .burger-bar,
.burger:hover .burger-bar::before{background:var(--sand)}

/* ---------- 遮罩菜单 ---------- */
.mt{
  position:fixed;
  top:0;left:0;
  width:2px;height:2px;
  opacity:0;
  pointer-events:none;
}

.mask{
  position:fixed;
  inset:0;
  z-index:70;
  background:#1d1a12;
  color:var(--sand);
  transform:translateX(102%);
  transition:transform .5s cubic-bezier(.22,.8,.22,1);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

.mt:checked ~ .mask{transform:translateX(0)}

.mask-glow{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(45% 34% at 92% 4%,rgba(255,140,70,.5),transparent 68%),
    radial-gradient(40% 30% at 0% 96%,rgba(212,80,50,.4),transparent 70%);
  mix-blend-mode:screen;
  opacity:.55;
}

.mask-in{
  position:relative;
  max-width:620px;
  margin:0 auto;
  padding:96px 24px 48px;
}

.mask-head{
  margin:0 0 26px;
  font-family:'Amatic SC',"Songti SC",serif;
  font-weight:700;
  font-size:2rem;
  letter-spacing:.22em;
  color:var(--amber);
  border-bottom:1px solid rgba(245,230,200,.24);
  padding-bottom:16px;
}

.mask-nav ul{
  list-style:none;
  margin:0;padding:0;
}

.mask-nav a{
  display:flex;
  align-items:center;
  min-height:56px;
  padding:10px 4px;
  color:var(--sand);
  font-family:'Amatic SC',"Songti SC",serif;
  font-size:1.85rem;
  font-weight:700;
  letter-spacing:.1em;
  border-bottom:1px dashed rgba(245,230,200,.18);
  transition:transform .22s ease,color .22s ease;
}

.mask-nav a:hover{
  color:var(--amber);
  transform:translateX(8px) skewX(-3deg);
  text-shadow:2px 0 rgba(220,90,60,.6),-2px 0 rgba(80,140,170,.55);
}

.mask-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:32px;
  min-height:48px;
  padding:0 26px;
  border:1px solid var(--amber);
  border-radius:8px;
  color:var(--amber);
  letter-spacing:.18em;
  cursor:pointer;
}

.mask-close:hover{background:var(--amber);color:#1d1a12}

/* ---------- 主视觉 ---------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:#c39a6a;
  clip-path:polygon(0 0,100% 0,100% 92%,0 100%);
}

.hero-media{position:absolute;inset:0}

.hero-img{
  width:100%;height:100%;
  object-fit:cover;
  transform:scale(1.06);
  filter:sepia(.42) contrast(1.04) saturate(.76) brightness(.94);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg,rgba(29,26,18,.5) 0%,rgba(29,26,18,.18) 32%,rgba(29,26,18,.78) 100%);
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(115deg,rgba(255,170,90,.32),transparent 46%);
  mix-blend-mode:screen;
  animation:leak 9s ease-in-out infinite alternate;
}

@keyframes leak{
  from{opacity:.35;transform:translateX(-3%)}
  to{opacity:.7;transform:translateX(4%)}
}

.hero-txt{
  position:relative;
  z-index:2;
  max-width:780px;
  padding:150px 22px calc(14vh + 24px);
  text-align:left;
}

.hero-txt h1{
  margin:0 0 .35em;
  font-family:'Amatic SC',"Songti SC","Songti TC",serif;
  font-weight:700;
  font-size:clamp(2.6rem,10vw,5rem);
  line-height:1.06;
  letter-spacing:.04em;
  color:#fdf5e2;
  text-shadow:0 4px 26px rgba(0,0,0,.6);
}

.hero-sub{
  margin:0;
  max-width:30em;
  font-size:1.02rem;
  line-height:1.7;
  color:#f3e6ce;
  text-shadow:0 2px 12px rgba(0,0,0,.6);
}

/* ---------- 正文 ---------- */
main{
  max-width:800px;
  margin:0 auto;
  padding:56px 18px 0;
}

article > section{
  position:relative;
  margin:0 0 34px;
  padding:26px 20px 28px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:var(--soft);
  scroll-margin-top:112px;
}

article > section:nth-of-type(even){transform:rotate(-.25deg)}
article > section:nth-of-type(odd){transform:rotate(.2deg)}

article h2{
  margin:0 0 .7em;
  font-family:'Amatic SC',"Songti SC","Songti TC",serif;
  font-weight:700;
  font-size:1.95rem;
  line-height:1.2;
  letter-spacing:.06em;
  color:var(--ink);
  border-bottom:2px solid var(--amber);
  padding-bottom:.28em;
}

article h2 span{
  display:inline-block;
  position:relative;
}

article h3{
  margin:1.5em 0 .5em;
  font-family:'Amatic SC',"Songti SC",serif;
  font-weight:700;
  font-size:1.45rem;
  letter-spacing:.05em;
  color:#4a3a24;
}

article p{
  margin:0 0 1.05em;
  font-size:1.06rem;
}

article ul,article ol{margin:0 0 1.1em;padding-left:1.35em}
article li{margin:0 0 .5em}

article a{
  border-bottom:1px dashed rgba(38,33,23,.55);
  transition:color .2s ease,transform .2s ease;
}

article a:hover{
  color:#8a5a24;
  text-shadow:1.5px 0 rgba(200,80,50,.6),-1.5px 0 rgba(70,120,150,.5);
  transform:skewX(-2deg);
}

article img{
  margin:1.4em 0;
  padding:10px 10px 26px;
  background:#fdfbf4;
  border:1px solid rgba(38,33,23,.18);
  border-radius:4px;
  box-shadow:0 12px 26px -16px rgba(38,33,23,.85);
  transform:rotate(-1.1deg);
}

article blockquote{
  margin:1.3em 0;
  padding:.7em 0 .7em 1.1em;
  border-left:3px solid var(--amber);
  color:#4a3a24;
  font-style:normal;
}

article time{
  display:inline-block;
  margin:0 0 .8em;
  padding:2px 10px;
  border-radius:4px;
  background:rgba(212,165,116,.4);
  font-size:.95rem;
  letter-spacing:.06em;
}

article table{width:100%;border-collapse:collapse;margin:0 0 1.2em;font-size:1rem}
article th,article td{border:1px solid var(--line);padding:9px 10px;text-align:left}
article th{background:rgba(212,165,116,.32)}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:64px;
  padding:46px 18px 22px;
  background:#1d1a12;
  color:var(--sand);
  border-top:4px double rgba(212,165,116,.5);
}

.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  max-width:800px;
  margin:0 auto;
}

.fhead{
  margin:0;
  font-family:'Amatic SC',"Songti SC",serif;
  font-weight:700;
  font-size:1rem;
  letter-spacing:.24em;
  color:var(--amber);
}

.fhead span{
  display:inline-block;
  border-bottom:1px solid rgba(212,165,116,.55);
  padding-bottom:4px;
}

.flist{margin:12px 0 0}

.flist dt{margin:0}

.flist a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:4px 0;
  color:var(--sand);
  font-size:1rem;
  border-bottom:1px dashed rgba(245,230,200,.2);
  transition:color .2s ease,transform .2s ease;
}

.flist a:hover{color:var(--amber);transform:translateX(4px)}

.foot-bot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  max-width:800px;
  margin:26px auto 0;
  padding-top:14px;
  border-top:1px solid rgba(245,230,200,.22);
}

.copy{margin:0;font-size:1rem;letter-spacing:.1em;color:rgba(245,230,200,.82)}

.totop{margin:0}

.totop a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  border:1px solid rgba(212,165,116,.6);
  border-radius:8px;
  color:var(--amber);
  font-size:1rem;
}

.totop a:hover{background:var(--amber);color:#1d1a12}

/* ---------- 桌面 ---------- */
@media (min-width:800px){
  main{padding:64px 24px 0}
  div > article{padding:34px 34px 36px;margin-bottom:44px}
  .mask-in{max-width:720px;padding-top:120px}
  .mask-nav a{font-size:2.1rem}
  .foot{padding:56px 24px 26px}
}

/* ---------- 窄屏 ---------- */
@media (max-width:480px){
  .ticker{font-size:14px;letter-spacing:.18em}
  .hero-txt{padding:132px 18px calc(12vh + 20px)}
  .hero-sub{font-size:1rem}
  main{padding:44px 14px 0}
  div > article{padding:22px 15px 24px;border-radius:10px}
  .foot-cols{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .flist a{font-size:.95rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

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