diff --git a/main.go b/main.go index 5864f96..76e265f 100644 --- a/main.go +++ b/main.go @@ -175,7 +175,7 @@ func handleRoot(w http.ResponseWriter, r *http.Request) { statusIPv6 = "🟡" } - // 🔥 自动检测访问协议和地址 + // 自动检测访问协议和地址 protocol := "http" if r.TLS != nil || r.Header.Get("X-Forwarded-Proto") == "https" { protocol = "https" @@ -263,35 +263,35 @@ func handleRoot(w http.ResponseWriter, r *http.Request) { } h1 { - font-size: 2.5em; - margin-bottom: 10px; - position: relative; - /* 🔥 先设置普通颜色作为基础 */ - color: #667eea; - } - /* 只在支持的浏览器上应用渐变 */ - @supports (background-clip: text) or (-webkit-background-clip: text) { - h1 { - background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; - background-clip: text; - } - } - @media (prefers-color-scheme: dark) { - h1 { - color: #818cf8; - } - - @supports (background-clip: text) or (-webkit-background-clip: text) { - h1 { - background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%); - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; - background-clip: text; - } - } - } + font-size: 2.5em; + margin-bottom: 10px; + position: relative; + color: #667eea; + } + + @supports (background-clip: text) or (-webkit-background-clip: text) { + h1 { + background: linear-gradient(135deg, #667eea 0%%, #764ba2 100%%); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; + } + } + + @media (prefers-color-scheme: dark) { + h1 { + color: #818cf8; + } + + @supports (background-clip: text) or (-webkit-background-clip: text) { + h1 { + background: linear-gradient(135deg, #818cf8 0%%, #a78bfa 100%%); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; + } + } + } .subtitle { color: var(--text-secondary); @@ -511,8 +511,8 @@ func handleRoot(w http.ResponseWriter, r *http.Request) {
自动转换 IP 列表为 RouterOS 可导入格式
+自动转换中国 IP 列表为 RouterOS 可导入格式