/* style.css - 平特预测页面样式 */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: white;
}
body.page1 {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: white;
}
/* 链接 */
a {
    color: orangered;
    text-decoration: none;
}
a:hover,
a:active {
    color: #00b600;
}
/* 导航条 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    z-index: 1280;
    border-top: 1px solid #fff;
}
.navbar-inner {
    width: 700px;
    height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo img {
    height: 50px;
}
.nav-links {
    font-size: 20px;
    display: flex;
    align-items: center;
    font-weight: bold;
}
.nav-links a + a,
.nav-links a + a img {
    margin-left: 12px;
}
.nav-links img {
    height: 22px;
    vertical-align: middle;
}

/* 占位 div */
.top-space {
    height: 60px;
}
.top-spacee {
    height: 125px;
}
.top-spaceee {
    height: 200px;
}
.top-spaceeee {
    height: 330px;
}

/* 开奖顶部 */
.fixed-div {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 700px;
    padding: 0;
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    z-index: 1000;
}
.fixed-divv {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 700px;
    padding: 0;
    height: 80px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    z-index: 1000;
}

.fixed-divvvv {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 700px;
    padding: 0;
    height: 220px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    z-index: 1000;
}


/* 正文内容 */
.content {
    width: 700px;
    margin: 5px auto 5px;
    background: #fff;
    padding: 5px 0;
}
.content h1 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 0px;
}
.content .subtitle {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    line-height: 1.4;
    margin-top: 0px;
}
.content .subtitle img {
    height: 16px;
    margin-left: 6px;
    vertical-align: middle;
}
.content .text {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.8;
}

/* 小标题 */
.small-title {
    text-align: center;
    font-size: 20px;
    color: #888;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.small-title img {
    height: 14px;
    margin-left: 6px;
    vertical-align: middle;
}
/* 圆形头像图片样式 */
.header-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.header-box img.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}
.header-text h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}
.subtitle {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.subtitle img {
    width: auto;
    height: 18px;
    vertical-align: middle;
}
.subtitle a {
    color: #0078ff;
    text-decoration: none;
}
.subtitle .time {
    margin-left: 10px;
    color: #999;
}
/* 图片样式 */
.img-inline {
    vertical-align: middle;
    max-height: 24px;
}
.img-full {
    display: block;
    width: 100%;
    height: auto;
    margin: 15px 0;
}
/* 单独图片 div（在content内部） */
.fixed-image-container {
    background: #fff;
    padding: 0;
    text-align: center;
}
.fixed-image-container img {
    width: 700px;
    height: auto;
    max-width: 100%;
}
.image-container {
    width: 700px;
    height: auto;
    margin: 0 auto;
}
.mage-container img {
    width: 100%;
    height: auto;
}
/* 新的 图片类 custom-image-container */
.custom-image-container {
    width: 700px;
    height: auto;
    margin: 0 auto;
}
.custom-image-container img {
    width: 100%;
    height: auto;
}
/* 灰线 */
.gray-line {
    height: 1px;
    background-color: #ccc;
    margin: 5px 0;
}

/* 更新日志模块 */
.update-module {}
.update-module__title {
    text-align: center;
    font-weight: bold;
    background-color: #e0f7e0;
    color: #28a745;
    margin-top: 0;
    margin-bottom: 0;
    padding: 12px 0;
    font-size: 24px;
}
.update-module__subtitle {
    text-align: center;
    font-weight: bold;
    color: #fff;
    background: #28a745;
    margin-top: 0;
    margin-bottom: 0;
    padding: 5px 0;
    font-size: 24px;
}
.update-module__list {
    list-style-type: none;
    padding-left: 0;
    margin: 0 0 10px 0;
}
.update-module__item {
    text-align: center;
    font-weight: bold;
    background: #fff;
    transition: background 0.3s;
    margin: 5px 0;
    padding: 8px 0;
    font-size: 20px;
}
.update-module__item:nth-child(even) {
    background-color: #e0f7e0;
}
.update-module__item:hover {
    background: #e6f7e6;
}
.update-module__highlight {
    color: red;
    background-color: yellow;
    font-weight: bold;
    padding: 0 2px;
}
.blue-text {
    color: blue;
    font-style: normal;
}
.red-text {
    color: red;
    background-color: yellow;
    font-style: normal;
    text-decoration: none;
}
.bold {
    font-weight: bold;
}

/* 首页九肖 */
.news-container {
    text-align: center;
}
.news-button {
    margin: 5px;
    padding: 5px 10px;
    font-size: 22px;
    background-color: white;
    border: 2px solid #00b600;
    border-radius: 15px;
    color: #00b600;
    transition: all 0.3s ease;
    cursor: pointer;
}
#news-buttons-container {
    display: flex;
    overflow-x: auto;
    margin: 0 auto;
    gap: 5px;
    white-space: nowrap;
}
#news-buttons-container::-webkit-scrollbar {
    display: none;
}
#news-buttons-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.current-button {
    background-color: #00b600;
    color: white;
}
.news-content {
    border: none;
    background-color: transparent;
}
ul {
    list-style-type: none;
    padding: 0;
}
li {
    margin: 5px 0;
}
.container {
    background-color: white;
}
.news-content {
    font-weight: bold;
    font-size: 20px;
    color: black;
    line-height: 1.5;
}
/* 容器设置 */
.tab-container {
    width: 700px;
    margin: 5px auto;
    background: #fff;
    padding: 5px 0;
}
/* 标签样式 */
.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}
.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 25px;
    background-color: #00b600;
    color: white;
    font-size: 16px;
}
.tab:hover {
    background-color: blue;
}
.active {
    background-color: red;
    color: white;
}
/* 内容样式 */
.tab-content {
    display: none;
    border: 0px solid #ccc;
    border-radius: 0px;
    background-color: white;
    color: #000;
    font-size: 20px;
    line-height: 1.7;
}
.tab-content.active {
    display: block;
}
/* 刷新按钮样式 */
.refresh-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: blue;
    color: white;
    border: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}
.refresh-button:hover {
    background-color: #0080FF;
}
/* 生肖属性文字主标题样式 */
.section-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}
/* 小节标题样式 */
.subsection-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
}
/* 数字相关内容样式 */
.numeric-content {
    font-size: 16px;
    font-weight: normal;
    margin: 10px 0;
    line-height: 1.6;
}
/* 别名相关内容样式 */
.alias-content {
    font-size: 16px;
    font-weight: normal;
    margin: 10px 0;
    line-height: 1.6;
}
/* 段落之间的间距 */
.numeric-content p, .alias-content p {
    margin-bottom: 10px;
}
/* 波色 */
.red-wave {
    color: red;
}
.blue-wave {
    color: blue;
}
.green-wave {
    color: green;
}
/* 底部区 */
.footer {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin: 20px 0;
}
.footer-links {
    margin-bottom: 10px;
}
.footer img {
    height: 20px;
    vertical-align: middle;
}

/* 上一期下一期按钮样式 */
    .period-nav {
      width: 100%;
      max-width: 700px;
      margin: 12px auto 10px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .period-btn {
      background: #fff;
      color: green;
      border: 1px solid green;
      border-radius: 6px;
      padding: 6px 14px;
      font-size: 14px;
      font-weight: bold;
      cursor: pointer;
    }

    .period-btn:hover {
      color: red;
      border-color: red;
    }

    .period-btn:disabled {
      color: #999;
      border-color: #ccc;
      cursor: not-allowed;
    }

    .period-info {
      min-width: 130px;
      text-align: center;
      font-size: 16px;
      font-weight: bold;
      color: #333;
    }

    .period-debug {
      width: 100%;
      max-width: 700px;
      margin: 0 auto 10px;
      text-align: center;
      font-size: 13px;
      color: #666;
      line-height: 1.6;
    }

    .custom-image-container img {
      display: block;
      width: 100%;
      max-width: 700px;
      height: auto;
      margin: 0 auto 8px;
    }



/* 响应式 */
/* ===== 手机版适配 ===== */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    /* 导航 */
    .navbar {
        height: 50px;
    }

    .navbar-inner {
        width: 100%;
        max-width: 700px;
        height: 50px;
        padding: 0 10px;
    }

    .navbar .logo img {
        height: 43px;
    }

    .nav-links {
        font-size: 16px;
        gap: 10px;
    }

    .nav-links a + a,
    .nav-links a + a img {
        margin-left: 0;
    }

    .nav-links img {
        height: 18px;
    }

    /* 占位高度 */
    .top-space {
        height: 50px;
    }

    .top-spacee {
        height: 105px;
    }

    .top-spaceee {
        height: 165px;
    }
    .top-spaceeee {
        height: 265px;
    }

    /* 固定顶部区域 */
    .fixed-div,
    .fixed-divv {
        top: 50px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
        padding: 0 8px;
    }

    .fixed-div {
        height: 60px;
    }

    .fixed-divv {
        height: 72px;
    }

    /* 主内容区 */
    .content,
    .tab-container,
    .image-container,
    .custom-image-container,
    .fixed-image-container {
        width: 100%;
        max-width: 700px;
        margin: 5px auto;
        padding-left: 8px;
        padding-right: 8px;
    }

    .fixed-image-container img,
    .image-container img,
    .custom-image-container img,
    .img-full {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* 标题与正文 */
    .content h1,
    .header-text h1 {
        font-size: 18px;
        line-height: 1.4;
    }

    .content .subtitle,
    .subtitle {
        font-size: 13px;
        line-height: 1.5;
        flex-wrap: wrap;
    }

    .content .subtitle img,
    .subtitle img {
        height: 14px;
    }

    .content .text,
    .news-content,
    .tab-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .small-title {
        font-size: 17px;
        line-height: 1.4;
    }

    .small-title img {
        height: 12px;
    }

    /* 头像区 */
    .header-box {
        gap: 8px;
    }

    .header-box img.avatar {
        width: 42px;
        height: 42px;
    }

    /* 更新模块 */
    .update-module__title,
    .update-module__subtitle {
        font-size: 18px;
        padding: 8px 0;
    }

    .update-module__item {
        font-size: 16px;
        padding: 6px 0;
        margin: 4px 0;
    }

    /* 九肖按钮 */
    .news-button {
        font-size: 16px;
        padding: 4px 10px;
        margin: 3px;
        border-radius: 12px;
    }

    #news-buttons-container {
        width: 100%;
        padding: 0 4px;
        gap: 4px;
    }

    /* tab 标签 */
    .tabs {
        gap: 8px;
        flex-wrap: wrap;
    }

    .tab {
        font-size: 14px;
        padding: 8px 14px;
        border-radius: 18px;
    }

    .refresh-button {
        font-size: 14px;
        padding: 8px 14px;
        border-radius: 18px;
    }

    /* 文字区 */
    .section-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .subsection-title {
        font-size: 17px;
        margin-top: 14px;
    }

    .numeric-content,
    .alias-content {
        font-size: 14px;
        line-height: 1.7;
    }

     .period-btn {
        padding: 5px 10px;
        font-size: 13px;
      }

      .period-info {
        font-size: 14px;
        min-width: 110px;
      }

      .period-debug {
        font-size: 12px;
      }

    /* 底部 */
    .footer {
        font-size: 14px;
        margin: 15px 0;
        padding: 0 10px;
    }

    .footer img {
        height: 16px;
    }
}