Files
web_huangguo_web/app/static/css/application.css
T
fish03andClaude Opus 5.5 bef9f8b4ed Initial commit
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 14:43:16 +07:00

546 lines
12 KiB
CSS

/* Application list page — Figma 1920: side padding 60, content 1800. */
.application-page-body {
--site-footer-margin-top: 0;
min-height: 100vh;
min-height: 100dvh;
display: flex;
flex-direction: column;
overflow-x: hidden;
color: #fff;
background: #0f0f0f;
}
.application-page {
width: 100%;
max-width: 1920px;
min-height: 0;
padding: 40px 60px 36px;
overflow: visible;
box-sizing: border-box;
flex: 1 0 auto;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
gap: 36px;
display: flex;
margin: 0 auto;
}
.application-breadcrumb {
width: 100%;
display: flex;
align-items: center;
gap: 8px;
color: rgba(255, 255, 255, 0.55);
font: 400 16px/24px "PingFang SC", "Noto Sans SC", sans-serif;
}
.application-breadcrumb a {
color: inherit;
text-decoration: none;
transition: color 180ms ease;
}
.application-breadcrumb a:hover,
.application-breadcrumb a:focus-visible,
.application-breadcrumb [aria-current="page"] {
color: #ec237f;
}
.application-page-title {
width: 100%;
color: #fff;
text-align: center;
font: 600 36px/1.35 "PingFang SC", "Noto Sans SC", sans-serif;
}
.app-category-tabs {
display: flex;
flex-wrap: wrap;
gap: 18px;
width: 100%;
justify-content: center;
}
.app-category-tab {
min-width: 119px;
height: 50px;
padding: 13px 24px;
border-radius: 25px;
border: 1px solid rgba(255, 255, 255, 0.10);
background: rgba(255, 255, 255, 0.05);
color: #999;
font-size: 18px;
font-family: PingFang SC, sans-serif;
font-weight: 400;
line-height: 24px;
cursor: pointer;
white-space: nowrap;
transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.app-category-tab--active {
background: #EC237F;
color: #fff;
border-color: #EC237F;
}
.app-category-tab:hover,
.app-category-tab:focus-visible {
color: #fff;
background: rgba(236, 35, 127, 0.18);
border-color: rgba(236, 35, 127, 0.45);
}
.app-category-tab--active:hover,
.app-category-tab--active:focus-visible {
color: #181818;
background: #ec237f;
border-color: #ec237f;
}
.app-list-section {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
gap: 24px;
}
.app-list-section__head {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.app-list-section__title {
margin: 0;
width: 100%;
text-align: center;
color: rgba(255, 255, 255, 0.90);
font-size: 36px;
font-family: PingFang SC, sans-serif;
font-weight: 400;
word-wrap: break-word;
}
.app-list-section__subtitle {
margin: 0;
width: 100%;
text-align: center;
color: rgba(255, 255, 255, 0.55);
font-size: 18px;
font-family: PingFang SC, sans-serif;
font-weight: 400;
line-height: 24px;
word-wrap: break-word;
}
.app-list-section__subtitle--bold {
font-weight: 600;
}
.app-card-grid {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 24px 28px;
align-items: flex-start;
}
.app-card {
width: 120px;
border-radius: 18px;
flex-direction: column;
align-items: center;
gap: 8px;
display: inline-flex;
text-decoration: none;
color: inherit;
transform: translateY(0);
transition: transform 220ms ease, filter 220ms ease;
}
.app-card:hover,
.app-card:focus-visible {
transform: translateY(-5px);
filter: brightness(1.08);
}
.app-card:focus-visible {
outline: 2px solid rgba(236, 35, 127, 0.85);
outline-offset: 4px;
}
.app-card__icon-wrap {
width: 120px;
height: 120px;
position: relative;
overflow: hidden;
border-radius: 18px;
}
.app-card__icon {
width: 120px;
height: 120px;
display: block;
object-fit: cover;
transition: transform 260ms ease;
}
.app-card:hover .app-card__icon,
.app-card:focus-visible .app-card__icon {
transform: scale(1.04);
}
.app-card__title {
align-self: stretch;
text-align: center;
color: rgba(255, 255, 255, 0.90);
font-size: 16px;
font-family: PingFang SC, sans-serif;
font-weight: 500;
line-height: 22px;
word-wrap: break-word;
}
.app-card__desc {
align-self: stretch;
text-align: center;
color: rgba(255, 255, 255, 0.55);
font-size: 12px;
font-family: PingFang SC, sans-serif;
font-weight: 400;
line-height: 18px;
word-wrap: break-word;
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.app-list-section__more {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
height: 50px;
padding: 13px 24px;
border: none;
border-radius: 25px;
background: #EC237F;
color: #fff;
font-size: 18px;
font-family: PingFang SC, sans-serif;
font-weight: 400;
line-height: 24px;
cursor: pointer;
transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.app-list-section__more:hover,
.app-list-section__more:focus-visible {
color: #fff;
background: #d91d70;
transform: translateY(-1px);
}
.app-list-section__more-icon {
width: 12px;
height: 12px;
flex-shrink: 0;
transition: transform 0.2s ease;
}
.app-list-section__more-icon--up {
transform: rotate(180deg);
}
.app-list-section__more[hidden] {
display: none;
}
.app-list-section__empty {
margin: 0;
width: 100%;
text-align: center;
color: rgba(255, 255, 255, 0.55);
font-size: 16px;
}
.app-list-section--collapsible:not(.app-list-section--expanded) .app-card-grid--collapsible .app-card:nth-child(n + 9) {
display: none;
}
.app-list-section--expanded .app-card-grid--collapsible .app-card:nth-child(n + 9) {
display: inline-flex;
}
/* PC — scale with 1920 canvas */
@media (min-width: 768px) {
body.application-page-body {
--app-s: min(1, 100vw / 1920px);
}
.application-page {
width: 100%;
max-width: calc(1920px * var(--app-s));
padding: calc(40px * var(--app-s)) calc(60px * var(--app-s)) calc(36px * var(--app-s));
gap: calc(36px * var(--app-s));
}
.application-breadcrumb {
gap: calc(8px * var(--app-s));
font-size: calc(16px * var(--app-s));
line-height: calc(24px * var(--app-s));
}
.application-page-title {
font-size: calc(36px * var(--app-s));
}
.app-category-tabs {
gap: calc(18px * var(--app-s));
}
.app-category-tab {
min-width: calc(119px * var(--app-s));
height: calc(50px * var(--app-s));
padding: calc(13px * var(--app-s)) calc(24px * var(--app-s));
border-radius: calc(25px * var(--app-s));
font-size: calc(18px * var(--app-s));
line-height: calc(24px * var(--app-s));
}
.app-list-section {
gap: calc(24px * var(--app-s));
}
.app-list-section__head {
gap: calc(12px * var(--app-s));
}
.app-list-section__title {
font-size: calc(36px * var(--app-s));
}
.app-list-section__subtitle {
font-size: calc(18px * var(--app-s));
line-height: calc(24px * var(--app-s));
}
.app-card-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
width: 100%;
max-width: calc(120px * var(--app-s) * 10 + 28px * var(--app-s) * 9);
margin-inline: auto;
gap: calc(24px * var(--app-s)) calc(28px * var(--app-s));
}
.app-card {
width: calc(120px * var(--app-s));
border-radius: calc(18px * var(--app-s));
gap: calc(8px * var(--app-s));
}
.app-card__icon-wrap,
.app-card__icon {
width: calc(120px * var(--app-s));
height: calc(120px * var(--app-s));
border-radius: calc(18px * var(--app-s));
}
.app-card__title {
font-size: calc(16px * var(--app-s));
line-height: calc(22px * var(--app-s));
}
.app-card__desc {
font-size: calc(12px * var(--app-s));
line-height: calc(18px * var(--app-s));
}
.app-list-section__more {
height: calc(50px * var(--app-s));
padding: calc(13px * var(--app-s)) calc(24px * var(--app-s));
border-radius: calc(25px * var(--app-s));
font-size: calc(18px * var(--app-s));
line-height: calc(24px * var(--app-s));
gap: calc(10px * var(--app-s));
}
/* PC: 1 row = 10 cards before collapse */
.app-list-section--collapsible:not(.app-list-section--expanded) .app-card-grid--collapsible .app-card:nth-child(n + 9) {
display: inline-flex;
}
.app-list-section--collapsible:not(.app-list-section--expanded) .app-card-grid--collapsible .app-card:nth-child(n + 11) {
display: none;
}
.app-list-section--expanded .app-card-grid--collapsible .app-card:nth-child(n + 11) {
display: inline-flex;
}
}
@media (max-width: 767px) {
.application-page-body {
background: #0f0f0f;
}
.application-page {
width: 100%;
max-width: none;
gap: 24px;
padding: 16px var(--site-shell-gutter) 12px;
}
.application-breadcrumb {
gap: 6px;
font-size: 12px;
line-height: 18px;
}
.application-page-title {
font-size: 24px;
line-height: 32px;
}
.app-category-tabs {
flex-wrap: nowrap;
gap: 6px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
justify-content: flex-start;
padding-bottom: 2px;
}
.app-category-tabs::-webkit-scrollbar {
display: none;
}
.app-category-tab {
min-width: 0;
height: auto;
padding: 6px 12px;
border-radius: 25px;
font-size: 12px;
line-height: 18px;
flex-shrink: 0;
color: rgba(255, 255, 255, 0.55);
}
.app-category-tab--active {
color: #fff;
}
.app-list-section {
gap: 12px;
}
.app-list-section__title {
font-size: 18px;
line-height: 24px;
font-weight: 400;
color: #EC237F;
}
.app-list-section:has(.app-list-section__subtitle--bold) .app-list-section__title {
color: rgba(255, 255, 255, 0.90);
font-weight: 600;
}
.app-list-section__subtitle {
font-size: 14px;
line-height: 20px;
font-weight: 400;
}
.app-card-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
justify-content: stretch;
gap: 14px 10px;
}
.app-card {
width: 100%;
min-width: 0;
gap: 4px;
border-radius: 12px;
}
.app-card__icon-wrap {
width: 100%;
height: auto;
aspect-ratio: 1;
border-radius: 14px;
}
.app-card__icon {
width: 100%;
height: 100%;
}
.app-card__title {
font-size: 14px;
line-height: 20px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.app-card__desc {
font-size: 12px;
line-height: 18px;
}
.app-list-section__more {
height: auto;
padding: 10px 18px;
font-size: 12px;
line-height: 18px;
gap: 6px;
}
.app-list-section__more-icon {
width: 6px;
height: 6px;
}
.app-list-section--expanded .app-card-grid--collapsible .app-card:nth-child(n + 9) {
display: flex;
}
.app-card:hover,
.app-card:focus-visible {
transform: none;
}
}
@media (prefers-reduced-motion: reduce) {
.app-category-tab,
.app-card,
.app-card__icon,
.app-list-section__more,
.app-list-section__more-icon {
transition: none;
}
}
.section-empty,
.application-empty {
width: 100%;
padding: 32px 16px;
color: rgba(255, 255, 255, 0.45);
font-size: 14px;
text-align: center;
}