chore(init): 初始化解忧商行项目并完成 Phase 0 基座

This commit is contained in:
yml2213
2026-10-30 11:46:10 +08:00
commit 8d9481c251
689 changed files with 138703 additions and 0 deletions
+815
View File
@@ -0,0 +1,815 @@
:root {
--brand-ink: #1e4d42;
--brand-ink-deep: #153a32;
--brand-seal: #a64332;
--brand-seal-line: #ecd0b1;
--brand-brass: #b08a4a;
--paper: #f6f2e8;
--paper-warm: #fffdf8;
--ink: #1c2521;
--ink-secondary: #5e6b64;
--ink-muted: #8a948e;
--line: #e4ded2;
--sage: #6f857c;
--success: #2f7d5c;
--warning: #c17a2b;
--danger: #a64332;
--info: #3e6b7a;
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
min-width: 320px;
background: var(--paper);
color: var(--ink);
font-family:
'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
-webkit-font-smoothing: antialiased;
}
a {
color: inherit;
text-decoration: none;
}
.brand-title {
font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif !important;
font-weight: 600 !important;
letter-spacing: 0.04em;
}
.site-shell {
min-height: 100vh;
background: var(--paper);
}
.site-header {
position: sticky;
top: 0;
z-index: 20;
height: 72px;
padding: 0;
background: rgba(255, 253, 248, 0.94);
border-bottom: 1px solid var(--line);
backdrop-filter: blur(14px);
}
.site-header__inner {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1280px;
height: 100%;
margin: 0 auto;
padding: 0 24px;
gap: 24px;
}
.site-brand {
display: inline-flex;
align-items: center;
flex-shrink: 0;
}
.site-nav {
display: flex;
align-items: center;
gap: 30px;
margin-right: auto;
color: var(--ink-secondary);
font-size: 14px;
}
.site-nav a {
position: relative;
padding: 6px 0;
transition: color 160ms ease;
}
.site-nav a:hover {
color: var(--brand-ink);
}
.site-nav a::after {
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 1px;
background: var(--brand-seal);
content: '';
opacity: 0;
transform: scaleX(0.6);
transition:
opacity 160ms ease,
transform 160ms ease;
}
.site-nav a:hover::after {
opacity: 1;
transform: scaleX(1);
}
.site-content {
min-height: calc(100vh - 72px - 140px);
background: var(--paper);
}
.site-footer {
padding: 0;
background: var(--paper-warm);
border-top: 1px solid var(--line);
color: var(--ink-secondary);
}
.site-footer__inner {
display: flex;
align-items: flex-end;
justify-content: space-between;
max-width: 1280px;
margin: 0 auto;
padding: 34px 24px;
gap: 24px;
}
.site-footer__muted {
margin-top: 8px;
color: var(--ink-muted);
font-size: 12px;
}
/* Home hero */
.home-hero {
background: var(--brand-ink);
color: var(--paper-warm);
}
.home-hero__inner {
display: grid;
grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
gap: 48px;
align-items: center;
max-width: 1280px;
min-height: 520px;
margin: 0 auto;
padding: 76px 24px 68px;
}
.home-hero__eyebrow {
color: var(--brand-seal-line);
font-size: 12px;
letter-spacing: 0.18em;
text-transform: uppercase;
}
.home-hero__title {
margin: 18px 0 20px !important;
color: #f0f4f2 !important;
font-size: clamp(42px, 5vw, 68px) !important;
line-height: 1.16 !important;
}
.home-hero__lead {
max-width: 560px;
margin-bottom: 30px !important;
color: #d8e2dd;
font-size: 16px;
line-height: 1.9;
}
.home-hero__search {
width: 420px;
max-width: calc(100vw - 48px);
}
.home-hero__search .ant-input-affix-wrapper {
background: var(--paper-warm);
}
.home-hero__visual {
position: relative;
min-height: 300px;
}
.hero-ticket {
position: absolute;
display: flex;
flex-direction: column;
gap: 8px;
width: 280px;
padding: 22px;
border: 1px solid rgba(30, 77, 66, 0.18);
border-radius: 6px;
background: var(--paper-warm);
box-shadow: 0 1px 2px rgba(21, 58, 50, 0.08), 0 22px 48px rgba(21, 58, 50, 0.2);
color: var(--brand-ink);
}
.hero-ticket span {
color: var(--ink-muted);
font-size: 12px;
letter-spacing: 0.08em;
}
.hero-ticket strong {
font-family: 'Noto Serif SC', 'Songti SC', serif;
font-size: 20px;
font-weight: 600;
line-height: 1.4;
}
.hero-ticket small {
color: var(--ink-secondary);
font-size: 12px;
}
.hero-ticket--back {
top: 8px;
right: 0;
transform: rotate(7deg);
opacity: 0.7;
}
.hero-ticket--main {
top: 58px;
left: 8px;
transform: rotate(-3deg);
}
.hero-ticket--front {
right: 10px;
bottom: 0;
transform: rotate(4deg);
}
.hero-ticket__seal {
display: inline-flex;
align-items: center;
justify-content: center;
width: 46px;
height: 46px;
border: 2px solid var(--brand-seal);
color: var(--brand-seal);
font-family: 'Noto Serif SC', 'Songti SC', serif;
font-size: 13px;
letter-spacing: 0.1em;
}
/* Trust strip */
.trust-strip {
background: var(--paper-warm);
border-bottom: 1px solid var(--line);
}
.trust-strip__inner {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
max-width: 1280px;
margin: 0 auto;
padding: 22px 24px;
gap: 20px;
}
.trust-item {
display: flex;
align-items: flex-start;
gap: 10px;
color: var(--brand-ink);
}
.trust-item > .anticon {
margin-top: 2px;
color: var(--brand-seal);
font-size: 18px;
}
.trust-item strong,
.trust-item span {
display: block;
}
.trust-item strong {
font-size: 14px;
}
.trust-item span {
margin-top: 4px;
color: var(--ink-muted);
font-size: 12px;
line-height: 1.5;
}
/* Sections */
.section-block {
max-width: 1280px;
margin: 0 auto;
padding: 72px 24px;
}
.section-block--paper {
max-width: none;
background: var(--paper-warm);
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}
.section-block--paper > .section-heading,
.section-block--paper > .process-grid {
max-width: 1280px;
margin-right: auto;
margin-left: auto;
}
.section-heading {
display: flex;
align-items: flex-end;
justify-content: space-between;
margin-bottom: 28px;
gap: 24px;
}
.section-heading .ant-typography {
margin-bottom: 6px;
}
.section-eyebrow {
color: var(--brand-seal);
font-size: 11px !important;
letter-spacing: 0.18em;
}
.section-heading h2 {
margin: 6px 0 8px !important;
color: var(--brand-ink) !important;
font-size: 32px !important;
}
/* Listing cards */
.listing-card {
height: 100%;
overflow: hidden;
border-color: var(--line);
background: var(--paper-warm);
transition:
border-color 160ms ease,
transform 160ms ease;
}
.listing-card:hover {
border-color: var(--sage);
transform: translateY(-2px);
}
.listing-cover {
aspect-ratio: 4 / 3;
overflow: hidden;
background: #eef1ea;
}
.listing-cover img {
width: 100%;
height: 100%;
object-fit: cover;
}
.listing-cover--empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
background:
linear-gradient(0deg, rgba(30, 77, 66, 0.04), rgba(30, 77, 66, 0.04)),
var(--paper);
color: var(--brand-ink);
font-family: 'Noto Serif SC', 'Songti SC', serif;
letter-spacing: 0.12em;
}
.listing-card__head,
.listing-card__price-row,
.listing-card__meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.listing-card__no {
color: var(--ink-muted);
font-family: 'Inter', monospace;
font-size: 11px;
letter-spacing: 0.06em;
}
.listing-card__title {
margin: 12px 0 10px !important;
color: var(--ink) !important;
font-size: 17px !important;
}
.listing-card__tags {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.listing-card__tags .ant-tag {
margin: 0;
border-radius: 2px;
background: #eef2ec;
color: var(--brand-ink);
}
.listing-card__meta {
margin-top: 14px;
color: var(--ink-muted);
font-size: 12px;
}
.listing-card__price-row {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--line);
}
.listing-card__price {
color: var(--brand-seal);
font-family: 'Inter', 'DIN Alternate', sans-serif;
font-size: 24px;
font-weight: 700;
}
.listing-card__unit,
.listing-card__deposit {
color: var(--ink-muted);
font-size: 12px;
}
.empty-panel {
display: flex;
justify-content: center;
padding: 64px 24px;
border: 1px dashed var(--line);
border-radius: 8px;
background: var(--paper-warm);
}
.section-pagination {
display: flex;
justify-content: center;
margin-top: 32px;
}
/* Process */
.process-grid {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 0;
margin-top: 8px;
}
.process-step {
padding: 18px 20px 8px 0;
border-top: 1px solid var(--line);
}
.process-step__no {
display: block;
margin-bottom: 18px;
color: var(--brand-seal);
font-family: 'Inter', monospace;
font-size: 12px;
}
.process-step strong {
color: var(--brand-ink);
font-family: 'Noto Serif SC', 'Songti SC', serif;
font-size: 17px;
}
.process-step p {
margin: 10px 0 0;
color: var(--ink-muted);
font-size: 12px;
line-height: 1.7;
}
/* Rules */
.rules-panel {
display: flex;
align-items: center;
justify-content: space-between;
gap: 32px;
padding: 36px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--paper-warm);
}
.rules-panel .ant-typography {
max-width: 720px;
}
/* Login */
.login-page {
display: grid;
grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
min-height: 100vh;
background: var(--paper);
}
.login-brand-panel {
position: relative;
overflow: hidden;
background: var(--brand-ink);
color: var(--paper-warm);
}
.login-brand-panel::after {
position: absolute;
right: -80px;
bottom: -120px;
width: 360px;
height: 360px;
border: 1px solid rgba(236, 208, 177, 0.22);
border-radius: 50%;
content: '';
}
.login-brand-panel__inner {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
justify-content: center;
max-width: 560px;
min-height: 100vh;
margin: 0 auto;
padding: 64px;
}
.login-brand__logo {
align-self: flex-start;
margin-bottom: 48px;
padding: 10px;
border-radius: 4px;
background: var(--paper-warm);
}
.login-brand__title {
margin: 0 0 22px !important;
color: #f0f4f2 !important;
font-size: clamp(42px, 5vw, 64px) !important;
line-height: 1.18 !important;
}
.login-brand__copy {
max-width: 430px;
color: #d8e2dd !important;
font-size: 15px;
line-height: 1.9;
}
.login-brand__points {
margin-top: 24px;
color: #d8e2dd;
font-size: 13px;
}
.login-brand__points .anticon {
margin-right: 8px;
color: var(--brand-seal-line);
}
.login-brand__seal {
position: absolute;
right: 36px;
bottom: 36px;
display: flex;
align-items: center;
justify-content: center;
width: 72px;
height: 72px;
border: 2px solid var(--brand-seal);
color: var(--brand-seal-line);
font-family: 'Noto Serif SC', 'Songti SC', serif;
font-size: 18px;
letter-spacing: 0.12em;
transform: rotate(-6deg);
}
.login-form-panel {
display: flex;
align-items: center;
justify-content: center;
padding: 48px 24px;
}
.login-form-card {
width: 100%;
max-width: 420px;
padding: 36px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--paper-warm);
box-shadow: 0 1px 2px rgba(29, 36, 33, 0.04), 0 20px 60px rgba(29, 36, 33, 0.06);
}
.login-form-card__top {
margin-bottom: 24px;
}
.login-form-card__top .ant-typography {
display: block;
margin-top: 18px;
}
.login-form-card__top h2 {
margin-bottom: 8px !important;
color: var(--brand-ink) !important;
}
.login-alert {
margin-bottom: 18px;
}
.login-dev-hint {
margin-top: 18px;
padding: 10px 12px;
border: 1px dashed var(--line);
border-radius: 4px;
color: var(--ink-muted);
font-size: 12px;
}
.login-form-card__footer {
display: flex;
justify-content: space-between;
margin-top: 24px;
padding-top: 18px;
border-top: 1px solid var(--line);
font-size: 12px;
}
.login-form-card__footer a {
color: var(--brand-ink);
}
/* Admin placeholder */
.admin-placeholder {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 32px;
background: var(--paper);
}
.admin-placeholder__card {
width: min(760px, 100%);
padding: 40px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--paper-warm);
}
.admin-placeholder__card h2 {
margin: 22px 0 10px !important;
color: var(--brand-ink) !important;
}
.not-found {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: var(--paper);
}
@media (max-width: 1100px) {
.home-hero__inner {
grid-template-columns: minmax(0, 1fr);
}
.home-hero__visual {
display: none;
}
.process-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
row-gap: 24px;
}
.trust-strip__inner {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 900px) {
.site-nav {
display: none;
}
.login-page {
grid-template-columns: minmax(0, 1fr);
}
.login-brand-panel__inner {
min-height: auto;
padding: 44px 28px 52px;
}
.login-brand__logo {
margin-bottom: 30px;
}
.login-brand__seal {
display: none;
}
}
@media (max-width: 640px) {
.site-header {
height: 64px;
}
.site-header__inner {
padding: 0 16px;
}
.site-header__inner > .ant-space .ant-btn {
padding-inline: 10px;
}
.home-hero__inner {
min-height: auto;
padding: 52px 16px 48px;
}
.home-hero__title {
font-size: 42px !important;
}
.home-hero__search {
width: 100%;
}
.trust-strip__inner,
.section-block,
.site-footer__inner {
padding-right: 16px;
padding-left: 16px;
}
.trust-strip__inner {
grid-template-columns: 1fr;
gap: 14px;
}
.section-block {
padding-top: 52px;
padding-bottom: 52px;
}
.section-heading {
align-items: flex-start;
flex-direction: column;
gap: 8px;
}
.process-grid {
grid-template-columns: 1fr;
}
.process-step {
padding-right: 0;
}
.rules-panel {
align-items: flex-start;
flex-direction: column;
padding: 24px;
}
.login-form-panel {
padding: 28px 16px;
}
.login-form-card {
padding: 24px;
}
.site-footer__inner {
align-items: flex-start;
flex-direction: column;
}
}