/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fff;
}
/* 页面全局最大宽度锁定480px，大屏自动居中 */
.page-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* ========== 顶部导航栏样式 ========== */
.van-nav-bar {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid #eee;
}
.van-nav-bar__left img {
    height: 28px;
    width: auto;
}
.van-nav-bar__center {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}
.van-nav-bar__right {
    height: 100%;
}

/* ========== 11张图自动轮播样式 ========== */
.banner-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.swiper-wrapper {
    display: flex;
    transition: transform 0.4s ease;
}
.swiper-slide {
    flex-shrink: 0;
    width: 100%;
}
.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}
/* 轮播底部小圆点 */
.swiper-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
}
.dot.active {
    background-color: #28b947;
}

/* ========== 开奖Tab模块样式 ========== */
.lottery-wrap {
    padding: 2px;
}
/* Tab标签栏 */
.lottery-tab {
    display: flex;
    padding:8px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    gap: 14px; /* 👇 项目之间间距 14px */
}
.tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 18px;

    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    border-top-left-radius: 12px;  /* 👇 顶部左圆角 */
    border-top-right-radius: 12px; /* 👇 顶部右圆角 */
}
.tab-item.tab-active {
    background-color: #07c160;
    color: #fff;
}
/* 展开直播三角按钮 */
.live-btn {
    width: 130px;
    background: #28b947;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    margin: 0 auto 12px;
    font-size: 16px;
    font-weight: bold;
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}
/* 开奖外框 */
.lottery-box {
    padding: 1px;
    background: #fff;
}

/* 期号、倒计时、历史记录行 */
.lottery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 17px;
    flex-wrap: wrap;
    gap: 8px;
}
.period {
    color: #333;
    font-weight: bold;
}
.countdown {
    color: #f03030;
    font-weight: bold;
}
.history-link {
    color: #28b947;
    font-weight: bold;
    text-decoration: none;
}
/* 号码圆球 —— 已修复垂直居中 */
.number-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    justify-content: center;
}
.ball {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: #000;
}
.ball-green {
   background-image: url(./green.png);
  background-size: 100% 100%;
}
.ball-red {
background-image: url(./red.png);
  background-size: 100% 100%;
}
.ball-blue {
    background-image: url(./blue.png);
  background-size: 100% 100%;
}
.plus {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    padding: 0 5px;
    line-height: 55px;
}
/* 生肖五行小字 */
.animal-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    color: #333;
    margin-bottom: 12px;
}
/* 开奖底部日期 */
.lottery-date {
    text-align: center;
    color: #ed2633;
    font-size: 15px;
    font-weight: bold;
}

/* ========== 下方4×4链接网格 ========== */
.link-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.grid-item {
    background-color: #f5f5f5;
    border-radius: 8px;
    text-align: center;
    padding: 5px 0;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    display: block;
}
/* ========== 顶部滚动公告栏 ========== */
.notice-bar {
    width: 100%;
    height: 38px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 12px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

/* fa 官方字体喇叭图标 简约精致+双音量波纹 */
.notice-icon {
    font-size: 14px;
color: rgb(239, 81, 81);
    margin-right: 10px;
    flex-shrink: 0;
}

.notice-scroll-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.notice-scroll {
    white-space: nowrap;
    display: inline-block;
    line-height: 38px;
    font-size: 14px;
    color: #000;
    animation: noticeScroll 16s linear infinite;
}

/* 文字从右侧进入 向左无限循环滚动 */
@keyframes noticeScroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* 图标导航模块 - 无背景 62x62 图标 一排5个 */
.category-icon {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 8px;
    background: #fff;
}
.category-icon .van-col {
    width: 20%;
    margin-bottom: 16px;
}
.icon-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}
/* 图标：62x62 无背景 */
.icon-bg {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    background: transparent !important;
}
.icon-bg img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.icon-text .text {
    font-size: 13px;
    color: #333;
    text-align: center;
}
.border-line {
  height: .4rem;
  width: 93%;
  background: #eee;margin:0 auto;
}
/* ========== 年份图库横向滚动模块 ========== */
.year-group {
  padding: 18px 12px;
  background: #fff;
}
.year-slider {
  display: flex;
  overflow-x: hidden;
  gap: 12px;
  padding-bottom: 10px;
}
.year-slider:hover {
  overflow-x: auto;
}
/* 滚动条样式 */
.year-slider::-webkit-scrollbar {
  height: 5px;
}
.year-slider::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}
.year-slider::-webkit-scrollbar-track {
  background: transparent;
}
/* 默认一排显示4个 */
.year-item {
  flex-shrink: 0;
  width: 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
/* 外圈圆形 55px */
.year-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
/* 彩色背景 */
.year-color {
  background: #20d497;
}
/* 黑白灰色背景 */
.year-gray {
  background: #d8d8d8;
}
/* 内部横向照片图标 28px */
.year-icon {
  font-size: 28px;
  color: #ffffff;
}
.year-text {
  font-size: 14px;
  color: #333;
}
/* 顶部分类栏 */
.body-xl {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.body-xl .item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  background: #07c160;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
}
.body-xl .more {
  padding: 8px 14px;
  background: #f2f2f2;
  color: #666;
  border-radius: 6px;
  font-size: 14px;
}
.body-xl .item a{color:#fff;text-decoration: none}
.body-xl .more a{color:#fff;text-decoration: none}
/* 双列布局 */
.waterfall.van-row {
  display: flex;
  flex-wrap: wrap;
  padding: 8px;
  background: #fff;
}
.waterfall .van-col.van-col--12 {
  width: 50%;
  box-sizing: border-box;
}

/* 图片卡片 */
.image-item {
  box-shadow: 0 .02rem .08rem 0 hsla(0,0%,62.7%,.5);
  border-radius: 4px;
  border-top: 1px solid #bbb;
  overflow: hidden;
  background: #fff;
  margin-bottom: 10px;
}
.image-item.hide {
  display: none !important;
}
/* 让图片贴合卡片，不额外露圆角 */
.image-item-image {
  border-radius: 0;
}
.van-image__img {
  border-radius: 0 !important;
}

/* 标题内边距微调更美观 */
.image-item-title {
  padding: 6px 4px 8px;
  font-size: 12px;
  color: #333;
  text-align: center;
}
.image-item-image {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}
.van-image__img {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 6px;
}
.image-item-title {
  padding: 4px 0;
  font-size: 12px;
  color: #333;
  text-align: center;
}

/* 加载提示 */
.load-tip {
  text-align: center;
  padding: 12px 0;
  font-size: 13px;
  color: #999;
  background: #fff;
}

/* ======================
   图片预览弹窗（核心）
====================== */
/* ======================
   图片预览弹窗（高度满屏版）
====================== */
.img-preview-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.img-preview-mask.show {
  display: flex;
}
.preview-img {
  /* 核心：高度铺满屏幕，宽度自动等比 */
  height: 100vh;
  width: auto !important;
  max-width: 95%;
  object-fit: contain;
}
.preview-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 10000;
}

/* ========== 顶部导航固定（480px居中适配） ========== */
/* ========== 顶部导航固定 ========== */
.van-nav-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 44px;
  z-index: 1000;
  background: #fff;
  box-sizing: border-box;
}

/* ========== 年份组 + 按钮组 外层包裹（用来承载两个吸顶，不打架）========== */
.sticky-group-wrapper {
  position: sticky;
  top: 44px !important;
  z-index: 999;
  background: #fff;
}

/* ========== 年份组 ========== */
.year-group {
  /* 取消独立 sticky，不再自己吸顶！ */
  position: static;
  z-index: 999;
  background: #fff;
}

/* ========== 分类按钮组 ========== */
.body-xl {
  /* 取消独立 sticky，不再自己吸顶！ */
  position: static;
  z-index: 999;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ========== 页面容器 ========== */
.page-container {
  padding-top: 44px !important;
  overflow: visible !important;
}
/* ===========================
   1. 黑色透明全屏条（你的样式）
=========================== */
.app-down-banner {
  position: fixed;
  width: 100%;
  height: 50px;
  bottom: 70px;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prv-down {
  display: flex;
  align-items: center;
  font-size: 14px;
}

/* 下载APP */
.prv-down a {
  color: red;
  text-decoration: none;
  background: white;
  padding: 5px 10px;
  border-radius: 5px 0 0 5px;
}

/* 看图更爽 */
.prv-down span:nth-of-type(1) {
  text-decoration: none;
  background-color: forestgreen;
  padding: 5px 10px;
  color: #fff;
}

/* 更爽… × */
#downClose {
  background-color: crimson;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  padding: 5px 10px;
  color: #fff;
}

/* ===========================
   2. 底部浮动菜单（你的样式）
=========================== */
.bottom-float-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.layout-nav {
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 .02rem .08rem 0 hsla(0,0%,62.7%,.5);
}

.van-tabbar {
  display: flex;
  background: #fff;
  height: 70px;
  position: relative;
}

.van-tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;text-decoration: none;
  padding-bottom: 6px;
}
.adcd{margin-top: 32px;}
.van-tabbar-item__icon {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
}
.van-tabbar-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 中间凸起大图标（探出上半部分）*/
.tab-item-center {
  position: relative;
}
.icon-center-big {
  width: 52px;
  height: 52px;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}
.icon-center-big img {
  width: 52px;
  height: 52px;
object-fit: contain;
}

/* 49图库 绿色文字 */
.van-tabbar-item:nth-child(1) .van-tabbar-item__text {
  color: #10c15c;
  font-weight: bold;
}

/* 防止页面被遮挡 */
body {
  padding-bottom: 130px !important;
}
/* 右下角浮动按钮整体容器 */
.float-bnt {
  position: fixed;
  right: 20px;
  bottom: 140px;
  z-index: 9999999 !important;
}

/* 主按钮默认样式 62px */
.float-bnt .icon-btn {
  display: inline-block;
  background-image: url(./push.28dfa794.png);
  background-size: 100% 100%;
  width: 52px;
  height: 52px;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 10;
  transition: all .4s ease;
  cursor: pointer;
}
/* 展开后 oft0 类：换图+180°旋转 */
.float-bnt .icon-btn.oft0 {
  transform: rotate(180deg);
  background-image: url(./push-open.5fc78b1d.png);
}

/* 扇形展开项通用：文字在图标左侧、内容全程正向不旋转 */
.icon-tool-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row-reverse; /* 文字在左，图标在右 */
  align-items: center;
  gap: 15px;
  opacity: 0;
  transition: all 0.45s ease;
  pointer-events: none;
}

/* 图标圆框严格 68px */
.icon-tool-btn span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* 图标图片完整铺满68px */
.icon-tool-btn span img {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain;
}

/* 文字样式 */
.icon-tool-btn label {
  color: #ffffff;
  font-size: 15px;
  white-space: nowrap;
}

/* ======================================================
   仅修改：六合论坛、聊天室 往左+往下偏移
   开奖现场、淘料市场、资料大全 全部原位置不动
====================================================== */
/* 1. 开奖现场 - 位置不动 */
.float-bnt.active .icon-tool-btn:nth-child(2) {
  transform: translate(-20px, -140px);
  opacity: 1; pointer-events: auto;
}
/* 2. 六合论坛【往左、往下偏移】 */
.float-bnt.active .icon-tool-btn:nth-child(3) {
  transform: translate(-100px, -95px);
  opacity: 1; pointer-events: auto;
}
/* 3. 淘料市场 - 位置不动 */
.float-bnt.active .icon-tool-btn:nth-child(4) {
  transform: translate(-120px, 0);
  opacity: 1; pointer-events: auto;
}
/* 4. 聊天室【往左、往上对称偏移】 */
.float-bnt.active .icon-tool-btn:nth-child(5) {
  transform: translate(-100px, 95px);
  opacity: 1; pointer-events: auto;
}
/* 5. 资料大全 - 位置不动 */
.float-bnt.active .icon-tool-btn:nth-child(6) {
  transform: translate(-20px, 140px);
  opacity: 1; pointer-events: auto;
}

/* 遮罩层 */
.van-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999 !important;
  display: none;
}

/* 遮罩 */
.tan-pop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999998;
    display: none;
}

/* 弹窗 300×399 */
.tan-pop {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 399px;
    max-width: 95vw;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    z-index: 999999;
    display: none;
}

/* 顶部 50px / 16px 无rem */
.tan-pop .t-myheader {
    display: flex;
    background: #07c160;
    height: 50px;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: normal;
}

/* 轮播区域 */
.tan-pop-body {
    height: 289px;
    position: relative;
}
.popup-carousel {
    width: 100%;
    height: 259px;
    position: relative;
}
.p-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.p-slide.active {
    opacity: 1;
}
.p-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播圆点 */
.p-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.p-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}
.p-dot.active {
    background: #07c160;
}

/* 底部按钮 */
.tan-pop-footer {
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 10px;
}
.btn-line {
    width: 1px;
    height: 22px;
    background: #eee;
}
.close-btn {
    font-size: 15px;
    color: #666;
    cursor: pointer;
}
.no-remind-btn {
    font-size: 15px;
    color: #07c160;
    cursor: pointer;
}

/* ========== 我的页面 顶部绿色Banner ========== */
.my-top-banner {
    background: #07c160;
    padding: 0 16px;
    height: 120px;
    display: flex;
    align-items: center;
    gap: 20px; /* 图片和按钮之间统一间距 */
    justify-content: flex-start; /* 改为靠左排列 */
}
.my-top-banner .banner-logo img {border-radius: 50%;
  border: 1px solid #fff;
    width: 70px;
    height: auto;
}
.login-btn {
    background: #fff;
    color: #07c160;
    border: none;
    padding: 16px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px; /* 控制与logo的距离 */
}


/* ========== VIP开通栏（背景图 + 定位按钮） ========== */
.vip-bar {
    position: relative;
    background: url(./member-bg.c016f149.png) no-repeat center;
    background-size: cover;
    margin: 12px;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 70px;
}
.vip-left {
    display: flex;
    align-items: center;
}
.vip-logo {
    width: 50px;border-radius: 50%;
  border: 1px solid #fff;
    height: 50px;
    border-radius: 50%;
    margin-right: 12px;
}
.vip-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}
.vip-sub {
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
}

/* 立即开通按钮（你给的样式 转px） */
.vip-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 110px;
    height: 40px;
    background: #ffecc7;
    box-shadow: 0 12px 16px 0 #e6a227;
    border-radius: 20px;
    text-align: center;
    color: #b5790d;
    font-weight: 600;
    font-size: 20px;
    line-height: 40px;
    border: none;
    cursor: pointer;
}

/* ========== 我的页面 模块 ========== */
.my-section {
    background: #fff;
    margin: 12px;
    border-radius: 12px;
    padding: 16px;
}
.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

/* ========== 图片图标网格 ========== */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    margin-bottom: 6px;
}
.icon-box img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.icon-text {
    font-size: 14px;
    color: #333;
    text-align: center;
}
