Files
hfb_show/src/styles.css
T
2026-07-13 23:44:46 +08:00

913 lines
15 KiB
CSS

:root {
--brand: #ff6b00;
--brand-dark: #e85d00;
--brand-soft: #fff3e8;
--brand-line: #ffd7b5;
--page-bg: #f4f6f8;
--text-main: #172033;
--text-muted: #718096;
color: #253137;
background: var(--page-bg);
font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 320px;
background: var(--page-bg);
}
a {
color: inherit;
text-decoration: none;
}
button,
input {
font: inherit;
}
.show-page {
min-height: 100vh;
background: var(--page-bg);
}
.site-header {
position: sticky;
top: 0;
z-index: 20;
background: rgba(255, 255, 255, 0.96);
color: var(--text-main);
border-bottom: 1px solid #e9edf3;
box-shadow: 0 8px 24px rgba(21, 32, 43, 0.06);
backdrop-filter: blur(10px);
}
.nav-inner {
width: min(1680px, calc(100% - 120px));
min-height: 68px;
margin: 0 auto;
display: grid;
grid-template-columns: max-content 1fr max-content;
align-items: center;
gap: 34px;
}
.brand,
.brand > div,
.nav-actions,
.listing-head,
.price-line,
.filter-footer,
.sort-toolbar,
.toolbar-actions,
.pagination-bar,
.site-footer {
display: flex;
align-items: center;
}
.brand {
gap: 10px;
min-width: 0;
}
.brand-mark {
width: 42px;
height: 42px;
border-radius: 8px;
display: grid;
place-items: center;
color: #fff;
background: linear-gradient(135deg, #ff8b2f, var(--brand));
font-size: 22px;
font-weight: 900;
box-shadow: 0 8px 18px rgba(255, 107, 0, 0.24);
}
.brand > div {
flex-direction: column;
align-items: flex-start;
line-height: 1.15;
}
.brand strong {
font-size: 22px;
font-weight: 900;
letter-spacing: 0;
white-space: nowrap;
}
.brand span:not(.brand-mark) {
margin-top: 3px;
color: var(--text-muted);
font-size: 12px;
white-space: nowrap;
}
.nav-links {
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
}
.nav-links a {
min-height: 40px;
display: inline-flex;
align-items: center;
padding: 0 18px;
border-radius: 9px;
color: #435066;
font-size: 15px;
font-weight: 800;
white-space: nowrap;
}
.nav-links a.active {
color: var(--brand);
background: var(--brand-soft);
}
.nav-actions {
justify-content: flex-end;
gap: 16px;
color: #64748b;
font-size: 13px;
white-space: nowrap;
}
.nav-actions .ant-btn {
min-width: 112px;
font-weight: 800;
box-shadow: 0 8px 18px rgba(255, 107, 0, 0.18);
}
.warning-line {
min-height: 28px;
padding: 6px 16px;
display: flex;
align-items: center;
justify-content: center;
color: #b95600;
background: #fff7ef;
border-bottom: 1px solid #ffe0c2;
font-size: 12px;
font-weight: 700;
text-align: center;
line-height: 1.4;
}
.search-stage,
.filter-board,
.result-area {
width: min(1480px, calc(100% - 160px));
margin-right: auto;
margin-left: auto;
}
.search-stage {
display: flex;
justify-content: center;
padding: 18px 0 14px;
}
.search-stage .ant-input-search {
width: min(420px, 100%);
}
.search-stage .ant-input {
font-weight: 600;
}
.search-stage .ant-btn {
width: 48px;
background: var(--brand);
border-color: var(--brand);
}
.notice-line {
width: min(1480px, calc(100% - 160px));
height: 34px;
margin: 0 auto 12px;
padding: 0 12px 0 10px;
display: flex;
align-items: center;
gap: 10px;
color: #b07a00;
background: #fffbf0;
border: 1px solid #f3e2b0;
border-radius: 8px;
font-size: 13px;
overflow: hidden;
}
.notice-label {
flex: none;
height: 20px;
padding: 0 8px;
display: inline-flex;
align-items: center;
border-radius: 4px;
color: #fff;
background: linear-gradient(135deg, #f0a202, #e08a00);
font-size: 11px;
font-weight: 900;
letter-spacing: 0.04em;
}
.notice-marquee {
min-width: 0;
flex: 1;
overflow: hidden;
}
.marquee-track {
display: inline-flex;
align-items: center;
gap: 48px;
width: max-content;
white-space: nowrap;
will-change: transform;
animation: marquee-scroll 22s linear infinite;
}
.marquee-track span {
flex: none;
}
.notice-marquee:hover .marquee-track {
animation-play-state: paused;
}
@keyframes marquee-scroll {
from {
transform: translateX(0);
}
to {
transform: translateX(calc(-50% - 24px));
}
}
@media (prefers-reduced-motion: reduce) {
.marquee-track {
animation: none;
}
}
.filter-board,
.result-area {
background: #fff;
border: 1px solid #e8edf3;
border-radius: 14px;
box-shadow: 0 8px 24px rgba(21, 32, 43, 0.05);
}
.filter-board {
padding: 18px 22px 12px;
}
.section-title {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 14px;
color: var(--text-main);
font-size: 15px;
font-weight: 900;
letter-spacing: 0.01em;
}
.section-title i {
width: 3px;
height: 14px;
border-radius: 99px;
background: linear-gradient(180deg, #ff8b2f, var(--brand));
}
.filter-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(360px, 0.74fr);
gap: 14px 56px;
}
.filter-row {
min-width: 0;
display: grid;
grid-template-columns: 72px minmax(0, 1fr);
align-items: start;
gap: 12px;
}
.filter-label,
.range-fields > label > span {
min-height: 30px;
display: inline-flex;
align-items: center;
color: #667085;
font-size: 13px;
font-weight: 700;
white-space: nowrap;
}
.chip-list {
min-width: 0;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.chip-list button {
min-width: 44px;
height: 30px;
padding: 0 12px;
border: 1px solid transparent;
border-radius: 999px;
background: #f4f6f9;
color: #5b6572;
font-size: 12px;
font-weight: 700;
line-height: 1;
cursor: pointer;
transition:
color 0.15s ease,
background 0.15s ease,
border-color 0.15s ease,
box-shadow 0.15s ease,
transform 0.15s ease;
}
.chip-list button:hover {
color: var(--brand-dark);
background: #fff4ea;
border-color: #ffd7b5;
}
.chip-list button.selected {
color: #fff;
background: linear-gradient(135deg, #ff8b2f, var(--brand));
border-color: transparent;
box-shadow: 0 6px 14px rgba(255, 107, 0, 0.22);
}
.chip-list button.selected:hover {
color: #fff;
background: linear-gradient(135deg, #ff9a45, var(--brand-dark));
}
.chip-list button:active {
transform: translateY(1px);
}
.compact-select .ant-select {
width: min(280px, 100%);
}
.compact-select .ant-select-selector {
min-height: 34px !important;
border-radius: 10px !important;
border-color: #e6ebf2 !important;
background: #f8fafc !important;
}
.compact-select .ant-select-focused .ant-select-selector {
border-color: var(--brand) !important;
box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.12) !important;
}
.advanced-panel {
display: none;
padding-top: 16px;
border-top: 1px dashed #e8edf3;
margin-top: 16px;
}
.advanced-panel.open {
display: grid;
gap: 14px;
}
.range-fields {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px 38px;
}
.range-fields > label {
display: grid;
grid-template-columns: 72px minmax(0, 1fr);
align-items: center;
gap: 12px;
}
.range-inputs {
min-width: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
align-items: center;
gap: 8px;
}
.range-inputs em {
color: #98a2b3;
font-size: 12px;
font-style: normal;
font-weight: 700;
}
.range-inputs .ant-input {
border-radius: 10px;
background: #f8fafc;
}
.filter-footer {
justify-content: center;
min-height: 44px;
padding-top: 4px;
}
.advanced-toggle {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
border: none;
border-radius: 999px;
background: transparent;
color: #667085;
font-size: 13px;
font-weight: 700;
cursor: pointer;
transition: color 0.15s ease, background 0.15s ease;
}
.advanced-toggle:hover {
color: var(--brand-dark);
background: var(--brand-soft);
}
.advanced-toggle .anticon {
font-size: 11px;
}
.result-area {
margin-top: 14px;
padding: 16px 16px 28px;
}
.sort-toolbar {
justify-content: space-between;
align-items: center;
gap: 14px;
margin-bottom: 16px;
padding-bottom: 14px;
border-bottom: 1px solid #eef2f6;
}
.sort-segment {
min-width: 0;
display: inline-flex;
flex-wrap: wrap;
gap: 4px;
padding: 4px;
border-radius: 12px;
background: #f3f5f8;
border: 1px solid #e8edf3;
}
.sort-segment button {
height: 32px;
padding: 0 12px;
border: none;
border-radius: 9px;
background: transparent;
color: #667085;
font-size: 13px;
font-weight: 700;
white-space: nowrap;
cursor: pointer;
transition:
color 0.15s ease,
background 0.15s ease,
box-shadow 0.15s ease;
}
.sort-segment button:hover {
color: var(--text-main);
background: rgba(255, 255, 255, 0.7);
}
.sort-segment button.active {
color: var(--brand-dark);
background: #fff;
box-shadow: 0 2px 8px rgba(21, 32, 43, 0.08);
}
.toolbar-actions {
flex: none;
justify-content: flex-end;
gap: 10px;
}
.toolbar-actions .ant-btn {
border-radius: 9px;
font-weight: 800;
}
.toolbar-actions .ant-btn-primary {
font-weight: 900;
box-shadow: 0 6px 14px rgba(255, 107, 0, 0.18);
}
.listing-list {
display: grid;
gap: 12px;
}
.listing-row {
min-height: 182px;
display: grid;
grid-template-columns: 286px minmax(0, 1fr);
gap: 22px;
padding: 18px;
background: #fff;
border: 1px solid #e7edf5;
border-radius: 14px;
box-shadow: 0 6px 20px rgba(21, 32, 43, 0.05);
}
.listing-cover {
width: 100%;
aspect-ratio: 16 / 8.2;
align-self: center;
border-radius: 6px;
overflow: hidden;
display: grid;
place-items: center;
color: #718086;
background:
linear-gradient(135deg, rgba(255, 107, 0, 0.14), transparent),
#e8edf3;
font-weight: 800;
}
.listing-cover img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
}
.listing-main {
min-width: 0;
display: grid;
grid-template-rows: max-content 1fr max-content max-content;
gap: 11px;
}
.listing-head {
min-width: 0;
justify-content: space-between;
gap: 16px;
}
.listing-head > div {
min-width: 0;
display: flex;
align-items: center;
gap: 8px;
}
.listing-head strong {
min-width: 0;
color: #29383e;
font-size: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.listing-head .ant-btn {
color: #7c8a91;
}
.detail-grid {
display: grid;
grid-template-columns: repeat(5, minmax(120px, 1fr));
gap: 8px 28px;
align-content: start;
}
.detail-item {
min-width: 0;
display: grid;
grid-template-columns: 58px minmax(0, 1fr);
gap: 5px;
color: #56646c;
font-size: 13px;
line-height: 1.45;
}
.detail-item span {
color: #6f7d84;
white-space: nowrap;
}
.detail-item strong {
min-width: 0;
color: #202d33;
font-weight: 800;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.listing-meta {
min-width: 0;
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
}
.listing-meta .ant-tag {
margin-inline-end: 0;
}
.mini-tag {
border-radius: 4px;
font-weight: 800;
}
.tag-green {
color: var(--brand-dark);
background: var(--brand-soft);
border-color: var(--brand-line);
}
.tag-red {
color: #d9480f;
background: #fff4ed;
border-color: #ffd8bd;
}
.tag-purple {
color: #7651d8;
background: #f4f0ff;
border-color: #ded2ff;
}
.tag-gold {
color: var(--brand-dark);
background: #fff8ed;
border-color: var(--brand-line);
}
.remark {
min-width: 0;
color: #3d4c52;
font-size: 12px;
font-weight: 800;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.price-line {
min-width: 0;
flex-wrap: wrap;
gap: 20px 36px;
color: #526168;
font-size: 14px;
}
.price-line span {
white-space: nowrap;
}
.price-line strong {
margin-left: 7px;
color: var(--brand);
font-weight: 900;
}
.price-line .rental-days {
color: #ff5b66;
}
.price-line .ant-btn {
margin-left: auto;
padding-right: 0;
color: #023f34;
font-weight: 900;
}
.price-line .ant-btn-link {
color: var(--brand-dark);
}
.price-line .ant-btn-link:hover {
color: var(--brand);
}
.empty-state {
padding: 80px 0;
}
.pagination-bar {
justify-content: center;
margin-top: 26px;
}
.site-footer {
margin-top: 20px;
padding: 16px 20px;
justify-content: center;
color: #8a94a6;
background: #fafbfc;
border-top: 1px solid #e9edf3;
}
.footer-inner {
width: min(1480px, 100%);
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 6px 4px;
text-align: center;
font-size: 12px;
line-height: 1.5;
}
.site-footer strong {
color: #4a5568;
font-size: 13px;
font-weight: 800;
}
.site-footer span,
.site-footer a {
color: #8a94a6;
font-weight: 600;
}
.footer-divider {
margin: 0 6px;
color: #c5ccd6;
font-weight: 400;
}
.site-footer a:hover {
color: var(--brand);
}
@media (max-width: 1280px) {
.nav-inner,
.search-stage,
.filter-board,
.result-area,
.notice-line {
width: min(100% - 48px, 1180px);
}
.nav-inner {
grid-template-columns: max-content 1fr;
}
.nav-actions {
display: none;
}
.detail-grid {
grid-template-columns: repeat(4, minmax(120px, 1fr));
}
}
@media (max-width: 920px) {
.site-header {
position: static;
}
.nav-inner {
width: calc(100% - 28px);
min-height: 78px;
grid-template-columns: 1fr;
gap: 10px;
padding: 12px 0;
}
.nav-links {
gap: 18px;
overflow-x: auto;
}
.search-stage,
.filter-board,
.result-area,
.notice-line {
width: calc(100% - 24px);
}
.filter-grid,
.range-fields {
grid-template-columns: 1fr;
}
.listing-row {
grid-template-columns: 220px minmax(0, 1fr);
}
.detail-grid {
grid-template-columns: repeat(2, minmax(120px, 1fr));
}
}
@media (max-width: 680px) {
.footer-inner {
flex-direction: column;
gap: 4px;
}
.footer-divider {
display: none;
}
.notice-line {
margin-left: 12px;
margin-right: 12px;
width: calc(100% - 24px);
}
.notice-marquee .marquee-track {
animation-duration: 16s;
}
.filter-board,
.result-area {
border-radius: 0;
}
.filter-row,
.range-fields > label {
grid-template-columns: 1fr;
gap: 7px;
}
.sort-segment {
width: 100%;
}
.sort-segment button {
flex: 1 1 auto;
}
.compact-select .ant-select {
width: 100%;
}
.sort-toolbar {
align-items: stretch;
flex-direction: column;
}
.toolbar-actions {
justify-content: stretch;
}
.toolbar-actions .ant-btn {
flex: 1;
}
.listing-row {
grid-template-columns: 1fr;
padding: 12px;
}
.listing-cover {
aspect-ratio: 16 / 9;
}
.detail-grid {
grid-template-columns: 1fr;
gap: 6px;
}
.price-line {
gap: 10px 18px;
}
.price-line .ant-btn {
width: 100%;
margin-left: 0;
justify-content: flex-start;
}
}