html, body { margin: 0; padding: 0; height: 100%; background-color: #f9f9f9; font-family: Arial, sans-serif; color: #333; } body { min-height: 100vh; display: flex; flex-direction: column; } .navbar { height: 49px; display: flex; align-items: center; box-shadow: 1px 1px 3px #e4e4e4; } .title { font-size: 1.5em; margin-left: 10px; color: #333; } .page-layout { flex: 1; display: flex; flex-direction: column; min-height: 0; } .page { width: 100%; display: flex; flex-direction: row; flex: 1; position: relative; max-width: 1400px; margin: 0 auto; } .content { flex: 1; width: 0; } .footer {} .nav { padding: 20px; } .flota-nav { position: sticky; left: 0; top: 20px; width: 80px; padding: 40px 0; border-radius: 80px; background: linear-gradient(135deg, #4fd1ff 0%, #ff6a6a 100%); /* 更明亮的渐变色 */ box-shadow: 0 8px 32px 0 rgba(80, 80, 200, 0.18), 0 2px 16px 0 rgba(255, 106, 106, 0.12); /* 更明显的阴影 */ transition: background 0.3s, box-shadow 0.3s; } .flota-nav .item { display: block; width: 100%; height: 40px; line-height: 40px; color: #fff; text-align: center; cursor: pointer; text-decoration: none; font-weight: bold; font-size: 1.1em; letter-spacing: 1px; margin-bottom: 8px; transition: background 0.2s, color 0.2s, box-shadow 0.2s; box-shadow: 0 2px 8px 0 rgba(79, 209, 255, 0.10); /* item 也加轻微阴影 */ } .flota-nav .item:hover { background: linear-gradient(90deg, #ffb86c 0%, #4fd1ff 100%); color: #fff200; box-shadow: 0 4px 16px 0 rgba(255, 184, 108, 0.18); } .flota-nav .item.active { background: #fff200; color: #ff6a6a; box-shadow: 0 4px 20px 0 rgba(255, 242, 0, 0.22); }