:root{
  --ink:#000000;
  --paper:#ffffff;
  --mute:rgba(0,0,0,.55);
  --hair:rgba(0,0,0,.16);
  --gap:16px;
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Noto Sans Thai',-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  font-weight:400;
  line-height:1.65;
  letter-spacing:.008em;
  -webkit-font-smoothing:antialiased;
}

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

a{color:inherit;text-decoration:none;border-bottom:1px solid rgba(0,0,0,.28)}
a:hover{border-bottom-color:var(--ink)}

:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.foot :focus-visible{outline-color:#fff}

[id]{scroll-margin-top:132px}
@media (min-width:768px){[id]{scroll-margin-top:148px}}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 16px;
}
@media (min-width:768px){.wrap{padding:0 32px}}

/* ---------- 顶部两行 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:30;
  background:var(--paper);
  border-bottom:1px solid var(--ink);
}

.brandrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:6px 16px;
  border-bottom:1px solid var(--ink);
}
@media (min-width:768px){
  .brandrow{
    max-width:1180px;
    margin:0 auto;
    padding:8px 32px;
  }
}

.brand{
  font-size:1.02rem;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.4;
  padding:10px 0;
  border-bottom:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.contact{
  flex:none;
  font-size:16px;
  line-height:1.3;
  padding:11px 15px;
  border:1px solid var(--ink);
  border-radius:4px;
  border-bottom:1px solid var(--ink);
  transition:background .18s ease,color .18s ease;
}
.contact:hover{background:var(--ink);color:var(--paper)}

.nav{border-top:0}

.nav-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  counter-reset:nv;
}
@media (min-width:768px){
  .nav-list{
    grid-template-columns:repeat(7,1fr);
    max-width:1180px;
    margin:0 auto;
    padding:0 32px;
  }
}

.nav-list li{
  counter-increment:nv;
  border-right:1px solid var(--ink);
  min-width:0;
}
.nav-list li:nth-child(2n){border-right:0}
@media (min-width:768px){
  .nav-list li:nth-child(2n){border-right:1px solid var(--ink)}
  .nav-list li:last-child{border-right:0}
}

.nav-list a{
  display:flex;
  align-items:baseline;
  gap:6px;
  min-height:44px;
  padding:12px 10px;
  font-size:16px;
  line-height:1.3;
  border-bottom:0;
  transition:background .18s ease,color .18s ease;
}
.nav-list a::before{
  content:counter(nv,decimal-leading-zero);
  font-size:11px;
  letter-spacing:.08em;
  opacity:.5;
  flex:none;
}
.nav-list a:hover{background:var(--ink);color:var(--paper)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-height:45vh;
  padding:26px 16px 22px;
  background:#000;
  color:#fff;
}
@media (min-width:768px){
  .hero{min-height:46vh;padding:44px 32px 38px}
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(100deg,rgba(0,0,0,.93) 0%,rgba(0,0,0,.42) 52%,rgba(0,0,0,.8) 100%);
}

.hero::after{
  content:"1069";
  position:absolute;
  right:-1.5vw;
  top:-.12em;
  z-index:-1;
  font-size:clamp(4.6rem,25vw,16rem);
  font-weight:700;
  line-height:.82;
  letter-spacing:-.055em;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,255,255,.3);
  pointer-events:none;
  user-select:none;
}

.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-2;
  filter:grayscale(1) contrast(1.16);
  opacity:.6;
  transform:scale(1.06);
}

.hero-in{position:relative;width:100%;display:flex;justify-content:flex-end}

.hero-h1{
  margin:0;
  max-width:24ch;
  text-align:right;
  font-size:clamp(1.85rem,6vw,4.3rem);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.038em;
  text-wrap:balance;
}

/* ---------- 主体网格 ---------- */
.body-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:var(--gap);
  padding:26px 0 52px;
}

.content{
  grid-column:1/-1;
  min-width:0;
}
@media (min-width:900px){.content{grid-column:1/span 8}}

.content article{
  padding-top:26px;
  margin-bottom:46px;
  border-top:1px solid var(--ink);
}
.content article:first-child{border-top:0;padding-top:0}

.content h2{
  margin:0;
  text-align:right;
  font-size:clamp(1.4rem,3.3vw,2.3rem);
  font-weight:700;
  line-height:1.16;
  letter-spacing:-.032em;
}

.content h2+hr{
  margin:14px 0 20px;
  border:0;
  border-top:1px solid var(--ink);
}

.content hr{
  border:0;
  border-top:1px solid var(--hair);
  margin:20px 0;
}

.content h3{
  margin:26px 0 10px;
  font-size:1.12rem;
  font-weight:700;
  line-height:1.4;
  letter-spacing:-.012em;
}

.content p{margin:0 0 16px}
.content ul,.content ol{margin:0 0 18px;padding-left:1.25em}
.content li{margin-bottom:8px}

.content blockquote{
  margin:22px 0;
  padding:6px 0 6px 18px;
  border-left:3px solid var(--ink);
  font-weight:500;
}

.content img{margin:18px 0;border-radius:4px}
.content a{border-bottom:1px solid var(--ink)}
.content strong{font-weight:700}

.content table{width:100%;border-collapse:collapse;margin:18px 0;font-size:16px}
.content th,.content td{border-bottom:1px solid var(--hair);padding:9px 8px;text-align:left}

/* ---------- 侧栏 ---------- */
.side{
  grid-column:1/-1;
  padding:16px;
  background:var(--paper);
  border:1px solid rgba(0,0,0,.1);
  border-radius:4px;
  box-shadow:0 3px 16px rgba(0,0,0,.09);
}
@media (min-width:900px){
  .side{
    grid-column:10/span 3;
    position:sticky;
    top:136px;
    align-self:start;
  }
}

.side h2{
  margin:0;
  font-size:16px;
  font-weight:700;
  letter-spacing:.16em;
}
.side hr{
  border:0;
  border-top:1px solid var(--ink);
  margin:10px 0 12px;
}

.side-list{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:sd;
}
.side-list li{
  counter-increment:sd;
  border-top:1px solid var(--hair);
}
.side-list li:first-child{border-top:0}

.side-list a{
  display:block;
  padding:11px 0;
  font-size:16px;
  line-height:1.35;
  border-bottom:0;
}
.side-list a::before{
  content:counter(sd,decimal-leading-zero);
  margin-right:9px;
  font-size:11px;
  opacity:.5;
}
.side-list a:hover{text-decoration:underline;text-underline-offset:4px}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:24px;
  padding:38px 16px 24px;
  background:#000;
  color:#fff;
}
@media (min-width:768px){.foot{padding:54px 32px 28px}}

.foot-grid{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
}
@media (min-width:700px){
  .foot-grid{grid-template-columns:repeat(3,1fr);gap:32px}
}

.foot dl{margin:0}
.foot dt{
  font-size:13px;
  letter-spacing:.18em;
  color:rgba(255,255,255,.5);
  margin-bottom:10px;
}
.foot dd{
  margin:0 0 4px;
  font-size:16px;
  line-height:1.5;
}
.foot dd a{
  display:inline-block;
  min-height:40px;
  padding:9px 0;
  border-bottom:1px solid rgba(255,255,255,.32);
}
.foot dd a:hover{border-bottom-color:#fff}

.foot-brand{
  font-size:1.02rem;
  font-weight:700;
  letter-spacing:-.015em;
}
.foot-desc{
  margin-top:8px;
  max-width:32ch;
  color:rgba(255,255,255,.68);
}

.foot-bottom{
  max-width:1180px;
  margin:34px auto 0;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.3);
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
}
.foot-bottom p{margin:0}
.foot-bottom a{
  display:inline-block;
  padding:9px 0;
  min-height:40px;
  border-bottom:1px solid rgba(255,255,255,.4);
}

/* ---------- 动效 ---------- */
.js .content article{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .5s ease,transform .5s ease;
}
.js .content article.in{
  opacity:1;
  transform:none;
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-img{transform:none!important}
  .js .content article{opacity:1;transform:none;transition:none}
  .contact,.nav-list a{transition:none}
}

@media (min-width:768px){
  body{font-size:17.5px}
}

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