Some checks failed
Build and Deploy Front / deploy (push) Has been cancelled
同步 H5/登录回官网、仓库 PeekModal、运单状态展示与菜单图标目录。 Co-authored-by: Cursor <cursoragent@cursor.com>
268 lines
5.0 KiB
CSS
268 lines
5.0 KiB
CSS
:root {
|
|
--kc-brand: #054f74;
|
|
--kc-brand-hover: #054b6e;
|
|
--kc-brand-rgb: 5, 79, 116;
|
|
--kc-brand-soft: #e0edf2;
|
|
--kc-primary: #054f74;
|
|
--kc-primary-rgb: 5, 79, 116;
|
|
--kc-secondary: #3d6678;
|
|
--kc-tertiary: #054f74;
|
|
--kc-tertiary-rgb: 5, 79, 116;
|
|
--kc-page-bg: #f0f3f4;
|
|
--kc-neutral: #faf8f6;
|
|
--kc-surface: #ffffff;
|
|
--kc-border: #e0d9cc;
|
|
--kc-border-soft: #ebe4d8;
|
|
--kc-text: #1a2e38;
|
|
--kc-text-muted: #4a6270;
|
|
--kc-on-primary: #ffffff;
|
|
--kc-radius-sm: 10px;
|
|
--kc-radius-md: 20px;
|
|
--kc-radius-lg: 32px;
|
|
--font-default: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
|
|
'Microsoft YaHei', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
--font-primary: var(--font-default);
|
|
--font-secondary: var(--font-default);
|
|
--color-default: var(--kc-primary);
|
|
--color-primary: var(--kc-primary);
|
|
--color-secondary: var(--kc-secondary);
|
|
}
|
|
|
|
body.command-home {
|
|
background: #f3f5f6;
|
|
color: var(--kc-text);
|
|
font-family: var(--font-default);
|
|
font-size: 1.05rem;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
body.command-home a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
html.command-home,
|
|
body.command-home {
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.header {
|
|
z-index: 997;
|
|
padding: 30px 0;
|
|
}
|
|
|
|
.header .logo img {
|
|
max-height: 78px;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.header .logo h1 {
|
|
margin: 0;
|
|
color: var(--kc-primary);
|
|
font-family: var(--font-primary);
|
|
font-size: 2.55rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.brand-lockup {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
line-height: 1.05;
|
|
}
|
|
|
|
.brand-lockup h1 {
|
|
margin: 0;
|
|
color: var(--kc-primary);
|
|
font-family: var(--font-primary);
|
|
font-size: 2.15rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.brand-lockup .brand-fullname {
|
|
margin-top: 2px;
|
|
color: var(--kc-secondary);
|
|
font-size: 0.68rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.04em;
|
|
opacity: 0.85;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (max-width: 991px) {
|
|
.brand-lockup .brand-fullname {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1280px) {
|
|
.navbar {
|
|
padding: 0;
|
|
}
|
|
|
|
.navbar ul {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.navbar li {
|
|
position: relative;
|
|
}
|
|
|
|
.navbar a,
|
|
.navbar a:focus {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px 0 10px 22px;
|
|
color: var(--kc-secondary);
|
|
font-family: var(--font-primary);
|
|
font-size: 1.05rem;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
.navbar a:hover,
|
|
.navbar .active,
|
|
.navbar .active:focus,
|
|
.navbar li:hover > a {
|
|
color: var(--kc-primary);
|
|
}
|
|
|
|
.mobile-nav-show,
|
|
.mobile-nav-hide {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1279px) {
|
|
.navbar {
|
|
position: fixed;
|
|
top: 0;
|
|
right: -100%;
|
|
bottom: 0;
|
|
z-index: 9997;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
.navbar ul {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 9998;
|
|
margin: 0;
|
|
padding: 50px 0 10px;
|
|
overflow-y: auto;
|
|
background: var(--kc-primary);
|
|
border-top-left-radius: var(--kc-radius-lg);
|
|
border-bottom-left-radius: var(--kc-radius-lg);
|
|
transition: 0.3s;
|
|
}
|
|
|
|
.navbar a,
|
|
.navbar a:focus {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 20px;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
font-family: var(--font-primary);
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.navbar a:hover,
|
|
.navbar .active,
|
|
.navbar .active:focus,
|
|
.navbar li:hover > a {
|
|
color: #fff;
|
|
}
|
|
|
|
.mobile-nav-toggle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 42px;
|
|
height: 42px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 12px;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.mobile-nav-toggle .si {
|
|
font-size: 26px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.mobile-nav-show {
|
|
z-index: 9999;
|
|
margin-right: 2px;
|
|
color: #fff;
|
|
}
|
|
|
|
.mobile-nav-hide {
|
|
position: fixed;
|
|
top: max(16px, env(safe-area-inset-top, 0px));
|
|
right: max(14px, env(safe-area-inset-right, 0px));
|
|
z-index: 9999;
|
|
color: #fff;
|
|
}
|
|
|
|
.mobile-nav-active {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.mobile-nav-active .navbar {
|
|
right: 0;
|
|
}
|
|
|
|
.mobile-nav-active .navbar:before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 9996;
|
|
background: rgba(14, 29, 52, 0.8);
|
|
}
|
|
}
|
|
|
|
.language-toggle-link,
|
|
.language-toggle-link:focus {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 5px;
|
|
width: auto;
|
|
height: 36px;
|
|
margin-left: 14px;
|
|
padding: 0 4px 0 0;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: var(--kc-text-muted);
|
|
font-size: 1rem;
|
|
font-weight: 400;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.language-toggle-link .language-toggle-icon {
|
|
flex-shrink: 0;
|
|
width: 1em;
|
|
height: 1em;
|
|
font-size: 1.05rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.language-toggle-link:hover {
|
|
background: color-mix(in srgb, var(--kc-brand) 8%, var(--kc-surface));
|
|
color: var(--kc-primary);
|
|
}
|