/* 📌 引入现代字体 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

/* 📌 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #fbc2eb);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 📌 让背景框适配 */
#container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.6); /* 柔和背景色 */
    border-radius: 30px; /* 让背景有圆角 */
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.2); /* 柔和阴影 */
    padding: 20px;
    backdrop-filter: blur(10px); /* 玻璃毛玻璃效果 */
}

/* 📌 网格容器 */
#container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 列 */
    gap: 15px;
    width: 100%;
    height: 100%;
    justify-items: center;
    align-items: center;
}

/* 📌 形状样式 */
.square, .circle {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease-in-out;
}

/* 📌 圆形 */
.circle {
    border-radius: 50%;
}

/* 📌 颜色 */
.red { background: linear-gradient(135deg, #ff6b6b, #ff3b3b); }
.wood { background: linear-gradient(135deg, #8d6e63, #5d4037); }
.yellow { background: linear-gradient(135deg, #ffeb3b, #ffc107); }

/* 📌 悬停效果 */
.square:hover, .circle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}
/* 侧边栏样式 */
#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: #1a202c; /* 深灰色背景 */
    color: white;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
}

/* 关闭按钮样式 */
#closeSidebar {
    font-size: 24px;
    color: #a0aec0; /* 浅灰色 */
    border: none;
    background: none;
    cursor: pointer;
}

#closeSidebar:hover {
    color: white;
}

/* 侧边栏标题 */
.sidebar-title {
    color: #63b3ed; /* 淡蓝色 */
    font-size: 20px;
    font-weight: bold;
    margin-top: 16px;
}

/* 侧边栏内的导航菜单 */
.sidebar-menu {
    margin-top: 24px;
}

.sidebar-menu li {
    list-style: none;
    margin-bottom: 16px;
}

/* 按钮样式 */
.sidebar-link {
    display: block;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #a0aec0; /* 浅灰色 */
    background: linear-gradient(to right, #4299e1, #2b6cb0); /* 渐变蓝 */
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-link:hover {
    color: white;
    background: linear-gradient(to right, #3182ce, #2c5282);
}

/* 侧边栏展开按钮 */
#openSidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px;
    background-color: #3182ce;
    color: white;
    border-radius: 0 8px 8px 0;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

#openSidebar:hover {
    background-color: #2c5282;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: #333;
    color: white;
    font-size: 0.9rem;
  }

  .bigimage{
    width: 100%;
  }
  .littleimage{
    width:20%;
    height:20%;
  }

  /* 📌 全局重置 & 字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }
  
  /* 📌 整页背景 + 居中布局 */
  body {
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #fbc2eb);
    min-height: 100vh;
  
    /* 关键：Flex 布局，纵向排列，子元素全局居中 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  /* 📌 简易导航 */
  .simple-nav {
    background-color: #333;
    padding: 0.75rem 1rem;
    width: 100%;
  }
  .simple-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .simple-nav li + li {
    margin-left: 1.5rem;
  }
  .simple-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
  }
  .simple-nav a:hover {
    color: #ddd;
  }
  .simple-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: #fff;
    transition: width 0.3s;
  }
  .simple-nav a:hover::after {
    width: 100%;
  }
  .simple-nav .hamburger {
    display: none;
    position: absolute;
    top: 50%; right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
  }
  /* 手机折叠逻辑保留不变… */
  
  /* 📌 方块容器：保持之前的样式 */
  #container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.6);
    border-radius: 30px;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.2);
    padding: 20px;
    backdrop-filter: blur(10px);
  }
  #container {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
    width: 100%; height: 100%;
    justify-items: center;
    align-items: center;
  }
  .square, .circle {
    width: 80px; height: 80px;
    transition: transform 0.3s ease-in-out;
  }
  .circle { border-radius: 50%; }
  .red    { background: linear-gradient(135deg,#ff6b6b,#ff3b3b); }
  .wood   { background: linear-gradient(135deg,#8d6e63,#5d4037); }
  .yellow { background: linear-gradient(135deg,#ffeb3b,#ffc107); }
  .square:hover, .circle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
  }
  
  /* 📌 页脚文字居中 */
  footer {
    margin-top: 2rem;
  }
  footer p {
    text-align: center;
    color: #333;
    font-size: 0.9rem;
  }
  