html, body, p {
    margin: 0;
    padding: 0;
    color: #3d3a39;
    font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
    text-align: justify;
    font-size: 20px; }
    html, body {
      background: #f2e9d7;
       }
  /* 导航栏样式 */
  .navbar {
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    font-size: 22px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px 20px;
    z-index: 1000;
  }
  h1, h2, h3 {
    font-weight: bold;
  }
  .navbar-custom {
    font-family: 'Arial', sans-serif; /* You can change it to another font */
}
  h1 {
    font-weight: bold;
    color: #776e65;
  }
  /* 导航链接样式 */
  .nav-link {
    margin-right: 20px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    
  }
  
  .nav-link:last-child {
    margin-right: 0;
  }
  
  /* 鼠标悬浮时的颜色 */
  .nav-link:hover {
    color: #497ae6;
  }
  
  /* 当前选中的导航链接 */
  .nav-link.active {
    color: #1faef5; /* 当前选中的链接颜色 */
    font-weight: bold;
  }
  
  /* 页面内容距离顶部的间距 */
  body {
    padding-top: 60px;
  }


  body {
    margin: 0 0; 
  }  
  .heading:after {
    content: "";
    display: block;
    clear: both; }
  
  h1.title {
    font-size: 80px;
    font-weight: bold;
    margin: 0;
    display: block;
    float: center;
 }
  
  @-webkit-keyframes move-up {
    0% {
      top: 25px;
      opacity: 1; }
  
    100% {
      top: -50px;
      opacity: 0; } }
  @-moz-keyframes move-up {
    0% {
      top: 25px;
      opacity: 1; }
  
    100% {
      top: -50px;
      opacity: 0; } }
  @keyframes move-up {
    0% {
      top: 25px;
      opacity: 1; }
  
    100% {
      top: -50px;
      opacity: 0; } }

      .scores-container {
        margin-top: 20px;
        width: 550px;
      }
  .score-container, .best-container , .restart-container, .undo-button{
    position: relative;
    display: inline-block;
    background: #a59a75;
    padding: 2px 2px;
    font-size: 22px;
    height: 25px;
    line-height: 85px;
    font-weight: bold;
    border-radius: 20px;
    color: rgb(106, 33, 23);
    text-align: center; }

 .best-container {
      color: rgb(255, 0, 0);
     }

    .best-container {
      background: #f95899;
     }

     .restart-button {
      background: #9e4cf6;
      text-decoration: none;
      color: #ffffff;
      font-size: 25px;
      height: 25px;
      line-height: 42px;
      text-align: center;
       }

     .undo-button{
      background: #5189bd;
     }
     .disabled{
      background: #747272;
     }
   
    .score-container:after, .best-container:after, .restart-container:after, .undo-button:after {
      position: absolute;
      width: 100%;
      top: 8px;
      left: 0;
      font-size: 14px;
      line-height: 14px;
      text-align: center;
      color: white; }
    .score-container .score-addition, .best-container .score-addition {
      position: absolute;
      right: 40px;
      color: rgb(0, 80, 253);
      font-size: 25px;
      line-height: 25px;
      font-weight: bold;
      z-index: 100;
      text-align: center;
      -webkit-animation: move-up 600ms ease-in;
      -moz-animation: move-up 600ms ease-in;
      animation: move-up 600ms ease-in;
      -webkit-animation-fill-mode: both;
      -moz-animation-fill-mode: both;
      animation-fill-mode: both; }
  
  .score-container:after {
    content: "Score"; }
  
  .best-container:after {
    content: "Best"; }
.restart-container:after {
        content: "Restart"; }
.undo-button:after {
          content: "Undo"; }
  
  a {
    color: #13abec;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer; }
  
  strong.important {
    text-transform: uppercase; }
  
  hr {
    border: none;
    border-bottom: 1px solid #FF99CC;
    margin-top: 20px;
    margin-bottom: 30px; }
  
  .container {
    width: 100%;
    margin: 0 auto; }
  
  @-webkit-keyframes fade-in {
    0% {
      opacity: 0; }
  
    100% {
      opacity: 1; } }
  @-moz-keyframes fade-in {
    0% {
      opacity: 0; }
  
    100% {
      opacity: 1; } }
  @keyframes fade-in {
    0% {
      opacity: 0; }
  
    100% {
      opacity: 1; } }
  .game-container {
    margin-top: 20px;
    position: relative;
    padding: 15px;
    cursor: default;
    -webkit-touch-callout: none;
    -ms-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -ms-touch-action: none;
    touch-action: none;
    background: #dfcbc4;
    border-radius: 6px;
    width: 500px;
    height: 500px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box; }
    .game-container .game-message {
      display: none;
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      background: rgba(238, 228, 218, 0.5);
      z-index: 100;
      text-align: center;
      -webkit-animation: fade-in 800ms ease 1200ms;
      -moz-animation: fade-in 800ms ease 1200ms;
      animation: fade-in 800ms ease 1200ms;
      -webkit-animation-fill-mode: both;
      -moz-animation-fill-mode: both;
      animation-fill-mode: both; }
      .game-container .game-message p {
        font-size: 60px;
        font-weight: bold;
        height: 60px;
        line-height: 60px;
        text-align: center;
        margin-top: 222px; }
      .game-container .game-message .lower {
        display: block;
        margin-top: 59px; }
      .game-container .game-message a {
        display: inline-block;
        background: #FF0066;
        border-radius: 3px;
        padding: 0 20px;
        text-decoration: none;
        color: #FFCCCC;
        height: 40px;
        line-height: 42px;
        margin-left: 9px; }
        .game-container .game-message a.keep-playing-button {
          display: none; }
      .game-container .game-message.game-won {
        background: rgba(237, 194, 46, 0.5);
        color: #FFCCCC; }
        .game-container .game-message.game-won a.keep-playing-button {
          display: inline-block; }
      .game-container .game-message.game-won, .game-container .game-message.game-over {
        display: block; }
  
  .grid-container {
    position: absolute;
    z-index: 1; }
    .game-message.game-over {
      text-align: center;
    }
  
  .grid-row {
    margin-bottom: 15px; }
    .grid-row:last-child {
      margin-bottom: 0; }
    .grid-row:after {
      content: "";
      display: block;
      clear: both; }
  
  .grid-cell {
    width: 106.25px;
    height: 106.25px;
    margin-right: 15px;
    float: left;
    border-radius: 3px;
    background: rgba(238, 228, 218, 0.35); }
    .grid-cell:last-child {
      margin-right: 0; }
  
  .tile-container {
    position: absolute;
    z-index: 2; }
  
  .tile, .tile .tile-inner {
    width: 107px;
    height: 107px;
    line-height: 116.25px; }
  .tile.tile-position-1-1 {
    -webkit-transform: translate(0px, 0px);
    -moz-transform: translate(0px, 0px);
    transform: translate(0px, 0px); }
  .tile.tile-position-1-2 {
    -webkit-transform: translate(0px, 121px);
    -moz-transform: translate(0px, 121px);
    transform: translate(0px, 121px); }
  .tile.tile-position-1-3 {
    -webkit-transform: translate(0px, 242px);
    -moz-transform: translate(0px, 242px);
    transform: translate(0px, 242px); }
  .tile.tile-position-1-4 {
    -webkit-transform: translate(0px, 363px);
    -moz-transform: translate(0px, 363px);
    transform: translate(0px, 363px); }
  .tile.tile-position-2-1 {
    -webkit-transform: translate(121px, 0px);
    -moz-transform: translate(121px, 0px);
    transform: translate(121px, 0px); }
  .tile.tile-position-2-2 {
    -webkit-transform: translate(121px, 121px);
    -moz-transform: translate(121px, 121px);
    transform: translate(121px, 121px); }
  .tile.tile-position-2-3 {
    -webkit-transform: translate(121px, 242px);
    -moz-transform: translate(121px, 242px);
    transform: translate(121px, 242px); }
  .tile.tile-position-2-4 {
    -webkit-transform: translate(121px, 363px);
    -moz-transform: translate(121px, 363px);
    transform: translate(121px, 363px); }
  .tile.tile-position-3-1 {
    -webkit-transform: translate(242px, 0px);
    -moz-transform: translate(242px, 0px);
    transform: translate(242px, 0px); }
  .tile.tile-position-3-2 {
    -webkit-transform: translate(242px, 121px);
    -moz-transform: translate(242px, 121px);
    transform: translate(242px, 121px); }
  .tile.tile-position-3-3 {
    -webkit-transform: translate(242px, 242px);
    -moz-transform: translate(242px, 242px);
    transform: translate(242px, 242px); }
  .tile.tile-position-3-4 {
    -webkit-transform: translate(242px, 363px);
    -moz-transform: translate(242px, 363px);
    transform: translate(242px, 363px); }
  .tile.tile-position-4-1 {
    -webkit-transform: translate(363px, 0px);
    -moz-transform: translate(363px, 0px);
    transform: translate(363px, 0px); }
  .tile.tile-position-4-2 {
    -webkit-transform: translate(363px, 121px);
    -moz-transform: translate(363px, 121px);
    transform: translate(363px, 121px); }
  .tile.tile-position-4-3 {
    -webkit-transform: translate(363px, 242px);
    -moz-transform: translate(363px, 242px);
    transform: translate(363px, 242px); }
  .tile.tile-position-4-4 {
    -webkit-transform: translate(363px, 363px);
    -moz-transform: translate(363px, 363px);
    transform: translate(363px, 363px); }
  
  .tile {
    position: absolute;
    -webkit-transition: 100ms ease-in-out;
    -moz-transition: 100ms ease-in-out;
    transition: 100ms ease-in-out;
    -webkit-transition-property: -webkit-transform;
    -moz-transition-property: -moz-transform;
    transition-property: transform; }
    .tile .tile-inner {
      border-radius: 3px;
      background: #eee4da;
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
      text-align: center;
      font-weight: bold;
      z-index: 10;
      font-size: 0px; }
.navbar-default {
    background-color: #333; /* 设置背景色 */
    border-color: #444; /* 设置边框颜色 */
  }
  
  .navbar-default .navbar-brand {
    color: #fff; /* 设置品牌文字颜色 */
  }
  
  .navbar-default .navbar-nav > li > a {
    color: #fff; /* 设置菜单项文字颜色 */
  }
  
  .navbar-default .navbar-nav > li > a:hover {
    color: #ddd; /* 设置菜单项悬停效果 */
  }

  .navbar-default {
    background: linear-gradient(to right, #f8896e, #f6bb8d); /* 渐变背景 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */
  }
  .navbar-default .navbar-nav > li > a {
    transition: color 0.3s ease;
  }
  
  .navbar-default .navbar-nav > li > a:hover {
    color: #0a8af4; /* 悬停时变为橙色 */
  }




  @media screen and (max-width: 520px) {
    .tile.tile-super .tile-inner {
      font-size: 0px; } }

@-webkit-keyframes appear {
0% {
  opacity: 0;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  transform: scale(0); }

100% {
  opacity: 1;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  transform: scale(1); } }
@-moz-keyframes appear {
0% {
  opacity: 0;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  transform: scale(0); }

100% {
  opacity: 1;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  transform: scale(1); } }
@keyframes appear {
0% {
  opacity: 0;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  transform: scale(0); }

100% {
  opacity: 1;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  transform: scale(1); } }
.tile-new .tile-inner {
-webkit-animation: appear 200ms ease 100ms;
-moz-animation: appear 200ms ease 100ms;
animation: appear 200ms ease 100ms;
-webkit-animation-fill-mode: backwards;
-moz-animation-fill-mode: backwards;
animation-fill-mode: backwards; }

@-webkit-keyframes pop {
0% {
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  transform: scale(0); }

50% {
  -webkit-transform: scale(1.2);
  -moz-transform: scale(1.2);
  transform: scale(1.2); }

100% {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  transform: scale(1); } }
@-moz-keyframes pop {
0% {
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  transform: scale(0); }

50% {
  -webkit-transform: scale(1.2);
  -moz-transform: scale(1.2);
  transform: scale(1.2); }

100% {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  transform: scale(1); } }
@keyframes pop {
0% {
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  transform: scale(0); }

50% {
  -webkit-transform: scale(1.2);
  -moz-transform: scale(1.2);
  transform: scale(1.2); }

100% {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  transform: scale(1); } }
.tile-merged .tile-inner {
z-index: 20;
-webkit-animation: pop 200ms ease 100ms;
-moz-animation: pop 200ms ease 100ms;
animation: pop 200ms ease 100ms;
-webkit-animation-fill-mode: backwards;
-moz-animation-fill-mode: backwards;
animation-fill-mode: backwards; }

.above-game:after {
content: "";
display: block;
clear: both; }

.game-intro {
font-size: 20px;
margin-bottom: 30px;
text-align: justify;
margin-top: 50px; }


.game-explanation  {
margin-top: 50px;
font-size: 20px; }
footer p{
text-align: center;
font-size: 15px;
}

.tips {
  margin-top: 40px;
  text-align: justify;
  font-size: 20px; }

   .tips p {
    text-align: justify;
    font-size: 20px; }


@media screen and (max-width: 870px) {
h1.title {
    font-size: 60px;
     }
.navbar{
      font-size: 20px;
        }
html, body, .game-intro, .game-explanation, p {
              font-size: 18px; }
}

    @media screen and (max-width: 670px) {
      .navbar{
        font-size: 18px;
          }
        h1.title {
            font-size: 45px;
            }
        }
       
  
@media screen and (max-width: 520px) {
 .navbar, html, body, .game-intro, .game-explanation {
    font-size: 18px; }
    footer, footer p{
      font-size: 15px;
      text-align: center;
    font-weight: normal; }
body {
  margin:  0;
  padding: 0 18px; }
  .tips, .tips p {
    margin-top: 20px;
    text-align: justify;
    font-size: 18px; }

h1.title {
  font-size: 30px;
  margin-top: 80px; }

  h2 {
    font-size: 26px;
  }
  h3 {
    font-size: 22px;
  }
  h4 {
    font-size: 20px;
  }

.container {
  width: 100%;
  margin: 0 0; }
  .scores-container {
    width: 280px;
    margin-top: 10px;
  }

.score-container, .best-container, .restart-container, .undo-button {
  margin-top: 0 20px;
  padding: 15px 10px;
  line-height: 70px;
 }

.heading {
  margin-bottom: 10px; }

.game-intro {
  display: block;
  box-sizing: border-box;
  text-align: justify;
  margin-top: 50px;
  }
.game-container {
  margin-top: 17px;
  position: relative;
  padding: 10px;
  cursor: default;
  -webkit-touch-callout: none;
  -ms-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -ms-touch-action: none;
  touch-action: none;
  border-radius: 6px;
  width: 280px;
  height: 280px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; }
  .game-container .game-message {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(238, 228, 218, 0.5);
    z-index: 100;
    text-align: center;
    -webkit-animation: fade-in 800ms ease 1200ms;
    -moz-animation: fade-in 800ms ease 1200ms;
    animation: fade-in 800ms ease 1200ms;
    -webkit-animation-fill-mode: both;
    -moz-animation-fill-mode: both;
    animation-fill-mode: both; }
    .game-container .game-message p {
      font-size: 60px;
      font-weight: bold;
      height: 60px;
      color:  #f80404;
      line-height: 60px;
      margin-top: 222px; }
    .game-container .game-message .lower {
      display: block;
      margin-top: 59px; }
    .game-container .game-message a {
      display: inline-block;
      background: #FF0066;
      border-radius: 3px;
      padding: 0 20px;
      font-weight: bold;
      text-decoration: none;
      color: #ffffff;
      height: 40px;
      line-height: 42px;
      margin-left: 9px; }
      .game-container .game-message a.keep-playing-button {
        display: none; }
    .game-container .game-message.game-won {
      background: rgba(237, 194, 46, 0.5);
      color: #FFCCCC; }
      .game-container .game-message.game-won a.keep-playing-button {
        display: inline-block; }
    .game-container .game-message.game-won, .game-container .game-message.game-over {
      display: block; }

.grid-container {
  position: absolute;
  z-index: 1; }

.grid-row {
  margin-bottom: 10px; }
  .grid-row:last-child {
    margin-bottom: 0; }
  .grid-row:after {
    content: "";
    display: block;
    clear: both; }

.grid-cell {
  width: 57.5px;
  height: 57.5px;
  margin-right: 10px;
  float: left;
  border-radius: 3px;
  background: rgba(238, 228, 218, 0.35); }
  .grid-cell:last-child {
    margin-right: 0; }

.tile-container {
  position: absolute;
  z-index: 2; }

.tile, .tile .tile-inner {
  width: 58px;
  height: 58px;
  line-height: 67.5px; }
.tile.tile-position-1-1 {
  -webkit-transform: translate(0px, 0px);
  -moz-transform: translate(0px, 0px);
  transform: translate(0px, 0px); }
.tile.tile-position-1-2 {
  -webkit-transform: translate(0px, 67px);
  -moz-transform: translate(0px, 67px);
  transform: translate(0px, 67px); }
.tile.tile-position-1-3 {
  -webkit-transform: translate(0px, 135px);
  -moz-transform: translate(0px, 135px);
  transform: translate(0px, 135px); }
.tile.tile-position-1-4 {
  -webkit-transform: translate(0px, 202px);
  -moz-transform: translate(0px, 202px);
  transform: translate(0px, 202px); }
.tile.tile-position-2-1 {
  -webkit-transform: translate(67px, 0px);
  -moz-transform: translate(67px, 0px);
  transform: translate(67px, 0px); }
.tile.tile-position-2-2 {
  -webkit-transform: translate(67px, 67px);
  -moz-transform: translate(67px, 67px);
  transform: translate(67px, 67px); }
.tile.tile-position-2-3 {
  -webkit-transform: translate(67px, 135px);
  -moz-transform: translate(67px, 135px);
  transform: translate(67px, 135px); }
.tile.tile-position-2-4 {
  -webkit-transform: translate(67px, 202px);
  -moz-transform: translate(67px, 202px);
  transform: translate(67px, 202px); }
.tile.tile-position-3-1 {
  -webkit-transform: translate(135px, 0px);
  -moz-transform: translate(135px, 0px);
  transform: translate(135px, 0px); }
.tile.tile-position-3-2 {
  -webkit-transform: translate(135px, 67px);
  -moz-transform: translate(135px, 67px);
  transform: translate(135px, 67px); }
.tile.tile-position-3-3 {
  -webkit-transform: translate(135px, 135px);
  -moz-transform: translate(135px, 135px);
  transform: translate(135px, 135px); }
.tile.tile-position-3-4 {
  -webkit-transform: translate(135px, 202px);
  -moz-transform: translate(135px, 202px);
  transform: translate(135px, 202px); }
.tile.tile-position-4-1 {
  -webkit-transform: translate(202px, 0px);
  -moz-transform: translate(202px, 0px);
  transform: translate(202px, 0px); }
.tile.tile-position-4-2 {
  -webkit-transform: translate(202px, 67px);
  -moz-transform: translate(202px, 67px);
  transform: translate(202px, 67px); }
.tile.tile-position-4-3 {
  -webkit-transform: translate(202px, 135px);
  -moz-transform: translate(202px, 135px);
  transform: translate(202px, 135px); }
.tile.tile-position-4-4 {
  -webkit-transform: translate(202px, 202px);
  -moz-transform: translate(202px, 202px);
  transform: translate(202px, 202px); }

.tile .tile-inner {
  font-size: 0px; }

.game-message p {
  font-size: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  margin-top: 90px !important; }
.game-message .lower {
  margin-top: 30px !important; } }

  .lazy-image {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    width: 0px; /* 根据实际图片调整 */
    height: 0px; /* 根据实际图片调整 */
    background-color: #f0f0f0; /* 占位色 */
  }