Refactor: UI & Feature updates (Calculator, UnitConverter, Privacy, Cleanup)

This commit is contained in:
2026-02-09 01:15:19 +08:00
parent fa1a8e083e
commit 2c5d5b7505
52 changed files with 1351 additions and 2702 deletions

View File

@@ -1,5 +1,5 @@
page {
background-color: #f7f8fa;
background-color: #EBF4F8; /* Color 03 */
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@@ -20,27 +20,27 @@ page {
background: #ffffff;
padding: 10px 24px;
border-radius: 50px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
box-shadow: 0 4px 12px rgba(17, 97, 107, 0.1);
display: flex;
align-items: center;
gap: 10px;
color: #333;
color: #11616B; /* Color 01 */
}
.category-picker .label {
font-size: 14px;
color: #888;
color: #7BBDB6; /* Color 02 */
}
.category-picker .value {
font-size: 18px;
font-weight: 600;
color: #007aff;
color: #11616B; /* Color 01 */
}
.category-picker .arrow {
font-size: 12px;
color: #ccc;
color: #7BBDB6; /* Color 02 */
}
/* 核心转换卡片 */
@@ -48,7 +48,7 @@ page {
background: #ffffff;
border-radius: 20px;
padding: 10px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
box-shadow: 0 8px 24px rgba(17, 97, 107, 0.08); /* Teal shadow */
display: flex;
flex-direction: column;
}
@@ -64,13 +64,13 @@ page {
}
.output-row {
background-color: #f9fbfd; /* 稍微不同的背景色区分输入输出 */
background-color: #EBF4F8; /* Color 03 */
border-radius: 4px 4px 16px 16px;
}
.row-label {
font-size: 12px;
color: #999;
color: #7BBDB6; /* Color 02 */
margin-bottom: 8px;
text-transform: uppercase;
letter-spacing: 1px;
@@ -86,66 +86,68 @@ page {
flex: 1;
font-size: 32px;
font-weight: 500;
color: #333;
color: #11616B; /* Color 01 */
height: 48px;
line-height: 48px;
min-width: 0; /* 防止flex子项溢出 */
min-width: 0;
}
.value-display {
color: #007aff; /* 结果颜色高亮 */
color: #DC8B70; /* Color 05 - Accent for Result */
}
/* 单位选择器 */
.unit-selector {
margin-left: 15px;
display: flex;
align-items: center;
}
.unit-text {
font-size: 16px;
color: #11616B; /* Color 01 */
font-weight: 500;
background-color: rgba(123, 189, 182, 0.2); /* Color 02 Low Opacity */
padding: 6px 12px;
border-radius: 8px;
display: flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
background-color: #f0f2f5;
border-radius: 12px;
font-size: 16px;
color: #444;
font-weight: 500;
transition: background-color 0.2s;
}
.unit-text:active {
background-color: #e1e4e8;
gap: 4px;
}
.unit-arrow {
font-size: 10px;
color: #888;
opacity: 0.6;
}
/* 分割线图标 */
/* 分割线/转换图标 */
.divider {
height: 1px;
background-color: #eee;
margin: 0 20px;
position: relative;
height: 1px;
background-color: rgba(17, 97, 107, 0.1);
margin: 0 20px;
display: flex;
justify-content: center;
align-items: center;
justify-content: center;
z-index: 10;
}
.icon-transfer {
position: absolute;
background: #fff;
color: #ccc;
font-size: 20px;
padding: 0 10px;
top: -14px;
width: 32px;
height: 32px;
background-color: #fff;
border-radius: 50%;
border: 1px solid rgba(17, 97, 107, 0.1);
color: #11616B; /* Color 01 */
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tips {
text-align: center;
margin-top: 30px;
text-align: center;
font-size: 13px;
color: #ccc;
color: #999;
}