@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800;900&display=swap');

/* Base & header */
body{
  margin:0; background:#000; color:#eee;
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  font-size:12px;
}
a{ color:#eee; text-decoration:none; }
header{
  width:1140px; max-width:80%; margin:auto;
  height:50px; display:flex; align-items:center;
  position:relative; z-index:100;
}

/* One-screen layout (no scroll) */
html, body{ height:100%; overflow:hidden; }
.carousel{
  height: calc(100vh - 50px - 56px);
  width:100vw; overflow:hidden; position:relative;
}

/* ===== MAIN SLIDE LIST ===== */
.carousel .list .item{ width:100%; height:100%; position:absolute; inset:0; }
.carousel .list .item img{ width:100%; height:100%; object-fit:cover; }
.carousel .list .item .content{
  position:absolute; top:20%;
  width:1140px; max-width:80%;
  left:50%; transform:translateX(-50%);
  padding-right:30%; box-sizing:border-box;
  color:#fff; text-shadow:0 5px 10px #0004;
}
.carousel .list .item .author{ font-weight:800; letter-spacing:8px; opacity:.95; }
.carousel .list .item .title,
.carousel .list .item .topic{ font-size:4em; font-weight:900; line-height:1.15; }
.carousel .list .item .topic{ color:#f1683a; }
.carousel .list .item .des{ margin-top:10px; opacity:.95; line-height:1.6 }

/* ===== THUMBNAIL STRIP (BOTTOM) ===== */
.thumbnail{
  position:absolute; bottom:50px; left:50%; transform:translateX(-50%);
  display:flex; gap:20px; width:max-content; z-index:120;
}
.thumbnail .item{
  width:150px; height:220px; flex-shrink:0; position:relative;
}
.thumbnail .item img{
  width:100%; height:100%; object-fit:cover; border-radius:20px;
}
.thumbnail .item .content{
  position:absolute; bottom:10px; left:10px; right:10px; color:#fff;
  text-shadow:0 3px 8px #0006;
}
.thumbnail .title{ font-weight:700; }

/* ===== ARROWS + TIME ===== */
.arrows{
  position:absolute; top:80%; right:52%;
  z-index:2000; display:flex; gap:10px; align-items:center;
}
.arrows button{
  width:40px; height:40px; border-radius:50%;
  background:#eee4; border:none; color:#fff;
  font-family:monospace; font-weight:700; transition:.3s;
  pointer-events:auto !important;
}
.arrows button:hover{ background:#fff; color:#000; }
.carousel .time{
  position:absolute; z-index:1000; width:0; height:3px;
  background:#f1683a; left:0; top:0;
}

/* ===== ANIMATIONS (original effect) ===== */
/* current slide on top */
.carousel .list .item:nth-child(1){ z-index:1; }

/* intro text animation */
.carousel .list .item:nth-child(1) .content *{
  transform:translateY(50px); filter:blur(20px); opacity:0;
  animation:showContent .5s 1s linear forwards;
}
@keyframes showContent{ to{ transform:translateY(0); filter:blur(0); opacity:1; } }

/* NEXT click: current image shrinks to a card (mimics coming from thumbnail) */
.carousel.next .list .item:nth-child(1) img{
  width:150px; height:220px; position:absolute; bottom:50px; left:50%;
  border-radius:20px; animation:showImage .5s linear forwards;
}
@keyframes showImage{
  to{ bottom:0; left:0; width:100%; height:100%; border-radius:0; }
}

/* PREV click: the next item (which becomes current) first appears full, then shrinks out */
.carousel.prev .list .item:nth-child(2) img{
  position:absolute; bottom:0; left:0; animation:outFrame .5s linear forwards;
}
@keyframes outFrame{
  to{ width:150px; height:220px; bottom:50px; left:50%; border-radius:20px; }
}

/* Thumbnails move along (so bottom images change too) */
.carousel.next .thumbnail .item:nth-last-child(1),
.carousel.prev .thumbnail .item:nth-child(1){
  overflow:hidden; animation:showThumb .5s linear forwards;
}
@keyframes showThumb{ from{ width:0; opacity:0; } }
.carousel.next .thumbnail{ animation:moveThumb .5s linear forwards; }
@keyframes moveThumb{ from{ transform:translateX(calc(-50% + 150px)); } }

/* lock buttons only during the short animation */
.carousel.next .arrows button, .carousel.prev .arrows button{ pointer-events:none; }

/* DARK overlay on big slides */
.carousel .list .item::after{
  content:""; position:absolute; inset:0;
  background:rgba(0,0,0,.5); pointer-events:none;
}

/* ===== FOOTER (fixed) ===== */
.site-footer{
  position:fixed; left:0; right:0; bottom:0; height:56px;
  background:#000; border-top:1px solid rgba(255,255,255,.1); z-index:110;
}
.site-footer__inner{
  height:100%; max-width:1140px; margin:0 auto; padding:0 16px;
  display:flex; align-items:center; justify-content:space-between; color:#9ca3af;
}
.site-footer__inner a{ color:#e5e7eb; }

/* ===== CONTACT MODAL ===== */
.icon-btn{
  position:absolute; right:0; top:4px;
  width:40px; height:40px; display:grid; place-items:center;
  border-radius:10px; border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.25); color:#fff; cursor:pointer;
}
.modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:3000; }
.modal.open{ display:flex; }
body.modal-open{ overflow:hidden; }
.backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.6); }
.panel{
  position:relative; max-width:560px; width:min(92vw,560px);
  max-height:90vh; overflow:auto; border-radius:16px; padding:18px;
  background:#121a2a; border:1px solid rgba(255,255,255,.12);
  box-shadow:0 20px 80px rgba(0,0,0,.4);
}
.panel h3{ margin:6px 0 12px; font-size:22px; color:#fff }
.form{ display:grid; gap:10px }
.row{ display:grid; grid-template-columns:1fr 1fr; gap:10px }
.input{
  width:100%; padding:10px 12px; border-radius:10px;
  border:1px solid rgba(255,255,255,.15);
  background:#0f1522; color:#e5e7eb;
}
.btn{
  border:none; padding:10px 14px; border-radius:12px;
  background:linear-gradient(135deg,#7c3aed,#2563eb);
  color:#fff; font-weight:800; cursor:pointer;
}
.btn.ghost{ background:transparent; border:1px solid rgba(255,255,255,.18); }
.actions{ display:flex; justify-content:flex-end; gap:8px; margin-top:10px }
.small{ color:#9ca3af; font-size:12px; margin-top:6px }
.notice{ font-size:13px; color:#a7f3d0; display:none; margin-top:6px }
.notice.show{ display:block }

/* Responsive */
@media (max-width: 678px){
  .carousel .list .item .content{ padding-right:0; }
  .carousel .list .item .title{ font-size:30px }
  .carousel .list .item .topic{ font-size:24px }
  .thumbnail{ display:none; } /* hide strip on small phones for room */
}
