setPassword(e.target.value)}
@@ -119,10 +142,11 @@ export default function AuthModal({ open, onClose }: AuthModalProps) {
{/* 昵称(注册时) */}
{mode === 'register' && (
-
-
+
+
setNickname(e.target.value)}
@@ -133,40 +157,31 @@ export default function AuthModal({ open, onClose }: AuthModalProps) {
{/* 错误提示 */}
{error && (
-
+
{error}
)}
{/* 提交 */}
-
);
-}
\ No newline at end of file
+}
diff --git a/perler-lab/src/pages/pages.css b/perler-lab/src/pages/pages.css
index ef377be..2099883 100644
--- a/perler-lab/src/pages/pages.css
+++ b/perler-lab/src/pages/pages.css
@@ -1,57 +1,9 @@
/* =============================================================================
* PERLER LAB — Showcase 作品展示 (/showcase) + 图纸库 (/library)
- * 令牌与 DESIGN.md §1 / ChibiPage.css 保持一致,作用域限定在 .pl-page 下
+ * v2.0 起 token 统一由 styles.css :root 提供(DESIGN.md §1),此处不再作用域重定义
* ========================================================================= */
.pl-page {
- /* ── 色彩系统 ── */
- --bg-page: #f4f3ef;
- --bg-card: #ffffff;
- --bg-subtle: #f0ede4;
- --bg-hover: #faf9f4;
- --text-primary: #171713;
- --text-secondary: #66645d;
- --text-tertiary: #8a877d;
- --text-disabled: #b0aca0;
- --text-on-dark: #ffffff;
- --accent: #edb045;
- --accent-hover: #dda02e;
- --accent-soft: #fdf3df;
- --success: #3daf80;
- --danger: #e04f4f;
- --info: #3677d2;
- --border: #e6e3d9;
- --border-strong: #d2cec4;
- --border-dashed: #e0dccd;
-
- /* ── 字体系统 ── */
- --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", "PingFang SC",
- "Microsoft YaHei", sans-serif;
- --text-xs: 11px;
- --text-sm: 12px;
- --text-md: 13px;
- --text-lg: 17px;
- --text-xl: 20px;
- --text-hero: 32px;
-
- /* ── 间距 / 圆角 / 阴影 ── */
- --space-1: 4px;
- --space-2: 8px;
- --space-3: 12px;
- --space-4: 16px;
- --space-5: 24px;
- --space-6: 32px;
- --radius-sm: 8px;
- --radius-md: 10px;
- --radius-lg: 12px;
- --radius-full: 999px;
- --shadow-card: 0 1px 2px rgba(0, 0, 0, .04);
- --shadow-float: 0 2px 12px rgba(23, 23, 19, .08);
-
- /* ── 触控目标 ── */
- --touch-min: 40px;
- --touch-min-sm: 34px;
-
background: var(--bg-page);
color: var(--text-primary);
font-family: var(--font-sans);
@@ -69,14 +21,6 @@
padding: 0;
}
-.pl-page button {
- font-family: inherit;
- cursor: pointer;
- border: none;
- background: none;
- color: inherit;
-}
-
.pl-page a {
color: inherit;
text-decoration: none;
diff --git a/perler-lab/src/styles.css b/perler-lab/src/styles.css
index 20746cc..e1e529f 100644
--- a/perler-lab/src/styles.css
+++ b/perler-lab/src/styles.css
@@ -1,52 +1,57 @@
/* ============================================================
- PERLER LAB · 设计令牌 (DESIGN.md §1)
+ PERLER LAB · 设计令牌 (DESIGN.md v2.0 §1)
============================================================ */
:root {
- /* 背景层级 */
+ /* 背景层级(暖纸) */
--bg-page: #f4f3ef;
- --bg-card: #ffffff;
+ --bg-card: #fffefa;
--bg-subtle: #f0ede4;
--bg-hover: #faf9f4;
- /* 文字层级 */
- --text-primary: #171713;
- --text-secondary: #66645d;
+ /* 文字层级(暖墨) */
+ --text-primary: #1f1d17;
+ --text-secondary: #615e54;
--text-tertiary: #8a877d;
--text-disabled: #b0aca0;
- --text-on-dark: #ffffff;
+ --text-on-dark: #fffefa;
/* 功能色 */
--accent: #edb045;
- --accent-strong: #d99a2b;
- --success: #3daf80;
- --danger: #e04f4f;
+ --accent-hover: #e3a335;
+ --accent-strong: #d18f1f;
+ --accent-ink: #8a5c08;
+ --accent-soft: #f7e3bb;
+ --success: #2f9e77;
+ --danger: #d94848;
+ --danger-soft: #fbeaea;
--info: #3677d2;
/* 边框 */
--border: #e6e3d9;
--border-strong: #d2cec4;
- --border-dashed: #e0dccd;
+ --border-dashed: #ddd8c8;
- /* 网格线(图纸) */
+ /* 网格线(图纸导出专用,勿改) */
--grid-strong: rgba(20, 20, 18, 0.78);
--grid-medium: rgba(30, 30, 28, 0.45);
--grid-light: rgba(30, 30, 28, 0.16);
- /* 字体 */
- --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', 'PingFang SC',
- 'Microsoft YaHei', sans-serif;
- --font-mono: 'Geist Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
+ /* 字体:Nunito(拉丁/数字,圆端呼应豆子)+ 系统 CJK */
+ --font-sans: 'Nunito', 'PingFang SC', 'Microsoft YaHei', system-ui,
+ -apple-system, 'Segoe UI', sans-serif;
+ --font-mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
/* 字号 */
- --text-xs: 11px;
- --text-sm: 12px;
- --text-md: 13px;
- --text-lg: 17px;
- --text-xl: 20px;
- --text-hero: 32px;
+ --text-xs: 12px;
+ --text-sm: 13px;
+ --text-md: 14px;
+ --text-lg: 18px;
+ --text-xl: 22px;
+ --text-hero: clamp(30px, 4.5vw, 42px);
--weight-regular: 400;
- --weight-medium: 500;
+ --weight-medium: 600;
--weight-bold: 700;
+ --weight-black: 800;
/* 间距 */
--space-1: 4px;
@@ -55,23 +60,30 @@
--space-4: 16px;
--space-5: 24px;
--space-6: 32px;
+ --space-7: 48px;
- /* 圆角 / 阴影 */
+ /* 圆角 / 阴影(暖调分层,模糊 ≤12px) */
--radius-sm: 8px;
--radius-md: 10px;
- --radius-lg: 12px;
+ --radius-lg: 14px;
--radius-full: 999px;
- --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
- --shadow-modal: 0 8px 32px rgba(23, 23, 19, 0.14);
- --shadow-float: 0 2px 12px rgba(23, 23, 19, 0.08);
+ --shadow-card: 0 1px 2px rgba(31, 29, 23, 0.05), 0 2px 8px rgba(31, 29, 23, 0.04);
+ --shadow-modal: 0 12px 40px rgba(31, 29, 23, 0.18), 0 2px 8px rgba(31, 29, 23, 0.08);
+ --shadow-float: 0 2px 10px rgba(31, 29, 23, 0.1);
- /* 触控 */
- --touch-min: 40px;
- --touch-min-sm: 34px;
+ /* 触控 / 焦点 / 动效 */
+ --touch-min: 44px;
+ --touch-min-sm: 36px;
+ --focus-ring: 0 0 0 3px rgba(237, 176, 69, 0.45);
+ --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
+ --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
+ --dur-fast: 150ms;
+ --dur-med: 220ms;
+ --dur-slow: 300ms;
/* 布局 */
--layout-max: 1280px;
- --nav-height: 56px;
+ --nav-height: 60px;
}
*,
@@ -200,10 +212,10 @@ a {
height: 28px;
border-radius: var(--radius-sm);
background: var(--accent);
- color: var(--text-on-dark);
+ color: var(--text-primary);
display: grid;
place-items: center;
- font-weight: var(--weight-bold);
+ font-weight: var(--weight-black);
font-size: 16px;
line-height: 1;
}
@@ -220,6 +232,7 @@ a {
}
.nav-link {
+ position: relative;
font-size: var(--text-md);
color: var(--text-secondary);
padding: 4px 2px;
@@ -227,24 +240,52 @@ a {
display: inline-flex;
align-items: center;
gap: var(--space-1);
+ transition: color var(--dur-fast) ease;
}
-.nav-link:hover {
- color: var(--text-primary);
+/* 底部琥珀短线:hover 淡入,激活常驻 */
+.nav-link::after {
+ content: '';
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: -2px;
+ height: 2px;
+ border-radius: var(--radius-full);
+ background: var(--accent);
+ transform: scaleX(0);
+ transform-origin: left;
+ transition: transform var(--dur-fast) var(--ease-out);
+}
+
+@media (hover: hover) {
+ .nav-link:hover {
+ color: var(--text-primary);
+ }
+ .nav-link:hover::after {
+ transform: scaleX(1);
+ }
}
.nav-link--active {
- color: var(--text-primary);
+ color: var(--accent-ink);
font-weight: var(--weight-medium);
- text-decoration: underline;
- text-underline-offset: 4px;
- text-decoration-color: var(--accent);
+}
+
+.nav-link--active::after {
+ transform: scaleX(1);
+}
+
+.nav-link:focus-visible {
+ outline: none;
+ box-shadow: var(--focus-ring);
+ border-radius: 4px;
}
.nav-pro-badge {
- font-size: 9px;
+ font-size: 10px;
font-weight: var(--weight-bold);
- color: var(--text-on-dark);
+ color: var(--text-primary);
background: var(--accent);
border-radius: var(--radius-full);
padding: 1px 6px;
@@ -281,8 +322,9 @@ a {
}
.nav-lang-btn--active {
- color: var(--text-on-dark);
+ color: var(--text-primary);
background: var(--accent);
+ font-weight: var(--weight-medium);
}
@@ -317,6 +359,13 @@ a {
============================================================ */
.hero {
padding: 64px 0 48px;
+ /* Pegboard 圆点纹理:拼豆底板符号(DESIGN.md §2.1,全站唯一装饰纹理) */
+ background:
+ radial-gradient(rgba(209, 143, 31, 0.1) 1.5px, transparent 1.5px) 0 0 /
+ 22px 22px,
+ var(--bg-page);
+ border-bottom: 1px solid var(--border);
+ margin-bottom: var(--space-6);
}
.hero-eyebrow {
@@ -324,21 +373,24 @@ a {
font-weight: var(--weight-bold);
letter-spacing: 0.18em;
text-transform: uppercase;
- color: var(--accent-strong);
+ color: var(--accent-ink);
margin: 0 0 var(--space-3);
}
.hero-title {
font-size: var(--text-hero);
- font-weight: var(--weight-bold);
- line-height: 1.25;
+ font-weight: var(--weight-black);
+ line-height: 1.18;
+ letter-spacing: -0.01em;
margin: 0 0 var(--space-4);
max-width: 640px;
+ text-wrap: balance;
}
.hero-title em {
- font-style: italic;
- color: var(--accent-strong);
+ font-style: normal;
+ font-weight: var(--weight-black);
+ color: var(--accent-ink);
}
.hero-sub {
@@ -412,6 +464,19 @@ a {
flex-direction: column;
gap: var(--space-2);
box-shadow: var(--shadow-card);
+ transition: transform var(--dur-fast) var(--ease-out),
+ box-shadow var(--dur-fast) ease;
+}
+
+@media (hover: hover) {
+ .pass-card:hover {
+ transform: translateY(-2px);
+ box-shadow: var(--shadow-float);
+ }
+}
+
+.pass-card:focus-within {
+ box-shadow: var(--focus-ring);
}
.pass-card--featured {
@@ -423,7 +488,7 @@ a {
top: -10px;
right: var(--space-4);
background: var(--accent);
- color: var(--text-on-dark);
+ color: var(--text-primary);
font-size: var(--text-xs);
font-weight: var(--weight-bold);
padding: 2px 10px;
@@ -436,9 +501,10 @@ a {
}
.pass-card-price {
- font-size: 30px;
- font-weight: var(--weight-bold);
+ font-size: 32px;
+ font-weight: var(--weight-black);
line-height: 1.1;
+ font-variant-numeric: tabular-nums;
}
.pass-card-price small {
@@ -453,22 +519,87 @@ a {
margin: 0 0 var(--space-3);
}
-.pass-cta {
- margin-top: auto;
+/* ---- 主按钮共享规格(DESIGN.md §3.1:琥珀底暖墨字) ---- */
+.pass-cta,
+.regen-btn,
+.download-btn,
+.redeem-btn,
+.mobile-cta-btn {
min-height: var(--touch-min);
border-radius: var(--radius-md);
- font-size: var(--text-md);
- font-weight: var(--weight-medium);
- color: var(--text-on-dark);
background: var(--accent);
- padding: 0 var(--space-4);
- transition: background 0.15s ease;
+ color: var(--text-primary);
+ font-size: var(--text-md);
+ font-weight: var(--weight-bold);
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: var(--space-2);
+ padding: 0 var(--space-5);
+ transition: transform var(--dur-fast) var(--ease-out),
+ background var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
-.pass-cta:hover {
+@media (hover: hover) {
+ .pass-cta:hover:not(:disabled),
+ .regen-btn:hover:not(:disabled),
+ .download-btn:hover:not(:disabled),
+ .redeem-btn:hover:not(:disabled),
+ .mobile-cta-btn:hover:not(:disabled) {
+ background: var(--accent-hover);
+ box-shadow: var(--shadow-float);
+ }
+}
+
+.pass-cta:active:not(:disabled),
+.regen-btn:active:not(:disabled),
+.download-btn:active:not(:disabled),
+.redeem-btn:active:not(:disabled),
+.mobile-cta-btn:active:not(:disabled) {
+ transform: scale(0.97);
background: var(--accent-strong);
}
+.pass-cta:focus-visible,
+.regen-btn:focus-visible,
+.download-btn:focus-visible,
+.redeem-btn:focus-visible,
+.mobile-cta-btn:focus-visible {
+ outline: none;
+ box-shadow: var(--focus-ring);
+}
+
+.pass-cta:disabled,
+.regen-btn:disabled,
+.download-btn:disabled,
+.redeem-btn:disabled,
+.mobile-cta-btn:disabled {
+ background: var(--bg-subtle);
+ color: var(--text-disabled);
+ box-shadow: none;
+ cursor: not-allowed;
+ transform: none;
+}
+
+/* 各按钮原有布局差异保留 */
+.pass-cta {
+ margin-top: auto;
+}
+
+.regen-btn {
+ width: 100%;
+ margin-top: var(--space-5);
+}
+
+.download-btn {
+ padding: 0 var(--space-4);
+}
+
+.download-btn:disabled {
+ background: var(--bg-subtle);
+ color: var(--text-disabled);
+}
+
.pass-cta--outline {
background: var(--bg-card);
color: var(--text-primary);
@@ -551,12 +682,24 @@ a {
gap: var(--space-2);
text-align: center;
cursor: pointer;
- transition: border-color 0.15s ease, background 0.15s ease;
+ transition: border-color var(--dur-fast) ease,
+ transform var(--dur-fast) var(--ease-out);
}
-.upload-zone:hover {
- border-color: var(--accent);
- background: var(--bg-hover);
+@media (hover: hover) {
+ .upload-zone:hover {
+ border-color: var(--accent);
+ transform: translateY(-1px);
+ background:
+ radial-gradient(rgba(209, 143, 31, 0.12) 1.5px, transparent 1.5px) 0 0 /
+ 22px 22px,
+ var(--bg-hover);
+ }
+}
+
+.upload-zone:focus-visible {
+ outline: none;
+ box-shadow: var(--focus-ring);
}
.upload-zone--error {
@@ -567,6 +710,12 @@ a {
font-size: 26px;
color: var(--text-tertiary);
line-height: 1;
+ transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
+}
+
+.upload-zone:hover .upload-plus {
+ color: var(--accent-ink);
+ transform: scale(1.1);
}
.upload-title {
@@ -684,19 +833,31 @@ a {
color: var(--text-secondary);
border: 1px solid var(--border-strong);
border-radius: var(--radius-sm);
- transition: all 0.15s ease;
+ transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease,
+ background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
-.preset-btn:hover {
- border-color: var(--accent);
- color: var(--text-primary);
+@media (hover: hover) {
+ .preset-btn:hover {
+ border-color: var(--accent);
+ color: var(--text-primary);
+ }
+}
+
+.preset-btn:active {
+ transform: scale(0.97);
+}
+
+.preset-btn:focus-visible {
+ outline: none;
+ box-shadow: var(--focus-ring);
}
.preset-btn--active {
background: var(--accent);
border-color: var(--accent);
- color: var(--text-on-dark);
- font-weight: var(--weight-medium);
+ color: var(--text-primary);
+ font-weight: var(--weight-bold);
}
/* Toggle 开关 (§3.3) */
@@ -730,11 +891,16 @@ a {
height: 22px;
border-radius: var(--radius-full);
background: var(--border-strong);
- transition: background 0.15s ease;
+ transition: background 180ms ease;
flex-shrink: 0;
min-height: 22px;
}
+.toggle:focus-visible {
+ outline: none;
+ box-shadow: var(--focus-ring);
+}
+
.toggle--on {
background: var(--accent);
}
@@ -748,43 +914,18 @@ a {
border-radius: 50%;
background: #ffffff;
box-shadow: var(--shadow-float);
- transition: transform 0.15s ease;
+ transition: transform 180ms var(--ease-out);
}
.toggle--on .toggle-knob {
transform: translateX(18px);
}
-.regen-btn {
- width: 100%;
- min-height: var(--touch-min);
- margin-top: var(--space-5);
- border-radius: var(--radius-md);
- background: var(--text-primary);
- color: var(--text-on-dark);
- font-size: var(--text-md);
- font-weight: var(--weight-medium);
- display: inline-flex;
- align-items: center;
- justify-content: center;
- gap: var(--space-2);
- transition: opacity 0.15s ease;
-}
-
-.regen-btn:hover:not(:disabled) {
- opacity: 0.88;
-}
-
-.regen-btn:disabled {
- opacity: 0.5;
- cursor: not-allowed;
-}
-
.regen-spinner {
width: 14px;
height: 14px;
- border: 2px solid rgba(255, 255, 255, 0.35);
- border-top-color: #ffffff;
+ border: 2px solid rgba(31, 29, 23, 0.25);
+ border-top-color: var(--text-primary);
border-radius: 50%;
animation: spin 0.7s linear infinite;
}
@@ -847,30 +988,6 @@ a {
white-space: nowrap;
}
-.download-btn {
- min-height: var(--touch-min);
- padding: 0 var(--space-4);
- border-radius: var(--radius-md);
- background: var(--accent);
- color: var(--text-on-dark);
- font-size: var(--text-md);
- font-weight: var(--weight-medium);
- display: inline-flex;
- align-items: center;
- gap: var(--space-2);
- transition: background 0.15s ease;
-}
-
-.download-btn:hover:not(:disabled) {
- background: var(--accent-strong);
-}
-
-.download-btn:disabled {
- background: var(--bg-subtle);
- color: var(--text-disabled);
- cursor: not-allowed;
-}
-
.download-note {
font-size: var(--text-xs);
color: var(--text-tertiary);
@@ -905,12 +1022,24 @@ a {
justify-content: center;
gap: var(--space-2);
cursor: pointer;
- transition: border-color 0.15s ease, color 0.15s ease;
+ transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease,
+ transform var(--dur-fast) var(--ease-out);
}
-.share-btn:hover {
- border-color: var(--accent);
- color: var(--accent);
+@media (hover: hover) {
+ .share-btn:hover {
+ border-color: var(--accent);
+ color: var(--accent-ink);
+ }
+}
+
+.share-btn:active {
+ transform: scale(0.97);
+}
+
+.share-btn:focus-visible {
+ outline: none;
+ box-shadow: var(--focus-ring);
}
.share-toast {
@@ -1207,26 +1336,42 @@ a {
}
/* ============================================================
- 弹窗 (§3.5)
+ 弹窗 (DESIGN.md §3.3)
============================================================ */
.modal-mask {
position: fixed;
inset: 0;
- background: rgba(23, 23, 19, 0.4);
+ background: rgba(31, 29, 23, 0.45);
z-index: 200;
display: grid;
place-items: center;
padding: var(--space-4);
+ animation: mask-in var(--dur-med) ease both;
}
.modal {
width: 100%;
- max-width: 380px;
+ max-width: 400px;
background: var(--bg-card);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-modal);
- padding: var(--space-5);
+ padding: var(--space-6) var(--space-5) var(--space-5);
position: relative;
+ transform-origin: center;
+ animation: modal-in var(--dur-med) var(--ease-out) both;
+}
+
+@keyframes mask-in {
+ from {
+ opacity: 0;
+ }
+}
+
+@keyframes modal-in {
+ from {
+ opacity: 0;
+ transform: scale(0.95) translateY(8px);
+ }
}
.modal-close {
@@ -1237,14 +1382,26 @@ a {
height: var(--touch-min-sm);
display: grid;
place-items: center;
- font-size: var(--text-lg);
color: var(--text-tertiary);
border-radius: var(--radius-sm);
+ transition: background var(--dur-fast) ease, color var(--dur-fast) ease,
+ transform var(--dur-fast) var(--ease-out);
}
-.modal-close:hover {
- background: var(--bg-hover);
- color: var(--text-primary);
+@media (hover: hover) {
+ .modal-close:hover {
+ background: var(--bg-subtle);
+ color: var(--text-primary);
+ }
+}
+
+.modal-close:active {
+ transform: scale(0.94);
+}
+
+.modal-close:focus-visible {
+ outline: none;
+ box-shadow: var(--focus-ring);
}
.modal-title {
@@ -1253,37 +1410,139 @@ a {
margin: 0 0 var(--space-4);
}
+.modal-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding-right: var(--space-6); /* 给右上角关闭按钮留位 */
+ margin: 0 0 var(--space-2);
+}
+
+.modal-header .modal-title {
+ margin: 0;
+}
+
+.modal-hint {
+ font-size: var(--text-sm);
+ color: var(--text-secondary);
+ line-height: 1.6;
+ margin: 0 0 var(--space-5);
+}
+
+.modal-footer {
+ text-align: center;
+ margin-top: var(--space-4);
+}
+
+/* 表单字段(AuthModal 等使用,DESIGN.md §3.2) */
+.field {
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+ margin-bottom: var(--space-4);
+}
+
+.field-label {
+ font-size: var(--text-sm);
+ font-weight: var(--weight-medium);
+ color: var(--text-primary);
+}
+
+.input {
+ width: 100%;
+ min-height: var(--touch-min);
+ border: 1.5px solid var(--border-strong);
+ border-radius: var(--radius-md);
+ padding: 0 var(--space-4);
+ font-size: var(--text-md);
+ font-family: inherit;
+ background: var(--bg-card);
+ color: var(--text-primary);
+ outline: none;
+ transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
+}
+
+.input::placeholder {
+ color: var(--text-disabled);
+}
+
+.input:focus {
+ border-color: var(--accent);
+ box-shadow: var(--focus-ring);
+}
+
+.input--error {
+ border-color: var(--danger);
+ background: var(--danger-soft);
+}
+
+.form-error {
+ display: flex;
+ align-items: flex-start;
+ gap: var(--space-2);
+ font-size: var(--text-sm);
+ color: var(--danger);
+ background: var(--danger-soft);
+ border-radius: var(--radius-sm);
+ padding: var(--space-2) var(--space-3);
+ margin: 0 0 var(--space-4);
+}
+
+.btn-block {
+ width: 100%;
+}
+
+/* 切换链接(登录/注册互切) */
+.switch-link {
+ background: none;
+ border: none;
+ color: var(--accent-ink);
+ cursor: pointer;
+ font-size: var(--text-sm);
+ font-weight: var(--weight-medium);
+ padding: var(--space-2);
+ border-radius: var(--radius-sm);
+ transition: font-weight var(--dur-fast) ease;
+}
+
+@media (hover: hover) {
+ .switch-link:hover {
+ text-decoration: underline;
+ text-underline-offset: 3px;
+ }
+}
+
+.switch-link:focus-visible {
+ outline: none;
+ box-shadow: var(--focus-ring);
+}
+
.redeem-input {
width: 100%;
min-height: var(--touch-min);
- border: 1px solid var(--border-strong);
+ border: 1.5px solid var(--border-strong);
border-radius: var(--radius-md);
padding: 0 var(--space-3);
font-size: var(--text-md);
font-family: var(--font-mono);
- background: var(--bg-hover);
+ background: var(--bg-card);
+ color: var(--text-primary);
outline: none;
- transition: border-color 0.15s ease;
+ transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
+}
+
+.redeem-input::placeholder {
+ color: var(--text-disabled);
}
.redeem-input:focus {
border-color: var(--accent);
+ box-shadow: var(--focus-ring);
}
.redeem-btn {
width: 100%;
- min-height: var(--touch-min);
margin-top: var(--space-3);
- border-radius: var(--radius-md);
- background: var(--accent);
- color: var(--text-on-dark);
- font-size: var(--text-md);
- font-weight: var(--weight-medium);
- transition: background 0.15s ease;
-}
-
-.redeem-btn:hover {
- background: var(--accent-strong);
}
.redeem-error {
@@ -1404,11 +1663,6 @@ a {
.mobile-cta-btn {
flex: 1;
min-height: 44px;
- border-radius: var(--radius-md);
- background: var(--accent);
- color: var(--text-on-dark);
- font-size: var(--text-md);
- font-weight: var(--weight-medium);
}
.footer-inner {
@@ -1502,7 +1756,7 @@ a {
font-family: var(--font-mono);
font-size: var(--text-lg);
font-weight: var(--weight-bold);
- color: var(--accent-strong);
+ color: var(--accent-ink);
letter-spacing: 0.5px;
user-select: all;
}
@@ -1512,3 +1766,24 @@ a {
color: var(--success);
margin: 0;
}
+
+/* ============================================================
+ 全局兜底 (DESIGN.md v2.0 §3.0)
+ ============================================================ */
+button:focus-visible,
+a:focus-visible {
+ outline: none;
+ box-shadow: var(--focus-ring);
+}
+
+/* 减动效:动画/过渡时长归近零,保留颜色/透明度反馈 */
+@media (prefers-reduced-motion: reduce) {
+ *,
+ *::before,
+ *::after {
+ animation-duration: 0.01ms !important;
+ animation-iteration-count: 1 !important;
+ transition-duration: 0.01ms !important;
+ scroll-behavior: auto !important;
+ }
+}