/* styles.css
   提取并整理自你上传的 index.html（保留视觉细节，确保像素级一致）。
   你可以根据需要微调颜色或变量。
*/

:root{
  --border-color:#237575;
  --brand:#237575;
  --accent:#da183b;
  --muted:#777;
  --bg:#fff;
  --radius:12px;
  --placeholder-bg:#fafafa;
    }

/* 页面主体容器（保持原 max-width） */
html {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f4f4f4;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='240' viewBox='0 0 420 240'%3E%3Cg transform='rotate(-24 210 120)'%3E%3Ctext x='24' y='132' fill='%23666' fill-opacity='0.38' font-size='34' font-family='Arial,Microsoft%20YaHei' font-weight='700'%3E全能彩88202020.com%3C/text%3E%3C/g%3E%3C/svg%3E"),
    url('/index_files/bg_115tu.gif');
  background-repeat: repeat, repeat;
  background-size: 420px 240px, auto;
  background-attachment: fixed, fixed;
}

body {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 640px !important;
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  background: transparent !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  position: relative;
  display: block;
}

/* 页面容器 */
.page {
  width: 100% !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  position: relative;
  padding: 0 0 70px 0;
  min-height: 100vh;
  box-sizing: border-box;
  background-color: transparent !important;
}

/* 通用盒子 */
.box { margin: 12px 10px; }
.pad { padding: 12px; background: #fff; border-radius: var(--radius); box-shadow: 0 3px 10px rgba(0,0,0,0.06); }

/* nav2（吸顶） */
.nav2 { width: 100%; margin: 0 auto; box-sizing: border-box; padding: 2px; font-size: 16px; background: #fff; display:block; }
.nav2 ul { padding: 2px 0; display: flex; justify-content: space-between; list-style:none; margin:0; flex-wrap: nowrap; }
.nav2 ul li { flex: 1; min-width: 0; box-sizing: border-box; padding: 0 2px; }
.nav2 ul li a { display: block; padding: 3px 0; text-align: center; color: #fff; border-radius: 50px; background: var(--brand); text-decoration:none; font-weight:700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.nav2 ul li a:hover { background: var(--accent); }

/* 吸顶样式（与原站 JS 配合） */
#nav2[data-fixed="fixed"]{ 
    position: fixed;
  top:0; 
    left: 50%;
    transform: translateX(-50%);
  z-index: 9999; 
  box-shadow: 0 5px 10px rgba(0,0,0,.1); 
    max-width: 640px;
    width: 100%;
    box-sizing: border-box;
}

/* white-box / ymgg（顶部黄色横幅） */
.white-box .ymgg { padding: 0; margin: 0; }
.white-box table { border-collapse: collapse; width:100%; }

/* neimu 表格（保留表格视觉） */
.neimu table { width:100%; border-collapse: collapse; border:1px solid #eee; background:#fff; }
.neimu thead th { padding: 10px; background:#FFFFCC; font-weight:700; text-align:center; }

/* 占位样式 */
.placeholder { display:block; padding:12px 8px; color:#333; background:var(--placeholder-bg); border-radius:6px; }
.placeholder-block { padding:10px; background:#fff; border-radius:8px; text-align:center; color:var(--muted); }

/* 列表、图像、缩略图保留原样式 */
.zzhla { background:#fff; padding:6px 0; }
.zzhla ul { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.zzhla ul li { width:100%; padding:8px 0; border-bottom:1px solid #eee; }
.zzhla-img img { width:40px; height:40px; border-radius:50%; }

/* 高手榜单（保留视觉） */
.zzhl { padding:10px 0; background:#fff; }
.zzhl ul { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; }
.zzhl ul li { width:50%; padding:8px 6px; box-sizing:border-box; }
.zzhl .zzhl-img img { width:40px; height:40px; border-radius:50%; }

/* fixed-button 返回顶部 */
.fixed-button { z-index:999999; position: fixed; border: none; background: none; cursor: pointer; right: 6px; bottom: 100px; }
.fixed-button img { width:60px; height:auto; }

/* footer 样式 */
footer { font-size:14px; color:#444; padding:12px; text-align:center; background:transparent; }

/* 数据单元格样式调整 */
.box table td:not(.title) {
    padding: 4px 6px !important;  /* 上下4px，左右6px */
    line-height: 1.0 !important;  /* 减小行高以缩小高度（从1.6缩小到1.0） */
    }

/* 统一所有预测内容的字体和大小 - 与"公开一肖一码"模块一致 */
.box table td:not(.title) font {
    font-family: "微软雅黑", "Microsoft YaHei", Arial, sans-serif !important;
    line-height: 1.0 !important;
}

/* 移除预测内容中的size属性，统一字体大小（与公开一肖一码模块一致，使用默认大小） */
.box table td:not(.title) font[size] {
    font-size: inherit !important;
    }

/* 统一所有预测内容的字体大小，移除内联的font-size样式 */
.box table td:not(.title) font[style*="font-size"] {
    font-size: inherit !important;
}

/* 响应式微调 */
@media screen and (max-width:640px){
  .nav2 { font-size: 14px !important; padding: 1px !important; }
  .nav2 ul { flex-wrap: nowrap !important; gap: 2px !important; padding: 1px 0 !important; }
  .nav2 ul li { flex: 1; min-width: 0; padding: 0 1px !important; }
  .nav2 ul li a { 
        font-size: 13px !important;
    padding: 2px 0 !important; 
    white-space: nowrap !important; 
    overflow: hidden !important; 
    text-overflow: ellipsis !important;
        max-width: 100%;
  }
  .zzhl ul li { width:100%; }
  .fixed-button { right: 6px; bottom: 80px; }
  #nav2[data-fixed="fixed"]{ left: 0; transform: none; width: 100%; max-width: 100%; }
    }

/* 更小屏幕的进一步优化 */
@media screen and (max-width:480px){
  .nav2 { font-size: 12px !important; }
  .nav2 ul li a { font-size: 11px !important; padding: 1px 0 !important; }
}

/* 开奖区iframe样式优化 - 自动适配高度 */
#lotteryIframe {
  width: 100% !important;
  height: 350px !important;
  min-height: 300px !important;
  max-height: 500px !important;
  border: 0;
  display: block;
  overflow-y: auto;
    overflow-x: hidden;
}

/* 响应式：移动端开奖区iframe */
@media screen and (max-width:640px){
  #lotteryIframe {
    height: 320px !important;
    min-height: 280px !important;
    max-height: 450px !important;
}
}

@media screen and (max-width:480px){
  #lotteryIframe {
    height: 300px !important;
    min-height: 250px !important;
    max-height: 400px !important;
    }
}

