修改功能
This commit is contained in:
@@ -1412,3 +1412,170 @@
|
||||
transition-duration: .01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.hero {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.hero-inner {
|
||||
min-height: 0;
|
||||
gap: 28px;
|
||||
padding: 36px 0 48px;
|
||||
}
|
||||
|
||||
.hero-copy {
|
||||
min-width: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.hero-copy:before {
|
||||
content: none;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 42px;
|
||||
}
|
||||
|
||||
.lead {
|
||||
font-size: 16px;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.hero-path {
|
||||
gap: 7px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.hero-path i {
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
.hero-action-card,
|
||||
.cta,
|
||||
.cta .btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hero-action-card {
|
||||
padding: 12px;
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
.cta {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.cta .btn {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.metrics {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.metric + .metric {
|
||||
border-top: 1px solid rgba(218, 201, 174, .78);
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.hero-visual {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.archive-stage,
|
||||
.book-cover {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hall,
|
||||
.video-card,
|
||||
.search-panel {
|
||||
width: calc(100dvw - 28px);
|
||||
max-width: 100%;
|
||||
position: relative;
|
||||
inset: auto;
|
||||
}
|
||||
|
||||
.hall {
|
||||
height: auto;
|
||||
aspect-ratio: 16 / 9;
|
||||
}
|
||||
|
||||
.video-card {
|
||||
height: 174px;
|
||||
}
|
||||
|
||||
.search-panel {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.search-box {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.word-scroll-card,
|
||||
.word-window {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.search-box span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
padding-left: 14px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.search-box b {
|
||||
width: 76px;
|
||||
flex: 0 0 76px;
|
||||
}
|
||||
|
||||
.genealogy-list,
|
||||
.function-grid,
|
||||
.quick-inner,
|
||||
.qr-wrap {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
section {
|
||||
padding: 52px 0;
|
||||
}
|
||||
|
||||
.section-head h2,
|
||||
.download-panel h2 {
|
||||
font-size: 34px;
|
||||
}
|
||||
|
||||
.surname-panel {
|
||||
gap: 18px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.surname-intro {
|
||||
padding: 22px;
|
||||
}
|
||||
|
||||
.surname-grid {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.surname-name {
|
||||
height: 54px;
|
||||
}
|
||||
|
||||
.download-panel {
|
||||
gap: 28px;
|
||||
padding: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,41 @@
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.join-page-grid .field {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.join-page-grid .field > span {
|
||||
color: var(--ink);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.join-page-grid .field input,
|
||||
.join-page-grid .field textarea {
|
||||
width: 100%;
|
||||
min-height: 48px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: #fffdf8;
|
||||
color: var(--ink);
|
||||
font: inherit;
|
||||
outline: none;
|
||||
transition: border-color .2s ease, box-shadow .2s ease;
|
||||
}
|
||||
|
||||
.join-page-grid .field textarea {
|
||||
min-height: 128px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.join-page-grid .field input:focus,
|
||||
.join-page-grid .field textarea:focus {
|
||||
border-color: rgba(200, 59, 50, .45);
|
||||
box-shadow: 0 0 0 4px rgba(200, 59, 50, .08);
|
||||
}
|
||||
|
||||
.join-search-panel {
|
||||
padding-right: 28px;
|
||||
border-right: 1px solid var(--line);
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
.module-hero {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-height: 257px;
|
||||
box-sizing: border-box;
|
||||
padding: 58px 0 42px;
|
||||
background:
|
||||
radial-gradient(circle at 76% 18%, rgba(196, 146, 69, .16), transparent 25%),
|
||||
@@ -78,9 +80,15 @@
|
||||
top: 106px;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
max-height: calc(100vh - 126px);
|
||||
overflow-y: auto;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.page-profile-module .module-nav:not([data-workspace-navigation]) {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.module-nav a {
|
||||
padding: 14px 16px;
|
||||
border-radius: 14px;
|
||||
@@ -96,9 +104,53 @@
|
||||
transform: translateX(4px);
|
||||
}
|
||||
|
||||
.workspace-nav-group {
|
||||
border: 1px solid transparent;
|
||||
border-radius: 14px;
|
||||
}
|
||||
|
||||
.workspace-nav-group[open] {
|
||||
border-color: rgba(224, 211, 189, .72);
|
||||
background: rgba(255, 250, 242, .72);
|
||||
}
|
||||
|
||||
.workspace-nav-group summary {
|
||||
padding: 14px 16px;
|
||||
border-radius: 14px;
|
||||
color: #5e665f;
|
||||
font-weight: 900;
|
||||
cursor: pointer;
|
||||
transition: color .22s ease, background .22s ease;
|
||||
}
|
||||
|
||||
.workspace-nav-group summary:hover,
|
||||
.workspace-nav-group.is-open > summary {
|
||||
color: var(--red);
|
||||
background: #fbefea;
|
||||
}
|
||||
|
||||
.workspace-nav-group summary:focus-visible,
|
||||
.module-nav a:focus-visible {
|
||||
outline: 3px solid rgba(200, 59, 50, .32);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.workspace-nav-items {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
padding: 2px 8px 8px 18px;
|
||||
}
|
||||
|
||||
.module-nav .workspace-nav-items a {
|
||||
padding: 10px 12px;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.module-main {
|
||||
display: grid;
|
||||
gap: 20px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.feature-status-banner {
|
||||
@@ -321,6 +373,22 @@
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.row-actions button.pill {
|
||||
border: 0;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.row-actions .pill:focus-visible {
|
||||
outline: 3px solid rgba(200, 59, 50, .28);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.module-panel h2[tabindex="-1"] {
|
||||
scroll-margin-top: 96px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.pill.is-danger {
|
||||
color: #8a322b;
|
||||
background: #fde8e2;
|
||||
@@ -396,12 +464,17 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.upload-input {
|
||||
.editor-field .upload-input {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
min-height: 0;
|
||||
margin: -1px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
overflow: hidden;
|
||||
clip: rect(0 0 0 0);
|
||||
clip-path: inset(50%);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@@ -499,13 +572,19 @@
|
||||
.security-form {
|
||||
/* 安全设置表单复用编辑表单结构,只补模块间距 */
|
||||
margin-top: 16px;
|
||||
max-width: 880px;
|
||||
}
|
||||
|
||||
.security-danger {
|
||||
border-left: 4px solid #a13b32;
|
||||
border-color: rgba(138, 50, 43, .28);
|
||||
background: #fff7f2;
|
||||
}
|
||||
|
||||
.security-danger h2 {
|
||||
color: #7e2d27;
|
||||
}
|
||||
|
||||
.security-danger .editor-field input,
|
||||
.security-danger .editor-field textarea {
|
||||
background: #fffdf8;
|
||||
@@ -791,6 +870,11 @@
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.editor-field > .btn {
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.profile-form-actions {
|
||||
@@ -889,6 +973,8 @@
|
||||
.module-nav {
|
||||
position: static;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.lineage-filter-toolbar {
|
||||
@@ -897,6 +983,10 @@
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.module-hero {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.page-profile-module .module-nav {
|
||||
display: none;
|
||||
}
|
||||
@@ -920,3 +1010,245 @@
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* 个人中心工作台的统一密度和媒体布局。所有业务页沿用同一侧栏宽度与内容节奏。 */
|
||||
.page-profile-module {
|
||||
background: var(--color-canvas);
|
||||
}
|
||||
|
||||
.page-profile-module .nav {
|
||||
height: 72px;
|
||||
}
|
||||
|
||||
.page-profile-module .section {
|
||||
padding: var(--space-7) 0;
|
||||
}
|
||||
|
||||
.module-hero {
|
||||
height: 168px;
|
||||
min-height: 168px;
|
||||
padding: var(--space-5) 0;
|
||||
}
|
||||
|
||||
.lineage-current-toolbar {
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.lineage-current-toolbar label {
|
||||
flex: 0 0 auto;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.module-kicker {
|
||||
margin-bottom: var(--space-3);
|
||||
padding: 6px 11px;
|
||||
}
|
||||
|
||||
.module-title-row h1 {
|
||||
margin-bottom: var(--space-2);
|
||||
font-size: var(--text-2xl);
|
||||
line-height: 1.18;
|
||||
}
|
||||
|
||||
.module-title-row p {
|
||||
font-size: var(--text-body-lg);
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.module-layout {
|
||||
grid-template-columns: 248px minmax(0, 1fr);
|
||||
gap: var(--space-5);
|
||||
}
|
||||
|
||||
.module-nav,
|
||||
.module-panel,
|
||||
.module-card {
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-panel);
|
||||
}
|
||||
|
||||
.module-nav {
|
||||
top: 88px;
|
||||
gap: var(--space-2);
|
||||
max-height: calc(100vh - 108px);
|
||||
padding: var(--space-3);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: rgba(171, 65, 54, .34) transparent;
|
||||
}
|
||||
|
||||
.module-nav::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
.module-nav::-webkit-scrollbar-thumb {
|
||||
border-radius: 999px;
|
||||
background: rgba(171, 65, 54, .34);
|
||||
}
|
||||
|
||||
.module-nav::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.module-nav a,
|
||||
.workspace-nav-group summary {
|
||||
padding: 11px 13px;
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.module-nav a:hover,
|
||||
.module-nav a.active {
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
.module-main {
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.module-panel {
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
||||
.module-panel h2 {
|
||||
font-size: var(--text-title);
|
||||
}
|
||||
|
||||
.module-grid {
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.module-card {
|
||||
min-height: 144px;
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.module-card:after {
|
||||
content: none;
|
||||
}
|
||||
|
||||
.module-card h3,
|
||||
.module-row h3 {
|
||||
font-size: var(--text-heading);
|
||||
}
|
||||
|
||||
.module-row {
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-4);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.module-row[data-join-genealogy-id] > span:first-child {
|
||||
display: grid;
|
||||
gap: var(--space-1);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.module-row[data-join-genealogy-id] small {
|
||||
color: var(--text-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.form-like {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.form-like p {
|
||||
grid-template-columns: 132px minmax(0, 1fr) auto;
|
||||
gap: var(--space-4);
|
||||
padding: 14px var(--space-4);
|
||||
}
|
||||
|
||||
.module-row > .media-frame,
|
||||
.album-photo-row > .media-frame {
|
||||
width: 152px;
|
||||
aspect-ratio: 4 / 3;
|
||||
}
|
||||
|
||||
.family-cover-media,
|
||||
.article-cover-media,
|
||||
.album-cover-media,
|
||||
.ceremony-cover-media,
|
||||
.video-detail-media {
|
||||
margin-bottom: var(--space-4);
|
||||
aspect-ratio: 16 / 7;
|
||||
}
|
||||
|
||||
.family-cover-media img,
|
||||
.article-cover-media img,
|
||||
.album-cover-media img,
|
||||
.ceremony-cover-media img,
|
||||
.video-detail-media video {
|
||||
aspect-ratio: 16 / 7;
|
||||
}
|
||||
|
||||
:is(.article-cover-media, .album-cover-media, .ceremony-cover-media) img {
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.video-detail-media video {
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.lineage-row {
|
||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
.lineage-node {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
column-gap: var(--space-2);
|
||||
}
|
||||
|
||||
.lineage-node > .media-avatar {
|
||||
grid-row: 1 / 3;
|
||||
}
|
||||
|
||||
@media (max-width: 1060px) {
|
||||
.module-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.module-nav {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.module-hero {
|
||||
height: auto;
|
||||
padding: var(--space-5) 0 var(--space-4);
|
||||
}
|
||||
|
||||
.module-title-row h1 {
|
||||
font-size: var(--text-title);
|
||||
}
|
||||
|
||||
.module-panel {
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.module-row > .media-frame,
|
||||
.album-photo-row > .media-frame {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.form-like p,
|
||||
.module-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.row-actions {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.row-actions .pill {
|
||||
display: inline-flex;
|
||||
min-height: 44px;
|
||||
padding: 10px 14px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.bottom-actions .form-status {
|
||||
flex-basis: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -211,16 +211,23 @@
|
||||
}
|
||||
|
||||
.user-actions a,
|
||||
.user-actions button,
|
||||
.todo-list a {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 15px 16px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 14px;
|
||||
background: #fbf7ed;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
transition: transform .22s ease, border-color .22s ease, background .22s ease, color .22s ease;
|
||||
}
|
||||
|
||||
.user-actions a:hover,
|
||||
.user-actions button:hover,
|
||||
.todo-list a:hover {
|
||||
transform: translateX(5px);
|
||||
border-color: rgba(71, 111, 99, .28);
|
||||
@@ -499,6 +506,10 @@
|
||||
transition: opacity .22s ease;
|
||||
}
|
||||
|
||||
.logout-modal[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.logout-modal.show {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
@@ -662,3 +673,47 @@
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.page-profile {
|
||||
background: var(--color-canvas);
|
||||
}
|
||||
|
||||
.profile-hero {
|
||||
padding: var(--space-7) 0 var(--space-6);
|
||||
}
|
||||
|
||||
.profile-card,
|
||||
.profile-stats,
|
||||
.profile-next-card,
|
||||
.panel,
|
||||
.side-card {
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-panel);
|
||||
}
|
||||
|
||||
.profile-info h1 {
|
||||
font-size: var(--text-display);
|
||||
}
|
||||
|
||||
.avatar .media-avatar,
|
||||
.avatar .media-avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
}
|
||||
|
||||
.avatar .media-avatar {
|
||||
color: #fff;
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.profile-hero {
|
||||
padding: var(--space-5) 0 var(--space-4);
|
||||
}
|
||||
|
||||
.profile-info h1 {
|
||||
font-size: var(--text-title);
|
||||
}
|
||||
}
|
||||
|
||||
+360
-17
@@ -1,16 +1,18 @@
|
||||
@import url("../../tokens.css");
|
||||
|
||||
:root {
|
||||
--red: #c83b32;
|
||||
--red-soft: #f4ded8;
|
||||
--green: #476f63;
|
||||
--green-dark: #213f38;
|
||||
--gold: #c49245;
|
||||
--ink: #26302c;
|
||||
--muted: #737b76;
|
||||
--paper: #fbf7ed;
|
||||
--paper-2: #f7efe2;
|
||||
--line: #eadfce;
|
||||
--white: #fffdf8;
|
||||
--shadow: 0 24px 70px rgba(69, 53, 35, .12);
|
||||
--red: var(--color-accent);
|
||||
--red-soft: var(--color-accent-soft);
|
||||
--green: var(--color-green);
|
||||
--green-dark: var(--color-ink);
|
||||
--gold: var(--color-gold);
|
||||
--ink: var(--color-ink);
|
||||
--muted: var(--color-ink-2);
|
||||
--paper: var(--color-paper);
|
||||
--paper-2: var(--color-paper-2);
|
||||
--line: var(--color-rule);
|
||||
--white: var(--color-panel);
|
||||
--shadow: var(--shadow-card);
|
||||
}
|
||||
|
||||
.auth-layer-message {
|
||||
@@ -34,10 +36,19 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
overflow-x: clip;
|
||||
}
|
||||
|
||||
html {
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
color: var(--ink);
|
||||
font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
|
||||
font-family: var(--font-body);
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
@@ -63,7 +74,7 @@ img {
|
||||
}
|
||||
|
||||
.container {
|
||||
width: min(1280px, calc(100% - 72px));
|
||||
width: min(var(--layout-max), calc(100% - 72px));
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
@@ -142,7 +153,7 @@ img {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 26px;
|
||||
color: rgba(255, 253, 248, .78);
|
||||
color: #fffdf8;
|
||||
font-size: 15px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -154,6 +165,7 @@ img {
|
||||
|
||||
.nav-links a,
|
||||
.nav-actions a {
|
||||
color: inherit;
|
||||
position: relative;
|
||||
transition: color .22s ease, transform .22s ease;
|
||||
}
|
||||
@@ -181,7 +193,7 @@ img {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
color: rgba(255, 253, 248, .86);
|
||||
color: #fffdf8;
|
||||
font-size: 15px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -215,7 +227,9 @@ img {
|
||||
}
|
||||
|
||||
.profile-mobile-menu-toggle,
|
||||
.profile-mobile-menu {
|
||||
.profile-mobile-menu,
|
||||
.site-menu-toggle,
|
||||
.site-mobile-menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -263,6 +277,18 @@ img {
|
||||
background: rgba(255, 255, 255, .68);
|
||||
}
|
||||
|
||||
.btn.danger {
|
||||
border-color: #8a322b;
|
||||
color: #fffdf8;
|
||||
background: #8a322b;
|
||||
box-shadow: 0 10px 22px rgba(138, 50, 43, .18);
|
||||
}
|
||||
|
||||
.btn.danger:hover {
|
||||
border-color: #71251f;
|
||||
background: #71251f;
|
||||
}
|
||||
|
||||
.inner-hero {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
@@ -883,6 +909,8 @@ textarea {
|
||||
top: 100%;
|
||||
right: 0;
|
||||
left: 0;
|
||||
max-height: calc(100vh - 72px);
|
||||
overflow-y: auto;
|
||||
padding: 14px 0 18px;
|
||||
border-bottom: 1px solid rgba(255, 253, 248, .24);
|
||||
background: rgba(121, 42, 35, .99);
|
||||
@@ -890,9 +918,46 @@ textarea {
|
||||
}
|
||||
|
||||
.profile-mobile-menu-inner {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.profile-mobile-workspace {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.profile-mobile-workspace .workspace-nav-group {
|
||||
border-color: rgba(255, 248, 230, .16);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.profile-mobile-workspace .workspace-nav-group[open] {
|
||||
background: rgba(255, 253, 248, .08);
|
||||
}
|
||||
|
||||
.profile-mobile-menu .profile-mobile-workspace summary {
|
||||
min-height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 10px 14px;
|
||||
color: #fff8e6;
|
||||
font-weight: 900;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.profile-mobile-menu .profile-mobile-workspace .workspace-nav-group.is-open > summary {
|
||||
color: #fff7d8;
|
||||
background: rgba(255, 253, 248, .16);
|
||||
}
|
||||
|
||||
.profile-mobile-workspace .workspace-nav-items,
|
||||
.profile-mobile-account-actions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.profile-mobile-menu a,
|
||||
@@ -922,11 +987,76 @@ textarea {
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
.profile-mobile-workspace .workspace-nav-items,
|
||||
.profile-mobile-account-actions {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1120px) {
|
||||
.nav-links {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.site-menu-toggle {
|
||||
min-width: 58px;
|
||||
height: 38px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 12px;
|
||||
border: 1px solid rgba(255, 248, 230, .38);
|
||||
border-radius: 10px;
|
||||
color: #fff8e6;
|
||||
background: rgba(79, 29, 26, .2);
|
||||
font: inherit;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.has-site-mobile-menu .nav-actions {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.site-mobile-menu.is-open {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
right: 0;
|
||||
left: 0;
|
||||
padding: 14px 0 18px;
|
||||
border-bottom: 1px solid rgba(255, 253, 248, .24);
|
||||
background: rgba(121, 42, 35, .99);
|
||||
box-shadow: 0 22px 38px rgba(83, 32, 26, .28);
|
||||
}
|
||||
|
||||
.site-mobile-menu-inner {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.site-mobile-menu a {
|
||||
min-height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 10px 14px;
|
||||
border: 1px solid rgba(255, 248, 230, .16);
|
||||
border-radius: 10px;
|
||||
color: #fff8e6;
|
||||
background: rgba(255, 253, 248, .08);
|
||||
font: inherit;
|
||||
font-weight: 800;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.site-mobile-menu a.active {
|
||||
border-color: rgba(255, 241, 202, .76);
|
||||
color: #fff7d8;
|
||||
background: rgba(255, 253, 248, .2);
|
||||
}
|
||||
|
||||
.inner-hero .container,
|
||||
.grid-2 {
|
||||
grid-template-columns: 1fr;
|
||||
@@ -1002,6 +1132,10 @@ textarea {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.site-mobile-menu-inner {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.inner-hero .container {
|
||||
padding: 46px 0 54px;
|
||||
}
|
||||
@@ -1034,6 +1168,215 @@ textarea {
|
||||
}
|
||||
}
|
||||
|
||||
/* 统一业务媒体:只承载后端授权地址,加载失败时保留可理解的回退状态。 */
|
||||
.media-frame {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
overflow: clip;
|
||||
border: var(--rule-thin) solid var(--color-rule);
|
||||
border-radius: var(--radius-card);
|
||||
background: var(--color-panel-soft);
|
||||
}
|
||||
|
||||
.media-preview {
|
||||
width: 100%;
|
||||
display: block;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.media-frame img,
|
||||
.media-frame video {
|
||||
width: 100%;
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
background: var(--color-paper-2);
|
||||
}
|
||||
|
||||
.media-frame img {
|
||||
aspect-ratio: 4 / 3;
|
||||
}
|
||||
|
||||
.media-frame video {
|
||||
max-height: min(72vh, 720px);
|
||||
aspect-ratio: 16 / 9;
|
||||
}
|
||||
|
||||
.media-frame figcaption {
|
||||
padding: var(--space-xs) var(--space-sm);
|
||||
color: var(--color-ink-2);
|
||||
font-size: var(--text-sm);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.media-fallback {
|
||||
min-height: 132px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: var(--space-md);
|
||||
color: var(--color-ink-2);
|
||||
background: var(--color-paper-2);
|
||||
text-align: center;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.media-fallback[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.media-gallery {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 280px));
|
||||
gap: var(--space-sm);
|
||||
margin-top: var(--space-md);
|
||||
justify-content: start;
|
||||
}
|
||||
|
||||
.media-gallery .media-frame img {
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.media-download {
|
||||
min-height: var(--control-height);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: var(--space-xs) var(--space-sm);
|
||||
border: var(--rule-thin) solid var(--color-rule);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--color-accent-strong);
|
||||
background: var(--color-panel);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: 700;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.media-avatar {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
position: relative;
|
||||
flex: 0 0 auto;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
overflow: clip;
|
||||
border-radius: 50%;
|
||||
color: var(--color-accent-strong);
|
||||
background: var(--color-accent-soft);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.media-avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.media-avatar-fallback {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.media-avatar img:not([hidden]) + .media-avatar-fallback {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.media-avatar.is-media-error .media-avatar-fallback {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.media-dialog {
|
||||
width: min(1040px, calc(100% - 32px));
|
||||
max-height: calc(100vh - 32px);
|
||||
padding: var(--space-lg);
|
||||
border: var(--rule-thin) solid var(--color-rule);
|
||||
border-radius: var(--radius-dialog);
|
||||
color: var(--color-ink);
|
||||
background: var(--color-panel);
|
||||
box-shadow: var(--shadow-dialog);
|
||||
}
|
||||
|
||||
.media-dialog::backdrop {
|
||||
background: var(--color-overlay);
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
|
||||
.media-dialog img {
|
||||
width: 100%;
|
||||
max-height: calc(100vh - 120px);
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.media-dialog-close {
|
||||
min-height: 40px;
|
||||
display: block;
|
||||
margin: 0 0 var(--space-sm) auto;
|
||||
padding: 0 var(--space-sm);
|
||||
border: var(--rule-thin) solid var(--color-rule);
|
||||
border-radius: var(--radius-pill);
|
||||
color: var(--color-ink);
|
||||
background: var(--color-panel);
|
||||
font: inherit;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
|
||||
outline: 3px solid var(--color-focus);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
:where(button, .btn, input, select, textarea):disabled,
|
||||
:where(button, .btn)[aria-disabled="true"] {
|
||||
cursor: not-allowed;
|
||||
opacity: .52;
|
||||
box-shadow: none;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
:where(button, .btn)[aria-busy="true"] {
|
||||
cursor: progress;
|
||||
opacity: .72;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.api-state,
|
||||
.api-empty {
|
||||
padding: var(--space-md);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--color-panel-soft);
|
||||
}
|
||||
|
||||
.api-state--error,
|
||||
.api-state--forbidden,
|
||||
[data-state="error"] {
|
||||
border-color: color-mix(in oklch, var(--color-error) 32%, var(--color-rule));
|
||||
color: var(--color-error);
|
||||
background: var(--color-error-soft);
|
||||
}
|
||||
|
||||
.api-state--success,
|
||||
[data-state="success"] {
|
||||
border-color: color-mix(in oklch, var(--color-success) 30%, var(--color-rule));
|
||||
color: var(--color-success);
|
||||
background: var(--color-success-soft);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.media-gallery {
|
||||
grid-template-columns: minmax(0, 280px);
|
||||
}
|
||||
|
||||
.media-dialog {
|
||||
padding: var(--space-sm);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
|
||||
*,
|
||||
|
||||
Reference in New Issue
Block a user