/* ===================== Self-hosted display face =====================
   Cinzel (SIL Open Font License 1.1 — see assets/fonts/OFL.txt).
   Self-hosted rather than loaded from Google Fonts, because the Google
   Fonts CDN is not reachable from mainland China.                      */
@font-face{
  font-family:"Cinzel";
  src:url("../assets/fonts/Cinzel-Variable.ttf") format("truetype-variations"),
      url("../assets/fonts/Cinzel-Variable.ttf") format("truetype");
  font-weight:400 900;
  font-style:normal;
  font-display:swap;
}

/* ===================== LE SECRET CARD — brand tokens ===================== */
:root{
  --navy-deep:   #081422;
  --navy:        #10253F;
  --navy-soft:   #16324F;
  --gold:        #C9A24A;
  --gold-light:  #EAD494;
  --gold-dark:   #8A6E2F;
  --cream:       #F5F1E6;
  --ink:         #0B1520;

  --serif: "Cinzel","Trajan Pro","Optima",Georgia,"Times New Roman",serif;
  --serif-cn: "Songti SC","STSong","SimSun",var(--serif);
  --sans-cn: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;

  --container: 1200px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--navy-deep);
  color:var(--cream);
  font-family:var(--sans-cn);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

/* ===================== 板块一：Hero ===================== */
.hero{
  position:relative;
  min-height:100svh;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:6vh 6vw;
  isolation:isolate;
}

.hero__bg{
  position:absolute;
  inset:0;
  background-image:url("../assets/img/hero-bg.jpg");
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  z-index:0;
}

.hero__scrim{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(ellipse 72% 58% at 50% 46%, rgba(4,12,22,0.30) 0%, rgba(4,12,22,0.55) 55%, rgba(4,12,22,0.78) 100%),
    linear-gradient(180deg, rgba(4,12,22,0.50) 0%, rgba(4,12,22,0.34) 26%, rgba(4,12,22,0.48) 62%, rgba(6,16,28,0.88) 100%);
}

.hero__glow{
  position:absolute;
  z-index:1;
  border-radius:50%;
  pointer-events:none;
  mix-blend-mode:screen;
  opacity:0.35;
}
.hero__glow--1{
  width:60vmax; height:60vmax;
  top:-22vmax; left:50%; transform:translateX(-50%);
  background:radial-gradient(circle, rgba(201,162,74,0.35) 0%, rgba(201,162,74,0) 70%);
}
.hero__glow--2{
  width:45vmax; height:45vmax;
  bottom:-18vmax; right:-10vmax;
  background:radial-gradient(circle, rgba(201,162,74,0.22) 0%, rgba(201,162,74,0) 70%);
}

.hero__content{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  max-width:760px;
}

.hero__mark{
  width:clamp(96px, 13vw, 148px);
  height:auto;
  margin-bottom:26px;
  filter:drop-shadow(0 6px 22px rgba(0,0,0,0.45));
}

.hero__eyebrow{
  margin:0 0 14px;
  font-family:var(--serif-cn);
  font-size:clamp(15px,2.1vw,19px);
  letter-spacing:0.5em;
  text-indent:0.5em; /* re-center the trailing letter-spacing gap */
  color:var(--gold-light);
  opacity:0.92;
}

.hero__title{
  margin:0 0 26px;
  font-family:var(--serif);
  font-weight:500;
  /* sized so the full name always stays on ONE line, down to a 320px phone */
  font-size:clamp(22px, 6.6vw, 76px);
  white-space:nowrap;
  letter-spacing:0.1em;
  text-indent:0.1em;
  line-height:1.15;
  background:linear-gradient(180deg,#F6E6B4 0%, var(--gold) 45%, var(--gold-dark) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 2px 24px rgba(201,162,74,0.25);
}

.hero__line{
  margin:0 0 10px;
  font-family:var(--sans-cn);
  font-weight:300;
  font-size:clamp(16px,2.3vw,21px);
  letter-spacing:0.12em;
  color:var(--cream);
}

.hero__line--sub{
  margin-bottom:0;
  font-size:clamp(13px,1.6vw,15px);
  letter-spacing:0.06em;
  color:rgba(245,241,230,0.65);
  font-weight:300;
}

.hero__qr{
  margin-top:40px;
  padding:14px;
  background:rgba(245,241,230,0.06);
  border:1px solid rgba(201,162,74,0.35);
  border-radius:16px;
  backdrop-filter:blur(6px);
  box-shadow:0 10px 40px rgba(0,0,0,0.35);
}
.hero__qr img{
  width:132px;
  height:132px;
  border-radius:8px;
  display:block;
}

.hero__scroll{
  position:absolute;
  bottom:34px;
  left:50%;
  transform:translateX(-50%);
  z-index:2;
  width:22px;
  height:36px;
  border:1px solid rgba(245,241,230,0.5);
  border-radius:12px;
  display:flex;
  justify-content:center;
  padding-top:7px;
}
.hero__scroll-line{
  width:2px;
  height:8px;
  border-radius:2px;
  background:var(--gold-light);
  animation:scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse{
  0%{ opacity:0; transform:translateY(0); }
  30%{ opacity:1; }
  100%{ opacity:0; transform:translateY(10px); }
}

/* ===================== 板块二：Partners ===================== */
.partners{
  position:relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,162,74,0.08) 0%, rgba(201,162,74,0) 60%),
    var(--navy-deep);
  padding:110px 6vw 120px;
}

.partners__head{
  max-width:640px;
  margin:0 auto 64px;
  text-align:center;
}

.partners__kicker{
  margin:0 0 18px;
  font-family:var(--serif);
  font-size:clamp(22px,3vw,32px);
  letter-spacing:0.32em;
  text-indent:0.32em;
  color:var(--gold);
  position:relative;
  display:inline-block;
  padding-bottom:20px;
}
.partners__kicker::after{
  content:"";
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:64px;
  height:1px;
  background:linear-gradient(90deg, transparent, var(--gold), transparent);
}

.partners__desc{
  margin:0;
  font-size:clamp(14px,1.8vw,16px);
  line-height:1.9;
  letter-spacing:0.03em;
  color:rgba(245,241,230,0.72);
  font-weight:300;
}

/* ---------- 单面板轮播（手机可左右滑动） ---------- */
.carousel{
  position:relative;
  /* 面板按海报比例定高，并受视口高度约束，保证整张海报一屏可见 */
  width:min(100%, 430px, max(258px, 36.5vh));
  margin:0 auto;
}

.carousel__viewport{
  display:flex;
  aspect-ratio:1165 / 2476;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
  border-radius:16px;
  border:1px solid rgba(201,162,74,0.28);
  background:var(--navy);
  box-shadow:0 22px 55px rgba(0,0,0,0.45);
  outline:none;
}
.carousel__viewport::-webkit-scrollbar{ display:none; }
.carousel__viewport:focus-visible{
  border-color:rgba(201,162,74,0.75);
  box-shadow:0 22px 55px rgba(0,0,0,0.45), 0 0 0 2px rgba(201,162,74,0.45);
}

.carousel__slide{
  position:relative;
  flex:0 0 100%;
  scroll-snap-align:center;
  scroll-snap-stop:always;
  padding:0;
  margin:0;
  border:0;
  overflow:hidden;
  background:var(--navy);
  appearance:none;
  -webkit-appearance:none;
  cursor:zoom-in;
}

/* 比例与面板不同的图片（如活动海报）：背后铺一层同图的模糊底色，
   代替生硬的留白，整组看上去仍是一体的 */
.carousel__slide-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  filter:blur(26px) brightness(0.5) saturate(0.9);
  transform:scale(1.25);   /* 放大以盖住模糊产生的透明边 */
  pointer-events:none;
}

.carousel__slide img{
  position:relative;
  width:100%;
  height:100%;
  object-fit:contain;      /* 完整显示，不裁切 */
  display:block;
  user-select:none;
  -webkit-user-drag:none;
}

.carousel__arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(201,162,74,0.45);
  background:rgba(8,20,34,0.72);
  color:var(--gold-light);
  font-size:26px;
  line-height:1;
  cursor:pointer;
  display:none;                 /* 手机端隐藏，用手势滑动 */
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(6px);
  transition:background .25s ease, border-color .25s ease, opacity .25s ease;
}
.carousel__arrow:hover{ background:var(--gold); color:var(--navy-deep); border-color:var(--gold); }
.carousel__arrow:disabled{ opacity:0.25; cursor:default; }
.carousel__arrow--prev{ left:-62px; }
.carousel__arrow--next{ right:-62px; }

.carousel__dots{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:22px;
}
.carousel__dot{
  width:8px;
  height:8px;
  padding:0;
  border-radius:50%;
  border:1px solid rgba(201,162,74,0.55);
  background:transparent;
  cursor:pointer;
  transition:background .3s ease, transform .3s ease, border-color .3s ease;
}
.carousel__dot.is-active{
  background:var(--gold);
  border-color:var(--gold);
  transform:scale(1.35);
}

.carousel__hint{
  margin:14px 0 0;
  text-align:center;
  font-size:12px;
  letter-spacing:0.14em;
  color:rgba(245,241,230,0.42);
  font-weight:300;
}

/* ===================== 大图查看 Lightbox ===================== */
.lightbox{
  position:fixed;
  inset:0;
  z-index:60;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
}
.lightbox.is-open{
  opacity:1;
  pointer-events:auto;
}
.lightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(6,14,24,0.93);
  backdrop-filter:blur(8px);
}
.lightbox__scroll{
  position:relative;
  height:100%;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  display:flex;
  justify-content:center;
  padding:60px 14px 40px;
}
.lightbox__scroll img{
  width:min(100%, 520px);
  height:auto;
  align-self:flex-start;
  border-radius:10px;
  box-shadow:0 24px 70px rgba(0,0,0,0.55);
  cursor:zoom-out;
}
.lightbox__close{
  position:fixed;
  top:14px;
  right:14px;
  z-index:2;
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid rgba(245,241,230,0.35);
  background:rgba(8,20,34,0.7);
  color:var(--cream);
  font-size:24px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox__close:hover{ border-color:var(--gold); color:var(--gold-light); }

/* ===================== Footer ===================== */
.site-footer{
  padding:34px 6vw 42px;
  text-align:center;
  background:var(--navy-deep);
  border-top:1px solid rgba(201,162,74,0.15);
}

.site-footer__brand{
  margin:0 0 12px;
  font-family:var(--serif);
  font-size:14px;
  letter-spacing:0.24em;
  text-indent:0.24em;
  color:rgba(201,162,74,0.85);
}

.site-footer__legal{
  margin:0;
  font-size:12px;
  line-height:2;
  letter-spacing:0.04em;
  color:rgba(245,241,230,0.42);
  /* keep the company name and the ICP number as two unbreakable units,
     so a narrow phone wraps between them rather than mid-number */
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:0 10px;
}
.site-footer__legal > *{ white-space:nowrap; }
.site-footer__legal a{
  color:inherit;
  transition:color .25s ease;
}
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible{
  color:var(--gold-light);
  text-decoration:underline;
  text-underline-offset:3px;
}
.site-footer__dot{ opacity:0.5; }

@media (max-width:420px){
  .site-footer__dot{ display:none; }
}

/* ===================== Responsive ===================== */
/* 桌面 / 平板：显示左右箭头 */
@media (min-width:768px) and (hover:hover){
  .carousel__arrow{ display:flex; }
}

@media (max-width:900px){
  .carousel__arrow--prev{ left:-52px; }
  .carousel__arrow--next{ right:-52px; }
}

@media (max-width:640px){
  .hero{ padding:10vh 5vw; }
  .hero__mark{ margin-bottom:18px; }
  .hero__eyebrow{ letter-spacing:0.4em; text-indent:0.4em; }
  .hero__qr{ margin-top:32px; }
  .hero__qr img{ width:112px; height:112px; }

  .partners{ padding:80px 6vw 90px; }
  .partners__head{ margin-bottom:44px; }

  .carousel{ width:min(100%, 400px, max(240px, 35vh)); }
  .carousel__dots{ margin-top:18px; }
  .lightbox__scroll{ padding:56px 10px 30px; }
}

@media (max-width:480px){
  .partners{ padding:70px 5vw 84px; }
  .carousel__hint{ font-size:11px; letter-spacing:0.1em; }
}

/* 横屏手机：保证面板不至于被压得过窄 */
@media (max-height:520px) and (orientation:landscape){
  .carousel{ width:min(100%, 300px, max(200px, 44vh)); }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .carousel__viewport{ scroll-behavior:auto; }
}
