1176 lines
21 KiB
CSS
1176 lines
21 KiB
CSS
/*
|
||
* 模型超市(/market)页面作用域样式。
|
||
* 依据:2026-11-13 本地原型「模型超市」页 .mm-* 规则及顶部筛选展开截图。
|
||
* 约定:颜色只在 .mm-theme / html.dark .mm-theme 的 --mm-* 变量中定义(浅色、深色均为原型实测值),
|
||
* 主色 / 正文 / 分隔线由 theme.useToken() 注入 --mm-brand / --mm-text / --mm-border;
|
||
* 下方样式规则只引用变量。antd CSS-in-JS 未进入 @layer,按选择器优先级竞争;
|
||
* 仅在原型同样使用 !important 的 4 条规则(选中筛选项、搜索框阴影、卡片悬停边框、详情表格内边距)中保留。
|
||
*/
|
||
|
||
.mm-theme {
|
||
--mm-page-bg: #f4f6f9;
|
||
--mm-surface: #ffffff;
|
||
--mm-muted: #616e80;
|
||
--mm-tint: #fff3dc;
|
||
--mm-glow: #df9f3c36;
|
||
--mm-soft: #fafbfc;
|
||
--mm-foot-border: var(--mm-border);
|
||
--mm-logo-bg: #ffffff;
|
||
--mm-logo-border: #e7e9ec;
|
||
/* 图标框在深浅主题均为白底(原型),单色图标墨色固定为浅色正文色,避免深色下白底白字 */
|
||
--mm-logo-ink: #263247;
|
||
--mm-filter-logo-bg: transparent;
|
||
--mm-filter-logo-padding: 0;
|
||
--mm-hero-bg:
|
||
radial-gradient(at 58% -20%, rgba(255, 215, 140, 0.5), transparent 62%),
|
||
linear-gradient(110deg, #f8f3e9, #fff9ed 50%, #f0f2f5);
|
||
--mm-art-mask: linear-gradient(#000 0%, #000 48%, transparent 100%);
|
||
--mm-title: #302c24;
|
||
--mm-subtitle: #68685f;
|
||
--mm-search-bg: #ffffff;
|
||
--mm-search-border: #e1e6ed;
|
||
--mm-search-shadow: 0 9px 36px rgba(140, 96, 32, 0.09);
|
||
--mm-filter-shadow: 0 5px 18px rgba(140, 96, 32, 0.043);
|
||
--mm-art: #a7722d;
|
||
--mm-signal-glow: #e8aa42;
|
||
--mm-core-border: rgba(193, 138, 59, 0.333);
|
||
--mm-core-border-strong: rgba(211, 147, 53, 0.667);
|
||
--mm-core-fill: linear-gradient(
|
||
120deg,
|
||
rgba(255, 255, 255, 0.533),
|
||
rgba(241, 191, 97, 0.19)
|
||
);
|
||
--mm-core-inset: inset 0 0 24px rgba(255, 255, 255, 0.4);
|
||
--mm-core-icon: #b37a20;
|
||
--mm-core-icon-bg: rgba(255, 255, 255, 0.533);
|
||
--mm-card-hover-border: #cb923b;
|
||
--mm-card-hover-shadow:
|
||
0 10px 30px rgba(165, 107, 23, 0.125), 0 0 0 1px rgba(223, 179, 93, 0.14);
|
||
--mm-card-sweep: linear-gradient(
|
||
90deg,
|
||
transparent,
|
||
rgba(255, 219, 148, 0.14),
|
||
transparent
|
||
);
|
||
--mm-price-extra: #3778b8;
|
||
--mm-tag-bg: color-mix(in srgb, var(--mm-brand) 6.3%, transparent);
|
||
--mm-mask: rgba(0, 0, 0, 0.3);
|
||
--mm-transparent: transparent;
|
||
}
|
||
|
||
html.dark .mm-theme {
|
||
--mm-page-bg: #111720;
|
||
--mm-filter-logo-ink: #263247;
|
||
--mm-surface: #1b232e;
|
||
--mm-muted: #acb6c5;
|
||
--mm-tint: #3c2e1d;
|
||
--mm-glow: #e8ac4530;
|
||
--mm-soft: #202732;
|
||
--mm-foot-border: #35414f;
|
||
--mm-filter-logo-bg: #ffffff;
|
||
--mm-filter-logo-padding: 1px;
|
||
--mm-hero-bg:
|
||
radial-gradient(at 65% 0, rgba(154, 104, 20, 0.17), transparent 70%),
|
||
linear-gradient(120deg, #1c252f, #29251e 70%, #19212c);
|
||
--mm-title: #f3e6ce;
|
||
--mm-subtitle: #beb7ac;
|
||
--mm-search-bg: #1b232e;
|
||
--mm-search-border: #3b4654;
|
||
--mm-search-shadow: 0 12px 36px rgba(0, 0, 0, 0.133);
|
||
--mm-filter-shadow: none;
|
||
--mm-art: #deb572;
|
||
--mm-core-fill: linear-gradient(
|
||
120deg,
|
||
rgba(193, 138, 59, 0.145),
|
||
rgba(241, 191, 97, 0.063)
|
||
);
|
||
--mm-core-inset: inset 0 0 24px rgba(225, 176, 91, 0.082);
|
||
--mm-core-icon: #e9b761;
|
||
--mm-core-icon-bg: rgba(201, 156, 65, 0.125);
|
||
--mm-card-hover-shadow:
|
||
0 12px 32px rgba(0, 0, 0, 0.267), 0 0 20px rgba(212, 154, 62, 0.082);
|
||
--mm-price-extra: #8cb9e6;
|
||
--mm-tag-bg: color-mix(in srgb, var(--mm-brand) 8.2%, transparent);
|
||
}
|
||
|
||
/* ---------- 页面骨架:保留宿主顶栏与公告占位,目录随页面滚动 ---------- */
|
||
.mm-page {
|
||
min-height: calc(100dvh - var(--content-top-offset, 0px));
|
||
padding-top: var(--app-header-height, 72px);
|
||
isolation: isolate;
|
||
background: var(--mm-page-bg);
|
||
color: var(--mm-text);
|
||
}
|
||
|
||
/* ---------- Hero ---------- */
|
||
.mm-hero {
|
||
position: relative;
|
||
flex-shrink: 0;
|
||
min-height: 235px;
|
||
overflow: visible;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 24px;
|
||
padding: 28px clamp(20px, 4vw, 80px);
|
||
}
|
||
|
||
.mm-art {
|
||
position: fixed;
|
||
inset: calc(var(--app-header-height, 72px) + var(--content-top-offset, 0px)) 0
|
||
auto;
|
||
height: 250px;
|
||
z-index: 0;
|
||
overflow: hidden;
|
||
pointer-events: none;
|
||
color: var(--mm-art);
|
||
background: var(--mm-hero-bg);
|
||
mask-image: var(--mm-art-mask);
|
||
}
|
||
|
||
.mm-art-svg,
|
||
.mm-art-svg > svg {
|
||
position: absolute;
|
||
inset: 0;
|
||
display: block;
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
|
||
.mm-signals {
|
||
stroke-dasharray: 22, 420;
|
||
animation: mm-signal 14s linear infinite;
|
||
filter: drop-shadow(0 0 5px var(--mm-signal-glow));
|
||
}
|
||
|
||
.mm-core {
|
||
position: absolute;
|
||
right: 9%;
|
||
top: 50%;
|
||
width: 116px;
|
||
height: 116px;
|
||
transform: translateY(-50%) rotate(-25deg);
|
||
display: grid;
|
||
place-items: center;
|
||
}
|
||
|
||
.mm-core > div {
|
||
position: absolute;
|
||
inset: 0;
|
||
border: 1px solid var(--mm-core-border);
|
||
transform: rotate(45deg);
|
||
border-radius: 24px;
|
||
animation: mm-core-pulse 8s ease-in-out infinite;
|
||
}
|
||
|
||
.mm-core > div:nth-child(2) {
|
||
inset: 14px;
|
||
animation-delay: -4s;
|
||
background: var(--mm-core-fill);
|
||
box-shadow: var(--mm-core-inset);
|
||
}
|
||
|
||
.mm-core > span {
|
||
display: grid;
|
||
place-items: center;
|
||
width: 44px;
|
||
height: 44px;
|
||
border-radius: 12px;
|
||
color: var(--mm-core-icon);
|
||
background: var(--mm-core-icon-bg);
|
||
transform: rotate(25deg);
|
||
}
|
||
|
||
.mm-intro {
|
||
position: relative;
|
||
z-index: 1;
|
||
text-align: center;
|
||
}
|
||
|
||
.mm-intro h1 {
|
||
font-size: 34px;
|
||
line-height: 1.4;
|
||
margin: 0;
|
||
font-weight: 650;
|
||
letter-spacing: 1px;
|
||
color: var(--mm-title);
|
||
}
|
||
|
||
.mm-intro p {
|
||
font-size: 14px;
|
||
margin: 10px 0 0;
|
||
color: var(--mm-subtitle);
|
||
}
|
||
|
||
.mm-search {
|
||
width: min(720px, 100%);
|
||
position: relative;
|
||
z-index: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 8px;
|
||
background: var(--mm-search-bg);
|
||
border: 1px solid var(--mm-search-border);
|
||
border-radius: 12px;
|
||
box-shadow: var(--mm-search-shadow);
|
||
}
|
||
|
||
.mm-search .ant-input-affix-wrapper {
|
||
flex: 1 1 0%;
|
||
min-width: 0;
|
||
border: 0;
|
||
background: var(--mm-transparent);
|
||
height: 40px;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
.mm-search .ant-input {
|
||
background: var(--mm-transparent);
|
||
}
|
||
|
||
.mm-search > .ant-btn {
|
||
height: 40px;
|
||
padding-inline: 18px;
|
||
}
|
||
|
||
/* 原型按钮文字行高为 normal(实测文字行盒 19px),与 antd 默认 22px 相差 1px 基线 */
|
||
.mm-search > .ant-btn,
|
||
.mm-filter-title .ant-btn,
|
||
.mm-result-bar .ant-btn,
|
||
.mm-empty .ant-btn,
|
||
.mm-detail-footer .ant-btn {
|
||
line-height: normal;
|
||
}
|
||
|
||
/* ---------- 工作区:统计栏、横向筛选卡与模型目录 ---------- */
|
||
.mm-workspace {
|
||
position: relative;
|
||
z-index: 1;
|
||
min-height: 0;
|
||
padding: 18px clamp(20px, 4vw, 80px) 24px;
|
||
max-width: 1760px;
|
||
width: 100%;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.mm-filter-panel.ant-card {
|
||
margin-bottom: 14px;
|
||
background: var(--mm-surface);
|
||
border: 1px solid var(--mm-border);
|
||
border-radius: 12px;
|
||
box-shadow: var(--mm-filter-shadow);
|
||
}
|
||
|
||
.mm-filter-panel.ant-card > .ant-card-body {
|
||
padding: 14px 18px 10px;
|
||
}
|
||
|
||
.mm-filter-title {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 14px;
|
||
padding-bottom: 11px;
|
||
border-bottom: 1px solid var(--mm-border);
|
||
}
|
||
|
||
.mm-filter-title > div:first-child {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 10px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mm-filter-title h2 {
|
||
font-size: 15px;
|
||
font-weight: 700;
|
||
margin: 0;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.mm-filter-title > div:first-child > span {
|
||
font-size: 12px;
|
||
color: var(--mm-muted);
|
||
}
|
||
|
||
.mm-filter-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.mm-filter-title .ant-btn {
|
||
padding-inline: 8px;
|
||
font-size: 12px;
|
||
color: var(--mm-brand);
|
||
}
|
||
|
||
.mm-filter-group {
|
||
display: grid;
|
||
grid-template-columns: 72px minmax(0, 1fr);
|
||
align-items: start;
|
||
gap: 12px;
|
||
padding: 10px 0 5px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mm-filter-rows:not(.is-expanded) .mm-filter-group:nth-child(n + 2) {
|
||
display: none;
|
||
}
|
||
|
||
.mm-filter-group h3 {
|
||
font-size: 12px;
|
||
line-height: 30px;
|
||
margin: 0;
|
||
color: var(--mm-muted);
|
||
font-weight: 500;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.mm-filter-group > div {
|
||
display: flex;
|
||
gap: 6px;
|
||
flex-wrap: wrap;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mm-filter-group .ant-btn {
|
||
height: auto;
|
||
min-height: 28px;
|
||
padding: 3px 9px;
|
||
font-size: 12px;
|
||
border-radius: 6px;
|
||
gap: 5px;
|
||
white-space: normal;
|
||
max-width: 100%;
|
||
box-shadow: none;
|
||
line-height: 1.45;
|
||
}
|
||
|
||
.mm-filter-group .ant-btn.mm-selected {
|
||
box-shadow: none;
|
||
font-weight: 600;
|
||
border-color: var(--mm-brand) !important;
|
||
background: var(--mm-tint) !important;
|
||
color: var(--mm-brand) !important;
|
||
}
|
||
|
||
.mm-filter-ratio {
|
||
color: var(--mm-muted);
|
||
font-weight: 400;
|
||
}
|
||
|
||
.mm-logo {
|
||
display: inline-flex;
|
||
flex: 0 0 auto;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: var(--mm-logo-bg);
|
||
border: 1px solid var(--mm-logo-border);
|
||
border-radius: 9px;
|
||
width: 36px;
|
||
height: 36px;
|
||
padding: 7px;
|
||
color: var(--mm-logo-ink);
|
||
}
|
||
|
||
.mm-logo > * {
|
||
max-width: 100%;
|
||
max-height: 100%;
|
||
}
|
||
|
||
/* 无模型 / 厂商图标时的名称缩写(原型未定义):主色字 + 浅金底,保证白底图标框内可见 */
|
||
.mm-logo .ant-avatar {
|
||
background: var(--mm-tint);
|
||
color: var(--mm-brand);
|
||
font-size: 10px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.mm-filter-group .mm-logo {
|
||
color: inherit;
|
||
width: 18px;
|
||
height: 18px;
|
||
background: var(--mm-filter-logo-bg);
|
||
border: 0;
|
||
border-radius: 4px;
|
||
padding: var(--mm-filter-logo-padding);
|
||
}
|
||
|
||
html.dark .mm-filter-group .mm-logo {
|
||
color: var(--mm-filter-logo-ink);
|
||
}
|
||
|
||
.mm-catalog {
|
||
min-width: 0;
|
||
min-height: 0;
|
||
}
|
||
|
||
.mm-result-bar {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
min-height: 45px;
|
||
margin-bottom: 10px;
|
||
padding: 0 4px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.mm-result-bar > div {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
}
|
||
|
||
.mm-result-bar h2 {
|
||
font-size: 18px;
|
||
font-weight: 700;
|
||
margin: 0;
|
||
}
|
||
|
||
.mm-result-bar span {
|
||
color: var(--mm-muted);
|
||
font-size: 13px;
|
||
}
|
||
|
||
.mm-scope-alert {
|
||
flex-shrink: 0;
|
||
margin: 0 4px 12px;
|
||
}
|
||
|
||
.mm-scroll {
|
||
min-height: 0;
|
||
padding: 4px 8px 28px 4px;
|
||
outline-offset: -2px;
|
||
}
|
||
|
||
.mm-section-title {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 9px;
|
||
margin-bottom: 14px;
|
||
padding: 0 2px;
|
||
}
|
||
|
||
.mm-section-title h2 {
|
||
font-size: 20px;
|
||
font-weight: 650;
|
||
margin: 0;
|
||
}
|
||
|
||
.mm-section-title .mm-logo {
|
||
width: 28px;
|
||
height: 28px;
|
||
padding: 5px;
|
||
border-radius: 7px;
|
||
}
|
||
|
||
.mm-section-title > span:last-child {
|
||
margin-left: auto;
|
||
font-size: 12px;
|
||
color: var(--mm-muted);
|
||
}
|
||
|
||
.mm-vendor-section + .mm-vendor-section {
|
||
margin-top: 25px;
|
||
}
|
||
|
||
.mm-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
|
||
gap: 16px;
|
||
}
|
||
|
||
/* ---------- 模型卡片(Ant Design Card) ---------- */
|
||
.mm-card.ant-card {
|
||
background: var(--mm-surface);
|
||
border-color: var(--mm-border);
|
||
border-radius: 12px;
|
||
position: relative;
|
||
isolation: isolate;
|
||
overflow: hidden;
|
||
cursor: pointer;
|
||
transition:
|
||
transform 0.24s,
|
||
border-color 0.24s,
|
||
box-shadow 0.24s;
|
||
}
|
||
|
||
.mm-card.ant-card .ant-card-body {
|
||
padding: 18px 18px 0;
|
||
height: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
position: relative;
|
||
z-index: 1;
|
||
}
|
||
|
||
.mm-card.mm-card-loading {
|
||
cursor: default;
|
||
}
|
||
|
||
.mm-card.ant-card.mm-card-loading .ant-card-body {
|
||
padding-bottom: 18px;
|
||
}
|
||
|
||
.mm-card::before {
|
||
content: '';
|
||
position: absolute;
|
||
inset: 0;
|
||
z-index: 0;
|
||
background: radial-gradient(
|
||
260px circle at var(--pointer-x, 50%) var(--pointer-y, 0%),
|
||
var(--mm-glow),
|
||
var(--mm-transparent) 75%
|
||
);
|
||
opacity: 0;
|
||
transition: opacity 0.24s;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.mm-card::after {
|
||
content: '';
|
||
position: absolute;
|
||
left: -80%;
|
||
top: 0;
|
||
width: 45%;
|
||
height: 100%;
|
||
transform: skewX(-22deg);
|
||
background: var(--mm-card-sweep);
|
||
pointer-events: none;
|
||
z-index: 0;
|
||
}
|
||
|
||
.mm-card:focus-visible {
|
||
outline: 2px solid var(--mm-brand);
|
||
outline-offset: -2px;
|
||
}
|
||
|
||
.mm-card-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
margin-bottom: 22px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mm-card-head h3 {
|
||
margin: 0;
|
||
font-size: 16px;
|
||
line-height: 1.55;
|
||
flex: 1 1 0%;
|
||
min-width: 0;
|
||
overflow-wrap: anywhere;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.mm-card-head .ant-btn {
|
||
flex: 0 0 auto;
|
||
width: 28px;
|
||
padding: 0;
|
||
color: var(--mm-muted);
|
||
}
|
||
|
||
.mm-card-head .ant-tag {
|
||
margin: 0;
|
||
}
|
||
|
||
.mm-prices {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 10px;
|
||
}
|
||
|
||
.mm-prices > div {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
flex-direction: column;
|
||
gap: 5px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mm-prices span {
|
||
font-size: 12px;
|
||
color: var(--mm-muted);
|
||
}
|
||
|
||
.mm-prices strong {
|
||
font-family: Bahnschrift, 'DIN Alternate', sans-serif;
|
||
font-variant-numeric: tabular-nums;
|
||
font-size: 21px;
|
||
font-weight: 700;
|
||
letter-spacing: -0.3px;
|
||
line-height: 1.5;
|
||
color: var(--mm-text);
|
||
}
|
||
|
||
.mm-prices del {
|
||
font-size: 12px;
|
||
color: var(--mm-muted);
|
||
}
|
||
|
||
.mm-tier-prices {
|
||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||
}
|
||
|
||
.mm-tier-prices strong {
|
||
font-size: 19px;
|
||
}
|
||
|
||
.mm-cache {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 5px;
|
||
color: var(--mm-muted);
|
||
font-size: 12px;
|
||
padding: 15px 0 16px;
|
||
min-height: 57px;
|
||
flex: 1 1 0%;
|
||
}
|
||
|
||
.mm-cache b {
|
||
color: var(--mm-text);
|
||
font-weight: 500;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.mm-card-foot {
|
||
border-top: 1px solid var(--mm-foot-border);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
padding: 12px 0;
|
||
font-size: 12px;
|
||
color: var(--mm-muted);
|
||
margin-top: auto;
|
||
}
|
||
|
||
.mm-card-foot .ant-tag {
|
||
font-size: 12px;
|
||
line-height: 20px;
|
||
color: var(--mm-brand);
|
||
background: var(--mm-tint);
|
||
margin: 0;
|
||
padding-inline: 5px;
|
||
}
|
||
|
||
.mm-data-note {
|
||
font-size: 12px;
|
||
color: var(--mm-muted);
|
||
text-align: center;
|
||
margin: 24px 0 4px;
|
||
}
|
||
|
||
.mm-empty {
|
||
text-align: center;
|
||
padding: 70px 20px;
|
||
background: var(--mm-surface);
|
||
border: 1px dashed var(--mm-border);
|
||
border-radius: 12px;
|
||
}
|
||
|
||
.mm-empty h3 {
|
||
font-size: 17px;
|
||
font-weight: 700;
|
||
margin: 1em 0;
|
||
}
|
||
|
||
.mm-empty p {
|
||
color: var(--mm-muted);
|
||
margin: 12px 0 22px;
|
||
}
|
||
|
||
/* ---------- 悬停 / 聚焦反馈(原型:上浮 3px、指针光晕、扫光) ---------- */
|
||
@media (hover: hover) and (pointer: fine) {
|
||
.mm-card:hover,
|
||
.mm-card:focus-within {
|
||
transform: translateY(-3px);
|
||
box-shadow: var(--mm-card-hover-shadow);
|
||
border-color: var(--mm-card-hover-border) !important;
|
||
}
|
||
|
||
.mm-card:hover::before,
|
||
.mm-card:focus-within::before {
|
||
opacity: 1;
|
||
}
|
||
|
||
.mm-card:hover::after {
|
||
animation: mm-card-sweep 0.8s ease-out 1;
|
||
}
|
||
|
||
.mm-card.mm-card-loading:hover {
|
||
transform: none;
|
||
box-shadow: none;
|
||
}
|
||
|
||
.mm-card.mm-card-loading:hover::before,
|
||
.mm-card.mm-card-loading:hover::after {
|
||
opacity: 0;
|
||
animation: none;
|
||
}
|
||
}
|
||
|
||
/* ---------- 详情抽屉(Ant Design Drawer) ---------- */
|
||
.mm-detail-drawer .ant-drawer-mask {
|
||
background: var(--mm-mask);
|
||
backdrop-filter: blur(4px);
|
||
}
|
||
|
||
.mm-detail-drawer .ant-drawer-body {
|
||
padding: 24px;
|
||
line-height: 1.5714;
|
||
color: var(--mm-text);
|
||
}
|
||
|
||
.mm-detail-loading {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 48px 0;
|
||
color: var(--mm-muted);
|
||
}
|
||
|
||
.mm-detail-model {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
margin-bottom: 28px;
|
||
}
|
||
|
||
.mm-detail-model .mm-logo {
|
||
width: 46px;
|
||
height: 46px;
|
||
padding: 9px;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
.mm-detail-model h2.ant-typography {
|
||
font-size: 21px;
|
||
font-weight: 700;
|
||
margin: 0;
|
||
overflow-wrap: anywhere;
|
||
line-height: 1.5;
|
||
color: var(--mm-text);
|
||
}
|
||
|
||
.mm-detail-model .ant-typography .ant-typography-copy {
|
||
color: var(--mm-muted);
|
||
margin-inline-start: 21px;
|
||
}
|
||
|
||
.mm-detail-section {
|
||
padding: 24px 0;
|
||
border-top: 1px solid var(--mm-border);
|
||
}
|
||
|
||
.mm-detail-section h3 {
|
||
font-size: 15px;
|
||
margin: 0;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.mm-detail-description {
|
||
margin: 16px 0 0;
|
||
color: var(--mm-text);
|
||
font-size: 14px;
|
||
}
|
||
|
||
.mm-detail-tags {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
margin-top: 12px;
|
||
}
|
||
|
||
.mm-detail-tags .ant-tag {
|
||
margin: 0;
|
||
}
|
||
|
||
.mm-detail-section-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 16px;
|
||
margin-bottom: 18px;
|
||
}
|
||
|
||
.mm-detail-section-head > span {
|
||
font-size: 12px;
|
||
color: var(--mm-muted);
|
||
}
|
||
|
||
.mm-detail-endpoint {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 16px;
|
||
padding: 14px 16px;
|
||
background: var(--mm-soft);
|
||
border: 1px solid var(--mm-border);
|
||
border-radius: 8px;
|
||
margin-top: 10px;
|
||
}
|
||
|
||
.mm-detail-endpoint strong {
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.mm-detail-endpoint code {
|
||
display: block;
|
||
font-size: 13px;
|
||
margin-top: 6px;
|
||
overflow-wrap: anywhere;
|
||
color: var(--mm-text);
|
||
}
|
||
|
||
.mm-detail-endpoint .ant-tag,
|
||
.mm-detail-group .ant-tag,
|
||
.mm-detail-auto .ant-tag {
|
||
color: var(--mm-brand);
|
||
background: var(--mm-tag-bg);
|
||
margin: 0;
|
||
}
|
||
|
||
.mm-detail-group .ant-tag {
|
||
font-size: 11px;
|
||
}
|
||
|
||
.mm-detail-auto {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 10px;
|
||
align-items: center;
|
||
margin-bottom: 18px;
|
||
font-size: 13px;
|
||
color: var(--mm-muted);
|
||
}
|
||
|
||
.mm-detail-group {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.mm-detail-price {
|
||
font-variant-numeric: tabular-nums;
|
||
font-weight: 600;
|
||
font-size: 13px;
|
||
white-space: nowrap;
|
||
color: var(--mm-brand);
|
||
}
|
||
|
||
.mm-detail-price-extra {
|
||
color: var(--mm-price-extra);
|
||
}
|
||
|
||
.mm-official {
|
||
color: var(--mm-muted);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.mm-detail-table .ant-table-thead > tr > th {
|
||
font-size: 12px;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.mm-detail-table .ant-table-cell {
|
||
padding: 13px 12px !important;
|
||
}
|
||
|
||
.mm-detail-footer {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
padding: 3px 0;
|
||
}
|
||
|
||
.mm-detail-footer .ant-btn {
|
||
min-width: 88px;
|
||
}
|
||
|
||
/* ---------- 动画(原型 keyframes) ---------- */
|
||
@keyframes mm-signal {
|
||
100% {
|
||
stroke-dashoffset: -1768;
|
||
}
|
||
}
|
||
|
||
@keyframes mm-core-pulse {
|
||
50% {
|
||
transform: rotate(55deg) scale(1.06);
|
||
border-color: var(--mm-core-border-strong);
|
||
}
|
||
}
|
||
|
||
@keyframes mm-card-sweep {
|
||
100% {
|
||
left: 145%;
|
||
}
|
||
}
|
||
|
||
/* ---------- 响应式:列数由卡片可用宽度决定,保留装饰与控件断点 ---------- */
|
||
@media (max-width: 1540px) {
|
||
.mm-core {
|
||
right: 6%;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 1180px) {
|
||
.mm-workspace {
|
||
padding-block: 18px 20px;
|
||
}
|
||
|
||
.mm-core {
|
||
right: 1%;
|
||
opacity: 0.6;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 850px) {
|
||
.mm-grid {
|
||
gap: 12px;
|
||
}
|
||
|
||
.mm-card.ant-card .ant-card-body {
|
||
padding: 14px 14px 0;
|
||
}
|
||
|
||
.mm-card-head {
|
||
gap: 7px;
|
||
}
|
||
|
||
.mm-card-head .mm-logo {
|
||
width: 30px;
|
||
height: 30px;
|
||
padding: 5px;
|
||
}
|
||
|
||
.mm-prices strong {
|
||
font-size: 19px;
|
||
}
|
||
|
||
.mm-unit {
|
||
display: none;
|
||
}
|
||
|
||
.mm-intro h1 {
|
||
font-size: 30px;
|
||
}
|
||
|
||
.mm-core {
|
||
opacity: 0.28;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 600px) {
|
||
.mm-hero {
|
||
padding: 22px 20px;
|
||
gap: 18px;
|
||
}
|
||
|
||
.mm-intro h1 {
|
||
font-size: 24px;
|
||
letter-spacing: 0;
|
||
}
|
||
|
||
.mm-intro p {
|
||
font-size: 13px;
|
||
margin-top: 8px;
|
||
}
|
||
|
||
.mm-search {
|
||
gap: 5px;
|
||
padding: 5px;
|
||
border-radius: 10px;
|
||
}
|
||
|
||
.mm-search .ant-input-affix-wrapper {
|
||
padding-inline: 5px;
|
||
height: 36px;
|
||
}
|
||
|
||
.mm-search .ant-input {
|
||
font-size: 13px;
|
||
}
|
||
|
||
.mm-search > .ant-btn {
|
||
height: 36px;
|
||
padding-inline: 9px;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.mm-search > .ant-btn .ant-btn-icon {
|
||
display: none;
|
||
}
|
||
|
||
.mm-workspace {
|
||
padding-block: 10px 14px;
|
||
}
|
||
|
||
.mm-filter-panel.ant-card {
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
.mm-filter-panel.ant-card > .ant-card-body {
|
||
padding: 12px 12px 8px;
|
||
}
|
||
|
||
.mm-filter-title {
|
||
align-items: flex-start;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.mm-filter-title > div:first-child {
|
||
display: block;
|
||
}
|
||
|
||
.mm-filter-title > div:first-child > span {
|
||
display: block;
|
||
margin-top: 3px;
|
||
font-size: 11px;
|
||
}
|
||
|
||
.mm-filter-group {
|
||
grid-template-columns: 66px minmax(0, 1fr);
|
||
gap: 7px;
|
||
padding: 8px 0 3px;
|
||
}
|
||
|
||
.mm-filter-group h3 {
|
||
font-size: 11px;
|
||
line-height: 29px;
|
||
}
|
||
|
||
.mm-filter-group .ant-btn {
|
||
min-height: 29px;
|
||
padding-inline: 8px;
|
||
font-size: 11px;
|
||
}
|
||
|
||
.mm-result-bar {
|
||
min-height: 38px;
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.mm-result-bar h2 {
|
||
font-size: 16px;
|
||
}
|
||
|
||
.mm-grid {
|
||
gap: 14px;
|
||
}
|
||
|
||
.mm-card.ant-card .ant-card-body {
|
||
padding: 18px 20px 0;
|
||
}
|
||
|
||
.mm-card-head h3 {
|
||
font-size: 16px;
|
||
}
|
||
|
||
.mm-card-head .ant-btn {
|
||
width: 36px;
|
||
height: 40px;
|
||
}
|
||
|
||
.mm-card-head .mm-logo {
|
||
width: 36px;
|
||
height: 36px;
|
||
padding: 7px;
|
||
}
|
||
|
||
.mm-prices strong {
|
||
font-size: 24px;
|
||
}
|
||
|
||
.mm-prices span,
|
||
.mm-cache,
|
||
.mm-card-foot {
|
||
font-size: 13px;
|
||
}
|
||
|
||
.mm-section-title h2 {
|
||
font-size: 18px;
|
||
}
|
||
|
||
.mm-data-note {
|
||
text-align: left;
|
||
line-height: 1.8;
|
||
padding-right: 35px;
|
||
}
|
||
|
||
.mm-cache {
|
||
min-height: 55px;
|
||
}
|
||
|
||
.mm-core {
|
||
right: -20px;
|
||
}
|
||
|
||
.mm-hero .mm-art-svg > svg {
|
||
width: 180%;
|
||
left: -40%;
|
||
}
|
||
|
||
.mm-detail-drawer .ant-drawer-body {
|
||
padding: 20px 16px;
|
||
}
|
||
|
||
.mm-detail-model {
|
||
gap: 9px;
|
||
}
|
||
|
||
.mm-detail-model h2.ant-typography {
|
||
font-size: 18px;
|
||
}
|
||
|
||
.mm-detail-model .mm-logo {
|
||
width: 38px;
|
||
height: 38px;
|
||
padding: 7px;
|
||
}
|
||
|
||
.mm-detail-section {
|
||
padding: 20px 0;
|
||
}
|
||
|
||
.mm-detail-endpoint {
|
||
padding: 12px;
|
||
}
|
||
|
||
.mm-detail-footer .ant-btn {
|
||
width: 100%;
|
||
}
|
||
}
|
||
|
||
/* ---------- 减少动态效果(原型 prefers-reduced-motion 规则) ---------- */
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.mm-signals,
|
||
.mm-core > div,
|
||
.mm-card:hover::after {
|
||
animation: none;
|
||
}
|
||
|
||
.mm-card {
|
||
transition: none;
|
||
}
|
||
|
||
.mm-card:hover,
|
||
.mm-card:focus-within {
|
||
transform: none;
|
||
}
|
||
|
||
.mm-signals {
|
||
stroke-dasharray: none;
|
||
opacity: 0.25;
|
||
}
|
||
}
|