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

:root{
  --red:#ff0000;
  --purple:#8b00ff;
  --ink:#261717;
  --txt:#f6eeee;
  --dim:#cdbdc7;
  --line:rgba(255,255,255,.18);
  --line-2:rgba(255,255,255,.34);
  --glass:rgba(255,255,255,.09);
  --glass-2:rgba(255,255,255,.15);
  --rail:198px;
  --r:18px;
}

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

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

body{
  margin:0;
  min-height:100vh;
  font-family:'Noto Sans Thai','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,-apple-system,sans-serif;
  font-size:17px;
  line-height:1.78;
  font-weight:400;
  color:var(--txt);
  background:
    radial-gradient(58vw 58vw at 86% -8%, rgba(255,0,0,.34), transparent 62%),
    radial-gradient(52vw 52vw at 4% 16%, rgba(139,0,255,.36), transparent 64%),
    radial-gradient(74vw 74vw at 52% 108%, rgba(139,0,255,.22), transparent 66%),
    linear-gradient(158deg,#2c1818 0%,#1b0f15 52%,#261717 100%);
  background-attachment:fixed;
  overflow-x:hidden;
}

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

a{color:#ffbcbc}

a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline:2px solid #ff7a7a;
  outline-offset:3px;
  border-radius:8px;
}

.skip{
  position:fixed;
  left:10px;
  top:10px;
  z-index:60;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(38,23,23,.9);
  border:1px solid var(--line-2);
  color:var(--txt);
  text-decoration:none;
  transform:translateY(-160%);
  transition:transform .2s ease;
}
.skip:focus{transform:translateY(0)}

/* ---- 左侧竖排胶囊导航 ---- */
.rail{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:var(--rail);
  z-index:30;
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:22px 16px 26px;
  overflow-y:auto;
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.035));
  border-right:1px solid var(--line);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:1px 0 0 rgba(255,255,255,.05), 22px 0 60px rgba(0,0,0,.32);
}

.rail-mark{
  flex:0 0 auto;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  text-decoration:none;
  color:#fff;
  font-weight:700;
  font-size:20px;
  background:linear-gradient(150deg,rgba(255,0,0,.55),rgba(139,0,255,.55));
  border:1px solid var(--line-2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.38), 0 10px 26px rgba(255,0,0,.22);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.rail-mark img{width:30px;height:30px;object-fit:contain}
.rail-mark:hover{transform:translateY(-1px)}
.rail-mark{transition:transform .18s ease}

.rail-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:7px;
}

.rail-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 15px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.055);
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
  color:var(--dim);
  font-size:15.5px;
  line-height:1.4;
  text-decoration:none;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.rail-nav a:hover,
.rail-nav a:focus-visible{
  background:rgba(255,255,255,.19);
  border-color:var(--line-2);
  color:#fff;
  transform:translateX(3px);
}
.rail-nav li:first-child a{
  color:#fff;
  background:linear-gradient(120deg,rgba(255,0,0,.42),rgba(139,0,255,.42));
  border-color:rgba(255,255,255,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3);
}

/* ---- 主区 ---- */
main{
  margin-left:var(--rail);
  position:relative;
  z-index:1;
}

.hero{
  position:relative;
  max-width:1080px;
  margin:0 auto;
  min-height:70vh;
  padding:72px 34px 46px;
  display:grid;
  grid-template-columns:1.04fr .96fr;
  gap:34px;
  align-items:center;
}
.hero::before{
  content:"";
  position:absolute;
  inset:12px 18px;
  pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.22) 1px,transparent 1px);
  background-size:23px 23px;
  opacity:.5;
  -webkit-mask-image:radial-gradient(72% 68% at 32% 44%,#000 12%,transparent 78%);
  mask-image:radial-gradient(72% 68% at 32% 44%,#000 12%,transparent 78%);
  z-index:0;
}

.hero-copy{
  position:relative;
  z-index:2;
  text-align:left;
  max-width:34em;
}

.eyebrow{
  display:inline-block;
  margin-bottom:14px;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.1);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  font-size:13px;
  font-weight:500;
  letter-spacing:.16em;
  color:#ffc9c9;
}

h1{
  margin:0 0 18px;
  font-size:clamp(2rem,3.9vw,3.2rem);
  line-height:1.22;
  font-weight:700;
  letter-spacing:-.012em;
  background:linear-gradient(104deg,#ffffff 6%,#ffd9d9 42%,#e2bcff 92%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 42px rgba(255,0,0,.22);
}

.lead{
  margin:0 0 26px;
  color:var(--dim);
  font-size:1.04rem;
  line-height:1.8;
}

.hero-jump{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 20px;
  border-radius:999px;
  border:1px solid var(--line-2);
  background:rgba(255,255,255,.13);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  color:#fff;
  font-size:15.5px;
  text-decoration:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3);
  transition:background .2s ease,transform .2s ease,border-color .2s ease;
}
.pill:hover{
  background:rgba(255,255,255,.24);
  border-color:#fff;
  transform:translateY(-2px);
}

.hero-art{
  position:relative;
  z-index:1;
  min-height:360px;
}
.hero-art:empty{display:none}
.hero-art img{
  position:absolute;
  width:64%;
  border-radius:var(--r);
  border:1px solid var(--line-2);
  box-shadow:0 30px 64px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.24);
  transition:transform .5s cubic-bezier(.2,.7,.2,1);
}
.hero-art img:nth-child(1){
  left:0;
  top:4%;
  transform:rotate(-4.5deg);
  z-index:2;
}
.hero-art img:nth-child(2){
  right:0;
  bottom:5%;
  transform:rotate(5deg);
  z-index:3;
}
.hero-art img:nth-child(1):hover{transform:rotate(-2deg) translateY(-6px)}
.hero-art img:nth-child(2):hover{transform:rotate(2.5deg) translateY(-6px)}

/* ---- 正文 ---- */
.wrap{
  max-width:872px;
  margin:0 auto;
  padding:0 30px 70px;
}

.stage{position:relative}

.body{
  display:block;
  text-align:left;
}

.body > div{
  position:relative;
  margin:0 0 24px;
  padding:30px 28px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:linear-gradient(158deg,rgba(255,255,255,.135),rgba(255,255,255,.055));
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  box-shadow:0 22px 54px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.22);
  scroll-margin-top:34px;
  transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease;
}
.body > div:hover{
  transform:translateY(-3px);
  border-color:rgba(255,255,255,.3);
  box-shadow:0 30px 66px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.3);
}
.body > div:last-child{margin-bottom:0}

.body small{
  display:block;
  margin-bottom:7px;
  font-size:12.5px;
  font-weight:500;
  letter-spacing:.2em;
  color:#ff9aa8;
}

.body h2{
  margin:0 0 16px;
  font-size:clamp(1.3rem,2.1vw,1.6rem);
  line-height:1.34;
  font-weight:700;
  letter-spacing:.005em;
  color:#fff;
}

.body h3{
  margin:26px 0 10px;
  font-size:1.12rem;
  line-height:1.45;
  font-weight:500;
  color:#ffdede;
}

.body p{
  margin:0 0 1.05em;
  color:#eee2e6;
}
.body p:last-child{margin-bottom:0}

.body ul,
.body ol{
  margin:0 0 1.05em;
  padding-left:1.25em;
}
.body li{margin:0 0 .45em;color:#eee2e6}

.body a{
  color:#ffb0b0;
  text-decoration:none;
  border-bottom:1px solid rgba(255,176,176,.42);
  transition:color .18s ease,border-color .18s ease;
}
.body a:hover{color:#fff;border-color:#fff}

.body blockquote{
  margin:0 0 1.05em;
  padding:14px 20px;
  border-left:3px solid rgba(255,0,0,.62);
  border-radius:0 12px 12px 0;
  background:rgba(255,255,255,.09);
  color:#f3e6ea;
}

.body img{
  margin:14px 0;
  border-radius:14px;
  border:1px solid var(--line);
}

.body table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 1.05em;
  font-size:.96rem;
}
.body th,
.body td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
}
.body th{color:#ffc9c9;font-weight:500}

/* ---- 页脚 ---- */
.foot{
  margin-left:var(--rail);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:20px 26px;
  padding:26px 34px 30px;
  border-top:1px solid var(--line);
  background:linear-gradient(0deg,rgba(255,255,255,.09),rgba(255,255,255,.03));
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  position:relative;
  z-index:1;
}

.foot-main{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}

.foot-mark{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:12px;
  font-weight:700;
  font-size:16px;
  color:#fff;
  background:linear-gradient(150deg,rgba(255,0,0,.55),rgba(139,0,255,.55));
  border:1px solid var(--line-2);
}

.foot-brand{
  margin:0;
  font-size:15.5px;
  color:#fff;
  letter-spacing:.02em;
}

.sub{
  display:flex;
  gap:8px;
  margin:0;
}
.sub input{
  min-height:40px;
  width:150px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.1);
  color:var(--txt);
  font:inherit;
  font-size:15px;
}
.sub input::placeholder{color:#b8a7b1}
.sub button{
  min-height:40px;
  padding:8px 18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.3);
  background:linear-gradient(120deg,rgba(255,0,0,.62),rgba(139,0,255,.62));
  color:#fff;
  font:inherit;
  font-size:15px;
  cursor:pointer;
  transition:filter .18s ease,transform .18s ease;
}
.sub button:hover{filter:brightness(1.16);transform:translateY(-1px)}

.foot-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.foot-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 13px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--dim);
  font-size:15px;
  text-decoration:none;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.foot-nav a:hover{
  background:rgba(255,255,255,.14);
  border-color:var(--line);
  color:#fff;
}

.copy{
  margin:0;
  font-size:14px;
  color:#a999a3;
  letter-spacing:.04em;
}

/* ---- 滚动显现 ---- */
.reveal.pre{
  opacity:0;
  transform:translateY(20px);
}
.reveal.in{
  opacity:1;
  transform:none;
  transition:opacity .7s ease,transform .8s cubic-bezier(.2,.7,.2,1);
}

/* ---- 窄屏 ---- */
@media (max-width:900px){
  body{font-size:16px}

  .rail{
    right:0;
    bottom:auto;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:9px 12px;
    border-right:0;
    border-bottom:1px solid var(--line);
    overflow:visible;
    box-shadow:0 16px 40px rgba(0,0,0,.4);
  }
  .rail-mark{width:42px;height:42px;border-radius:14px}
  .rail-nav{
    flex:1 1 auto;
    min-width:0;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .rail-nav::-webkit-scrollbar{display:none}
  .rail-nav ul{display:flex;gap:8px;padding:0 2px}
  .rail-nav li{flex:0 0 auto}
  .rail-nav a{white-space:nowrap;min-height:42px;padding:9px 14px;font-size:15px}
  .rail-nav a:hover{transform:none}

  main{margin-left:0;padding-top:78px}

  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding:22px 18px 34px;
    gap:20px;
  }
  .hero::before{inset:4px 6px;opacity:.4}
  h1{font-size:clamp(1.75rem,7.2vw,2.35rem)}
  .lead{font-size:1rem;margin-bottom:20px}

  .hero-art{min-height:250px;margin-top:6px}
  .hero-art img{width:66%}

  .wrap{padding:0 16px 52px}
  .body > div{padding:22px 18px;border-radius:16px;scroll-margin-top:104px}

  .foot{
    margin-left:0;
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
    padding:22px 16px 26px;
  }
  .foot-nav ul{gap:6px}
  .sub input{width:min(58vw,200px)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important}
  .reveal.pre{opacity:1;transform:none}
}

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