* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'microsoft yahei', sans-serif; overflow: hidden; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; } .background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background:no-repeat center/cover;; z-index: -1; } @keyframes gradientbg { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .logo-container { margin-bottom: 80px; text-align: center; animation: fadein 1.5s ease-out; } .logo { width: 1021px; height: 287px; background: no-repeat center/100%; display: flex; justify-content: center; align-items: center; margin: 0 auto; } .logo i { font-size: 80px; color: #333; } .logo-text { margin-top: 20px; font-size: 32px; font-weight: bold; color: white; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); } .buttons-container { display: flex; gap: 100px; animation: slideup 1s ease-out; } .btn { transform: skew(20deg); position: relative; width: 355px; height: 91px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); overflow: hidden; overflow: hidden; } .btn:hover { transform: skew(20deg) translatey(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); } .btn::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: 0.5s; opacity:0.82; } .btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: 0.5s; } .btn:hover::before { left: 100%; } .btn-content { transform: skew(340deg); display: flex; align-items: center; gap: 17px; color: white; font-weight: bold; font-size: 38px; z-index: 1; } .btn i { font-size: 24px; } .btn-1 { background-color: ; } .btn-1:after{ background: #851818;} .btn-2 { background-color: ; } .btn-2:after{ background: #226bce;} .btn-3 { background-color: ; } .btn-3:after{ background: #ffac27;} @keyframes fadein { from { opacity: 0; transform: translatey(-20px); } to { opacity: 1; transform: translatey(0); } } @keyframes slideup { from { opacity: 0; transform: translatey(30px); } to { opacity: 1; transform: translatey(0); } } @media (max-width: 1300px) { .buttons-container { flex-direction: column; gap: 25px; } .logo { width: 440px; height: 140px; } .logo-container {margin-bottom: 40px;} .logo i { font-size: 60px; } .logo-text { font-size: 26px; } .btn { width: 320px; } } @media (max-width: 479px) { .btn-content{font-size:18px;} .logo { width: 240px; height: 140px; } .btn { width: 220px; height: 50px; } }