:root{
  --bg:#070b16;
  --panel:rgba(12,18,36,.82);
  --panel2:rgba(20,26,48,.92);
  --line:rgba(0,255,255,.18);
  --cyan:#34f5ff;
  --purple:#8b5cf6;
  --pink:#ff4fd8;
  --text:#e8f1ff;
  --muted:#8fa3c7;
  --danger:#ff4d6d;
  --success:#00e5a8;
  --shadow:0 0 24px rgba(52,245,255,.12), 0 0 64px rgba(139,92,246,.08);
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  min-height:100%;
}

body{
  font-family:"Microsoft YaHei","PingFang SC",sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(139,92,246,.18), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(52,245,255,.14), transparent 28%),
    linear-gradient(180deg, #04060d, #070b16 40%, #050816);
  color:var(--text);
  min-height:100vh;
}

a{
  color:var(--cyan);
  text-decoration:none;
}

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

.container{
  width:min(1500px,96vw);
  margin:0 auto;
  padding:14px 0;
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:var(--shadow);
  border-radius:16px;
  backdrop-filter:blur(12px);
}

.brand{
  font-size:22px;
  font-weight:800;
  letter-spacing:2px;
  white-space:nowrap;
}

.badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(52,245,255,.14);
  border:1px solid var(--line);
  color:var(--cyan);
  font-size:12px;
  white-space:nowrap;
}

.grid{
  display:grid;
  gap:10px;
}

.grid-2{
  grid-template-columns:1.2fr .8fr;
  align-items:stretch;
}

.grid-3{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.card{
  background:linear-gradient(180deg, rgba(14,20,38,.95), rgba(8,12,24,.92));
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:10px;
}

.grid-2 > .card{
  height:100%;
  display:flex;
  flex-direction:column;
  padding:12px;
}

/* hero */
.hero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,79,216,.18);
  background:
    linear-gradient(135deg, rgba(52,245,255,.11), rgba(139,92,246,.12)),
    rgba(9,13,26,.92);
  justify-content:flex-start;
  gap:10px;
  padding:28px !important;
  min-height:460px;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 12%, transparent 88%, rgba(255,255,255,.02)),
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,.03) 0px,
      rgba(255,255,255,.03) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity:.16;
  pointer-events:none;
}

.hero::after{
  content:"";
  position:absolute;
  inset:-1px;
  background:linear-gradient(135deg,
    rgba(52,245,255,.12),
    transparent 30%,
    transparent 70%,
    rgba(255,79,216,.08));
  opacity:.45;
  pointer-events:none;
}

.hero > *{
  position:relative;
  z-index:1;
}

.hero .badge{
  align-self:flex-start;
  margin-bottom:2px;
  font-size:13px;
  padding:5px 12px;
  letter-spacing:.5px;
}

.hero-main{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:4px;
  flex:1;
}

.hero-kicker{
  display:inline-block;
  margin-bottom:8px;
  color:#7ffbff;
  font-size:12px;
  letter-spacing:2px;
  text-transform:uppercase;
  opacity:.9;
}

.rainbow-title{
  position:relative;
  z-index:2;
  margin:0 !important;
  font-size:40px !important;
  line-height:1.05 !important;
  letter-spacing:2px;
  font-weight:900;
  background:linear-gradient(
    90deg,
    #ff4fd8,
    #8b5cf6,
    #34f5ff,
    #00e5a8,
    #ffe66d,
    #ff7a59,
    #ff4fd8
  );
  background-size:300% 300%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation: rainbowShift 5s linear infinite;
  filter: drop-shadow(0 0 8px rgba(52,245,255,.18))
          drop-shadow(0 0 14px rgba(139,92,246,.12));
  text-shadow:none;
}

@keyframes rainbowShift{
  0%{ background-position:0% 50%; }
  50%{ background-position:100% 50%; }
  100%{ background-position:0% 50%; }
}

.hero p{
  margin:0 !important;
  color:var(--muted);
  line-height:1.5;
  font-size:17px;
  max-width:760px;
}

.hero-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:8px;
}

.hero .btn,
.hero .btn-dark{
  padding:8px 10px;
  font-size:12px;
  border-radius:9px;
}

/* inputs */
.input,
select,
textarea{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(52,245,255,.18);
  background:rgba(4,8,18,.95);
  color:var(--text);
  outline:none;
  font-size:14px;
}

textarea{
  min-height:140px;
  resize:vertical;
}

/* buttons */
.btn{
  display:inline-block;
  padding:8px 12px;
  border:0;
  border-radius:10px;
  background:linear-gradient(135deg,var(--cyan),var(--purple));
  color:#04111a;
  font-weight:700;
  cursor:pointer;
  transition:.2s;
  font-size:13px;
  line-height:1.2;
}

.btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}

.btn-danger{
  background:linear-gradient(135deg,#ff758f,#ff4d6d);
  color:#fff;
}

.btn-dark{
  background:rgba(255,255,255,.08);
  color:var(--text);
  border:1px solid rgba(255,255,255,.12);
}

/* table */
.table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:14px;
}

.table th,
.table td{
  padding:10px 8px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  font-size:13px;
}

.table th{
  color:var(--cyan);
  font-weight:700;
  background:rgba(255,255,255,.03);
}

.small{
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}

.ok{
  color:var(--success);
}

.err{
  color:var(--danger);
}

/* tabs */
.tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.tabs a,
.tabs span{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(52,245,255,.18);
  background:rgba(255,255,255,.04);
  font-size:13px;
}

/* row */
.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.right{
  margin-left:auto;
}

.nav-user{
  justify-content:flex-end;
}

/* card text spacing */
.card h1,
.card h2,
.card h3,
.card h4,
.card p{
  margin:6px 0;
}

.card .small{
  display:block;
  margin-top:4px;
  line-height:1.4;
}

.card .btn{
  margin-top:6px;
}

/* info card */
.info-card{
  position:relative;
  overflow:hidden;
  padding:16px !important;
  background:
    linear-gradient(180deg, rgba(18,28,52,.98), rgba(8,12,24,.96));
  border:1px solid rgba(52,245,255,.16);
  box-shadow:
    0 0 0 1px rgba(139,92,246,.08) inset,
    0 12px 40px rgba(0,0,0,.35),
    0 0 30px rgba(52,245,255,.08);
  min-height:460px;
  display:flex;
  flex-direction:column;
}

.info-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  background:linear-gradient(135deg,
    rgba(52,245,255,.12),
    transparent 25%,
    transparent 75%,
    rgba(139,92,246,.10));
  opacity:.55;
}

.info-card h3{
  position:relative;
  z-index:1;
  margin:0 0 10px !important;
  font-size:20px;
  letter-spacing:1px;
}

.info-card .table{
  position:relative;
  z-index:1;
  overflow:hidden;
  border-radius:14px;
  background:rgba(255,255,255,.02);
  flex:1;
}

.info-card .table th,
.info-card .table td{
  padding:11px 8px;
  font-size:13px;
}

.info-card .table th{
  width:110px;
  color:#8ff8ff;
  background:rgba(255,255,255,.03);
}

.info-card .table tr{
  transition:.18s ease;
}

.info-card .table tr:hover th,
.info-card .table tr:hover td{
  background:rgba(52,245,255,.05);
}

.info-card .ok{
  font-weight:700;
  text-shadow:0 0 12px rgba(0,229,168,.18);
}

.info-footer{
  position:relative;
  z-index:1;
  margin-top:auto;
  padding-top:10px;
}

/* item image */
.item-img{
  width:100%;
  height:90px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
}

/* hot section */
.hot-section{
  padding:12px;
  overflow:visible;
}

.hot-section h3{
  font-size:18px;
  letter-spacing:1px;
}

.hot-head{
  align-items:center;
}

/* 热卖区域舞台 */
.hot-deck-wrap{
  position:relative;
  overflow:hidden;
  padding:20px 6px 26px;
  min-height:540px;
  border-radius:16px;
}

/* 左右渐隐 */
.hot-deck-wrap::before,
.hot-deck-wrap::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:90px;
  pointer-events:none;
  z-index:30;
}

.hot-deck-wrap::before{
  left:0;
  background:linear-gradient(90deg, rgba(7,11,22,1), rgba(7,11,22,.75), rgba(7,11,22,0));
}

.hot-deck-wrap::after{
  right:0;
  background:linear-gradient(270deg, rgba(7,11,22,1), rgba(7,11,22,.75), rgba(7,11,22,0));
}

/* 整个牌堆区域 */
.hot-deck{
  position:relative;
  min-height:500px;
  width:100%;
  overflow:hidden;
}

/* 左右两侧固定跑马灯区域 */
.hot-lane{
  position:absolute;
  top:0;
  bottom:0;
  width:calc((100% - 560px) / 2);
  min-width:180px;
  z-index:15;
  display:flex;
  flex-direction:column;
}

.hot-left-lane{
  left:0;
  padding-right:12px;
}

.hot-right-lane{
  right:0;
  padding-left:12px;
}

/* 左右标签 */
.hot-side-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(52,245,255,.16), rgba(139,92,246,.16));
  border:1px solid rgba(52,245,255,.22);
  color:#dffcff;
  font-size:12px;
  font-weight:800;
  letter-spacing:1px;
  margin-bottom:10px;
  box-shadow:0 0 18px rgba(52,245,255,.08);
}

.hot-side-label-left{
  align-self:flex-start;
}

.hot-side-label-right{
  align-self:flex-end;
}

/* 左右跑马灯容器 */
.hot-left-marquee,
.hot-right-marquee{
  position:relative;
  flex:1;
  overflow:hidden;
  border-radius:16px;
}

.hot-left-marquee{
  -webkit-mask-image:linear-gradient(to left, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image:linear-gradient(to left, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.hot-right-marquee{
  -webkit-mask-image:linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image:linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.hot-left-track,
.hot-right-track{
  display:flex;
  width:max-content;
  align-items:flex-start;
  gap:0;
  will-change:transform;
}

.hot-left-track{
  animation:hotMarquee 34s linear infinite;
  animation-direction:reverse;
}

.hot-right-track{
  animation:hotMarquee 34s linear infinite;
}

.hot-left-marquee:hover .hot-left-track,
.hot-right-marquee:hover .hot-right-track{
  animation-play-state:paused;
}

@keyframes hotMarquee{
  0%{
    transform:translateX(0);
  }
  100%{
    transform:translateX(-50%);
  }
}

/* 中间主推 */
.hot-featured-cluster{
  position:absolute;
  left:50%;
  top:0;
  transform:translateX(-50%);
  width:560px;
  height:430px;
  z-index:25;
}

/* 单张卡 */
.hot-deck-card{
  position:absolute;
  top:0;
  width:180px;
  height:300px;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:8px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(14,20,38,.98), rgba(8,12,24,.96));
  border:1px solid rgba(52,245,255,.14);
  box-shadow:
    0 0 18px rgba(52,245,255,.08),
    0 0 42px rgba(139,92,246,.06);
  opacity:.96;
  cursor:pointer;
  text-decoration:none;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    opacity .22s ease,
    filter .22s ease;
  will-change:transform;
  flex:0 0 auto;
  transform-origin:center center;
}

.hot-deck-card.featured{
  border-color:rgba(52,245,255,.28);
  box-shadow:
    0 0 24px rgba(52,245,255,.12),
    0 0 52px rgba(139,92,246,.08);
}

.hot-deck-card.featured-1{
  left:50%;
  top:0;
  width:224px;
  height:338px;
  transform:translateX(-50%) translateX(-180px) rotate(-4deg);
  z-index:40;
}

.hot-deck-card.featured-2{
  left:50%;
  top:0;
  width:244px;
  height:364px;
  transform:translateX(-50%);
  z-index:50;
}

.hot-deck-card.featured-3{
  left:50%;
  top:0;
  width:224px;
  height:338px;
  transform:translateX(-50%) translateX(180px) rotate(4deg);
  z-index:35;
}

.hot-deck-card.featured-1 .hot-stack-imgbox{
  height:220px;
}

.hot-deck-card.featured-2 .hot-stack-imgbox{
  height:234px;
}

.hot-deck-card.featured-3 .hot-stack-imgbox{
  height:220px;
}

.hot-right-track .stack-card,
.hot-left-track .left-card{
  position:relative !important;
  left:auto;
  top:auto;
  width:160px;
  height:270px;
  margin-left:-118px;
  z-index:1;
}

.hot-right-track .stack-card:first-child,
.hot-left-track .left-card:first-child{
  margin-left:0;
}

.hot-deck-card:hover,
.hot-deck-card.hovered{
  opacity:1;
  z-index:999 !important;
  box-shadow:
    0 0 24px rgba(52,245,255,.16),
    0 0 52px rgba(139,92,246,.14),
    0 18px 48px rgba(0,0,0,.38);
  filter:brightness(1.08) saturate(1.12);
}

.hot-deck-card.featured-1:hover,
.hot-deck-card.featured-1.hovered{
  transform:translateX(-50%) translateX(-200px) translateY(-18px) rotate(-4deg) scale(1.05) !important;
}

.hot-deck-card.featured-2:hover,
.hot-deck-card.featured-2.hovered{
  transform:translateX(-50%) translateY(-18px) scale(1.05) !important;
}

.hot-deck-card.featured-3:hover,
.hot-deck-card.featured-3.hovered{
  transform:translateX(-50%) translateX(200px) translateY(-18px) rotate(4deg) scale(1.05) !important;
}

.hot-right-track .stack-card:hover,
.hot-right-track .stack-card.hovered,
.hot-left-track .left-card:hover,
.hot-left-track .left-card.hovered{
  transform:translateY(-18px) scale(1.06) !important;
}

.hot-stack-imgbox{
  width:100%;
  height:175px;
  overflow:hidden;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:#09111f;
}

.hot-stack-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hot-stack-info{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:2px 2px 0;
  flex:1;
}

.hot-stack-info h4{
  margin:0;
  font-size:15px;
  line-height:1.25;
  color:var(--text);
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.hot-stack-info .small{
  color:var(--muted);
  font-size:12px;
}

.hot-stack-info .ok{
  color:var(--success);
  font-weight:700;
  font-size:14px;
  text-shadow:0 0 10px rgba(0,229,168,.18);
}

.hot-buy-text{
  margin-top:auto;
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--cyan),var(--purple));
  color:#04111a;
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
}

/* 大屏 */
@media (min-width: 1600px){
  .container{
    width:min(1500px,96vw);
  }

  .shop-page .shop-grid{
    grid-template-columns:repeat(6, minmax(0, 1fr));
  }

  .shop-page .shop-goods-card{
    min-height:310px;
  }

  .shop-page .shop-item-img{
    height:140px;
  }

  .hot-deck-wrap{
    min-height:560px;
  }

  .hot-deck{
    min-height:530px;
  }

  .hot-featured-cluster{
    width:760px;
    height:440px;
  }

  .hot-lane{
    width:calc((100% - 760px) / 2);
    min-width:220px;
  }
}

/* 中屏 */
@media (max-width: 1400px){
  .shop-page .shop-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

/* 平板 */
@media (max-width: 1100px){
  .grid-2{
    grid-template-columns:1fr;
  }

  .nav{
    flex-direction:column;
    gap:10px;
    align-items:flex-start;
  }

  .nav-user{
    justify-content:flex-start;
  }

  .shop-page .shop-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .hero h1{
    font-size:28px !important;
  }

  .hero p{
    font-size:15px;
  }

  .rainbow-title{
    font-size:38px !important;
  }

  .hot-deck-wrap{
    min-height:430px;
  }

  .hot-featured-cluster{
    width:660px;
    height:380px;
  }

  .hot-lane{
    width:calc((100% - 660px) / 2);
    min-width:180px;
  }

  .hot-deck-card.featured-1{
    width:210px;
    height:320px;
    transform:translateX(-50%) translateX(-220px) rotate(-4deg);
  }

  .hot-deck-card.featured-2{
    width:230px;
    height:340px;
  }

  .hot-deck-card.featured-3{
    width:204px;
    height:308px;
    transform:translateX(-50%) translateX(220px) rotate(4deg);
  }

  .hot-right-track .stack-card,
  .hot-left-track .left-card{
    width:150px;
    height:252px;
    margin-left:-108px;
  }

  .hot-stack-imgbox{
    height:150px;
  }
}

/* 小屏 */
@media (max-width: 768px){
  .hot-section{
    padding:10px;
  }

  .shop-page .shop-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .shop-page .shop-goods-card{
    min-height:280px;
  }

  .shop-page .shop-item-img{
    height:120px;
  }

  .hot-deck-wrap{
    min-height:360px;
    padding-bottom:18px;
  }

  .hot-featured-cluster{
    width:540px;
    height:330px;
    top:0;
  }

  .hot-lane{
    width:calc((100% - 540px) / 2);
    min-width:140px;
  }

  .hot-deck-card.featured-1{
    width:180px;
    height:280px;
    transform:translateX(-50%) translateX(-160px) rotate(-4deg);
  }

  .hot-deck-card.featured-2{
    width:200px;
    height:300px;
  }

  .hot-deck-card.featured-3{
    width:176px;
    height:270px;
    transform:translateX(-50%) translateX(160px) rotate(4deg);
  }

  .hot-right-track .stack-card,
  .hot-left-track .left-card{
    width:138px;
    height:228px;
    margin-left:-98px;
  }

  .hot-deck-card.featured-1 .hot-stack-imgbox{
    height:165px;
  }

  .hot-deck-card.featured-2 .hot-stack-imgbox{
    height:176px;
  }

  .hot-deck-card.featured-3 .hot-stack-imgbox{
    height:160px;
  }

  .hot-stack-imgbox{
    height:136px;
  }

  .hot-stack-info h4{
    font-size:13px;
  }
}

/* 手机 */
@media (max-width: 600px){
  .container{
    width:94vw;
    padding:12px 0;
  }

  .hero h1{
    font-size:22px !important;
  }

  .rainbow-title{
    font-size:34px !important;
  }

  .card{
    padding:10px;
  }

  .table th,
  .table td{
    padding:8px 6px;
    font-size:12px;
  }

  .shop-page .shop-grid{
    grid-template-columns:1fr;
  }

  .shop-page .shop-goods-card{
    min-height:270px;
  }

  .shop-page .shop-item-img{
    height:150px;
  }

  .hot-deck-wrap{
    min-height:330px;
  }

  .hot-featured-cluster{
    width:460px;
    height:290px;
  }

  .hot-lane{
    width:calc((100% - 460px) / 2);
    min-width:120px;
  }

  .hot-deck-card.featured-1{
    width:160px;
    height:250px;
    transform:translateX(-50%) translateX(-130px) rotate(-4deg);
  }

  .hot-deck-card.featured-2{
    width:176px;
    height:268px;
  }

  .hot-deck-card.featured-3{
    width:156px;
    height:242px;
    transform:translateX(-50%) translateX(130px) rotate(4deg);
  }

  .hot-right-track .stack-card,
  .hot-left-track .left-card{
    width:126px;
    height:214px;
    margin-left:-86px;
  }

  .hot-deck-card.featured-1 .hot-stack-imgbox{
    height:145px;
  }

  .hot-deck-card.featured-2 .hot-stack-imgbox{
    height:156px;
  }

  .hot-deck-card.featured-3 .hot-stack-imgbox{
    height:140px;
  }

  .hot-stack-imgbox{
    height:128px;
  }

  .hot-stack-info .ok{
    font-size:13px;
  }
}

/* 顶部三栏布局 */
.home-top{
  grid-template-columns: 1.18fr .72fr .90fr;
  align-items: stretch;
}

.home-top > .card{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 榜单卡 */
.rank-card{
  position: relative;
  overflow: hidden;
  padding: 16px !important;
  background:
    linear-gradient(180deg, rgba(18,28,52,.98), rgba(8,12,24,.96));
  border: 1px solid rgba(255,79,216,.16);
  box-shadow:
    0 0 0 1px rgba(139,92,246,.08) inset,
    0 12px 40px rgba(0,0,0,.35),
    0 0 30px rgba(255,79,216,.08);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.rank-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  background:linear-gradient(135deg,
    rgba(255,79,216,.10),
    transparent 25%,
    transparent 75%,
    rgba(52,245,255,.10));
  opacity:.55;
}

.rank-head{
  position: relative;
  z-index: 1;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  margin-bottom: 12px;
}

.rank-head h3{
  margin: 4px 0 0 !important;
  font-size: 20px;
  letter-spacing: 1px;
}

.countdown-box{
  min-width: 168px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(52,245,255,.18);
  background: linear-gradient(180deg, rgba(4,8,18,.96), rgba(8,12,24,.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  text-align: center;
}

.countdown-label{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.countdown{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(52,245,255,.2);
}

.rank-list{
  position: relative;
  z-index: 1;
  display:flex;
  flex-direction:column;
  gap: 8px;
  overflow:auto;
  padding-right: 4px;
  flex: 1;
}

.rank-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  transition: .18s ease;
}

.rank-item:hover{
  background: rgba(52,245,255,.05);
  border-color: rgba(52,245,255,.16);
  transform: translateY(-1px);
}

.rank-no{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#04111a;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 16px rgba(52,245,255,.12);
  flex: 0 0 auto;
}

.rank-item.top-1 .rank-no{
  background: linear-gradient(135deg, #ffe66d, #ffb703);
}

.rank-item.top-2 .rank-no{
  background: linear-gradient(135deg, #d0d7ff, #8ea2ff);
}

.rank-item.top-3 .rank-no{
  background: linear-gradient(135deg, #ff9f9f, #ff4fd8);
}

.rank-meta{
  flex: 1;
  min-width: 0;
}

.rank-name{
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-stat{
  text-align:right;
  min-width: 96px;
}

.rank-stat .ok{
  font-size: 15px;
  font-weight: 800;
}

.rank-stat .small{
  margin-top: 2px;
}

.rank-empty{
  padding: 18px 10px;
  text-align:center;
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}

@media (max-width: 1100px){
  .home-top{
    grid-template-columns: 1fr;
  }

  .home-top > .card{
    min-height: auto;
  }

  .rank-card{
    min-height: auto;
  }
}

@media (max-width: 600px){
  .rank-head{
    flex-direction: column;
  }

  .countdown-box{
    width: 100%;
    min-width: 0;
  }

  .countdown{
    font-size: 18px;
  }

  .rank-stat{
    min-width: 84px;
  }

  .rank-name{
    font-size: 14px;
  }
}

/* ===== SpeedShop 彩灯霓虹字 ===== */
.brand-rainbow{
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg,
    #ff4fd8,
    #ffe66d,
    #34f5ff,
    #8b5cf6,
    #00e5a8,
    #ff7a59,
    #ff4fd8
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowShift 4s linear infinite;
  text-shadow:
    0 0 8px rgba(52,245,255,.15),
    0 0 16px rgba(255,79,216,.12);
}

@keyframes rainbowShift{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 300% 50%; }
}

.nav{
display:flex;
align-items:center;
gap:14px;
}

.nav-notice{
flex:1;
min-width:0;
max-width:420px;
overflow:hidden;
height:36px;
border-radius:999px;
border:1px solid rgba(52,245,255,.18);
background:rgba(255,255,255,.04);
display:flex;
align-items:center;
box-shadow:0 0 18px rgba(52,245,255,.06);
}

.nav-notice-viewport{
position:relative;
width:100%;
height:36px;
overflow:hidden;
padding:0 10px;
}

.nav-notice-track{
display:block !important;
width:100% !important;
white-space:normal !important;
transform:none !important;
animation:none !important;
}

.nav-notice-track.notice-anim{
animation:none !important;
}

.notice-text{
display:block !important;
width:100% !important;
line-height:36px !important;
color:#8ff8ff !important;
font-size:13px !important;
letter-spacing:1px !important;
white-space:nowrap !important;
overflow:hidden !important;
text-overflow:ellipsis !important;
}


/* ===== 左侧至尊神豪榜 ===== */
.hero-boss{
  min-height:460px;
  justify-content:flex-start;
  align-items:stretch;
  text-align:left;
  padding:14px 16px !important;
  background:
    linear-gradient(135deg, rgba(52,245,255,.10), rgba(139,92,246,.12)),
    rgba(9,13,26,.92);
  overflow:hidden;
}

.hero-boss::before,
.hero-boss::after{
  display:none;
}

.hero-main-center{
  flex:0 0 auto;
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
}

.hero-title-center{
  margin:0 !important;
  text-align:left;
  font-size:32px !important;
  line-height:1.05 !important;
}

.rainbow-title{
  background: linear-gradient(90deg,
    #31f5ff,
    #8b5cf6,
    #ff4fd8,
    #ffe66d,
    #00e5a8,
    #31f5ff
  );
  background-size:300% 300%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-weight:900;
  animation: rainbowShift 5s linear infinite;
  text-shadow:0 0 18px rgba(49,245,255,.14);
}

.hero-topline{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:10px;
}

.hero-countdown-box{
  min-width:182px;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid rgba(52,245,255,.18);
  background:rgba(4,8,18,.78);
  text-align:center;
  flex:0 0 auto;
}

.hero-countdown-box .countdown-label{
  font-size:12px;
  margin-bottom:4px;
}

.hero-countdown-box .countdown{
  font-size:18px;
  font-weight:900;
}

.hero-actions-4{
  width:100%;
  max-width:620px;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:8px;
  margin-top:0;
}

.hero-btn{
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.2px;
  transition:.2s ease;
  box-shadow:0 0 18px rgba(52,245,255,.08);
}

.hero-btn-mini{
  width:100%;
  height:34px;
  padding:0;
  line-height:34px;
}

.hero-btn:hover{
  transform:translateY(-2px);
  filter:brightness(1.08);
}

.hero-desc{
  margin-top:0;
  text-align:left;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
  max-width:420px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.hero-bottom{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-top:auto;
}

.hero-bottom-split{
  width:100%;
}

/* 榜单内容 */
.hero-rank{
  flex:1;
  display:flex;
  min-height:0;
  margin-top:4px;
}

.rank-panel{
  width:100%;
  height:100%;
  border-radius:0;
  background:transparent;
  border:none;
  padding:0;
  box-shadow:none;
  overflow:hidden;
}

.rank-list{
  display:flex;
  flex-direction:column;
  gap:7px;
  height:100%;
}

.rank-item{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:10px;
  padding:3px 0;
  border:none;
  background:transparent;
  box-shadow:none;
  transition:.18s ease;
}

.rank-item:hover{
  background:transparent;
  transform:translateY(-1px);
  border:none;
}

.rank-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.rank-no{
  width:28px;
  height:28px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#04111a;
  flex:0 0 auto;
  box-shadow:none;
  font-size:14px;
}

.rank-name{
  font-size:14px;
  font-weight:800;
  color:#eef9ff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:280px;
}

.rank-coin{
  margin-left:8px;
  color:#9df9ff;
  font-weight:800;
  font-size:13px;
  white-space:nowrap;
}

/* 1~10 名颜色 */
.rank-item.rank-1 .rank-no{background:linear-gradient(135deg,#ffe66d,#ffb703);}
.rank-item.rank-2 .rank-no{background:linear-gradient(135deg,#d7e1ff,#8ea2ff);}
.rank-item.rank-3 .rank-no{background:linear-gradient(135deg,#ff9f9f,#ff4fd8);}
.rank-item.rank-4 .rank-no{background:linear-gradient(135deg,#34f5ff,#00e5a8);}
.rank-item.rank-5 .rank-no{background:linear-gradient(135deg,#8b5cf6,#34f5ff);}
.rank-item.rank-6 .rank-no{background:linear-gradient(135deg,#ff7a59,#ffe66d);}
.rank-item.rank-7 .rank-no{background:linear-gradient(135deg,#66d9ff,#8b5cf6);}
.rank-item.rank-8 .rank-no{background:linear-gradient(135deg,#b3ffb3,#00e5a8);}
.rank-item.rank-9 .rank-no{background:linear-gradient(135deg,#c6a5ff,#ff7ad9);}
.rank-item.rank-10 .rank-no{background:linear-gradient(135deg,#8fa3c7,#5b6b8c); color:#08111d;}

/* 右边玩家信息模块固定 500 */
.info-card{
  width:500px;
  max-width:500px;
  min-height:460px;
}

/* 顶部整体布局 */
.home-top{
  grid-template-columns:minmax(0,1fr) 500px;
  align-items:stretch;
}

.home-top > .card{
  height:100%;
  display:flex;
  flex-direction:column;
}

/* 热卖商品区 */
.hot-section{
  padding:12px;
  overflow:visible;
}

.hot-deck-wrap{
  position:relative;
  overflow:hidden;
  padding:20px 6px 26px;
  min-height:540px;
  border-radius:16px;
}

.hot-deck{
  position:relative;
  min-height:500px;
  width:100%;
  overflow:hidden;
}

/* 左右两侧固定跑马灯区域 */
.hot-lane{
  position:absolute;
  top:0;
  bottom:0;
  width:calc((100% - 560px) / 2);
  min-width:180px;
  z-index:15;
  display:flex;
  flex-direction:column;
}

.hot-left-lane{
  left:0;
  padding-right:12px;
}

.hot-right-lane{
  right:0;
  padding-left:12px;
}

/* 左右标签 */
.hot-side-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(52,245,255,.16), rgba(139,92,246,.16));
  border:1px solid rgba(52,245,255,.22);
  color:#dffcff;
  font-size:12px;
  font-weight:800;
  letter-spacing:1px;
  margin-bottom:10px;
  box-shadow:0 0 18px rgba(52,245,255,.08);
}

.hot-side-label-left{
  align-self:flex-start;
}

.hot-side-label-right{
  align-self:flex-end;
}

/* 左右跑马灯容器 */
.hot-left-marquee,
.hot-right-marquee{
  position:relative;
  flex:1;
  overflow:hidden;
  border-radius:16px;
}

.hot-left-marquee{
  -webkit-mask-image:linear-gradient(to left, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image:linear-gradient(to left, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.hot-right-marquee{
  -webkit-mask-image:linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image:linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.hot-left-track,
.hot-right-track{
  display:flex;
  width:max-content;
  align-items:flex-start;
  gap:0;
  will-change:transform;
}

/* 左边向中间跑 */
.hot-left-track{
  animation:hotMarquee 34s linear infinite;
  animation-direction:reverse;
}

/* 右边向中间跑 */
.hot-right-track{
  animation:hotMarquee 34s linear infinite;
}

.hot-left-marquee:hover .hot-left-track,
.hot-right-marquee:hover .hot-right-track{
  animation-play-state:paused;
}

@keyframes hotMarquee{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

/* 中间主推 */
.hot-featured-cluster{
  position:absolute;
  left:50%;
  top:0;
  transform:translateX(-50%);
  width:560px;
  height:430px;
  z-index:25;
}

/* 单张卡 */
.hot-deck-card{
  position:absolute;
  top:0;
  width:180px;
  height:300px;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:8px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(14,20,38,.98), rgba(8,12,24,.96));
  border:1px solid rgba(52,245,255,.14);
  box-shadow:
    0 0 18px rgba(52,245,255,.08),
    0 0 42px rgba(139,92,246,.06);
  opacity:.96;
  cursor:pointer;
  text-decoration:none;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    opacity .22s ease,
    filter .22s ease;
  will-change:transform;
  flex:0 0 auto;
  transform-origin:center center;
}

.hot-deck-card.featured{
  border-color:rgba(52,245,255,.28);
  box-shadow:
    0 0 24px rgba(52,245,255,.12),
    0 0 52px rgba(139,92,246,.08);
}

/* 三张主推 */
.hot-deck-card.featured-1{
  left:50%;
  top:0;
  width:224px;
  height:338px;
  transform:translateX(-50%) translateX(-180px) rotate(-4deg);
  z-index:40;
}

.hot-deck-card.featured-2{
  left:50%;
  top:0;
  width:244px;
  height:364px;
  transform:translateX(-50%);
  z-index:50;
}

.hot-deck-card.featured-3{
  left:50%;
  top:0;
  width:224px;
  height:338px;
  transform:translateX(-50%) translateX(180px) rotate(4deg);
  z-index:35;
}

.hot-deck-card.featured-1 .hot-stack-imgbox{
  height:220px;
}

.hot-deck-card.featured-2 .hot-stack-imgbox{
  height:234px;
}

.hot-deck-card.featured-3 .hot-stack-imgbox{
  height:220px;
}

/* 跑马灯卡 */
.hot-right-track .stack-card,
.hot-left-track .left-card{
  position:relative !important;
  left:auto;
  top:auto;
  width:160px;
  height:270px;
  margin-left:-118px;
  z-index:1;
}

.hot-right-track .stack-card:first-child,
.hot-left-track .left-card:first-child{
  margin-left:0;
}

.hot-deck-card:hover,
.hot-deck-card.hovered{
  opacity:1;
  z-index:999 !important;
  box-shadow:
    0 0 24px rgba(52,245,255,.16),
    0 0 52px rgba(139,92,246,.14),
    0 18px 48px rgba(0,0,0,.38);
  filter:brightness(1.08) saturate(1.12);
}

.hot-deck-card.featured-1:hover,
.hot-deck-card.featured-1.hovered{
  transform:translateX(-50%) translateX(-200px) translateY(-18px) rotate(-4deg) scale(1.05) !important;
}

.hot-deck-card.featured-2:hover,
.hot-deck-card.featured-2.hovered{
  transform:translateX(-50%) translateY(-18px) scale(1.05) !important;
}

.hot-deck-card.featured-3:hover,
.hot-deck-card.featured-3.hovered{
  transform:translateX(-50%) translateX(200px) translateY(-18px) rotate(4deg) scale(1.05) !important;
}

.hot-right-track .stack-card:hover,
.hot-right-track .stack-card.hovered,
.hot-left-track .left-card:hover,
.hot-left-track .left-card.hovered{
  transform:translateY(-18px) scale(1.06) !important;
}

/* 图片区域 */
.hot-stack-imgbox{
  width:100%;
  height:175px;
  overflow:hidden;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:#09111f;
}

.hot-stack-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hot-stack-info{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:2px 2px 0;
  flex:1;
}

.hot-stack-info h4{
  margin:0;
  font-size:15px;
  line-height:1.25;
  color:var(--text);
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.hot-stack-info .small{
  color:var(--muted);
  font-size:12px;
}

.hot-stack-info .ok{
  color:var(--success);
  font-weight:700;
  font-size:14px;
  text-shadow:0 0 10px rgba(0,229,168,.18);
}

.hot-buy-text{
  margin-top:auto;
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--cyan),var(--purple));
  color:#04111a;
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
}

/* ========= 最终首页覆盖修正 ========= */

/* 顶部整体模块固定结构，右边 500 宽 */
.home-top{
  grid-template-columns: minmax(0, 1fr) 500px !important;
  align-items: stretch !important;
}

.home-top > .card{
  height:100% !important;
  display:flex !important;
  flex-direction:column !important;
}

/* 右侧玩家信息固定宽度 */
.info-card{
  width:500px !important;
  max-width:500px !important;
  min-height:460px !important;
}

/* 左侧神豪榜模块高度与布局 — 整模块霓虹边框版 */
.hero-neon,
.hero-boss{
  min-height:460px !important;
  padding:0 !important;
  overflow:visible !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

.hero-boss{
  justify-content:flex-start !important;
  align-items:stretch !important;
  text-align:left !important;
}

/* 标题 */
.hero-title-center{
  font-size:26px !important;
  line-height:1.05 !important;
  margin:0 !important;
  text-align:left !important;
}

/* 标题行 */
.hero-topline{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:10px !important;
  margin-bottom:8px !important;
}

.hero-countdown-box .countdown-label{
  font-size:12px !important;
  margin-bottom:4px !important;
}

.hero-countdown-box .countdown{
  font-size:18px !important;
  font-weight:900 !important;
}

/* 榜单更靠左、字体放大 */
.hero-rank{
  flex:1 !important;
  display:flex !important;
  min-height:0 !important;
  margin-top:4px !important;
}

.rank-panel{
  width:100% !important;
  height:100% !important;
  border-radius:0 !important;
  background:transparent !important;
  border:none !important;
  padding:0 !important;
  box-shadow:none !important;
  overflow:hidden !important;
}

.rank-list{
  gap:4px !important;
  padding-right:0 !important;
  overflow:hidden !important;
}

.rank-item{
  gap:10px !important;
  padding:2px 4px !important;
  justify-content:flex-start !important;
  border:none !important;
  border-radius:8px !important;
  background:transparent !important;
}

.rank-left{
  gap:10px !important;
}

.rank-no{
  width:28px !important;
  height:28px !important;
  font-size:14px !important;
  border-radius:50% !important;
}

.rank-name{
  font-size:14px !important;
  font-weight:800 !important;
  max-width:280px !important;
}

.rank-coin{
  font-size:13px !important;
  margin-left:8px !important;
}

/* 底部按钮区 */
.hero-bottom{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  margin-top:auto !important;
  padding-top:6px !important;
  flex-wrap:nowrap !important;
}

.hero-actions-6{
  width:100% !important;
  display:flex !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
}

.hero-actions-6 .hero-btn,
.hero-actions-6 .hero-btn-mini{
  flex:1 1 0 !important;
  min-width:0 !important;
  height:34px !important;
  line-height:34px !important;
  padding:0 !important;
  font-size:12px !important;
  white-space:nowrap !important;
  color:#111 !important;
  font-weight:900 !important;
}

/* 进入商城 HOT 标签 */
.shop-badge{
  position:absolute;
  top:-9px;
  left:-4px;
  background:linear-gradient(135deg, #ff4444, #ff1744);
  color:#fff !important;
  font-size:9px;
  font-weight:900;
  padding:1px 6px;
  border-radius:4px;
  line-height:1.3;
  z-index:3;
  box-shadow:0 2px 6px rgba(255,0,0,0.3);
  letter-spacing:0.5px;
  animation:badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse{
  0%,100%{ transform:scale(1) rotate(-6deg); }
  50%{ transform:scale(1.08) rotate(-6deg); }
}

/* 倒计时外框 */
.countdown-frame{
  flex:0 0 auto;
  border:1px solid rgba(52,245,255,0.35);
  border-radius:10px;
  padding:6px 10px 8px;
  background:linear-gradient(180deg, rgba(8,14,32,0.96), rgba(4,8,20,0.98));
  box-shadow:0 0 16px rgba(52,245,255,0.1), inset 0 0 0 1px rgba(52,245,255,0.06);
  position:relative;
  overflow:hidden;
}
.countdown-frame::before{
  content:'';
  position:absolute;
  top:-1px;
  left:20%;
  right:20%;
  height:2px;
  background:linear-gradient(90deg, transparent, rgba(52,245,255,0.6), transparent);
  border-radius:2px;
}
.countdown-frame-label{
  font-size:10px;
  color:#8fa3c7;
  text-align:center;
  letter-spacing:2px;
  margin-bottom:4px;
  font-weight:700;
}

/* 响应式 */
@media (max-width: 1100px){
  .nav{
    flex-direction:column;
    align-items:stretch;
  }

  .nav-user{
    justify-content:flex-start;
  }

  .nav-notice{
    width:100%;
    max-width:none !important;
  }

  .home-top{
    grid-template-columns:1fr !important;
  }

  .info-card{
    width:100% !important;
    max-width:100% !important;
  }

  .hero-bottom{
    flex-direction:column !important;
    align-items:flex-start !important;
  }

  .hero-desc{
    max-width:none !important;
    white-space:normal !important;
  }
}

@media (max-width: 600px){
  .hero-title-center{
    font-size:22px !important;
  }

  .hero-actions-4{
    grid-template-columns:repeat(2, 1fr) !important;
  }

  .hero-desc{
    white-space:normal !important;
  }
}

@media (max-width: 1100px){
  .hero-actions-6{
    grid-template-columns:repeat(3, 1fr) !important;
  }
}

@media (max-width: 600px){
  .hero-actions-6{
    grid-template-columns:repeat(2, 1fr) !important;
  }
}

/* =========================================================
   商城页面专属修复版
   作用：
   1. 修复商城页面过大
   2. 修复商品图片被裁切、不清楚
   3. 修复卡片过宽
   4. 修复不同分辨率下显示比例
========================================================= */

.shop-page{
  width: min(1280px, 94vw);
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 0 28px;
}

/* 顶部导航 */
.shop-page .nav{
  margin-bottom: 16px;
}

.shop-page .brand{
  font-size: 20px;
}

/* 筛选区域 */
.shop-filter-card{
  margin-top: 0;
  padding: 12px;
}

.shop-filter-form{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.shop-filter-form select{
  width: 200px;
  flex: 0 0 200px;
}

.shop-filter-form .input{
  flex: 1;
  min-width: 160px;
}

.shop-filter-form .btn{
  flex: 0 0 auto;
}

/* 商品网格 */
.shop-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* 商品卡片 */
.shop-goods-card{
  padding: 12px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 14px;
}

/* 商品上半部分 */
.shop-goods-card .goods-top{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

/* 图片外层 */
.shop-img-box{
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 商品图片 */
.shop-item-img{
  width: 100%;
  max-width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
}

/* 商品标题 */
.shop-goods-card h3{
  width: 100%;
  font-size: 15px;
  line-height: 1.35;
  margin: 10px 0 4px !important;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

/* 分类文字 */
.shop-goods-card .small{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* 底部价格和购买按钮 */
.shop-goods-card .goods-bottom{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shop-goods-card .goods-bottom .ok{
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.shop-goods-card .goods-bottom .btn{
  margin-top: 0;
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

/* 没有商品 */
.shop-empty{
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 36px;
}

/* =========================
   大屏：仍然保持 5 列，不再过大
========================= */
@media (min-width: 1600px){
  .shop-page{
    width: min(1280px, 90vw);
    max-width: 1280px;
  }

  .shop-grid{
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .shop-goods-card{
    min-height: 260px;
  }

  .shop-img-box{
    height: 150px;
  }

  .shop-item-img{
    max-width: 150px;
    height: 150px;
  }
}

/* =========================
   中等屏幕
========================= */
@media (max-width: 1400px){
  .shop-page{
    width: min(1180px, 94vw);
  }

  .shop-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* =========================
   平板
========================= */
@media (max-width: 1100px){
  .shop-page{
    width: 94vw;
  }

  .shop-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-filter-form{
    flex-wrap: wrap;
  }

  .shop-filter-form select{
    width: 200px;
    flex: 0 0 200px;
  }

  .shop-filter-form .input{
    flex: 1 1 260px;
  }
}

/* =========================
   小屏
========================= */
@media (max-width: 768px){
  .shop-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .shop-goods-card{
    min-height: 240px;
    padding: 10px;
  }

  .shop-img-box{
    height: 130px;
  }

  .shop-item-img{
    max-width: 130px;
    height: 130px;
  }

  .shop-goods-card h3{
    font-size: 14px;
    min-height: 38px;
  }

  .shop-goods-card .goods-bottom .ok{
    font-size: 13px;
  }

  .shop-goods-card .goods-bottom .btn{
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* =========================
   手机
========================= */
@media (max-width: 600px){
  .shop-page{
    width: 94vw;
    padding-top: 12px;
  }

  .shop-page .nav{
    align-items: stretch;
  }

  .shop-page .brand{
    font-size: 18px;
  }

  .shop-filter-form{
    flex-direction: column;
    align-items: stretch;
  }

  .shop-filter-form select,
  .shop-filter-form .input,
  .shop-filter-form .btn{
    width: 100%;
    flex: none;
  }

  .shop-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .shop-goods-card{
    min-height: 230px;
  }

  .shop-img-box{
    height: 140px;
  }

  .shop-item-img{
    max-width: 140px;
    height: 140px;
  }

  .shop-goods-card .goods-bottom{
    justify-content: space-between;
  }
}

/* =========================================================
   幸运抽奖 - 10连抽跑马灯动画
   只控制前端动画效果，不影响抽奖逻辑
========================================================= */

/* 跑马灯激活状态 */
.marquee-cell.active,
.marquee-cell.is-active {
    z-index: 10;
    transform: translate(-50%, -50%) scale(1.12);
    border-color: rgba(126,252,255,.95);
    background: rgba(126,252,255,.18);
    filter: brightness(1.18);
    box-shadow:
        0 0 24px rgba(126,252,255,.68),
        0 0 42px rgba(126,252,255,.24),
        inset 0 0 18px rgba(126,252,255,.18);
}

/* 单抽命中闪烁 */
.marquee-cell.hit,
.marquee-cell.is-hit {
    z-index: 20;
    animation: prizeHitFlash .14s linear infinite alternate;
}

/* 减速抖动 */
.marquee-cell.shake,
.marquee-cell.is-shake {
    animation: slotShake .08s linear infinite alternate;
}

/* 10连抽单次命中 */
.marquee-cell.is-ten-hit {
    z-index: 25;
    animation: tenHitPulse .18s ease-in-out 2;
}

/* 10连抽命中后的余光 */
.marquee-cell.is-ten-fade {
    animation: tenHitFade .28s ease-out forwards;
}

/* 10连抽命中脉冲动画 */
@keyframes tenHitPulse {
    0% {
        transform: translate(-50%, -50%) scale(1.02);
        filter: brightness(1);
        border-color: rgba(126,252,255,.45);
        background: rgba(126,252,255,.08);
        box-shadow:
            0 0 8px rgba(126,252,255,.22),
            inset 0 0 8px rgba(126,252,255,.05);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.18);
        filter: brightness(1.55) saturate(1.28);
        border-color: rgba(255,218,90,.98);
        background: rgba(255,218,90,.16);
        box-shadow:
            0 0 30px rgba(255,218,90,.78),
            0 0 56px rgba(255,80,220,.28),
            0 0 72px rgba(126,252,255,.16),
            inset 0 0 20px rgba(255,255,255,.12);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.10);
        filter: brightness(1.18);
        border-color: rgba(126,252,255,.85);
        background: rgba(126,252,255,.13);
        box-shadow:
            0 0 22px rgba(126,252,255,.42),
            inset 0 0 12px rgba(126,252,255,.12);
    }
}

/* 10连抽命中余光淡出 */
@keyframes tenHitFade {
    0% {
        opacity: 1;
        filter: brightness(1.25);
    }

    100% {
        opacity: .82;
        filter: brightness(1);
    }
}


/* =========================================================
   幸运抽奖 - 10连抽同时跑马灯动画
========================================================= */

/* 10连抽同时运行中的格子 */
.marquee-cell.is-ten-running {
    z-index: 18;
    transform: translate(-50%, -50%) scale(1.08);
    border-color: rgba(126,252,255,.92);
    background: rgba(126,252,255,.14);
    filter: brightness(1.2);
    animation: tenRunningPulse .42s ease-in-out infinite alternate;
}

/* 10连抽减速抖动 */
.marquee-cell.is-ten-shake {
    animation: tenRunningPulse .28s ease-in-out infinite alternate, slotShake .08s linear infinite alternate;
}

/* 10连抽最终同时命中 */
.marquee-cell.is-ten-final-hit {
    z-index: 30;
    transform: translate(-50%, -50%) scale(1.18);
    border-color: rgba(255,218,90,.98);
    background: rgba(255,218,90,.18);
    filter: brightness(1.55) saturate(1.3);
    animation: tenFinalHitFlash .16s linear infinite alternate;
}

/* 10连抽运行脉冲 */
@keyframes tenRunningPulse {
    from {
        box-shadow:
            0 0 14px rgba(126,252,255,.32),
            inset 0 0 10px rgba(126,252,255,.08);
    }

    to {
        box-shadow:
            0 0 26px rgba(126,252,255,.68),
            0 0 42px rgba(126,252,255,.22),
            inset 0 0 18px rgba(126,252,255,.14);
    }
}

/* 10连抽最终命中闪烁 */
@keyframes tenFinalHitFlash {
    from {
        box-shadow:
            0 0 26px rgba(255,218,90,.58),
            0 0 44px rgba(126,252,255,.18),
            inset 0 0 16px rgba(255,218,90,.12);
    }

    to {
        box-shadow:
            0 0 42px rgba(255,218,90,.96),
            0 0 76px rgba(255,80,220,.36),
            0 0 96px rgba(126,252,255,.18),
            inset 0 0 24px rgba(255,255,255,.18);
    }
}

/* 结算道具名字颜色 */
.lottery-name-normal {
    color: #ffffff !important;
}

.lottery-name-xiyou {
    color: #ff7be8 !important;
    text-shadow: 0 0 10px rgba(255,123,232,.42);
}

.lottery-name-ultimate {
    color: #ffd85a !important;
    text-shadow:
        0 0 10px rgba(255,216,90,.55),
        0 0 18px rgba(255,174,0,.32);
}


/* ===============================
   结算道具名字颜色
   普通：白色
   S：粉色
   SSR：金色
================================ */

.lottery-name-normal {
    color: #ffffff !important;
}

.lottery-name-s {
    color: #ff7be8 !important;
    text-shadow:
        0 0 8px rgba(255, 123, 232, .55),
        0 0 16px rgba(255, 123, 232, .28);
}

.lottery-name-ssr {
    color: #ffd85a !important;
    text-shadow:
        0 0 10px rgba(255, 216, 90, .65),
        0 0 20px rgba(255, 174, 0, .35);
}


/* ===============================
   跑马灯跑动时品质闪光
   active 到 S：粉色 70% 透明闪烁
   active 到 SSR：金色 70% 透明闪烁
================================ */

/* S 级跑马灯激活闪粉色光 */
.marquee-cell.quality-s.active,
.marquee-cell.quality-s.is-active,
.marquee-cell.quality-s.is-ten-running {
    border-color: rgba(255, 123, 232, .70) !important;
    background: rgba(255, 123, 232, .12) !important;
    animation: marqueePinkGlow .42s ease-in-out infinite alternate;
}

/* SSR 跑马灯激活闪金色光 */
.marquee-cell.quality-ssr.active,
.marquee-cell.quality-ssr.is-active,
.marquee-cell.quality-ssr.is-ten-running {
    border-color: rgba(255, 216, 90, .70) !important;
    background: rgba(255, 216, 90, .14) !important;
    animation: marqueeGoldGlow .42s ease-in-out infinite alternate;
}

/* S 级命中时加强粉色光 */
.marquee-cell.quality-s.hit,
.marquee-cell.quality-s.is-hit,
.marquee-cell.quality-s.is-ten-final-hit {
    border-color: rgba(255, 123, 232, .92) !important;
    background: rgba(255, 123, 232, .18) !important;
    animation: marqueePinkHitGlow .16s linear infinite alternate;
}

/* SSR 命中时加强金色光 */
.marquee-cell.quality-ssr.hit,
.marquee-cell.quality-ssr.is-hit,
.marquee-cell.quality-ssr.is-ten-final-hit {
    border-color: rgba(255, 216, 90, .95) !important;
    background: rgba(255, 216, 90, .20) !important;
    animation: marqueeGoldHitGlow .16s linear infinite alternate;
}


/* 粉色跑动光，整体透明度控制在约 70% */
@keyframes marqueePinkGlow {
    from {
        filter: brightness(1.08) saturate(1.12);
        box-shadow:
            0 0 12px rgba(255, 123, 232, .35),
            0 0 26px rgba(255, 123, 232, .18),
            inset 0 0 10px rgba(255, 123, 232, .12);
    }

    to {
        filter: brightness(1.32) saturate(1.22);
        box-shadow:
            0 0 20px rgba(255, 123, 232, .70),
            0 0 42px rgba(255, 123, 232, .35),
            inset 0 0 16px rgba(255, 123, 232, .18);
    }
}

/* 金色跑动光，整体透明度控制在约 70% */
@keyframes marqueeGoldGlow {
    from {
        filter: brightness(1.10) saturate(1.12);
        box-shadow:
            0 0 12px rgba(255, 216, 90, .35),
            0 0 26px rgba(255, 174, 0, .18),
            inset 0 0 10px rgba(255, 216, 90, .12);
    }

    to {
        filter: brightness(1.36) saturate(1.24);
        box-shadow:
            0 0 22px rgba(255, 216, 90, .70),
            0 0 46px rgba(255, 174, 0, .36),
            inset 0 0 18px rgba(255, 216, 90, .20);
    }
}

/* S 级命中粉色强闪 */
@keyframes marqueePinkHitGlow {
    from {
        filter: brightness(1.25) saturate(1.18);
        box-shadow:
            0 0 18px rgba(255, 123, 232, .50),
            0 0 36px rgba(255, 123, 232, .25),
            inset 0 0 14px rgba(255, 123, 232, .16);
    }

    to {
        filter: brightness(1.65) saturate(1.35);
        box-shadow:
            0 0 32px rgba(255, 123, 232, .88),
            0 0 62px rgba(255, 123, 232, .45),
            inset 0 0 22px rgba(255, 255, 255, .16);
    }
}

/* SSR 命中金色强闪 */
@keyframes marqueeGoldHitGlow {
    from {
        filter: brightness(1.28) saturate(1.18);
        box-shadow:
            0 0 20px rgba(255, 216, 90, .52),
            0 0 40px rgba(255, 174, 0, .25),
            inset 0 0 14px rgba(255, 216, 90, .16);
    }

    to {
        filter: brightness(1.72) saturate(1.36);
        box-shadow:
            0 0 36px rgba(255, 216, 90, .92),
            0 0 70px rgba(255, 174, 0, .48),
            inset 0 0 24px rgba(255, 255, 255, .18);
    }
}


body {
    background: linear-gradient(135deg, #07111f, #0b1328 55%, #101a35);
    color: #fff;
}

.container {
    max-width: 1500px;
}

h2 {
    margin: 18px 0 12px;
    font-size: 24px;
    font-weight: 800;
    color: #7efcff;
    text-shadow: 0 0 12px rgba(126,252,255,.35);
}

a {
    color: #7efcff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.admin-links,
.filter-bar,
.panel,
.table-wrap,
.stats-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(0,255,255,.12);
    border-radius: 16px;
    box-shadow: 0 0 24px rgba(0,255,255,.06);
}

.admin-links {
    margin-bottom: 16px;
    padding: 14px 16px;
    color: rgba(255,255,255,.75);
}

.filter-bar {
    margin-bottom: 16px;
    padding: 14px 16px;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}

input,
select,
textarea {
    border-radius: 10px;
    border: 1px solid rgba(0,255,255,.14);
    background: rgba(255,255,255,.05);
    color: #fff;
    padding: 0 12px;
    outline: none;
    box-sizing: border-box;
}

input,
select {
    height: 38px;
}

textarea {
    padding: 12px;
    line-height: 1.7;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,.45);
}

select option {
    background: #101a35;
    color: #fff;
}

button,
.btn {
    height: 38px;
    border: 0;
    border-radius: 10px;
    padding: 0 14px;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(90deg, #00d4ff, #7e5cff);
}

.table-wrap {
    width: 100%;
    padding: 0;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    border: 0;
    color: rgba(255,255,255,.88);
}

.admin-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(8, 14, 30, .98);
    color: #bff7ff;
    font-weight: 700;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 12px 10px;
    text-align: left;
    white-space: nowrap;
}

.admin-table td {
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 11px 10px;
    vertical-align: top;
    white-space: nowrap;
}

.admin-table tr:hover td {
    background: rgba(255,255,255,.035);
}

.admin-table textarea {
    min-width: 420px;
    min-height: 150px;
    background: rgba(0,0,0,.18);
}

.message-box,
.error-box {
    margin-bottom: 12px;
    border-radius: 12px;
    padding: 12px 14px;
    line-height: 1.7;
}

.message-box {
    background: rgba(76,217,100,.12);
    border: 1px solid rgba(76,217,100,.25);
    color: #cffff0;
}

.error-box {
    background: rgba(255,90,90,.12);
    border: 1px solid rgba(255,90,90,.25);
    color: #ffd1d1;
}

.panel {
    margin-bottom: 20px;
    padding: 16px;
}

.panel h3 {
    margin: 0 0 12px;
    color: #7efcff;
}

.stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.stat-card {
    min-width: 140px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(0,255,255,.12);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 0 24px rgba(0,255,255,.06);
}

.stat-card .label {
    font-size: 12px;
    color: rgba(255,255,255,.68);
    margin-bottom: 6px;
}

.stat-card .value {
    font-size: 22px;
    font-weight: 800;
    color: #7efcff;
}


.player-wrap {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 16px;
}

.player-panel {
    background: linear-gradient(180deg, rgba(8, 20, 44, 0.96) 0%, rgba(5, 14, 34, 0.96) 100%);
    border: 1px solid rgba(75, 180, 255, 0.25);
    border-radius: 14px;
    padding: 24px;
    box-shadow:
        0 10px 40px rgba(0, 20, 60, 0.55),
        0 0 24px rgba(0, 170, 255, 0.12),
        inset 0 0 0 1px rgba(120, 220, 255, 0.04);
    backdrop-filter: blur(6px);
}

.player-panel h1 {
    margin: 0 0 18px;
    font-size: 24px;
    color: #7fe7ff;
    text-shadow: 0 0 12px rgba(0, 204, 255, 0.35);
}

.player-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.player-tab {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: #e8fbff;
    background: linear-gradient(180deg, #1296db 0%, #0a5da8 100%);
    border: 1px solid rgba(110, 220, 255, 0.25);
    line-height: 1.2;
    font-size: 15px;
    box-shadow: 0 0 16px rgba(0, 153, 255, 0.18);
}

.player-tab.off {
    background: linear-gradient(180deg, #24344f 0%, #18253b 100%);
    color: #97b7d6;
    border: 1px solid rgba(120, 160, 210, 0.18);
}

.player-tab.active {
    background: linear-gradient(180deg, #19c2ff 0%, #0a73d9 100%);
    color: #fff;
    box-shadow: 0 0 18px rgba(0, 204, 255, 0.3);
}

.notice-box {
    background: linear-gradient(180deg, rgba(10, 34, 68, 0.95) 0%, rgba(10, 28, 56, 0.95) 100%);
    border: 1px solid rgba(72, 177, 255, 0.18);
    border-radius: 10px;
    padding: 16px;
    color: #a9dfff;
    line-height: 1.8;
    margin-bottom: 18px;
    box-shadow: inset 0 0 20px rgba(0, 153, 255, 0.05);
}

.notice-box.subtle {
    color: #8fbddb;
}

.message-box {
    background: linear-gradient(180deg, rgba(10, 60, 88, 0.95) 0%, rgba(8, 46, 72, 0.95) 100%);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: #89f7ff;
    border-radius: 10px;
    padding: 14px 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    box-shadow: 0 0 18px rgba(0, 204, 255, 0.08);
}

.error-box {
    background: linear-gradient(180deg, rgba(60, 12, 30, 0.95) 0%, rgba(44, 10, 24, 0.95) 100%);
    border: 1px solid rgba(255, 72, 133, 0.35);
    color: #ff9bbd;
    border-radius: 10px;
    padding: 14px 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    box-shadow: 0 0 16px rgba(255, 0, 102, 0.08);
}

.stats-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.stats-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
    background: linear-gradient(180deg, rgba(9, 28, 54, 0.96) 0%, rgba(8, 22, 42, 0.96) 100%);
    border: 1px solid rgba(74, 164, 255, 0.18);
    border-radius: 10px;
    padding: 14px;
    box-shadow: inset 0 0 16px rgba(0, 136, 255, 0.04);
}

.stat-label {
    color: #78a9d4;
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-value {
    color: #e7fbff;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.18);
    word-break: break-all;
}

.stat-value.stat-green {
    color: #7dffb3;
}

.stat-value.stat-blue {
    color: #7fdfff;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #d9f3ff;
}

.form-row input[type="number"] {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(126, 252, 255, 0.25);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.form-row input[type="number"]:focus {
    outline: none;
    border-color: #00c2ff;
    box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 18px;
}

.quick-btn {
    display: inline-block;
    border: 1px solid rgba(126, 252, 255, 0.22);
    border-radius: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    cursor: pointer;
}

.quick-btn:hover {
    background: rgba(0, 194, 255, 0.18);
    color: #fff;
}

.quick-btn.all {
    background: rgba(22, 119, 255, 0.28);
    color: #dbeafe;
    border-color: rgba(59, 130, 246, 0.45);
}

.submit-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.primary-btn {
    display: inline-block;
    border: 1px solid rgba(125, 233, 255, 0.28);
    border-radius: 10px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #10cfff 0%, #0b6cff 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 0 18px rgba(0, 174, 255, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.primary-btn:hover {
    background: linear-gradient(180deg, #35dbff 0%, #1683ff 100%);
}

.primary-btn:disabled {
    background: linear-gradient(180deg, #31445f 0%, #25354d 100%);
    border-color: rgba(120, 150, 190, 0.16);
    color: #8ea6c3;
    cursor: not-allowed;
    box-shadow: none;
}

.calc {
    color: #9cc3de;
    font-size: 14px;
    line-height: 1.8;
}

.page-foot {
    margin-top: 16px;
    font-size: 14px;
    color: #7ea5c7;
    line-height: 1.8;
}

@media (max-width: 560px) {
    .player-wrap {
        margin: 20px auto;
    }

    .player-panel {
        padding: 18px;
    }

    .stats-grid-2,
    .stats-grid-3 {
        grid-template-columns: 1fr;
    }

    .player-tab {
        flex: 1;
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }

    .primary-btn {
        width: 100%;
    }

    .submit-row {
        display: block;
    }

    .calc {
        margin-top: 12px;
    }
}

.player-actions {
    margin: -8px 0 18px;
}

.secondary-btn {
    display: inline-block;
    border: 1px solid rgba(126, 252, 255, 0.22);
    border-radius: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #d9f3ff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
}

.secondary-btn:hover {
    background: rgba(0, 194, 255, 0.16);
    color: #fff;
}


/* player exchange / signin shared layout */
* {
    box-sizing: border-box;
}

body.speed-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: radial-gradient(circle at top, #16213e 0%, #0f172a 45%, #020617 100%);
    color: #e5f0ff;
}

.speed-wrap {
    width: min(900px, 94vw);
    margin: 0 auto;
    padding: 20px 0 40px;
}

.speed-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(10, 15, 30, .85);
    border: 1px solid rgba(0, 255, 255, .18);
    box-shadow: 0 0 24px rgba(0, 255, 255, .08);
    margin-bottom: 16px;
}

.speed-brand {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(90deg, #34f5ff, #8b5cf6, #ff4fd8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.speed-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.speed-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(52, 245, 255, .14);
    border: 1px solid rgba(52, 245, 255, .2);
    color: #7ff7ff;
    font-size: 12px;
    line-height: 1.4;
}

.speed-link {
    color: #7ff7ff;
    text-decoration: none;
    font-size: 14px;
}

.speed-link:hover {
    color: #fff;
}

.speed-panel {
    padding: 22px;
    border-radius: 20px;
    background: rgba(10, 15, 30, .9);
    border: 1px solid rgba(139, 92, 246, .2);
    box-shadow: 0 0 30px rgba(139, 92, 246, .1);
}

.speed-panel h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.2;
}

.speed-sub {
    color: #a8b8d8;
    line-height: 1.7;
    margin-bottom: 18px;
}

.speed-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.speed-tab {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    color: #7ff7ff;
    background: rgba(52, 245, 255, .1);
    border: 1px solid rgba(52, 245, 255, .18);
}

.speed-tab.active {
    color: #02111a;
    background: linear-gradient(135deg, #34f5ff, #8b5cf6);
    border-color: transparent;
}

.speed-tab.off:hover {
    color: #fff;
    background: rgba(52, 245, 255, .16);
}

.speed-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.speed-info.three {
    grid-template-columns: repeat(3, 1fr);
}

.speed-box {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.speed-k {
    font-size: 12px;
    color: #7dd3fc;
    margin-bottom: 6px;
}

.speed-v {
    font-size: 22px;
    font-weight: 800;
    word-break: break-all;
}

.speed-v.coin {
    color: #00e5a8;
}

.speed-v.reward {
    color: #34f5ff;
}

.speed-form-row {
    margin-bottom: 14px;
}

.speed-form-row label {
    display: block;
    margin-bottom: 8px;
    color: #a8d8ff;
    font-size: 14px;
    font-weight: 800;
}

.speed-input {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(52, 245, 255, .2);
    border-radius: 14px;
    padding: 0 14px;
    background: rgba(255, 255, 255, .05);
    color: #e5f0ff;
    font-size: 16px;
    outline: none;
}

.speed-input::placeholder {
    color: rgba(229, 240, 255, .45);
}

.speed-input:focus {
    border-color: rgba(52, 245, 255, .55);
    box-shadow: 0 0 0 3px rgba(52, 245, 255, .12);
}

.speed-input:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.speed-quick {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 16px;
}

.speed-small-btn {
    border: 1px solid rgba(52, 245, 255, .18);
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(52, 245, 255, .1);
    color: #7ff7ff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.speed-small-btn:hover {
    color: #fff;
    background: rgba(52, 245, 255, .16);
}

.speed-btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    color: #02111a;
    background: linear-gradient(135deg, #34f5ff, #8b5cf6);
}

.speed-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.speed-btn-row {
    display: grid;
    grid-template-columns: minmax(160px, 260px) 1fr;
    gap: 12px;
    align-items: center;
}

.speed-calc {
    color: #a8b8d8;
    line-height: 1.7;
    font-size: 14px;
}

.speed-msg {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    line-height: 1.6;
}

.speed-msg.ok {
    background: rgba(0, 229, 168, .12);
    border: 1px solid rgba(0, 229, 168, .18);
    color: #9effd8;
}

.speed-msg.err {
    background: rgba(255, 77, 109, .12);
    border: 1px solid rgba(255, 77, 109, .18);
    color: #ffb3c1;
}

.speed-foot {
    margin-top: 16px;
    font-size: 14px;
    color: #7f90b3;
    line-height: 1.8;
}

@media (max-width: 640px) {
    .speed-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .speed-nav-actions {
        justify-content: flex-start;
    }

    .speed-panel {
        padding: 18px;
    }

    .speed-panel h1 {
        font-size: 28px;
    }

    .speed-info,
    .speed-info.three {
        grid-template-columns: 1fr;
    }

    .speed-tab {
        flex: 1;
        text-align: center;
    }

    .speed-btn-row {
        grid-template-columns: 1fr;
    }
}



/* ===== 首页热卖三张主推出牌扇形修正 ===== */

.hot-deck-wrap{
  overflow:visible !important;
  min-height:500px !important;
}

.hot-deck{
  overflow:visible !important;
  min-height:450px !important;
}

.hot-featured-cluster{
  position:absolute !important;
  left:50% !important;
  top:8px !important;
  transform:translateX(-50%) !important;
  width:820px !important;
  max-width:820px !important;
  height:400px !important;
  z-index:25 !important;
  display:block !important;
}

.hot-featured-cluster .hot-deck-card{
  position:absolute !important;
  top:auto !important;
  margin:0 !important;
  display:flex !important;
}

/* 第一张：靠左，微微左斜 */
.hot-featured-cluster .hot-deck-card.featured-1{
  left:50% !important;
  top:24px !important;
  width:224px !important;
  height:338px !important;
  transform:translateX(-50%) translateX(-230px) rotate(-7deg) !important;
  z-index:41 !important;
}

/* 第二张：中间，正的，略突出 */
.hot-featured-cluster .hot-deck-card.featured-2{
  left:50% !important;
  top:0 !important;
  width:244px !important;
  height:364px !important;
  transform:translateX(-50%) rotate(0deg) !important;
  z-index:50 !important;
}

/* 第三张：靠右，微微右斜 */
.hot-featured-cluster .hot-deck-card.featured-3{
  left:50% !important;
  top:24px !important;
  width:224px !important;
  height:338px !important;
  transform:translateX(-50%) translateX(230px) rotate(7deg) !important;
  z-index:40 !important;
}

.hot-featured-cluster .hot-deck-card.featured-1 .hot-stack-imgbox,
.hot-featured-cluster .hot-deck-card.featured-3 .hot-stack-imgbox{
  height:220px !important;
}

.hot-featured-cluster .hot-deck-card.featured-2 .hot-stack-imgbox{
  height:234px !important;
}

/* 悬停时保持出牌角度，只轻微抬起 */
.hot-featured-cluster .hot-deck-card.featured-1:hover,
.hot-featured-cluster .hot-deck-card.featured-1.hovered{
  transform:translateX(-50%) translateX(-240px) translateY(-14px) rotate(-7deg) scale(1.04) !important;
  z-index:99 !important;
}

.hot-featured-cluster .hot-deck-card.featured-2:hover,
.hot-featured-cluster .hot-deck-card.featured-2.hovered{
  transform:translateX(-50%) translateY(-16px) rotate(0deg) scale(1.04) !important;
  z-index:100 !important;
}

.hot-featured-cluster .hot-deck-card.featured-3:hover,
.hot-featured-cluster .hot-deck-card.featured-3.hovered{
  transform:translateX(-50%) translateX(240px) translateY(-14px) rotate(7deg) scale(1.04) !important;
  z-index:99 !important;
}




/* 主推三张牌保持现在这个合适间距 */
.hot-featured-cluster .hot-deck-card.featured-1{
  transform:translateX(-50%) translateX(-150px) rotate(-7deg) !important;
  z-index:41 !important;
}

.hot-featured-cluster .hot-deck-card.featured-2{
  transform:translateX(-50%) rotate(0deg) !important;
  z-index:50 !important;
}

.hot-featured-cluster .hot-deck-card.featured-3{
  transform:translateX(-50%) translateX(150px) rotate(7deg) !important;
  z-index:41 !important;
}

.hot-featured-cluster .hot-deck-card.featured-1:hover,
.hot-featured-cluster .hot-deck-card.featured-1.hovered{
  transform:translateX(-50%) translateX(-160px) translateY(-14px) rotate(-7deg) scale(1.04) !important;
  z-index:99 !important;
}

.hot-featured-cluster .hot-deck-card.featured-2:hover,
.hot-featured-cluster .hot-deck-card.featured-2.hovered{
  transform:translateX(-50%) translateY(-16px) rotate(0deg) scale(1.04) !important;
  z-index:100 !important;
}

.hot-featured-cluster .hot-deck-card.featured-3:hover,
.hot-featured-cluster .hot-deck-card.featured-3.hovered{
  transform:translateX(-50%) translateX(160px) translateY(-14px) rotate(7deg) scale(1.04) !important;
  z-index:99 !important;
}

/* ===== 顶部公告最终修复：真正向上滑动 ===== */

.nav-notice {
    height: 36px !important;
    overflow: hidden !important;
}

.nav-notice-viewport {
    position: relative !important;
    width: 100% !important;
    height: 36px !important;
    overflow: hidden !important;
    padding: 0 10px !important;
}

.nav-notice-track {
    position: relative !important;
    width: 100% !important;
    height: 36px !important;
    overflow: hidden !important;
    white-space: normal !important;
    display: block !important;
    transform: none !important;
    will-change: auto !important;
}

/* 重点：动画挂到文字本身，不挂到 flex 容器 */
.nav-notice-track.notice-anim .notice-text {
    animation: noticeScrollUpFinal 7.5s linear forwards !important;
}

.notice-text {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 36px !important;
    line-height: 36px !important;
    display: block !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding: 0 12px !important;
    color: #8ff8ff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    opacity: 0;
    transform: translateY(100%);
}

.notice-text span {
    color: inherit;
}

.notice-text .notice-player,
.notice-player {
    color: #ff6fcf !important;
    -webkit-text-fill-color: #ff6fcf !important;
    font-weight: 900 !important;
    background: none !important;
    text-shadow: 0 0 8px rgba(255, 111, 207, .35) !important;
}

.notice-text .notice-prize,
.notice-text .notice-goods,
.notice-prize,
.notice-goods {
    color: #ffd54a !important;
    -webkit-text-fill-color: #ffd54a !important;
    font-weight: 900 !important;
    background: none !important;
    text-shadow: 0 0 8px rgba(255, 213, 74, .35) !important;
}

@keyframes noticeScrollUpFinal {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    6.6667% {
        transform: translateY(0);
        opacity: 1;
    }

    86.6667% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ██████  抽奖界面动画关键帧  ██████
   ─────────────────────────────────────────────────────────────
   以下动画用于 lottery/draw.php 抽奖页面
   音频时长参考:
     spin ≈ 9.4s  |  hit ≈ 2.6s  |  win ≈ 1.1s
   ═══════════════════════════════════════════════════════════════ */

/* ─── 律动边框旋转 ───
   用于 .lt-border::before/::after
   实现彩虹色 conic-gradient 持续旋转效果 */
@keyframes lotteryBorderRotate {
    from { --lt-angle: 0deg; }
    to   { --lt-angle: 360deg; }
}
/* CSS Houdini 注册自定义属性，让 conic-gradient 的起始角度可以动画 */
@property --lt-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ─── 跑马灯广播滚动 ───
   用于 .lt-bc-text
   文字从右侧滑入、左侧滑出，12s 一个循环 */
@keyframes lotteryBroadcastMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ─── 中心区域扫光 ───
   用于 .lt-center::before
   模拟光带从左到右扫过中心按钮区域，2.5s 循环 */
@keyframes lotteryCenterScan {
    from { transform: translateX(-70%); }
    to   { transform: translateX(70%); }
}

/* ─── 单元格命中闪烁（单抽） ───
   用于 .lt-c.cell-hit
   高亮 + 亮度交替闪烁，配合 hit 音效 ≈2.6s */
@keyframes lotteryCellHitFlash {
    from {
        filter: brightness(1.1) saturate(1.1);
        box-shadow: 0 0 20px rgba(52,245,255,.55);
    }
    to {
        filter: brightness(1.85) saturate(1.4);
        box-shadow:
            0 0 36px rgba(255,211,74,.88),
            0 0 60px rgba(255,77,216,.35);
        border-color: rgba(255,211,74,.95);
    }
}

/* ─── 单元格抖动 ───
   用于 .lt-c.cell-shake
   在螺旋减速最后阶段，命中格微微抖动增加紧张感 */
@keyframes lotteryCellShake {
    from { transform: scale(1.06) rotate(-1.5deg); }
    to   { transform: scale(1.10) rotate(1.5deg); }
}

/* ─── 十连抽命中脉冲 ───
   用于 .lt-c.cell-ten-hit
   10个格子同时脉冲放大闪烁，0.2s × 3次 = 0.6s */
@keyframes lotteryTenHitPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(255,211,74,.40);
    }
    50% {
        transform: scale(1.15);
        box-shadow:
            0 0 30px rgba(255,211,74,.85),
            0 0 55px rgba(52,245,255,.30);
        border-color: rgba(255,211,74,.95);
        filter: brightness(1.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(255,211,74,.40);
    }
}

/* ─── 爆炸效果 ───
   用于 .lt-boom.show
   命中瞬间从中心炸开的白色→金色→青色径向光晕，0.75s */
@keyframes lotteryExplosionBoom {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.20);
        filter: blur(0);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(.80);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.6);
        filter: blur(8px);
    }
}

/* ─── 结果卡片闪烁 ───
   用于 .lt-rc
   中奖卡片上下浮动 + 亮度交替，展示获奖道具 */
@keyframes lotteryResultFlash {
    from {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
    to {
        transform: translateY(-3px) scale(1.04);
        filter: brightness(1.38);
        box-shadow:
            0 0 22px rgba(255,211,74,.42),
            0 0 40px rgba(52,245,255,.15);
    }
}

/* ─── 结果卡片扫光 ───
   用于 .lt-rc::after
   光带从左到右扫过卡片，0.9s 循环 */
@keyframes lotteryCardScan {
    from { transform: translateX(-65%); }
    to   { transform: translateX(65%); }
}

/* ─── Demo 待机闪烁 ───
   用于 .lt-c.demo-flash
   老虎机待机时随机格子微微闪烁，吸引用户点击 */
@keyframes lotteryDemoGlow {
    0%   { opacity: .7; }
    50%  { opacity: 1; }
    100% { opacity: .7; }
}

/* ═══════════════════════════════════════════════════════════════
   ██████  抽奖动画关键帧结束  ██████
   ═══════════════════════════════════════════════════════════════ */
