From 20f4d61975be38dd925fdb5309429d84380f4b2f Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Wed, 22 Jul 2026 19:29:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0CSS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/public/dnfs.html | 99 +++++++++++++++++++++++++++++----------- static/public/js/dnfs.js | 9 ++-- 2 files changed, 78 insertions(+), 30 deletions(-) diff --git a/static/public/dnfs.html b/static/public/dnfs.html index 0b4bdd0..60e5bfd 100644 --- a/static/public/dnfs.html +++ b/static/public/dnfs.html @@ -23,37 +23,82 @@ margin-right: 0px; background-color: #cfcfcf; } + + /* by qing */ + body { + min-height: 100vh; + display: flex; + justify-content: center; + align-items: center; + background: #c2ccd0; + font-family: system-ui, -apple-system, "Segoe UI", Roboto,sans-serif; + padding: 1rem; + } + + .box { + width: 90%; + } + + .card { + background-color: #eedeb0; + border: 1px solid #000000; + border-radius: 1.125rem; + padding: 1.5rem 1.25rem; + box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02); + /*max-width: 480px;*/ + width: 90%; + color: #4d3e2b; + transition: box-shadow 0.2s, border-color 0.2s; + overflow-wrap: break-word; + } + + .card:hover { + border-color: #c7b38a; + box-shadow: 0 10px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03); + } + + /* 移动端微调 */ + @media (max-width: 480px) { + body { + padding: 0.8rem; + } + + .card { + padding: 1.2rem, 1rem; + border-radius: 1rem; + border-width: 1px; + } + } + + /* 极小屏 (宽度 < 360px) */ + @media (max-width: 360px) { + .card { + padding: 1rem 0.8rem; + border-radius: 0.9rem; + } + } +
-