:root{
  --primary:#0F5DA8;
  --primary-mid:#176FC3;
  --primary-light:#2C89DA;
  --blue-deep:#003B8F;
  --blue-main:#075FC8;
  --blue-soft:#EAF4FF;
  --white:#FFFFFF;
  --text:#102033;
  --sub:#5F7188;
  --border:#D8E6F5;
  --danger:#E92828;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  width:100%;
  min-height:100%;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;
  color:var(--text);
}

body,
.page{
  background:
    radial-gradient(circle at 18% 12%, rgba(62,151,255,.55), transparent 24%),
    radial-gradient(circle at 88% 92%, rgba(51,178,255,.45), transparent 30%),
    linear-gradient(135deg,#003B8F 0%,#075FC8 48%,#1A91FF 100%);
}

body{
  overflow-y:auto;
}

.page{
  width:100%;
  min-height:100vh;
  padding:28px 18px 30px;
  display:flex;
  flex-direction:column;
  overflow:visible;
}

.hero,
.live-marquee,
.section-grid,
.footer{
  width:100%;
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
}

/* 顶部 */
.hero{
  flex-shrink:0;
}

.hero-head{
  padding:0 0 18px;
  color:#fff;
}

.title-row{
  display:flex;
  align-items:center;
  gap:16px;
}

.title-row.is-loading,
.live-time-row.is-loading{
  visibility:hidden;
}

.logo-box{
  width:54px;
  height:54px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo-box img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}

.hidden{
  display:none!important;
}

#live-title{
  margin:0;
  font-size:32px;
  line-height:1.25;
  font-weight:800;
  color:#fff;
  letter-spacing:.5px;
}

.live-time-row{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:16px;
  color:#fff;
}

.live-time-label{
  padding:5px 11px;
  border-radius:6px;
  background:#1687FF;
  color:#fff;
  font-weight:700;
}

.live-time-text{
  color:rgba(255,255,255,.96);
}

/* 播放器 */
.player-shell{
  width:100%;
  background:#000;
  border-radius:12px;
  overflow:hidden;
  border:2px solid rgba(72,165,255,.75);
  box-shadow:0 18px 42px rgba(0,32,88,.38);
}

#player-wrapper{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  background:#000;
  overflow:hidden;
}

#veplayer,
#photo-carousel,
#offline-overlay{
  position:absolute;
  inset:0;
}

#veplayer{
  z-index:2;
}


#photo-carousel{
  z-index:1;
  width:100%;
  height:100%;
  overflow:hidden;
}

#photo-carousel .carousel-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:none;
  transform:none!important;
  animation:none!important;
  transition:none!important;
}

#photo-carousel .carousel-img.active{
  display:block;
}



#offline-overlay{
  z-index:3;
  display:none;
  align-items:center;
  justify-content:center;
  background:#000;
  cursor:pointer;
}

#offline-overlay img{
  width:100%;
  height:100%;
  object-fit:cover;
}

#offline-text{
  position:absolute;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  padding:7px 14px;
  background:rgba(0,0,0,.65);
  color:#fff;
  font-size:14px;
  border-radius:999px;
}

#live-label,
#viewer-count,
#viewer-count-mobile{
  display:none;
}

#live-label{
  position:absolute;
  z-index:5;
  top:12px;
  right:12px;
  left:auto;
  padding:6px 16px;
  background:var(--danger);
  color:#fff;
  font-size:13px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.5px;
  border-radius:999px;
  box-shadow:0 4px 12px rgba(0,0,0,.25);
}

/* 直播通知 */
.live-marquee{
  flex-shrink:0;
  margin-bottom:12px;
  height:56px;
  display:flex;
  align-items:center;
  border-radius:10px;
  overflow:hidden;
  background:linear-gradient(
    180deg,
    rgba(244,250,255,.86) 0%,
    rgba(233,244,255,.86) 100%
  );
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 10px 24px rgba(0,48,120,.16);
}

.marquee-label{
  flex-shrink:0;
  height:100%;
  padding:0 26px;
  display:flex;
  align-items:center;
  color:#075FC8;
  font-size:18px;
  font-weight:800;
  border-right:1px solid rgba(15,93,168,.28);
}

.marquee-label::before{
  content:"";
  width:20px;
  height:20px;
  margin-right:8px;
  flex-shrink:0;

  background:url("https://cdn.722400.xyz/tz.png") center center / contain no-repeat;
}

.marquee-box{
  flex:1;
  overflow:hidden;
  white-space:nowrap;
  padding:0 20px;
}

.marquee-text{
  display:inline-block;
  padding-left:100%;
  font-size:16px;
  color:#1F2D3D;
  animation:marqueeMove 18s linear infinite;
}

@keyframes marqueeMove{
  from{
    transform:translateX(0);
  }
  to{
    transform:translateX(-100%);
  }
}

/* Tab 总卡片 */
.section-grid{
  flex:1;
  min-height:500px;
  margin-top:16px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:10px;
  background:transparent;
  border:0;
  box-shadow:none;
}

/* Tab 标题 */
.tab-nav{
  flex-shrink:0;
  height:72px;
  display:flex;
  align-items:center;
  padding:0 18px;
  border-radius:10px 10px 0 0;
  overflow:hidden;
  background:linear-gradient(180deg,#F7FBFF 0%,#EAF4FF 100%);
  border:1px solid rgba(255,255,255,.82);
  border-bottom:1px solid rgba(15,93,168,.18);
}



.activity-content{

  font-family:
    -apple-system,
      BlinkMacSystemFont,
      "PingFang SC",
      "HarmonyOS Sans SC",
      "Microsoft YaHei",
      Arial,
      sans-serif;

  font-size:15px;
  line-height:1.8;
  color:#24364A;
  text-align:justify;
  text-justify:inter-ideograph;
  line-break:strict;
  word-break:normal;
  overflow-wrap:break-word;
  letter-spacing:.3px;
}

.activity-content p{
  margin:0 0 14px;
  text-align:justify;
  text-justify:inter-ideograph;
  text-indent:2.4em;
}

.activity-content img{
  display:block;
  max-width:100%;
  height:auto;
  margin:14px auto;
  border-radius:8px;
}

.activity-content video{
  max-width:100%;
  border-radius:8px;
}

.tab-btn{
  flex:1;
  height:72px;
  border:0;
  background:transparent;
  color:#1A2B44;
  font-size:19px;
  font-weight:800;
  cursor:pointer;
  position:relative;
}

.tab-btn:not(:last-child)::before{
  content:"";
  position:absolute;
  right:0;
  top:20px;
  width:1px;
  height:32px;
  background:rgba(15,93,168,.22);
}

.tab-btn.active{
  color:#075FC8;
}

.tab-btn.active::after{
  content:"";
  position:absolute;
  left:18%;
  right:18%;
  bottom:0;
  height:4px;
  border-radius:99px;
  background:#1677FF;
}

.tab-btn:active{
  color:#075FC8;
}

/* Tab 内容 */
.tab-panel{
  flex:1;
  min-height:0;
  display:none;
  overflow:hidden;
  background:linear-gradient(180deg,#F2F8FF 0%,#E8F3FF 100%);
  border-radius:0 0 10px 10px;
  border:1px solid rgba(255,255,255,.82);
  border-top:0;
}

.tab-panel.active{
  display:flex;
  flex-direction:column;
}

.panel{
  flex:1;
  min-height:0;
  margin:18px;
  padding:28px 30px;
  background:rgba(255,255,255,.96);
  border-radius:10px;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
}

/* 内容 */
.notice-list{
  margin:0;
  padding-left:20px;
  line-height:2;
  color:var(--text);
  font-size:16px;
}

.activity-intro{
  font-size:16px;
  line-height:2;
  color:#1F2D3D;
  text-align:left;
}

.empty,.tip{
  color:var(--sub);
  font-size:15px;
}





/* PC：高级扁平表格 */
.program-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.program-table th {
  padding: 14px 10px;
  background: linear-gradient(180deg, #f1f5f9 0%, #eaf0f7 100%);
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid #dbe3ec;
}

.program-table td {
  padding: 14px 10px;
  color: #334155;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid #edf1f5;
}

.program-table tr:last-child td {
  border-bottom: none;
}

.program-table tr:hover td {
  background: rgba(241, 245, 249, 0.75);
}

.program-card-list {
  display: none;
}












/* 留言 */
.message-form{
  display:grid;
  gap:14px;
}

.message-form input,
.message-form textarea{
  width:100%;
  border:1px solid var(--border);
  padding:12px 14px;
  font-size:15px;
  outline:none;
  background:#fff;
  color:var(--text);
  border-radius:6px;
}

.message-form textarea{
  min-height:110px;
  resize:vertical;
}

.message-form input:focus,
.message-form textarea:focus{
  border-color:var(--primary-mid);
  box-shadow:0 0 0 3px rgba(22,119,255,.12);
}

.message-form button{
  width:138px;
  height:42px;
  border:0;
  border-radius:6px;
  background:linear-gradient(180deg,#1687FF 0%,#075FC8 100%);
  color:#fff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}

.message-form button:active{
  background:#0A4B88;
}

/* 留言列表 */
.qa{
  margin-top:22px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.question{
  padding:16px 18px;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
  border:1px solid rgba(15,93,168,.14);
  border-radius:10px;
  color:#1f2d3d;
  font-size:15px;
  line-height:1.8;
  box-shadow:0 6px 18px rgba(0,48,120,.06);
}

.question .name{
  margin-bottom:8px;
  color:#075FC8;
  font-size:14px;
  font-weight:800;
}

.answer{
  margin-top:14px;

 
 
  border-radius:8px;
  color:#1f2d3d;
  font-size:14px;
  line-height:1.8;
}

.answer .name{
  margin-bottom:6px;
  color:#075FC8;
  font-weight:800;
}

.tip{
  margin-top:10px;
  color:#6b7280;
  font-size:13px;
}

/* 底部 */
.footer{
  flex-shrink:0;
  padding:16px 0 0;
  text-align:center;
  color:rgba(255,255,255,.82);
  font-size:13px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

#viewer-count {
  font-size: 12px;
  
}


#viewer-count-mobile {
  display: none;
}





/* 移动端 */
@media(max-width:768px){
  html,body{
    height:100%;
    overflow:hidden;
  }

  body{
    position:fixed;
    inset:0;
    width:100%;
  }

  .page{
    height:100dvh;
    min-height:100dvh;
    padding:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }

  .hero,
  .live-marquee,
  .tab-nav,
  .player-shell{
    flex-shrink:0;
  }

  .hero,
  .section-grid,
  .footer,
  .live-marquee{
    max-width:none;
    width:100%;
    margin-left:0;
    margin-right:0;
  }

  .hero-head{
    padding:12px 14px 10px;
  }

  .title-row{
    gap:10px;
  }

  .logo-box{
    width:42px;
    height:42px;
  }

  #live-title{
    font-size:18px;
  }

  .live-time-row{
    margin-top:7px;
    gap:8px;
    font-size:13px;
  }

  .live-time-label{
    padding:3px 7px;
    border-radius:5px;
    font-size:12px;
  }

  .player-shell{
    width:100%;
    border-radius:0;
    border-left:0;
    border-right:0;
    box-shadow:none;
  }

  #player-wrapper{
    width:100%;
    border-radius:0;
  }
  #live-label{
    top:8px;
    right:8px;
    left:auto;
    padding:4px 10px;
    font-size:11px;
    line-height:1.1;
    border-radius:999px;
  }


  .live-marquee{
    margin-top:5px;
    height:44px;
    border-radius:0;
    border-left:0;
    border-right:0;
    box-shadow:none;
  }

  .marquee-label{
    padding:0 12px;
    font-size:14px;
  }

  .marquee-label::before{
    margin-right:5px;
    font-size:17px;
  }

  .marquee-box{
    padding:0 10px;
  }

  .marquee-text{
    font-size:13px;
    font-weight: 400;
  }

.section-grid{
  flex:1;
  min-height:0;
  margin-top:0;
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:transparent;
  border:0;
}
  .tab-nav{
    height:52px;
    padding:0;
    overflow-x:auto;
    overflow-y:hidden;
    border-radius: 0px 0px 0 0;
    -webkit-overflow-scrolling:touch;
  }

  .tab-btn{
    height:52px;
    font-size:15px;
    flex:1 0 auto;
    min-width:33.333%;
  }

  .tab-btn:not(:last-child)::before{
    top:15px;
    height:22px;
  }

  .tab-btn.active::after{
    left:22%;
    right:22%;
    height:3px;
  }

  .tab-panel{
    flex:1;
    min-height:0;
    overflow:hidden;
  }

  .tab-panel.active{
    display:flex;
    flex-direction:column;
  }

.tab-panel{
  background:linear-gradient(180deg,#F2F8FF 0%,#E8F3FF 100%);
  border-radius:0;
  border:0;
}



 .program-table {
    display: none;
  }

  .program-card-list {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
  }

  .program-card {
    margin: 0;
    padding: 15px 16px;
    background: transparent;
    box-shadow: none;
    border-left: none;
    border-bottom: 1px solid #edf1f5;
  }

  .program-card:last-child {
    border-bottom: none;
  }

  .program-card-title {
    display: flex;
    align-items: center;
    margin-bottom: 9px;
  }

  .program-no {
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 9px;
    background: linear-gradient(180deg, #eef5ff 0%, #ddeaff 100%);
    color: #1d4ed8;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    margin-right: 11px;
  }

  .program-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.2px;
  }

  .program-info {
    padding-left: 41px;
    font-size: 14px;
    line-height: 1.75;
    color: #64748b;
  }
}





  .panel{
    flex:1;
    min-height:0;
    height:100%;
    margin:10px;
    padding:11px 14px 36px;
    border-radius:8px;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }

.panel{
  scrollbar-width:none;      /* Firefox */
  -ms-overflow-style:none;   /* IE / Edge 老版 */
}

.panel::-webkit-scrollbar{
  display:none;              /* Chrome / Safari / Edge */
}


  .notice-list,
  .activity-intro{
    font-size:14px;
    line-height:1.9;
  }

  .message-form button{
    width:100%;
  }





  #viewer-count-mobile {
    display: block;
    position: absolute;

    left: 12px;
    transform: none;

    bottom: 12px;

    z-index: 30;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(80, 80, 80, 0.75);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    pointer-events: none;

    white-space: nowrap;
  }




  .footer{
    display:none;
  }
}