@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;900&display=swap');

:root{
  --ink:#0E0E10;
  --red:#E8442A;
  --paper:#F2EDE4;
  --dim:rgba(242,237,228,.6);
  --line:rgba(242,237,228,.16);
  --dock:126px;
}

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

html{
  scroll-behavior:smooth;
  background:var(--ink);
  -webkit-text-size-adjust:100%;
}

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

h1,h2,h3,p,ol,ul{margin:0}
a{color:inherit}
img{display:block;max-width:100%}
::selection{background:var(--red);color:var(--paper)}

/* 角落品牌图标 */
.brand{
  position:fixed;
  top:.85rem;
  left:.85rem;
  z-index:80;
}
.mark{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  overflow:hidden;
  border:2px solid var(--paper);
  border-radius:4px;
  background:rgba(14,14,16,.82);
  text-decoration:none;
  color:var(--paper);
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
.mark:hover,.mark:focus-visible{
  background:var(--red);
  border-color:var(--red);
  color:var(--ink);
}
.mark img{width:100%;height:100%;object-fit:cover}
.mark-txt{font-size:20px;font-weight:900;line-height:1}

/* Hero */
.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-height:46vh;
  padding-top:5.4rem;
  overflow:hidden;
  border-bottom:3px solid var(--red);
  background-color:var(--ink);
}
.hero-media{position:absolute;inset:-10% 0 0;z-index:0}
.hero-media img{
  width:100%;
  height:120%;
  object-fit:cover;
  opacity:.5;
  filter:grayscale(1) contrast(1.2);
  will-change:transform;
}
.hero-dots{
  position:absolute;
  inset:0;
  z-index:1;
  background-image:radial-gradient(rgba(242,237,228,.26) 1px,transparent 1px);
  background-size:24px 24px;
  opacity:.55;
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg,rgba(14,14,16,.88) 0%,rgba(14,14,16,.32) 48%,var(--ink) 100%);
  pointer-events:none;
}
.hero-copy{
  position:relative;
  z-index:2;
  max-width:100%;
  margin-left:auto;
  padding:0 clamp(1rem,4vw,3.2rem) clamp(1.1rem,2.6vw,2rem);
  text-align:right;
}
.hero-title{
  font-size:clamp(2.35rem,10.4vw,6.4rem);
  font-weight:900;
  line-height:.94;
  letter-spacing:-.035em;
  text-transform:uppercase;
  transform-origin:right bottom;
}

.ch{
  display:inline-block;
  opacity:0;
  transform:translateY(.55em) rotate(5deg);
  animation:rise .62s cubic-bezier(.2,.85,.2,1) forwards;
  animation-delay:calc(var(--i) * 34ms);
}
@keyframes rise{
  to{opacity:1;transform:none}
}

/* 版面 */
main{padding-top:1.6rem}
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(1rem,4vw,3.2rem) 2rem;
}
.stage{display:block}

/* 侧栏 */
.side{
  padding-bottom:1rem;
  margin-bottom:1.6rem;
  border-bottom:2px solid var(--line);
}
.side-title{
  margin-bottom:.45rem;
  font-size:16px;
  font-weight:700;
  letter-spacing:.18em;
  color:var(--red);
}
.side-list{
  display:flex;
  flex-wrap:wrap;
  gap:.15rem;
  padding:0;
  list-style:none;
}
.side-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:0 .55rem;
  border-left:2px solid var(--line);
  font-size:16px;
  text-decoration:none;
  transition:border-color .2s ease,color .2s ease,background .2s ease;
}
.side-list a:hover,.side-list a:focus-visible{
  border-left-color:var(--red);
  background:rgba(232,68,42,.09);
  color:var(--red);
}
.side-top{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  margin-top:.5rem;
  font-size:16px;
  color:var(--dim);
  text-decoration:none;
}
.side-top:hover{color:var(--red)}

/* 正文 */
.prose{min-width:0;max-width:74ch}
.prose-title{
  font-size:clamp(1.7rem,4.2vw,2.8rem);
  font-weight:900;
  line-height:1.08;
  letter-spacing:-.03em;
  background:linear-gradient(92deg,var(--red) 0%,var(--paper) 72%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.subtitle{
  margin:.5rem 0 1.6rem;
  max-width:54ch;
  font-size:16px;
  color:var(--dim);
}

.prose > div{
  padding:2.1rem 0 1.1rem;
  border-top:1px solid var(--line);
  scroll-margin-top:72px;
  scroll-margin-bottom:calc(var(--dock) + 12px);
}
.prose > div:first-of-type{border-top:none;padding-top:.4rem}

.prose h2{
  margin:0 0 .55rem;
  font-size:clamp(1.4rem,3.6vw,2.1rem);
  font-weight:900;
  line-height:1.18;
  letter-spacing:-.02em;
}
.prose h3{
  margin:1.5rem 0 .4rem;
  font-size:1.16rem;
  font-weight:700;
  line-height:1.35;
  color:var(--red);
}
.prose p{margin:0 0 1rem}
.prose ul,.prose ol{margin:0 0 1rem;padding-left:1.25rem}
.prose li{margin:.32rem 0}
.prose a{color:var(--red);text-underline-offset:3px}
.prose strong{color:var(--paper)}
.prose blockquote{
  margin:1.2rem 0;
  padding:.4rem 0 .4rem 1rem;
  border-left:3px solid var(--red);
  color:var(--dim);
}
.prose img{margin:1rem 0;border-radius:4px}

/* 页脚 */
.foot{
  margin-top:2.6rem;
  border-top:2px solid var(--line);
}
.foot-cta{
  padding:2.6rem clamp(1rem,4vw,3.2rem) 2rem;
  border-bottom:1px solid var(--line);
}
.cta-big{
  display:inline-block;
  font-size:clamp(2rem,9vw,5rem);
  font-weight:900;
  line-height:1;
  letter-spacing:-.035em;
  text-decoration:none;
  transition:color .22s ease;
}
.cta-big:hover,.cta-big:focus-visible{color:var(--red)}
.foot-line{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:.5rem 1rem;
  padding:1.1rem clamp(1rem,4vw,3.2rem) 1.6rem;
  font-size:16px;
  color:var(--dim);
}
.foot-line a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  text-decoration:none;
}
.foot-line a:hover{color:var(--red)}

/* 底部固定条 */
.dock{
  position:fixed;
  right:0;
  bottom:0;
  left:0;
  z-index:90;
  display:flex;
  align-items:center;
  gap:.4rem;
  padding:.55rem .7rem;
  border-top:3px solid var(--red);
  background:rgba(14,14,16,.94);
  backdrop-filter:blur(8px);
}
.dock-list{
  display:flex;
  flex:1;
  gap:.25rem;
  padding:0;
  overflow-x:auto;
  list-style:none;
  scrollbar-width:none;
}
.dock-list::-webkit-scrollbar{display:none}
.dock-link{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 .72rem;
  border:1px solid transparent;
  border-radius:4px;
  font-size:16px;
  white-space:nowrap;
  text-decoration:none;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.dock-link:hover,.dock-link:focus-visible{
  background:var(--paper);
  border-color:var(--paper);
  color:var(--ink);
}
.dock-search{flex:0 0 auto}
.dock-search input{
  width:132px;
  min-height:42px;
  padding:0 .7rem;
  border:1px solid rgba(242,237,228,.34);
  border-radius:4px;
  background:transparent;
  color:var(--paper);
  font:inherit;
  font-size:16px;
}
.dock-search input:focus{
  outline:none;
  border-color:var(--red);
}
.dock-search input::placeholder{color:rgba(242,237,228,.45)}

.is-hide{display:none}
.rv{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}
.rv.in{opacity:1;transform:none}

/* 桌面 */
@media (min-width:880px){
  .stage{
    display:grid;
    grid-template-columns:190px minmax(0,1fr);
    gap:2.6rem;
    align-items:start;
  }
  .side{
    position:sticky;
    top:5.2rem;
    margin:0;
    padding:0 1rem 0 0;
    border-bottom:none;
    border-right:2px solid var(--line);
  }
  .side-list{flex-direction:column;flex-wrap:nowrap}
  .side-list a{border-left:2px solid transparent}
  .hero{min-height:45vh}
}

@media (max-width:619px){
  .hero{min-height:44vh;padding-top:4.6rem}
  .dock-search input{width:92px}
  .foot-line{justify-content:flex-start}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .ch{opacity:1;transform:none;animation:none}
  .rv{opacity:1;transform:none;transition:none}
  .hero-media img{transform:none !important}
}

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