Files
hfb_jysh/frontend/src/styles/storefront-listings.css
T

655 lines
11 KiB
CSS

/* 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;
}
.listing-card-link {
display: block;
height: 100%;
color: inherit;
}
.listing-card-link:hover {
color: inherit;
}
.listing-detail-page {
max-width: 1240px;
margin: 0 auto;
padding: 26px 24px 64px;
}
.listing-detail-page__crumb {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.listing-detail-page__hero {
margin-top: 18px;
}
.listing-detail-gallery {
padding: 14px;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--paper-warm);
}
.listing-detail-gallery__main {
aspect-ratio: 16 / 10;
overflow: hidden;
border-radius: 8px;
background: #eef1ea;
}
.listing-detail-gallery__main .ant-image,
.listing-detail-gallery__main img {
width: 100%;
height: 100%;
}
.listing-detail-gallery__main img {
object-fit: cover;
}
.listing-detail-gallery__thumbs {
display: flex;
gap: 8px;
margin-top: 10px;
overflow-x: auto;
}
.listing-detail-gallery__thumbs .ant-image {
flex: 0 0 auto;
overflow: hidden;
border: 1px solid var(--line);
border-radius: 6px;
}
.listing-detail-gallery__thumbs img {
object-fit: cover;
}
.listing-detail-gallery__empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
min-height: 360px;
border-radius: 8px;
background: var(--paper);
color: var(--brand-ink);
letter-spacing: 0.12em;
}
.listing-buy-card {
position: sticky;
top: 84px;
border-color: var(--line);
background: var(--paper-warm);
}
.listing-buy-card__top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.listing-buy-card__title {
margin: 12px 0 10px !important;
color: var(--brand-ink) !important;
font-size: 26px !important;
line-height: 1.35 !important;
}
.listing-buy-card__price {
display: flex;
align-items: baseline;
gap: 10px;
margin-top: 18px;
padding: 14px 16px;
border-radius: 8px;
background: var(--paper);
}
.listing-buy-card__price span {
color: var(--ink-muted);
font-size: 12px;
}
.listing-buy-card__price strong {
color: var(--brand-seal);
font-family: 'Inter', 'DIN Alternate', sans-serif;
font-size: 32px;
}
.listing-buy-card__meta {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
margin: 16px 0;
}
.listing-buy-card__meta div {
display: flex;
flex-direction: column;
gap: 4px;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: 6px;
background: #fff;
}
.listing-buy-card__meta span {
color: var(--ink-muted);
font-size: 11px;
}
.listing-buy-card__meta strong {
color: var(--brand-ink);
font-family: 'Inter', monospace;
font-size: 13px;
}
.listing-buy-card__notice {
margin-bottom: 16px;
}
.listing-buy-card__links {
display: flex;
flex-wrap: wrap;
gap: 6px 12px;
margin-top: 12px;
}
.listing-buy-card__links button {
padding: 0;
border: 0;
background: none;
color: var(--brand-seal);
font-size: 11px;
cursor: pointer;
}
.listing-buy-card__links button:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
.listing-detail-page__body {
margin-top: 24px;
}
.listing-detail-panel {
margin-bottom: 18px;
border-color: var(--line);
background: var(--paper-warm);
}
.listing-detail-description {
margin-bottom: 0 !important;
color: var(--ink-secondary);
line-height: 1.85;
white-space: pre-wrap;
}
.listing-process {
display: flex;
flex-direction: column;
}
.listing-process__step {
display: flex;
gap: 16px;
padding: 14px 0;
border-bottom: 1px dashed var(--line);
}
.listing-process__step:last-child {
border-bottom: 0;
}
.listing-process__step > span {
color: var(--brand-seal);
font-family: 'Inter', monospace;
font-size: 12px;
}
.listing-process__step strong {
color: var(--brand-ink);
font-size: 14px;
}
.listing-process__step p {
margin: 6px 0 0;
color: var(--ink-muted);
font-size: 12px;
}
.listing-trust-card {
border-color: var(--line);
background: var(--paper-warm);
}
.listing-trust-card__item {
display: flex;
align-items: flex-start;
gap: 12px;
}
.listing-trust-card__item > .anticon {
margin-top: 2px;
color: var(--brand-seal);
font-size: 18px;
}
.listing-trust-card__item div {
display: flex;
flex-direction: column;
gap: 4px;
}
.listing-trust-card__item strong {
color: var(--brand-ink);
font-size: 13px;
}
.listing-trust-card__item span {
color: var(--ink-muted);
font-size: 11px;
line-height: 1.6;
}
.listing-agreement-content {
max-height: 62vh;
overflow-y: auto;
color: var(--ink-secondary);
font-size: 12px;
line-height: 1.8;
white-space: pre-wrap;
word-break: break-word;
}
@media (max-width: 991px) {
.listing-detail-page {
padding: 20px 16px 48px;
}
.listing-buy-card {
position: static;
}
.listing-buy-card__meta {
grid-template-columns: 1fr;
}
}
.pc-orders-page,
.pc-order-detail-page {
max-width: 1240px;
margin: 0 auto;
padding: 28px 24px 64px;
}
.pc-orders-page__head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 20px;
margin-bottom: 20px;
}
.pc-orders-page__eyebrow {
color: var(--brand-seal);
font-size: 11px;
letter-spacing: 0.18em;
}
.pc-orders-page__head h2 {
margin: 6px 0 8px !important;
color: var(--brand-ink) !important;
}
.pc-orders-page__alert {
margin-bottom: 16px;
}
.pc-orders-card {
border-color: var(--line);
background: var(--paper-warm);
}
.pc-orders-login {
max-width: 520px;
margin: 60px auto;
text-align: center;
border-color: var(--line);
background: var(--paper-warm);
}
.pc-orders-login .brand-logo {
margin-bottom: 16px;
}
.pc-order-cell {
display: flex;
flex-direction: column;
gap: 4px;
align-items: flex-start;
}
.pc-order-cell strong {
color: var(--ink);
font-size: 13px;
font-weight: 600;
}
.pc-order-cell span {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--ink-secondary);
font-size: 11px;
}
.pc-order-link {
padding: 0;
border: 0;
background: none;
color: var(--brand-ink);
font-family: 'Inter', monospace;
font-size: 12px;
cursor: pointer;
}
.pc-order-link:hover {
color: var(--brand-seal);
text-decoration: underline;
text-underline-offset: 3px;
}
.pc-order-muted {
color: var(--ink-muted) !important;
}
.pc-order-amount {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 3px;
}
.pc-order-amount strong {
color: var(--brand-ink);
font-family: 'Inter', monospace;
font-size: 13px;
}
.pc-order-amount span {
color: var(--ink-muted);
font-size: 11px;
}
.pc-orders-empty {
padding: 32px 0;
color: var(--ink-muted);
}
.pc-order-detail-page__crumb {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.pc-order-detail-hero {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 24px;
margin: 16px 0 22px;
padding: 22px 24px;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--brand-ink);
color: #f0f4f2;
}
.pc-order-detail-hero__no {
color: #b9cbc3;
font-family: 'Inter', monospace;
font-size: 11px;
letter-spacing: 0.06em;
}
.pc-order-detail-hero h2 {
margin: 8px 0 12px !important;
color: #f6f2e8 !important;
}
.pc-order-detail-hero__amount {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 3px;
flex: 0 0 auto;
}
.pc-order-detail-hero__amount span,
.pc-order-detail-hero__amount small {
color: #b9cbc3;
font-size: 11px;
}
.pc-order-detail-hero__amount strong {
color: #e8c9a6;
font-family: 'Inter', monospace;
font-size: 30px;
}
.pc-order-detail-card {
margin-bottom: 16px;
border-color: var(--line);
background: var(--paper-warm);
}
.pc-order-detail-side {
position: sticky;
top: 84px;
}
.pc-order-chat-button {
margin-bottom: 16px;
}
.pc-order-action-card {
border-color: var(--line);
background: var(--paper-warm);
}
.pc-order-action-card .ant-card-head-title {
color: var(--brand-ink);
}
.pc-order-danger {
color: var(--brand-seal);
font-family: 'Inter', monospace;
}
.pc-order-pre {
color: var(--ink-secondary);
font-size: 12px;
line-height: 1.75;
white-space: pre-wrap;
word-break: break-word;
}
.pc-order-records {
display: flex;
flex-direction: column;
}
.pc-order-record {
padding: 14px 0;
border-bottom: 1px dashed var(--line);
}
.pc-order-record:last-child {
border-bottom: 0;
}
.pc-order-record__head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
margin-bottom: 6px;
}
.pc-order-record__head strong {
color: var(--brand-ink);
font-size: 13px;
}
.pc-order-record__head span {
color: var(--ink-muted);
font-size: 11px;
}
.pc-order-dispute-tag {
margin: 16px 0 12px;
}
@media (max-width: 767px) {
.pc-orders-page__head,
.pc-order-detail-hero {
flex-direction: column;
align-items: flex-start;
}
.pc-order-detail-hero__amount {
align-items: flex-start;
}
.pc-order-detail-side {
position: static;
}
}
.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;
}