* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      background: transparent;
      font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
      font-size: 12px;
      padding: 0;
    }
    
    .lottery-vertical-container {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    
    .lottery-row {
      background: url('/static/img/back_index.jpg') no-repeat center center;
      background-size: 100% 100%;
      min-height: 70px;
      height: auto;
      display: flex;
      align-items: stretch;
      border-radius: 4px;
      overflow: hidden;
      position: relative;
    }
    
    .lottery-name {
      width: 25%;
      min-height: 70px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #333;
      font-weight: bold;
      font-size: 16px;
      text-align: center;
      padding: 5px;
      border-right: 1px solid rgba(0,0,0,0.1);
    }
    
    .lottery-numbers {
      width: 65%;
      min-height: 70px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 5px;
    }
    
    .lottery-record {
      width: 10%;
      min-height: 70px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      border-left: 1px solid rgba(0,0,0,0.1);
      padding: 5px 0;
    }
    
    .number-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 0 2px;
    }
    
    .number-ball {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #000;
      font-weight: bold;
      font-size: 16px;
      margin-bottom: 2px;
      background-size: 100% 100%;
      background-position: center center;
      background-repeat: no-repeat;
      transform: translate(1px, -1px);
    }
    
    .ball-red {
      background-image: url('/static/img/ball-red.png');
    }
    
    .ball-blue {
      background-image: url('/static/img/ball-blue.png');
    }
    
    .ball-green {
      background-image: url('/static/img/ball-green.png');
    }
    
    .ball-gray {
      background-color: #888;
    }
    
    .sxwx-text {
      font-size: 10px;
      color: #333;
      text-align: center;
      min-height: 12px;
    }
    
    .plus-sign {
      font-size: 18px;
      font-weight: bold;
      color: #333;
      margin: 0 5px;
      line-height: 30px;
    }
    
    .refresh-btn {
      color: #007bff;
      text-decoration: none;
      font-size: 12px;
      font-weight: bold;
      padding: 4px 8px;
      background: transparent;
      border-radius: 3px;
      cursor: pointer;
      text-align: center;
      width: 80%;
      border: none;
      transition: color 0.3s;
      white-space: nowrap;
    }
    
    .refresh-btn:hover {
      color: #0056b3;
      text-decoration: underline;
    }
    
    .record-btn {
      color: #f00;
      text-decoration: none;
      font-size: 12px;
      font-weight: bold;
      padding: 4px 8px;
      background: rgba(255,255,255,0.8);
      border-radius: 3px;
      text-align: center;
      width: 80%;
      transition: background 0.3s;
      white-space: nowrap;
    }
    
    .record-btn:hover {
      background: rgba(255,255,255,1);
    }
    
    @media (max-width: 400px) {
      .lottery-row { min-height: 65px; }
      .lottery-name,
      .lottery-numbers,
      .lottery-record { min-height: 65px; }
      .lottery-name { font-size: 14px; }
      .number-ball { width: 26px; height: 26px; font-size: 14px; }
      .plus-sign { font-size: 16px; margin: 0 3px; }
      .sxwx-text { font-size: 9px; }
      .refresh-btn,
      .record-btn { font-size: 11px; padding: 3px 1px; }
    }
    
    @media (max-width: 350px) {
      .lottery-row { min-height: 60px; }
      .lottery-name,
      .lottery-numbers,
      .lottery-record { min-height: 60px; }
      .lottery-name { font-size: 13px; padding: 3px; }
      .number-ball { width: 24px; height: 24px; font-size: 13px; }
      .sxwx-text { font-size: 8px; }
      .refresh-btn,
      .record-btn { font-size: 10px; padding: 2px 0; }
      .lottery-record { padding: 0 1px; }
    }
    
    .loading {
      opacity: 0.7;
    }
    
    .error-message {
      color: #f00;
      text-align: center;
      padding: 10px;
    }
    
    .countdown-container {
      display: flex;
      width: 100%;
      height: 100%;
      align-items: center;
      justify-content: space-between;
      padding: 0 10px;
    }
    
    .next-period {
      font-size: 14px;
      font-weight: bold;
      color: #333;
      white-space: nowrap;
    }
    
    .countdown-timer {
      font-size: 16px;
      font-weight: bold;
      color: #ff0000;
      white-space: nowrap;
    }
    
    @media (max-width: 400px) {
      .next-period { font-size: 13px; }
      .countdown-timer { font-size: 14px; }
    }
    
    @media (max-width: 350px) {
      .next-period { font-size: 12px; }
      .countdown-timer { font-size: 13px; }
    }