 /* 全局重置 */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body {
      background-color: #fafafa;
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
      color: #333;
      font-size: 14px;
    }

    /* 1. 顶部导航栏 */
    .top-nav {
      background-color: #dc3545;
      color: #fff;
      padding: 12px 15px;
      width: 100%;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    .top-nav-container {
      max-width: 100%;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .nav-logo {
      font-size: 18px;
      font-weight: bold;
      display: flex;
      align-items: center;
    }
    .nav-logo i {
      margin-right: 8px;
    }
    .nav-user {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .nav-user span {
      font-size: 13px;
    }
    .nav-points {
      background-color: #fff;
      color: #dc3545;
      padding: 3px 10px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: bold;
    }
    .nav-btn {
      color: #fff;
      text-decoration: none;
      font-size: 13px;
    }
    .nav-admin {
      background-color: #ffc107;
      color: #333;
      padding: 3px 10px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: bold;
      text-decoration: none;
    }

    /* 2. 开奖模块 */
    .lottery-wrap {
      width: 100%;
      background-color: #fff;
      border-bottom: 1px solid #f0f0f0;
      padding: 12px 15px;
      position: relative;
      z-index: 10;
    }
    .lottery-container {
      max-width: 100%;
      margin: 0 auto;
    }
    /* 倒计时标题栏 */
    .lottery-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }
    .lottery-title {
      font-size: 15px;
      font-weight: bold;
      color: #dc3545;
      display: flex;
      align-items: center;
    }
    .lottery-title i {
      margin-right: 6px;
    }
    #countdownTimer {
      font-size: 13px;
      color: #666;
      text-align: right;
    }
    #countdownTimer .next-issue {
      color: #dc3545;
      font-weight: bold;
    }
    /* 开奖中提示 */
    #drawingStatus {
      font-size: 14px;
      color: #dc3545;
      text-align: center;
      margin: 8px 0;
      display: none;
    }
    #drawingStatus i {
      margin-right: 5px;
      animation: spin 1s linear infinite;
    }
    /* 开奖数字容器 */
    #lotteryNumbers {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      width: 100%;
      margin: 8px 0;
      padding: 0 5px;
      min-height: 80px;
    }
    /* JS动态创建的数字容器 */
    .lottery-number-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 12%;
      max-width: 50px;
    }
    /* 数字圆圈 */
    .lottery-number {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid #eee;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      color: #999;
      position: relative;
      margin-bottom: 4px;
    }
    /* 数字揭晓动画 */
    .lottery-number.revealed {
      color: #fff;
      animation: numberReveal 0.5s ease-out forwards;
    }
    /* 波色标签 */
    .wave-badge {
      position: absolute;
      bottom: -4px;
      right: 0;
      font-size: 10px;
      padding: 0.5px 4px;
      border-radius: 2px;
      color: white;
      font-weight: bold;
    }
    /* 生肖标签 */
    .zodiac-label {
      font-size: 11px;
      color: #666;
      text-align: center;
      width: 100%;
    }
    /* 开奖信息 */
    #currentDrawInfo {
      font-size: 12px;
      color: #999;
      text-align: center;
      margin-top: -20px;
      margin-bottom: 4px;
    }

    /* 3. 文章列表区域 */
    .article-container {
      max-width: 100%;
      padding: 0 15px;
      margin: 15px auto;
    }
    .article-header {
      background-color: #fff;
      padding: 12px 15px;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
      margin-bottom: 15px;
    }
    .article-section-title {
      font-size: 16px;
      font-weight: bold;
      color: #333;
      display: flex;
      align-items: center;
    }
    .article-section-title i {
      color: #dc3545;
      margin-right: 8px;
    }

    /* 文章卡片样式 */
    .article-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .article-card {
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.03);
      padding: 5px 15px; /* 恢复正常内边距 */
      transition: all 0.2s ease;
      height: 50px;
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      justify-content: space-between;
      position: relative; /* 确保卡片作为按钮定位参考 */
    }
    .article-card:hover {
      box-shadow: 0 4px 8px rgba(0,0,0,0.08);
      transform: translateY(-2px);
    }
    .article-content {
      flex: 1;
      min-width: 0;
      padding-right: 10px;
    }
    .article-card-title {
      font-size: 16px;
      font-weight: bold;
      color: #333;
      margin-bottom: 1px;
      line-height: 1.2;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
    }
    /* 标题旁免费标识样式 */
    .article-title-free {
        font-size: 10px;
        color: #28a745;
        margin-left: 8px;
        vertical-align: middle;
        display: flex;
        align-items: center;
        gap: 3px;
    }
    /* 标题旁付费标识样式 */
    .article-title-paid {
        font-size: 10px;
        color: #dc3545;
        margin-left: 8px;
        vertical-align: middle;
        display: flex;
        align-items: center;
        gap: 3px;
    }
    .article-card .article-card-meta {
      display: none;
    }
    .article-card-excerpt {
      font-size: 11px;
      color: #666;
      line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .article-card-footer {
      display: flex;
      justify-content: flex-end;
      align-items: flex-end;
      margin-bottom: 0;
      padding: 0;
      white-space: nowrap;
      height: 100%;
    }
    .article-card-btn {
      padding: 5px 16px;
      border-radius: 4px;
      font-size: 13px;
      font-weight: bold;
      text-decoration: none;
      transition: all 0.2s ease;
      border: 1px solid transparent;
      margin-bottom: 2px; /* 按钮距离卡片底部的距离设为2px */
      align-self: flex-end;
    }
    /* 积分按钮样式 */
    .points-button {
      background-color: #fff;
      color: #dc3545;
      border: 1px solid #dc3545;
      padding: 5px 14px;
      border-radius: 4px;
      font-size: 13px;
      font-weight: bold;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-bottom: 2px; /* 按钮距离卡片底部的距离设为2px */
      align-self: flex-end;
    }
    .points-button:hover {
      background-color: #dc3545;
      color: #fff;
    }
    .btn-view {
      background-color: #dc3545;
      color: #fff;
    }
    .btn-view:hover {
      background-color: #c82333;
      color: #fff;
    }
    .btn-login {
      background-color: #fff;
      color: #dc3545;
      border-color: #dc3545;
    }

    /* 4. 分页样式 */
    .pagination-container {
      margin: 25px auto 15px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      padding: 10px 0;
      flex-wrap: wrap;
    }
    .pagination-btn {
      background-color: #fff;
      border: 1px solid #dc3545;
      color: #dc3545;
      padding: 6px 12px;
      border-radius: 4px;
      font-size: 13px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.2s ease;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .pagination-btn:hover {
      background-color: #dc3545;
      color: #fff;
    }
    .pagination-btn.disabled {
      background-color: #f5f5f5;
      border-color: #ddd;
      color: #999;
      cursor: not-allowed;
      pointer-events: none;
    }
    .pagination-info {
      font-size: 13px;
      color: #666;
      margin: 0 10px;
    }
    .pagination-list {
      display: flex;
      gap: 5px;
    }
    .pagination-item {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      font-size: 13px;
      cursor: pointer;
      text-decoration: none;
    }
    .pagination-item:not(.active) {
      border: 1px solid #dc3545;
      color: #dc3545;
    }
    .pagination-item:not(.active):hover {
      background-color: #dc3545;
      color: #fff;
    }
    .pagination-item.active {
      background-color: #dc3545;
      color: #fff;
      border: 1px solid #dc3545;
      font-weight: bold;
    }

    /* 5. 页脚样式 */
    .footer {
      background-color: #333;
      color: #ccc;
      padding: 12px 0;
      margin-top: 20px;
      width: 100%;
    }
    .footer-content {
      max-width: 100%;
      margin: 0 auto;
      font-size: 12px;
      text-align: center;
      padding: 0 15px;
    }

    /* 6. 模态框美化 */
    .modal-header {
      background-color: #dc3545;
      color: #fff;
      padding: 10px 15px;
    }
    .modal-title {
      font-size: 16px;
      font-weight: bold;
    }
    .modal-body {
      font-size: 14px;
      color: #333;
      padding: 15px;
    }
    .modal-footer {
      padding: 10px 15px;
      border-top: 1px solid #eee;
    }
    .modal-footer .btn {
      font-size: 13px;
      padding: 6px 14px;
      border-radius: 4px;
    }
    .btn-points {
      background-color: #dc3545;
      color: #fff;
      border-color: #dc3545;
    }
    .btn-points:hover {
      background-color: #c82333;
      color: #fff;
    }
    .btn-recharge {
      background-color: #ffc107;
      color: #333;
      border-color: #ffc107;
    }
    .btn-recharge:hover {
      background-color: #e0a800;
      color: #333;
    }

    /* JS用到的动画 */
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    @keyframes numberReveal {
      0% { transform: scale(0.8); opacity: 0; }
      70% { transform: scale(1.1); }
      100% { transform: scale(1); opacity: 1; }
    }
    @keyframes animate-pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }
    .text-red-600 {
      color: #dc3545;
    }
    .animate-pulse {
      animation: animate-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    /* 响应式适配 */
    @media (max-width: 360px) {
      .lottery-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
      }
      .zodiac-label {
        font-size: 10px;
      }
      .pagination-item {
        width: 28px;
        height: 28px;
        font-size: 12px;
      }
      .article-title-free, .article-title-paid {
        font-size: 10px;
        margin-top: 2px;
        margin-left: 0;
      }
    }
    @media (min-width: 420px) {
      .lottery-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
      }
    }
      /* 分页样式 - 确保所有设备都居中 */
    .pagination-container {
        width: 100%;
        margin: 20px auto;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .pagination-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        padding: 0;
        margin: 0 auto;
        width: 100%;
    }

    .pagination-list {
        display: flex;
        margin: 0 10px;
        padding: 0;
    }

    .pagination-item {
        margin: 0 2px;
    }

    .pagination-info {
        text-align: center;
        margin-top: 10px;
        color: #666;
        clear: both;
    }

    /* 美化后的底部导航按钮样式 */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-around;
        background-color: #ffffff;
        padding: 12px 0;
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
        z-index: 1000;
    }

    .bottom-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #666666;
        font-size: 14px;
        width: 40%;
        padding: 8px 0;
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    /* 按钮悬停和点击效果 */
    .bottom-nav-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(13, 110, 253, 0.1);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }

    .bottom-nav-btn:active::after {
        width: 200px;
        height: 200px;
        opacity: 0;
    }

    .bottom-nav-btn i {
        font-size: 22px;
        margin-bottom: 5px;
        transition: transform 0.3s ease;
    }

    .bottom-nav-btn:hover i {
        transform: translateY(-2px);
    }

    /* 激活状态样式 */
    .bottom-nav-btn.active {
        color: #0d6efd;
        font-weight: 500;
        background-color: rgba(13, 110, 253, 0.05);
    }

    .bottom-nav-btn.active i {
        transform: scale(1.1);
    }

    /* 确保内容不被底部导航遮挡 */
    .article-container {
        padding-bottom: 90px;
    }

    /* 文章发布时间样式 */
    .article-publish-time {
        font-size: 12px;
        color: #999;
        margin: 2px 0;
        display: flex;
        align-items: center;
    }

    .article-publish-time i {
        margin-right: 4px;
        font-size: 12px;
    }

    /* 文章摘要样式 - 放在发布时间下方 */
    .article-card-excerpt {
        font-size: 12px;
        color: #666;
        margin: 2px 0 0 0;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 调整文章卡片大小为50px */
    .article-card {
        height: 50px !important;
        padding: 5px 15px !important;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    /* 调整文章标题以适应50px高度 */
    .article-card-title {
        font-size: 14px !important;
        margin-bottom: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 调整按钮大小以适应卡片高度 */
    .article-card-footer .btn-view,
    .article-card-footer .purchase-btn,
    .article-card-footer .btn-login {
        font-size: 12px !important;
        padding: 7px 20px !important;
        height: auto !important;
    }

    /* 响应式调整 */
    @media (max-width: 576px) {
        .pagination-buttons {
            gap: 8px;
        }
        
        .pagination-item {
            margin: 0 1px;
            padding: 3px 8px;
        }
    }