* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Microsoft YaHei', sans-serif; background-color: #f5f5f5; } .page { width: 100%; min-height: 100vh; display: none; padding: 40px; background-color: #fff; transition: all 0.3s ease; } .page.active { display: block; animation: fadeIn 0.5s ease; } .navigation { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background-color: rgba(255, 255, 255, 0.9); padding: 15px 25px; border-radius: 50px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .navigation button { padding: 8px 20px; margin: 0 10px; border: none; border-radius: 25px; background-color: #4CAF50; color: white; cursor: pointer; transition: all 0.3s ease; } .navigation button:hover { background-color: #45a049; transform: translateY(-2px); } #pageIndicator { margin: 0 15px; font-size: 16px; color: #333; } .content-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; max-width: 1200px; margin: 0 auto; } .content-item { width: 280px; height: 200px; background-color: #ffffff; border-radius: 15px; padding: 20px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 18px; color: #333; } .content-item:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); } /* 添加页面标题 */ .page-title { text-align: center; margin-bottom: 30px; color: #333; font-size: 24px; } #toggleNav { position: fixed; bottom: 30px; right: 30px; padding: 10px 20px; border: none; border-radius: 25px; background-color: #2196F3; color: white; cursor: pointer; transition: all 0.3s ease; z-index: 1000; } #toggleNav:hover { background-color: #1976D2; transform: translateY(-2px); } .number-navigation { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background-color: rgba(255, 255, 255, 0.9); padding: 15px 25px; border-radius: 50px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .page-button { padding: 8px 15px; margin: 0 5px; border: none; border-radius: 25px; background-color: #4CAF50; color: white; cursor: pointer; transition: all 0.3s ease; } .page-button.active { background-color: #45a049; transform: scale(1.1); }