Files
tuhui.cloud/frontend/src/pages/WorkDetail.css

633 lines
10 KiB
CSS

.work-detail-page {
min-height: 100vh;
padding-top: 70px;
background:
radial-gradient(circle at top left, rgba(239, 106, 91, 0.08), transparent 28%),
radial-gradient(circle at top right, rgba(244, 178, 84, 0.12), transparent 24%),
linear-gradient(180deg, #fffdf9 0%, #f8f2eb 100%);
}
.work-detail-container {
max-width: 1400px;
margin: 0 auto;
padding: 18px 20px 56px;
}
.work-loading {
display: flex;
justify-content: center;
align-items: center;
min-height: 60vh;
}
.breadcrumb {
padding: 14px 0 22px;
font-size: 14px;
color: #8e8175;
}
.breadcrumb a {
color: #716457;
cursor: pointer;
transition: color 0.2s ease;
}
.breadcrumb a:hover {
color: var(--brand);
}
.breadcrumb .current {
color: #30271f;
}
.work-detail-heading {
display: flex;
justify-content: space-between;
gap: 28px;
padding: 28px 30px;
border-radius: 32px;
background:
radial-gradient(circle at right top, rgba(244, 178, 84, 0.18), transparent 28%),
linear-gradient(135deg, rgba(255, 250, 244, 0.94), rgba(255, 244, 233, 0.96));
border: 1px solid rgba(233, 219, 207, 0.92);
box-shadow: 0 22px 50px rgba(69, 44, 26, 0.08);
margin-bottom: 24px;
}
.detail-heading-copy {
max-width: 760px;
}
.detail-kicker {
display: inline-flex;
margin-bottom: 12px;
padding: 8px 12px;
border-radius: 999px;
background: rgba(239, 106, 91, 0.1);
color: var(--brand-strong);
font-size: 12px;
font-weight: 700;
letter-spacing: 0.08em;
}
.work-title {
margin: 0;
font-size: clamp(30px, 4vw, 42px);
line-height: 1.15;
color: #241d17;
}
.work-subtitle {
margin: 14px 0 0;
color: #72675d;
line-height: 1.85;
font-size: 16px;
}
.detail-heading-stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
min-width: 360px;
}
.heading-stat {
padding: 18px 16px;
border-radius: 22px;
background: rgba(255, 255, 255, 0.78);
border: 1px solid rgba(231, 219, 209, 0.9);
display: flex;
flex-direction: column;
gap: 6px;
justify-content: center;
}
.heading-stat strong {
font-size: 24px;
color: #241d17;
}
.heading-stat span {
font-size: 13px;
color: #837668;
}
.work-detail-content {
display: grid;
grid-template-columns: minmax(0, 1fr) 380px;
gap: 24px;
align-items: start;
}
.work-main {
display: flex;
flex-direction: column;
gap: 24px;
}
.work-preview-card,
.detail-panel,
.price-card {
border-radius: 28px;
background: rgba(255, 255, 255, 0.94);
border: 1px solid rgba(234, 222, 212, 0.95);
box-shadow: 0 22px 48px rgba(66, 42, 26, 0.08);
}
.work-preview-card {
padding: 22px;
}
.work-preview-topline {
display: flex;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 16px;
}
.preview-badge {
padding: 8px 12px;
border-radius: 999px;
background: var(--brand-soft);
color: var(--brand-strong);
font-size: 12px;
font-weight: 700;
}
.preview-badge.subtle {
background: #f7f1ea;
color: #6b5f53;
}
.work-image-shell {
position: relative;
border-radius: 24px;
overflow: hidden;
background: linear-gradient(135deg, #f8efe6 0%, #f1e2d4 100%);
}
.work-image-shell::after {
content: '';
position: absolute;
inset: auto 0 0;
height: 26%;
background: linear-gradient(180deg, transparent, rgba(28, 22, 18, 0.12));
pointer-events: none;
}
.work-image {
width: 100%;
display: block;
object-fit: cover;
}
.preview-benefits {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
margin-top: 18px;
}
.preview-benefit {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 14px 16px;
border-radius: 20px;
background: #fffaf5;
border: 1px solid rgba(236, 225, 215, 0.92);
color: #5f5449;
line-height: 1.7;
font-size: 14px;
}
.preview-benefit .anticon {
color: var(--brand);
font-size: 16px;
margin-top: 2px;
}
.detail-panel {
padding: 22px;
}
.panel-header {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 12px;
margin-bottom: 16px;
}
.panel-header.compact {
align-items: center;
}
.panel-header h3 {
margin: 0;
color: #2c241d;
font-size: 20px;
}
.panel-header span {
color: #8c8073;
font-size: 13px;
}
.tags-list {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.work-tag.ant-tag {
margin: 0;
padding: 8px 14px;
border-radius: 999px;
background: #fff6ef;
border: 1px solid rgba(236, 214, 196, 0.95);
color: #6d5b4c;
}
.empty-hint {
color: #9a8d81;
font-size: 14px;
}
.related-works-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
}
.related-work-card {
cursor: pointer;
border-radius: 22px;
overflow: hidden;
background: linear-gradient(180deg, #fffdfb, #f8f2eb);
border: 1px solid rgba(237, 226, 216, 0.95);
transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.related-work-card:hover {
transform: translateY(-6px);
box-shadow: 0 18px 34px rgba(64, 42, 28, 0.12);
}
.related-work-image {
position: relative;
width: 100%;
padding-top: 150%;
overflow: hidden;
background: #f2e8de;
}
.related-work-image img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.related-work-overlay {
position: absolute;
inset: 0;
background: rgba(21, 18, 15, 0.45);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.24s ease;
}
.related-work-card:hover .related-work-overlay {
opacity: 1;
}
.related-work-info {
padding: 14px;
}
.related-work-info h4 {
margin: 0 0 8px;
color: #2d241d;
font-size: 15px;
}
.related-work-designer {
color: #8a7d72;
font-size: 12px;
}
.designer-level {
color: var(--brand);
margin-right: 4px;
}
.designer-level-name {
margin-right: 8px;
}
.designer-name {
margin: 4px 0 0;
color: #65594d;
}
.work-sidebar {
position: sticky;
top: 86px;
display: flex;
flex-direction: column;
gap: 18px;
}
.price-card {
padding: 22px;
}
.work-id-section {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px 14px;
border-radius: 18px;
background: #faf5ef;
border: 1px solid rgba(235, 224, 214, 0.94);
}
.work-id {
color: #66594d;
font-size: 14px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.price-block {
margin: 18px 0 10px;
}
.price-label {
display: block;
color: #8a7c70;
font-size: 13px;
margin-bottom: 6px;
}
.price-value {
color: var(--brand);
font-size: 40px;
line-height: 1;
font-weight: 800;
}
.work-info-list {
display: flex;
flex-direction: column;
gap: 10px;
padding: 16px 0;
border-top: 1px solid rgba(239, 229, 220, 0.95);
border-bottom: 1px solid rgba(239, 229, 220, 0.95);
}
.work-info-item {
display: flex;
justify-content: space-between;
gap: 18px;
}
.info-label {
color: #95887c;
font-size: 14px;
}
.info-value {
color: #2d241d;
font-size: 14px;
font-weight: 600;
text-align: right;
}
.info-value.highlight {
color: var(--brand);
}
.work-actions {
display: grid;
grid-template-columns: 1fr auto auto;
gap: 12px;
margin-top: 18px;
}
.download-btn.ant-btn {
height: 50px;
border: none;
border-radius: 18px;
background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
box-shadow: 0 16px 30px rgba(216, 78, 63, 0.24);
font-weight: 700;
}
.icon-btn.ant-btn {
width: 50px;
height: 50px;
border-radius: 18px;
border-color: rgba(224, 208, 197, 0.95);
color: #65594d;
background: #fffaf5;
}
.icon-btn.ant-btn:hover,
.icon-btn.ant-btn.collected {
color: var(--brand);
border-color: rgba(239, 106, 91, 0.4);
}
.designer-card {
background: linear-gradient(180deg, #fffdfb, #f8f2eb);
}
.designer-header {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 18px;
}
.designer-avatar {
width: 60px;
height: 60px;
border-radius: 20px;
overflow: hidden;
background: #fff;
border: 1px solid rgba(233, 221, 212, 0.95);
}
.designer-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.designer-info {
min-width: 0;
}
.designer-name-level {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 6px;
}
.designer-level-badge {
padding: 4px 10px;
border-radius: 999px;
background: var(--brand);
color: #fff;
font-size: 12px;
font-weight: 700;
}
.designer-level-text {
color: #8c8073;
font-size: 12px;
}
.designer-card .designer-name {
margin: 0;
font-size: 18px;
font-weight: 700;
color: #2b241d;
}
.designer-stats {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-bottom: 16px;
}
.designer-stats .stat-item {
padding: 14px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.72);
border: 1px solid rgba(236, 225, 216, 0.95);
display: flex;
flex-direction: column;
gap: 4px;
align-items: center;
}
.stat-value {
color: #2d241d;
font-size: 22px;
font-weight: 700;
}
.stat-label {
color: #918578;
font-size: 12px;
}
.follow-btn.ant-btn {
height: 46px;
border-radius: 16px;
border: none;
font-weight: 700;
}
.follow-btn.ant-btn.followed {
background: #ebe3db;
color: #66594d;
}
.board-search-input.ant-input-affix-wrapper {
height: 44px;
border-radius: 16px;
border-color: rgba(226, 211, 200, 0.95);
}
.board-search-input.ant-input-affix-wrapper:hover,
.board-search-input.ant-input-affix-wrapper-focused {
border-color: rgba(239, 106, 91, 0.4);
box-shadow: none;
}
.stats-grid {
display: grid;
gap: 12px;
}
.stat-row {
display: flex;
align-items: center;
gap: 10px;
padding: 14px 16px;
border-radius: 18px;
background: #fff8f2;
border: 1px solid rgba(237, 225, 215, 0.95);
color: #66594d;
}
.stat-row .anticon {
color: var(--brand);
}
@media (max-width: 1200px) {
.work-detail-heading {
flex-direction: column;
}
.detail-heading-stats {
min-width: 0;
}
.work-detail-content {
grid-template-columns: 1fr;
}
.work-sidebar {
position: static;
}
}
@media (max-width: 900px) {
.preview-benefits,
.related-works-grid,
.detail-heading-stats {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.work-detail-container {
padding: 12px 12px 40px;
}
.work-detail-heading,
.work-preview-card,
.detail-panel,
.price-card {
border-radius: 24px;
padding: 18px;
}
.work-title {
font-size: 28px;
}
.work-subtitle {
font-size: 14px;
}
.work-actions {
grid-template-columns: 1fr;
}
.icon-btn.ant-btn {
width: 100%;
}
}