Files
hfb_jysh/distribution-admin/src/style.css
T

362 lines
6.4 KiB
CSS

:root {
--brand-ink: #1e4d42;
--brand-ink-deep: #153a32;
--brand-seal: #a64332;
--brand-brass: #b08a4a;
--brand-line: #e4ded2;
--brand-paper: #f6f2e8;
--brand-paper-warm: #fffdf8;
font-family: 'Noto Sans SC', Inter, -apple-system, BlinkMacSystemFont, 'PingFang SC',
'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
color: #1c2521;
background: var(--brand-paper);
}
* {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
margin: 0;
padding: 0;
}
.app {
height: 100vh;
min-height: 100vh;
overflow: hidden;
display: flex;
flex-direction: row;
}
.app-sider {
height: 100vh !important;
position: sticky !important;
top: 0;
left: 0;
overflow: hidden;
flex-shrink: 0;
z-index: 100;
background: var(--brand-ink-deep);
box-shadow: 4px 0 24px rgba(21, 58, 50, 0.18);
}
.app-sider .ant-layout-sider-children {
display: flex;
flex-direction: column;
height: 100vh;
overflow-y: auto;
overflow-x: hidden;
}
.app-sider .ant-layout-sider-children::-webkit-scrollbar {
width: 4px;
}
.app-sider .ant-layout-sider-children::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 2px;
}
.app-sider .ant-layout-sider-children::-webkit-scrollbar-track {
background: transparent;
}
.brand {
height: 64px;
padding: 0 18px;
color: #f0f4f2;
font-size: 15px;
font-weight: 600;
letter-spacing: 0.5px;
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
border-bottom: 1px solid rgba(236, 208, 177, 0.14);
}
.brand__tag {
padding: 2px 7px;
border: 1px solid rgba(236, 208, 177, 0.45);
border-radius: 2px;
color: #ecd0b1;
font-size: 10px;
font-weight: 400;
letter-spacing: 0.12em;
}
.brand__sub {
padding: 8px 20px 10px;
color: rgba(236, 208, 177, 0.5);
font-size: 9px;
letter-spacing: 0.2em;
}
.app-sider .ant-menu {
background: transparent;
border-inline-end: 0 !important;
}
.app-layout {
height: 100vh;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
min-width: 0;
background: var(--brand-paper);
}
.header {
flex-shrink: 0;
height: 64px;
line-height: 64px;
display: flex;
align-items: center;
justify-content: space-between;
background: var(--brand-paper-warm);
padding: 0 24px;
border-bottom: 1px solid var(--brand-line);
box-shadow: 0 1px 2px rgba(30, 77, 66, 0.03);
z-index: 99;
}
.header-left {
display: flex;
align-items: center;
gap: 12px;
}
.header-right {
display: flex;
align-items: center;
gap: 16px;
}
.user-profile {
display: flex;
align-items: center;
gap: 8px;
}
.app-content {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
background: var(--brand-paper);
}
.app-content::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.app-content::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 3px;
}
.app-content::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
.app-content::-webkit-scrollbar-track {
background: transparent;
}
.page {
width: 100%;
max-width: 1600px;
margin: 0 auto;
padding: 24px;
}
/* AntD Table Typography & Layout Tweaks */
.ant-table-cell {
vertical-align: middle !important;
}
.ant-typography-copy {
display: inline-flex !important;
align-items: center !important;
vertical-align: middle !important;
margin-inline-start: 4px !important;
flex-shrink: 0 !important;
}
.ant-typography {
word-break: keep-all;
}
.mono-code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
white-space: nowrap !important;
word-break: keep-all !important;
}
.stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
width: 100%;
}
/* Login Page Styles */
.login-container {
min-height: 100vh;
display: grid;
grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
gap: 28px;
padding: 28px;
background:
radial-gradient(circle at 16% 18%, rgba(166, 67, 50, 0.07), transparent 42%),
var(--brand-paper);
}
.login-brand {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
overflow: hidden;
padding: 48px 54px;
border-radius: 14px;
background: var(--brand-ink);
color: #f0f4f2;
}
.login-brand::after {
content: '';
position: absolute;
inset: 14px;
border: 1px solid rgba(236, 208, 177, 0.22);
border-radius: 10px;
pointer-events: none;
}
.login-brand__logo {
margin-bottom: 34px;
}
.login-brand__eyebrow {
color: #ecd0b1;
font-size: 10px;
letter-spacing: 0.22em;
}
.login-brand h1 {
margin: 12px 0 16px;
color: #f6f2e8;
font-family: 'Noto Serif SC', 'Songti SC', serif;
font-size: 38px;
font-weight: 600;
line-height: 1.28;
letter-spacing: 0.04em;
}
.login-brand h1 span {
display: block;
margin-top: 8px;
color: #b9cbc3;
font-size: 15px;
font-weight: 400;
letter-spacing: 0.08em;
}
.login-brand p {
max-width: 430px;
margin: 0 0 24px;
color: #b9cbc3;
font-size: 13px;
line-height: 1.9;
}
.login-brand ul {
display: flex;
flex-direction: column;
gap: 10px;
margin: 0;
padding: 0;
color: #d9e5df;
font-size: 12px;
list-style: none;
}
.login-brand li::before {
content: '·';
margin-right: 8px;
color: #ecd0b1;
}
.login-brand__seal {
position: absolute;
right: 42px;
bottom: 40px;
display: flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
border: 2px solid var(--brand-seal);
color: #ecd0b1;
font-family: 'Noto Serif SC', 'Songti SC', serif;
font-size: 15px;
transform: rotate(-4deg);
}
.login-card {
align-self: center;
width: 100%;
max-width: 460px;
margin: 0 auto;
padding: 20px 16px;
border: 1px solid var(--brand-line);
border-radius: 14px;
background: var(--brand-paper-warm);
box-shadow: 0 24px 48px rgba(30, 77, 66, 0.08);
}
.login-header {
margin-bottom: 26px;
text-align: center;
}
.login-header__mobile-logo {
display: none;
margin-bottom: 18px;
}
.login-footer {
text-align: center;
margin-top: 24px;
padding-top: 16px;
border-top: 1px solid var(--brand-line);
}
@media (max-width: 980px) {
.login-container {
grid-template-columns: minmax(0, 1fr);
padding: 16px;
}
.login-brand {
display: none;
}
.login-header__mobile-logo {
display: block;
}
}
@media (max-width: 720px) {
.page {
padding: 16px;
}
.stats {
grid-template-columns: 1fr;
}
.header {
padding: 0 12px;
}
}