Files
client-web/src/styles/index.css
T
2026-08-03 20:50:32 +08:00

157 lines
13 KiB
CSS

@import './foundation.css';
@import './shell.css';
.auth-page { min-height: 100vh; background: #eef3f3; }
.auth-header { display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 6vw, 90px); border-bottom: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 13px; }
.auth-brand { display: flex; min-width: 0; align-items: center; color: var(--navy); text-decoration: none; }
.auth-brand-logo { display: block; width: 158px; height: 56px; object-fit: contain; object-position: left center; }
.auth-header a { color: var(--primary); text-decoration: none; }
.auth-main { display: grid; min-height: calc(100vh - 72px); grid-template-columns: 1fr 440px; align-items: center; gap: clamp(60px, 10vw, 150px); width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0; }
.auth-kicker, .section-label { color: var(--primary); font-size: 11px; font-weight: 750; letter-spacing: .13em; }
.auth-copy h1 { margin: 15px 0 20px; color: var(--navy); font-size: clamp(38px, 4.5vw, 62px); line-height: 1.14; letter-spacing: -.04em; }
.auth-copy > p { max-width: 520px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.auth-facts { display: flex; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.auth-facts span { padding: 8px 12px; border: 1px solid #cbdad7; background: rgba(255,255,255,.7); color: #40534f; font-size: 12px; }
.auth-card { padding: 38px; border: 1px solid var(--border); background: #fff; box-shadow: 0 14px 36px rgba(23,50,77,.08); }
.auth-card h2 { margin: 0 0 8px; font-size: 26px; }
.auth-card > p { margin: 0 0 28px; color: var(--muted); }
.auth-form-options { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -2px 0 18px; }
.auth-form-options button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--primary); cursor: pointer; }
.auth-form-options button:hover { text-decoration: underline; }
.auth-form-options button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.auth-submit { width: 100%; }
.auth-submit span { display: flex; align-items: center; gap: 7px; }
.register-page { min-height: 100vh; background: #f5f7f8; }
.register-header { display: flex; height: 68px; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--border); background: #fff; }
.register-header > a { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; text-decoration: none; }
.register-main { width: min(920px, calc(100% - 32px)); margin: 36px auto; padding: 34px 38px; border: 1px solid var(--border); background: #fff; }
.register-title { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.register-title > div { display: grid; width: 44px; height: 44px; place-items: center; background: #e7f3f1; color: var(--primary); }
.register-title h1 { margin: 0 0 5px; font-size: 23px; }
.register-title p { margin: 0; color: var(--muted); font-size: 12px; }
.register-form { margin-top: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.agreement-item { margin-bottom: 8px; }
.agreement-control { display: flex; min-height: 44px; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--muted); }
.agreement-item .el-checkbox { min-height: 44px; white-space: normal; }
.agreement-required { margin-right: 2px; color: var(--el-color-danger); }
.agreement-item a { color: var(--primary); text-decoration: none; }
.agreement-item a:hover { text-decoration: underline; }
.agreement-item a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.register-security-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.register-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.registration-result { display: flex; min-height: 470px; align-items: center; justify-content: center; flex-direction: column; color: var(--primary); text-align: center; }
.registration-result h1 { margin: 18px 0 8px; color: var(--navy); font-size: 26px; }
.registration-result > p { max-width: 600px; margin: 0; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.registration-result > p strong { color: var(--navy); }
.registration-result dl { display: grid; width: min(620px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 28px 0 0; border: 1px solid var(--border); color: var(--navy); text-align: left; }
.registration-result dl div { min-width: 0; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.registration-result dl div:nth-child(odd) { border-right: 1px solid var(--border); }
.registration-result dt { color: var(--muted); font-size: 11px; }
.registration-result dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 650; }
.registration-next-step { display: flex; width: min(620px, 100%); flex-direction: column; gap: 5px; margin-top: 18px; padding: 14px 16px; border: 1px solid #d9cfad; background: #fff9e9; color: var(--muted); font-size: 12px; line-height: 1.65; text-align: left; }
.registration-next-step strong { color: var(--navy); font-size: 13px; }
.registration-result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.legal-page { min-height: 100vh; background: #f5f7f8; }
.legal-header { position: sticky; top: 0; z-index: 10; display: flex; height: 68px; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .96); }
.legal-header > a:first-child { display: flex; min-height: 44px; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; text-decoration: none; }
.legal-header > a:first-child:hover { color: var(--primary); }
.legal-header a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.legal-main { width: min(860px, calc(100% - 32px)); margin: 36px auto 64px; }
.legal-document { padding: clamp(28px, 5vw, 56px); border: 1px solid var(--border); background: #fff; color: #34464f; }
.legal-title { padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.legal-title h1 { margin: 0 0 20px; color: var(--navy); font-size: clamp(28px, 4vw, 38px); line-height: 1.25; }
.legal-title dl { display: flex; margin: 0; gap: 24px; flex-wrap: wrap; }
.legal-title dl div { display: flex; gap: 6px; font-size: 12px; }
.legal-title dt { color: var(--muted); }
.legal-title dd { margin: 0; color: var(--navy); font-weight: 650; }
.legal-introduction { margin: 28px 0 34px; padding: 18px 20px; background: #eef6f4; color: #29423e; }
.legal-introduction p { margin: 0; font-size: 14px; line-height: 1.9; }
.legal-introduction p + p { margin-top: 10px; }
.legal-section { margin-top: 32px; }
.legal-section h2 { margin: 0 0 12px; color: var(--navy); font-size: 18px; line-height: 1.5; }
.legal-section p, .legal-section li { font-size: 14px; line-height: 1.9; }
.legal-section p { margin: 0; }
.legal-section p + p { margin-top: 10px; }
.legal-section ul { margin: 0; padding-left: 1.35em; }
.legal-section li + li { margin-top: 8px; }
.legal-section li::marker { color: var(--primary); }
.client-dashboard { display: flex; flex-direction: column; gap: 18px; }
.dashboard-load-error { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #f1d4a8; border-radius: 12px; background: #fff9ef; color: #9a5a09; }
.dashboard-load-error > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.dashboard-load-error strong { color: var(--navy); font-size: 14px; }
.dashboard-load-error span { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; line-height: 1.5; }
.quick-order-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 28px; border-left: 4px solid var(--primary); background: var(--navy); color: #fff; }
.quick-order-band span { color: #84c3ba; font-size: 11px; font-weight: 700; }
.quick-order-band h2 { margin: 6px 0; font-size: 22px; }
.quick-order-band p { margin: 0; color: #c6d0db; font-size: 13px; }
.client-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.client-stats article { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--border); background: #fff; color: var(--primary); }
.client-stats article div { display: flex; flex-direction: column; gap: 3px; }
.client-stats span { color: var(--muted); font-size: 12px; }
.client-stats strong { color: var(--navy); font-size: 24px; }
.client-content-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.client-card { padding: 22px; border: 1px solid var(--border); background: #fff; box-shadow: 0 3px 12px rgba(23,50,77,.035); }
.client-card header { display: flex; align-items: center; justify-content: space-between; }
.client-card h3 { margin: 5px 0 14px; font-size: 17px; }
.client-empty { display: grid; min-height: 190px; place-items: center; border-top: 1px solid var(--border); color: #98a2a9; font-size: 13px; text-align: center; }
.recent-orders { border-top: 1px solid var(--border); }
.recent-orders button { display: flex; width: 100%; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; cursor: pointer; text-align: left; }
.recent-orders button:hover { color: var(--primary); }
.recent-orders button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.recent-orders button > span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.recent-orders strong { font-size: 13px; }
.recent-orders small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.profile-summary { margin: 0 0 20px; }
.profile-summary div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); font-size: 12px; }
.profile-summary dt { color: var(--muted); }
.profile-summary dd { margin: 0; font-weight: 600; }
.module-stack { display: flex; flex-direction: column; gap: 14px; }
.el-button--primary { --el-button-bg-color: var(--primary); --el-button-border-color: var(--primary); --el-button-hover-bg-color: var(--primary-dark); --el-button-hover-border-color: var(--primary-dark); }
@media (max-width: 960px) {
.auth-main { grid-template-columns: 1fr; width: min(520px, calc(100% - 32px)); }
.auth-copy { display: none; }
.client-content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
.top-header { inset: 0; width: 100%; max-width: 100vw; padding: 0 14px; }
.client-sidebar { display: flex; width: min(286px, 86vw); padding: 0 14px 18px; visibility: hidden; pointer-events: none; transform: translateX(-100%); transition: transform .2s ease, visibility 0s linear .2s; z-index: 21; }
.mobile-menu-open .client-sidebar { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
.client-sidebar-scrim { position: fixed; inset: 0; z-index: 20; display: block; padding: 0; border: 0; background: rgba(7, 18, 34, .56); }
.client-header-menu-button { background: #eef3f8; color: #24324a; }
.client-sidebar-brand button { display: grid; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff; place-items: center; }
.client-main { width: 100%; max-width: 100%; margin-left: 0; padding: 88px 14px 30px; }
.client-header-menu-button { display: grid; }
.client-header-heading p, .client-user-copy { display: none; }
.client-header-heading h1 { font-size: 16px; }
.client-user { margin-left: auto; }
.dashboard-load-error { grid-template-columns: 1fr; justify-items: start; }
.dashboard-load-error .el-button { width: 100%; min-height: 44px; }
.client-stats { grid-template-columns: 1fr; }
.quick-order-band { align-items: flex-start; flex-direction: column; }
.form-grid { grid-template-columns: 1fr; }
.auth-header { padding: 0 18px; }
.auth-header > div:last-child { display: none; }
.auth-card, .register-main { padding: 26px 20px; }
.registration-result dl { grid-template-columns: 1fr; }
.registration-result dl div:nth-child(odd) { border-right: 0; }
.registration-result-actions { width: 100%; }
.registration-result-actions .el-button { flex: 1; }
.legal-header { height: 60px; padding: 0 16px; }
.legal-header .auth-brand-logo { width: 120px; height: 48px; }
.legal-main { margin: 16px auto 32px; }
.legal-document { padding: 24px 20px; }
.legal-title dl { flex-direction: column; gap: 6px; }
.legal-introduction { margin: 22px 0 28px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
.client-sidebar,
.client-sidebar-group-chevron { transition: none; }
}