:root { --primary: #8b5cf6; --background: #121212; --text: #f1f1f1; --muted: #888; --code-bg: #1e1e1e; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter', sans-serif; background: var(--background); color: var(--text); padding: 60px 20px 60px 240px; line-height: 1.7; overflow-x: hidden; animation: fadeIn 1s ease-out; } h1, h2, h3 { color: var(--primary); } .container { max-width: 960px; margin: 0 auto; animation: slideUp 1.2s ease forwards; } .section { margin-bottom: 60px; animation: fadeIn 1.2s ease-in-out; } pre { background: var(--code-bg); padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 14px; color: #f1f1f1; box-shadow: 0 0 12px rgba(0, 0, 0, 0.3); transition: transform 0.4s ease, box-shadow 0.4s ease; } pre:hover { transform: scale(1.03); box-shadow: 0 0 24px rgba(139, 92, 246, 0.6); } .code-snippet { display: none; } .code-snippet.active { display: block; animation: fadeIn 0.6s ease-in-out; } footer { text-align: center; color: var(--muted); margin-top: 60px; font-size: 14px; opacity: 0.6; } .sidebar { position: fixed; top: 0; right: 0; width: 200px; height: 100%; background: #1e1e1e; border-left: 2px solid var(--primary); padding: 40px 20px; z-index: 1000; display: flex; flex-direction: column; gap: 12px; animation: slideInRight 1s ease forwards; } .sidebar h3 { margin-bottom: 16px; font-size: 18px; color: var(--primary); text-align: center; } .sidebar button { background: transparent; border: 1px solid var(--primary); color: var(--text); padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: all 0.3s ease; } .sidebar button.active, .sidebar button:hover { background: var(--primary); color: #fff; } .param-table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 14px; color: var(--text); animation: fadeIn 1s ease-in-out; } .param-table th, .param-table td { border: 1px solid #333; padding: 10px; text-align: left; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideUp { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } } @keyframes slideInRight { 0% { transform: translateX(100%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } } @media screen and (max-width: 768px) { body { padding: 40px 16px 60px 16px; } .sidebar { position: static; width: 100%; height: auto; border-left: none; border-bottom: 2px solid var(--primary); padding: 12px 0; flex-direction: row; justify-content: center; gap: 8px; } .sidebar button { padding: 8px 10px; font-size: 14px; flex: 1; } .container { max-width: 100%; padding: 20px 10px; } .param-table { font-size: 12px; } pre { font-size: 12px; padding: 12px; } }