.troggle-btn-area{
    display: flex;
    box-sizing: border-box;
    padding-left: 10px;
    margin: 10px 0;
}

.troggle-btn-area .troggle-btn{
    width: 110px;
    height: 40px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    filter: grayscale(100%);
    transition: .3s;
    margin: 10px 5px;
    color: #6b6464;
    border: 1px solid #cec6c6;
    font-size: 16px;
}

.troggle-btn-area .active{
    background-color: var(--match-header-active);
    filter: initial;
    color: #fff;
    font-weight: bold;
}

.stream-game-item{
    display: flex;
    justify-content: space-around;
    width: 95%;
    height: 70px;
    margin: 0 auto;
    border-top: 1px dashed #c6c6c6;
    border-bottom: 1px dashed #c6c6c6;
}

.stream-game-item .time{
    display: flex;
    align-items: center;
    width: 30%;
}

.stream-game-item .league{
    display: flex;
    align-items: center;
    width: 40%;
}

.behind-part{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.team-info-content{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: right;
}

.team-info-content .team {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.team-info-content .team .home{
    display: inline-block;
    width: 100px;
    text-align: right;
    margin: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-info-content .team .away{
    display: inline-block;
    width: 100px;
    text-align: left;
    margin: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-info-content .team img{
    width: 30px;
    height: 30px;
}

.stream-play{
    flex:1;
    display: flex;
}

.stream-play-link{
    display: inline-block;
    color: var(--match-signal-end-color);
    background-color: var(--match-signal-end-bg-color);
    border: var(--match-signal-end-bg-border);
    box-sizing: border-box;
    padding: 12px;
    width: 96%;
    border-radius: 8px;
    text-align: center;
    margin: 0 auto;
    cursor: pointer;
}

.friendly-area{
    width: 100%;
    background-color: var(--friendly-bg-color);
    color:#fff;
}

.friendly-area .friendly-area-content{
    padding: 20px;
}

.friendly-area .friendly-area-content a{
    margin:0 5px 0 5px;
    text-decoration: none;
    line-height: 1.8em;
}

#main{
    background-color: #fff;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
}

/* 主标题样式 */
.section-title {
    width: 100%;
    max-width: 1190px;
    margin: 0 auto 5px auto;
    box-sizing: border-box;
    padding: 10px 0 0 0;
}

.section-title h2 {
    font-size: 1rem; /* 大字体 */
    color: var(--news-text-color); /* 使用鲜艳的颜色吸引注意，例如番茄红 */
    display: inline-block;
    padding: 0px 15px;
    text-transform: uppercase; /* 大写字母 */
    letter-spacing: 2px; /* 增加字母间距 */
    position: relative; 
    margin-left: 20px;
}

/* 标题下面的小装饰条 */
.section-title h2:before {
    content: '';
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--news-text-before-bg-color); /* 与标题文字相同的颜色 */
    bottom: 0; /* 放置在标题的底部 */
    left: 0;
    transform: translateX(-50%); /* 使下划线居中 */
    border-radius: 2px;
}

.news-area{
    background-color: #e8e7e7;
    width: 100%;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
    width: 92%; /* 默认最大宽度 */
    padding: 10px 0 30px 0;
  }

  .news-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .news-image {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
  }

  .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .news-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin: 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2; /* 限制最多显示 2 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .news-summary {
    font-size: 12px;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制最多显示 2 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .news-tag {
    display: inline-block;
    background-color: #ff4d4f;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
    padding: 2px 4px;
    margin-right: 6px;
  }

  /* --- 响应式设计 --- */
  @media (min-width: 768px) {
    .news-list {
      max-width: 300px; /* 中屏幕增大列表宽度 */
      width: 84%; 
    }

    .news-image {
      height: 120px; /* 图片高度增加 */
    }

    .news-summary {
      font-size: 14px; /* 内容字体增大 */
    }
  }

  @media (min-width: 1024px) {
    .news-list {
      max-width: 600px; /* 大屏幕改为双列布局 */
      display: grid;
      gap: 10px;
    }

    .news-item {
      align-items: center;
    }

    .news-image {
      height: 100px;
    }

    .news-content {
      flex: 1;
    }

    .news-summary {
      font-size: 16px; /* 内容字体更大 */
    }
  }


/* 响应式调整 */
@media (max-width: 1024px) {
    .streamer-container {
        grid-template-columns: repeat(3, 1fr); /* 调整为3列 */
    }
}

@media (max-width: 768px) {
    .streamer-container {
        grid-template-columns: repeat(2, 1fr); /* 调整为2列 */
    }
    #main{
        display: block;
    }
}

@media (max-width: 480px) {
    .streamer-container {
        grid-template-columns: 1fr; /* 单列布局 */
    }
}

@media screen and (max-width:768px) {
    .team-info-content{
        display: block;
    }

    .stream-game-item .time{
       text-align: center;
       margin-right: 10px;
    }

    .team-info-content .team {
        margin: 10px 10px;
    }

    .team-info-content .team img{
        width: 25px;
        height: 25px;
    }

    .team-info-content .team:nth-child(n+2){
        flex-direction: row-reverse;
    }

    .team-info-content .team .away{
        text-align: right;
    }

    .stream-game-item .league{
        width: 50px;
    }

    .stream-game-item .league a,.stream-game-item .league span{
        width: 50px;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vs{
        display: none;
    }

    .stream-play{
        display: flex;
        justify-content: center;
        max-width: 64px;
    }

    .stream-play-link{
        padding: 12px;
        width: 100%;
        max-width: 64px;
    }

    .section-title {
      padding: 15px 0 0 0;
    }

    .section-title h2{
        margin-left: 20px;
    }

    .marquee-container{
      transform: translateY(5px);
    }
}

@media screen and (max-width:400px) {
    .team-info-content .team .home{
        width: 110px;
    }
    
    .team-info-content .team .away{
        display: inline-block;
        width: 110px;
    }
}

.marquee-container {
    background-color: #fff;
    position: relative;
    width: 88%; /* 你想要的寬度 */
    height: 24px; /* 容器高度：只顯示一行 */
    overflow: hidden;
    margin: 10px auto 0 auto;
    border-radius: 8px;
  }
  
  /* 共同樣式 */
  .line {
    position: absolute;
    width: 100%;
    height: 24px;
    line-height: 24px;
    color: red;
    font-weight: bold;
    text-align: center;
    display: block;
    font-size:12px;
  }
  
  /* 三行初始位置 (top)，一行接著一行 */
  #line0 {
    top: 0; /* 第一行顯示 */
  }
  #line1 {
    top: 24px; /* 第二行在容器下方 */
  }
  #line2 {
    top: 48px; /* 第三行更下方 */
  }
  
  /* 定義三個 keyframes： 
     分別對應 line0, line1, line2 從當前位置「往上滑 24px」*/
  @keyframes slideUp0 {
    0% {
      top: 0;
    }
    100% {
      top: -24px;
    }
  }
  @keyframes slideUp1 {
    0% {
      top: 24px;
    }
    100% {
      top: 0px;
    }
  }
  @keyframes slideUp2 {
    0% {
      top: 48px;
    }
    100% {
      top: 24px;
    }
  }
  
  /* 播放一次動畫，結束後停留在終點 (forwards) */
  .slideUp0 {
    animation: slideUp0 0.5s forwards;
  }
  .slideUp1 {
    animation: slideUp1 0.5s forwards;
  }
  .slideUp2 {
    animation: slideUp2 0.5s forwards;
  }

  .title-block{
    width: 95%;
    margin: 0 auto;
    margin-top: 15px;
    max-width: 1280px;
  }

  .title-block img{
    width:100%;
  }
  
  .streamer-cards {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap; /* 如果卡片太多，會自動換行 */
    gap: 15px; /* 卡片之間的間距 */
    padding: 16px;
    margin: 0 auto;
    max-width: 1280px;
  }
  
  /* 單張卡片 */
  .streamer-card {
    /* card 外觀設定 */
    display: flex; /* 讓頭像與文字並排 */
    align-items: center; /* 垂直置中 */
    width: 22%; /* 固定或最小寬度，可調整 200~300px 之間 */
    padding: 8px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
  }
  .streamer-card:hover {
    transform: scale(1.03);
  }
  
  /* 直播主頭像 */
  .streamer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* 圓形頭像 */
    object-fit: cover; /* 如果頭像比例不同，會自動裁切 */
    margin-right: 12px;
  }
  
  /* 直播主文字區 */
  .streamer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }
  .streamer-name {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  .streamer-desc {
    font-size: 0.9rem;
    color: #555;
  }
  
  /* RWD 設定：小螢幕時的調整，可自行調整斷點 */
  @media (max-width: 500px) {
    .streamer-card, .streamer-cards {
      display: none;
    }

    .title-block{
      display: none;
    }
  }
  