:root {
/*more*/
--white:#ffffff;
--black:#000000;
--red:#e05a5a;
/*No.1*/
--lightblue:#c3ddf4;
--lightnomalblue:#a2cdef;
--nomalblue:#86bceb;
--darknomalblue:#66abe4;
--darkblue:#5389b8;
/*No.2*/
--no2s1st:#e6edf5;
--no2s2nd:#daecf2;
--no2s3rd:#cadef1;
--no2s4th:#c1e5f2;
}
html {
background-color:var(--lightblue);
}
body {
margin:0;
display:flex;
flex-direction:column;
min-height:100vh;
min-height:100dvh;
}
.导航栏 {
display:flex;
z-index:100;
width:100%;
height:7vh;
height:7dvh;
top:0;
background-color:var(--lightblue);
position: sticky;
box-shadow: 0 8px 32px rgba(44,44,44,0.08);
align-items:center;
flex-shrink:0;
}
.nav-links {
display:flex;
gap:6px;
margin-left:auto;
color:var(--lightnomalblue);
text-decoration: none;
padding-right:7px;
}
.nav-links a {
color:var(--darkblue);
text-decoration: none;
}
.current-tag {
color:var(--darkblue);
font-weight:bold;
padding-left:7px;
}
/*通用*/
.main-text {
display:flex;
flex-direction:column;
margin:0px 0px;
flex:1;
padding-bottom:80px;
}
.main-text h1,
.main-text h2 {
text-align:center;
margin:0px 0px;
}
.main-text-div {
display:flex;
justify-content:center;
align-items:center;
width:80%;
width:80dvw;
height:120px;
align-self: center;
background-color:var(--lightnomalblue);
box-shadow: 0 8px 32px rgba(120,90,70,0.1);
text-align:center;
border-radius: 20px;
margin:20px;
}
.main-text-div-a {
padding-left:7px;
color:var(--darkblue);
text-decoration: none;
font-size:24px;
display:flex;
justify-content:center;
align-items:center;
width:100%;
height:100%;
}
/*contact专区*/
.bilibili,
.xiaohongshu,
.qq,
.wechat {
display:flex;
justify-content:center;
align-items:center;
width:90%;
max-width:500px;
height:120px;
align-self: center;
box-shadow: 0 8px 32px rgba(120,90,70,0.1);
text-align:center;
border-radius: 20px;
margin:20px;
}
.bilibili {
background-color:var(--darknomalblue);
}
.xiaohongshu {
background-color:var(--red);
}
.qq {
background-color:var(--nomalblue);
}
.wechat {
background-color:#07C160;
}
.bilibili a,
.xiaohongshu a,
.qq a,
.wechat a {
color:var(--white);
text-decoration: none;
font-size:24px;
display:flex;
justify-content:center;
align-items:center;
width:100%;
height:100%;
}
/*footer区*/
.footer {
padding:12px 0;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
margin-top:20px;
border-top:1px solid rgba(232,213,196,0.4);
color:var(--darkblue);
font-size:14px;
letter-spacing:0.5px;
box-sizing:border-box;
position:fixed;
bottom:0;
left:0;
width:100%;
background-color:var(--lightnomalblue);
box-shadow:0 -4px 16px rgba(44,44,44,0.08);
}
.footer p {
margin:0;
}
/*工具专区*/
/*工具专区*/
.tool-card {
display:flex;
flex-direction:column;
align-items:center;
gap:16px;
width:80dvw;
max-width:500px;
align-self:center;
padding:24px;
background-color:var(--lightnomalblue);
border-radius:20px;
box-shadow: 0 8px 32px rgba(44,44,44,0.08);
margin:20px;
box-sizing:border-box;
}
.tool-card input {
width:100%;
padding:12px 16px;
font-size:16px;
border:2px solid var(--lightblue);
border-radius:12px;
background-color:var(--white);
color:var(--darkblue);
box-sizing:border-box;
outline:none;
font-family:inherit;
}
.tool-card input:focus {
border-color:var(--darknomalblue);
}
.tool-card button {
padding:12px 32px;
font-size:18px;
background-color:var(--darknomalblue);
color:var(--white);
border:none;
border-radius:12px;
cursor:pointer;
font-family:inherit;
transition:background-color 0.2s;
}
.tool-card button:hover {
background-color:var(--darkblue);
}
.tool-entry {
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
width:100%;
height:100%;
gap:6px;
color:var(--darkblue);
text-decoration: none;
font-size:24px;
}
.card-desc {
font-size:14px;
color:var(--darknomalblue);
}
.symbol-section {
width:80dvw;
max-width:600px;
align-self:center;
background-color:var(--lightnomalblue);
border-radius:20px;
box-shadow:0 8px 32px rgba(44,44,44,0.08);
padding:20px;
margin:16px;
box-sizing:border-box;
}
.symbol-section h3 {
text-align:center;
color:var(--darkblue);
margin:0 0 12px 0;
font-size:18px;
}
.symbol-grid {
display:grid;
grid-template-columns:repeat(auto-fill, minmax(52px, 1fr));
gap:8px;
}
.symbol-cell {
display:flex;
justify-content:center;
align-items:center;
height:52px;
font-size:22px;
background-color:var(--white);
border:1px solid var(--lightblue);
border-radius:10px;
cursor:pointer;
padding:0;
font-family:inherit;
color:var(--darkblue);
transition:background-color 0.15s, color 0.15s, transform 0.15s;
font-size:14px;
white-space:nowrap;
overflow:hidden;
}
.symbol-cell:hover {
background-color:var(--darknomalblue);
color:var(--white);
transform:translateY(-2px);
}
.toast {
position:fixed;
bottom:100px;
left:50%;
transform:translateX(-50%);
background-color:var(--darkblue);
color:var(--white);
padding:10px 20px;
border-radius:20px;
font-size:14px;
opacity:0;
pointer-events:none;
transition:opacity 0.3s;
z-index:9999;
}
.toast.show {
opacity:1;
}
.tool-row {
display:flex;
gap:10px;
width:100%;
}
.tool-row input {
flex:1;
min-width:0;
}
.tool-output {
width:100%;
min-height:80px;
padding:12px 16px;
font-size:20px;
background-color:var(--white);
border:2px solid var(--lightblue);
border-radius:12px;
color:var(--darkblue);
box-sizing:border-box;
word-break:break-all;
line-height:1.5;
}
.preset-row {
display:flex;
flex-wrap:wrap;
gap:8px;
justify-content:center;
width:100%;
}
.preset-btn {
padding:6px 14px;
font-size:14px;
background-color:var(--lightnomalblue);
color:var(--darkblue);
border:1px solid var(--lightblue);
border-radius:20px;
cursor:pointer;
font-family:inherit;
transition:background-color 0.15s, color 0.15s;
}
.preset-btn:hover {
background-color:var(--darknomalblue);
color:var(--white);
border-color:var(--darknomalblue);
}
.preset-btn.active {
background-color:var(--darknomalblue);
color:var(--white);
border-color:var(--darknomalblue);
}
.kb-pinyin {
width:100%;
min-height:34px;
padding:6px 12px;
font-size:18px;
color:var(--darkblue);
border-bottom:1px dashed var(--lightblue);
box-sizing:border-box;
letter-spacing:3px;
text-align:center;
}
.kb-candidates {
display:flex;
flex-wrap:wrap;
gap:6px;
width:100%;
min-height:44px;
justify-content:center;
}
.kb-candidate {
padding:6px 14px;
font-size:20px;
background-color:var(--white);
color:var(--darkblue);
border:1px solid var(--lightblue);
border-radius:10px;
cursor:pointer;
font-family:inherit;
transition:background-color 0.1s;
}
.kb-candidate:hover {
background-color:var(--darknomalblue);
color:var(--white);
}
.kb-keyboard {
display:flex;
flex-direction:column;
gap:6px;
width:100%;
}
.kb-row {
display:flex;
justify-content:center;
gap:1%;
}
.kb-key {
flex:0 0 8.5%;
height:44px;
display:flex;
justify-content:center;
align-items:center;
background-color:var(--white);
border:1px solid var(--lightblue);
border-radius:8px;
font-size:16px;
cursor:pointer;
color:var(--darkblue);
font-family:inherit;
transition:background-color 0.1s;
padding:0;
}
.kb-key:hover {
background-color:var(--lightnomalblue);
}
.kb-key.func {
flex:0 0 18%;
background-color:var(--lightnomalblue);
font-size:14px;
}
.kb-key.wide {
flex:0 0 50%;
background-color:var(--lightnomalblue);
font-size:14px;
}