diff --git a/docs/index.html b/docs/index.html index 6d5f4e1..a1c1337 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,10 +1,13 @@ +
- - + + @@ -35,28 +38,52 @@ display: flex; flex-direction: column; align-items: center; - justify-content: center; - min-height: 100vh; /* 使用 min-height 确保内容足够时也能撑开 */ + justify-content: flex-start; + /* 顶部对齐 */ + min-height: 120vh; + /* 增加页面高度 */ margin: 0; background-color: var(--bg-color); color: var(--text-color); transition: background-color 0.3s, color 0.3s; - position: relative; /* 为 fixed 定位提供相对定位的父元素 */ + position: relative; + /* 为 fixed 定位提供相对定位的父元素 */ + padding-top: 60px; + /* 预留顶部浮动面板空间 */ + } + + .loader-container { + position: fixed; + top: 10px; + left: 50%; + transform: translateX(-50%); + background: rgba(0, 0, 0, 0.7); + color: white; + padding: 10px 20px; + border-radius: 5px; + z-index: 1000; + display: flex; + align-items: center; + gap: 10px; } .loader { border: 4px solid var(--loader-bg); border-top: 4px solid var(--loader-accent); border-radius: 50%; - width: 40px; - height: 40px; + width: 20px; + height: 20px; animation: spin 1s linear infinite; - margin-bottom: 20px; } @keyframes spin { - 0% { transform: rotate(0deg); } - 100% { transform: rotate(360deg); } + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } } .message { @@ -93,72 +120,52 @@ opacity: 0.9; line-height: 1.5; } - + .category { margin: 25px 0; text-align: left; max-width: 800px; padding: 0 20px; } - + .category h3 { color: var(--text-color); margin-bottom: 10px; } - + .content { max-width: 800px; margin: 0 auto; padding: 20px; line-height: 1.8; } - + .title { font-size: 2em; margin-bottom: 1em; text-align: center; color: var(--text-color); } - + .section { margin: 2em 0; padding: 1em; border-radius: 8px; background: rgba(255, 255, 255, 0.05); } - + .highlight { color: var(--loader-accent); font-weight: bold; } - - .countdown-container { - display: flex; - justify-content: center; - align-items: center; - gap: 20px; - padding: 15px 30px; - background: rgba(0, 0, 0, 0.7); - border-radius: 30px; - max-width: fit-content; - position: fixed; /* 固定定位 */ - bottom: 20px; /* 距离底部 20px */ - left: 50%; /* 水平居中 */ - transform: translateX(-50%); /* 水平居中 */ - z-index: 1000; /* 确保在最顶层 */ - } - - .countdown-text { - color: white; - font-size: 1.1em; - } - + .button-group { display: flex; gap: 15px; } - - .redirect-btn, .cancel-btn { + + .redirect-btn, + .cancel-btn { padding: 8px 20px; border: none; border-radius: 5px; @@ -166,21 +173,22 @@ transition: opacity 0.3s; font-size: 1em; } - + .redirect-btn { background: var(--loader-accent); color: white; } - + .cancel-btn { background: #666; color: white; } - - .redirect-btn:hover, .cancel-btn:hover { + + .redirect-btn:hover, + .cancel-btn:hover { opacity: 0.8; } - + .message-box { position: fixed; bottom: 20px; @@ -196,6 +204,11 @@ + - - - - -