
  body {
      font-family: 'Microsoft YaHei', sans-serif;
      background: #f0f2f5;
      margin: 0;
      padding: 20px;
      padding-bottom: 80px;
  }
  
  .game-container {
      max-width: 1000px;
      margin: 0 auto;
      padding: 20px;
      background: white;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .board {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
      gap: 6px;
      margin-bottom: 60px;
      padding: 12px;
      background: #f8f9fa;
      border-radius: 8px;
  }
  
  .cell {
      border: 1px solid #e9ecef;
      padding: 6px 3px;
      text-align: center;
      position: relative;
      background: white;
      border-radius: 4px;
      transition: all 0.3s ease;
      font-size: 11px;
  }
  
  .cell:hover {
      transform: translateY(-2px);
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .player1-token, .player2-token {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      transition: all 0.3s ease;
      z-index: 2;
  }
  
  .player1-token {
      background: #ff6b6b;
      left: 5px;
      box-shadow: 0 2px 5px rgba(255,107,107,0.3);
  }
  
  .player2-token {
      background: #4dabf7;
      right: 5px;
      box-shadow: 0 2px 5px rgba(77,171,247,0.3);
  }
  
  .controls {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      display: flex;
      justify-content: space-around;
      padding: 15px;
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
      z-index: 100;
  }
  
  .player1, .player2 {
      text-align: center;
      padding: 15px 25px;
      border-radius: 8px;
      background: white;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  .roll {
      margin-top: 10px;
      padding: 8px 20px;
      border: none;
      border-radius: 20px;
      background: #e9ecef;
      color: #495057;
      cursor: pointer;
      transition: all 0.3s ease;
  }
  
  .roll:not(:disabled):hover {
      transform: translateY(-2px);
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .roll:disabled {
      opacity: 0.5;
      cursor: not-allowed;
  }
  
  .roll.active {
      background: #339af0;
      color: white;
  }
  
  .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
  }
  
  .modal-content {
      background: white;
      padding: 20px;
      width: 90%;
      max-width: 300px;
      border-radius: 15px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      text-align: center;
      position: relative;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 1001;
  }
  
  .roll-result {
      font-size: 20px;
      color: #339af0;
      margin-bottom: 20px;
  }
  
  .task-text {
      font-size: 16px;
      color: #495057;
      margin-bottom: 20px;
  }
  
  .complete-task {
      padding: 10px 25px;
      border: none;
      border-radius: 25px;
      background: #51cf66;
      color: white;
      cursor: pointer;
      transition: all 0.3s ease;
  }
  
  .complete-task:hover {
      background: #40c057;
      transform: translateY(-2px);
  }
  
  .position {
      font-weight: bold;
      color: #495057;
  }
  
  // 添加移动端适配
  @media (max-width: 768px) {
      .game-container {
          padding: 10px;
          margin: 0 5px;
      }
      
      .board {
          grid-template-columns: repeat(5, 1fr);
          gap: 4px;
          padding: 8px;
      }
      
      .cell {
          padding: 4px 2px;
          font-size: 10px;
      }
      
      .player1-token, .player2-token {
          width: 10px;
          height: 10px;
          left: 2px;
      }
      
      .player2-token {
          left: auto;
          right: 2px;
      }
      
      .controls {
          flex-direction: column;
          gap: 10px;
          padding: 15px;
      }
      
      .player1, .player2 {
          width: 100%;
          padding: 10px;
      }
      
      .roll {
          padding: 6px 15px;
          font-size: 14px;
      }
  }
  
  @media (max-width: 480px) {
      .board {
          grid-template-columns: repeat(5, 1fr);
      }
  }
  
  // 优化模态框在移动端的显示
  @media (max-width: 768px) {
      .modal-content {
          width: 90%;
          max-width: 250px;
          padding: 15px;
      }
      
      .roll-result {
          font-size: 16px;
      }
      
      .task-text {
          font-size: 14px;
      }
      
      .complete-task {
          padding: 8px 20px;
          font-size: 14px;
      }
  }
  
  .cell:last-child {
      background: white;
      position: relative;
      overflow: hidden;
      color: white;
      font-weight: bold;
  }
  
  .cell:last-child::before {
      content: "🚩";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 24px;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  }
  
  .cell:last-child:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255,107,107,0.3);
  }
  
  .cell[data-tornado="true"] {
      background: white;
      position: relative;
      overflow: hidden;
  }
  
  .cell[data-tornado="true"]::before {
      content: "🌪️";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 20px;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  }
  