body {
    background-color: #f8f9fa;
}
a{
  text-decoration:none;
}
a:focus{
    text-decoration:none;
}
a:hover{
    text-decoration:none;
}

.logo {
    font-size: 32px;
    font-weight: bold;
}
.subtext {
    color: #888;
}
.icon-default {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4a90e2;
    color: white;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-box {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 16px;
    background-color: white;
    transition: box-shadow 0.2s;
}

.site-box:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.google-logo{
    margin-right: 10px;

}
.custom-search {
    width: 78%;
    border-radius: 40px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    padding: 5px 15px;
    display: flex;
    align-items: center;
    background-color: white;
    max-width: 600px;
}
.custom-search input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 10px 15px;
    font-size: 16px;
}
.icon-btn {
    background: none;
    border: none;
    padding: 0 8px;
    color: #555;
    font-size: 18px;
    cursor: pointer;
}
.icon-btn:hover {
    color: #000;
}

.rounded-bottom-left-right {
  border-top-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}
/* 移动端（屏幕宽度 <= 768px）样式 */
@media (min-width: 768px) {
  .rounded-bottom-left-right {
       padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
    text-align: center !important;
  }
}
.bg-card-price{
  color: #C7884C;
}
.bg-gradient-primary {
  background: linear-gradient(45deg,  #f55932,#fa8061);
}
.bg-card-red {
  background: linear-gradient(45deg,  #DE382D,#DE382D);
  /* background: #DE382D; */
}
.bg-card{
  /* background-color: #F3DB98; */
  background: linear-gradient(45deg,  #F3DB98,#F3DB98);

}
.card-size {
    width: 120px;          /* 手机端宽度 */
    flex: 0 0 auto;        /* 防止被 flex 拉伸 */
    
}

@media (min-width: 720px) { /* PC 端宽度 */
    .card-size {
        width: 180px;
    }
}
.footer-bg-gray{
    background-color: #F2F3F5;
}   
/* 两行省略的通用部分 */
.line-clamp-2{
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 自定义：默认隐藏，≥576px 用 -webkit-box 显示 */
.clamp-show-sm { display: none; }
@media (min-width: 576px) {
  .clamp-show-sm { display: -webkit-box; } /* 关键：恢复成 -webkit-box */
}

.live-clamp-head {
    display: block;
    width: 100%;        /* 必须占满父容器，才能触发省略号 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

  /* 默认：小屏一列 */
  .card-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* 平板：显示两张卡片 */
  @media (min-width: 768px) and (max-width: 1200px) {
    .card-wrapper {
      flex: 0 0 50%;
      max-width: 50%;
    }
  }

  /* 大屏：显示四张卡片 */
  @media (min-width: 1201px) {
    .card-wrapper {
      flex: 0 0 25%;
      max-width: 25%;
    }
  }
  
  /* 仅 PC 端（宽度 >= 992px）时固定到右下角 */
@media (min-width: 768px) {
    #adBox {
        position: fixed;
        bottom: 20px;
        right: 20px;
        margin: 0; /* 去掉居中用的 margin */
        z-index: 9999;
        background-color: #fff;
    }
}
@media (max-width: 425px) {
#adBox {
  position: absolute; /* 绝对定位 */
  top: 53%;          /* 距离顶部位置，可调整 */
  background: rgba(255, 255, 255, 1); /* 半透明背景 */
  padding: 10px;
  z-index: 1000;      /* 保证浮在上面 */
}

}


@media (max-width: 575.98px) {
        .site-box {
        border: none;
        box-shadow: none !important;
        padding: 8px;
        background-color: #f8f9fa;
 width: 100%; /* 每个 site-box 占满 col-2 */
        flex-direction: column;
        
    }

    .text {
        min-width: 0;     /* flex 子元素必须加 */
        width: 100%;      /* 必须占满父容器 */
        overflow: hidden; /* 超出隐藏 */
    }

    .live-clamp-head {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;      /* 占满父容器 */
    }
}
.text {
    min-width: 0; /* flex 子元素必须加，否则 ellipsis 不生效 */
}
