4132b80ee0
- 新增对话列表、聊天、角色详情、书架详情及个人资料独立路由 - 导航使用真实链接,补齐历史返回、登录深链与会话草稿恢复 - 搜索筛选由 URL 驱动,修复浏览器返回时丢失筛选的问题 - 补齐路由校验回归、页面加载与异常入口,并同步 README
2489 lines
47 KiB
CSS
2489 lines
47 KiB
CSS
/* 星港双方案视觉:沿用现有项目的深色金色与深色粉色基调,独立组织响应式页面。 */
|
|
.dh-app {
|
|
--dh-bg: #141218;
|
|
--dh-panel: #201c23;
|
|
--dh-soft: #2a242e;
|
|
--dh-line: #ffffff12;
|
|
--dh-text: #f4eef4;
|
|
--dh-muted: #ada4b0;
|
|
--dh-accent: #e0b888;
|
|
--dh-accent-ink: #2c2014;
|
|
--dh-card-radius: 3px;
|
|
color: var(--dh-text);
|
|
background: var(--dh-bg);
|
|
min-height: 100dvh;
|
|
font-family: Inter, "PingFang SC", sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
color-scheme: dark;
|
|
}
|
|
.dh-app.dh-modern {
|
|
--dh-bg: #101010;
|
|
--dh-panel: #1b1a1c;
|
|
--dh-soft: #252326;
|
|
--dh-accent: #fcaee4;
|
|
--dh-accent-ink: #38162e;
|
|
--dh-card-radius: 12px;
|
|
}
|
|
.dh-app * {
|
|
box-sizing: border-box;
|
|
}
|
|
.dh-app button,
|
|
.dh-app input,
|
|
.dh-app textarea,
|
|
.dh-app select {
|
|
font: inherit;
|
|
}
|
|
.dh-app button,
|
|
.dh-app a {
|
|
touch-action: manipulation;
|
|
}
|
|
.dh-app button {
|
|
cursor: pointer;
|
|
border: 0;
|
|
color: inherit;
|
|
background: none;
|
|
}
|
|
.dh-app button:disabled {
|
|
opacity: 0.42;
|
|
cursor: not-allowed;
|
|
}
|
|
.dh-app a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
.dh-app button:focus-visible,
|
|
.dh-app a:focus-visible,
|
|
.dh-app input:focus-visible,
|
|
.dh-app textarea:focus-visible,
|
|
.dh-app select:focus-visible {
|
|
outline: 2px solid var(--dh-accent);
|
|
outline-offset: 4px;
|
|
}
|
|
.dh-app h1,
|
|
.dh-app h2,
|
|
.dh-app h3,
|
|
.dh-app p {
|
|
margin: 0;
|
|
}
|
|
.dh-app input,
|
|
.dh-app textarea,
|
|
.dh-app select {
|
|
color: var(--dh-text);
|
|
background: var(--dh-panel);
|
|
border: 1px solid var(--dh-line);
|
|
border-radius: 10px;
|
|
padding: 12px 14px;
|
|
min-width: 0;
|
|
}
|
|
.dh-app input::placeholder,
|
|
.dh-app textarea::placeholder {
|
|
color: #837985;
|
|
}
|
|
.dh-sidebar {
|
|
width: 244px;
|
|
position: fixed;
|
|
inset: 0 auto 0 0;
|
|
border-right: 1px solid var(--dh-line);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 34px 20px 22px;
|
|
background: var(--dh-bg);
|
|
z-index: 10;
|
|
}
|
|
.dh-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
letter-spacing: 2px;
|
|
}
|
|
.dh-brand-mark {
|
|
font-size: 34px;
|
|
color: var(--dh-accent);
|
|
}
|
|
.dh-brand-en {
|
|
font-size: 9px;
|
|
font-weight: 500;
|
|
letter-spacing: 2.5px;
|
|
color: var(--dh-muted);
|
|
align-self: flex-end;
|
|
margin-bottom: 9px;
|
|
}
|
|
.dh-sidebar-caption {
|
|
font-size: 11px;
|
|
color: var(--dh-muted);
|
|
padding: 8px 2px 40px;
|
|
}
|
|
.dh-sidebar nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 9px;
|
|
}
|
|
.dh-sidebar nav a {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 14px 16px;
|
|
border-radius: 12px;
|
|
color: var(--dh-muted);
|
|
text-align: left;
|
|
}
|
|
.dh-sidebar nav a small {
|
|
margin-left: auto;
|
|
font-size: 11px;
|
|
}
|
|
.dh-sidebar nav a.is-active {
|
|
color: var(--dh-accent);
|
|
background: color-mix(in srgb, var(--dh-accent) 9%, transparent);
|
|
}
|
|
.dh-sidebar nav a:hover {
|
|
background: var(--dh-panel);
|
|
}
|
|
.dh-sidebar-bottom {
|
|
margin-top: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding-top: 24px;
|
|
border-top: 1px solid var(--dh-line);
|
|
}
|
|
.dh-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 1px solid color-mix(in srgb, var(--dh-accent) 30%, transparent);
|
|
background: color-mix(in srgb, var(--dh-accent) 9%, transparent);
|
|
border-radius: 50%;
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--dh-accent);
|
|
flex: none;
|
|
}
|
|
.dh-sidebar-bottom strong {
|
|
font-weight: 500;
|
|
font-size: 12px;
|
|
}
|
|
.dh-sidebar-bottom small {
|
|
display: block;
|
|
font-size: 9px;
|
|
color: var(--dh-muted);
|
|
}
|
|
.dh-sidebar-bottom a {
|
|
margin-left: auto;
|
|
color: var(--dh-muted);
|
|
padding: 8px;
|
|
}
|
|
.dh-main {
|
|
margin-left: 244px;
|
|
position: relative;
|
|
min-height: 100dvh;
|
|
}
|
|
.dh-page {
|
|
max-width: 1440px;
|
|
padding: 40px 48px 20px;
|
|
margin: auto;
|
|
}
|
|
.dh-page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 30px;
|
|
}
|
|
.dh-eyebrow {
|
|
font-size: 9px;
|
|
letter-spacing: 2.3px;
|
|
color: var(--dh-accent);
|
|
font-weight: 600;
|
|
margin-bottom: 7px !important;
|
|
}
|
|
.dh-page-header h1 {
|
|
font-size: 27px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.8px;
|
|
}
|
|
.dh-header-orbit {
|
|
font-size: 32px;
|
|
color: var(--dh-accent);
|
|
opacity: 0.7;
|
|
}
|
|
.dh-hero {
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
min-height: 320px;
|
|
border: 1px solid color-mix(in srgb, var(--dh-accent) 16%, transparent);
|
|
border-radius: 20px;
|
|
background:
|
|
radial-gradient(ellipse at 85% 50%, #724d424f, transparent 65%),
|
|
linear-gradient(110deg, #2b2027, #1c171f);
|
|
padding: 36px 38px;
|
|
margin-bottom: 30px;
|
|
}
|
|
.dh-modern .dh-hero {
|
|
background:
|
|
radial-gradient(ellipse at 85% 50%, #6f365346, transparent 65%),
|
|
linear-gradient(110deg, #2a202a, #18151a);
|
|
}
|
|
.dh-pill {
|
|
display: inline-block;
|
|
border: 1px solid #ffffff18;
|
|
border-radius: 20px;
|
|
padding: 4px 10px;
|
|
font-size: 10px;
|
|
color: var(--dh-accent);
|
|
margin-bottom: 17px;
|
|
}
|
|
.dh-hero h2 {
|
|
font-size: 32px;
|
|
line-height: 1.4;
|
|
letter-spacing: -1px;
|
|
font-weight: 500;
|
|
}
|
|
.dh-hero p {
|
|
font-size: 12px;
|
|
line-height: 1.9;
|
|
color: #c1b2bd;
|
|
margin: 14px 0 23px;
|
|
}
|
|
.dh-primary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 9px;
|
|
background: var(--dh-accent) !important;
|
|
color: var(--dh-accent-ink) !important;
|
|
border-radius: 10px;
|
|
padding: 11px 20px;
|
|
font-weight: 600 !important;
|
|
min-height: 43px;
|
|
}
|
|
.dh-primary:hover {
|
|
filter: brightness(1.06);
|
|
}
|
|
.dh-hero-art {
|
|
position: relative;
|
|
flex: 0 0 42%;
|
|
min-width: 230px;
|
|
max-width: 470px;
|
|
}
|
|
.dh-hero-art img {
|
|
position: absolute;
|
|
width: 42%;
|
|
height: 87%;
|
|
object-fit: cover;
|
|
border-radius: 11px;
|
|
box-shadow: 0 15px 30px #0008;
|
|
border: 1px solid #ffffff22;
|
|
top: 8%;
|
|
}
|
|
.dh-hero-art img:nth-child(1) {
|
|
left: 0;
|
|
transform: rotate(-14deg);
|
|
}
|
|
.dh-hero-art img:nth-child(2) {
|
|
left: 31%;
|
|
z-index: 2;
|
|
top: 0;
|
|
}
|
|
.dh-hero-art img:nth-child(3) {
|
|
left: 60%;
|
|
transform: rotate(13deg);
|
|
}
|
|
.dh-orbit {
|
|
position: absolute;
|
|
z-index: 3;
|
|
right: 0;
|
|
bottom: 0;
|
|
font-size: 70px;
|
|
color: var(--dh-accent);
|
|
text-shadow: 0 2px 20px #000;
|
|
}
|
|
.dh-discovery-tools {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
margin-bottom: 17px;
|
|
}
|
|
.dh-search {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
border: 1px solid var(--dh-line);
|
|
background: var(--dh-panel);
|
|
border-radius: 11px;
|
|
flex: 1;
|
|
max-width: 540px;
|
|
padding: 0 14px;
|
|
color: var(--dh-muted);
|
|
}
|
|
.dh-search input {
|
|
border: none;
|
|
background: none;
|
|
flex: 1;
|
|
padding: 12px 0;
|
|
outline: none !important;
|
|
}
|
|
.dh-search button {
|
|
padding: 4px;
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
.dh-favorite-filter {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
border: 1px solid var(--dh-line) !important;
|
|
padding: 11px 15px;
|
|
border-radius: 10px;
|
|
color: var(--dh-muted) !important;
|
|
white-space: nowrap;
|
|
}
|
|
.dh-favorite-filter.is-active {
|
|
color: var(--dh-accent) !important;
|
|
}
|
|
.dh-tags {
|
|
display: flex;
|
|
gap: 8px;
|
|
overflow: auto;
|
|
scrollbar-width: none;
|
|
padding-bottom: 8px;
|
|
}
|
|
.dh-tags button {
|
|
white-space: nowrap;
|
|
padding: 7px 15px;
|
|
border-radius: 8px;
|
|
color: var(--dh-muted);
|
|
font-size: 12px;
|
|
}
|
|
.dh-tags button.is-active {
|
|
color: var(--dh-accent);
|
|
background: color-mix(in srgb, var(--dh-accent) 10%, transparent);
|
|
}
|
|
.dh-section-heading {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin: 23px 0 18px;
|
|
gap: 12px;
|
|
}
|
|
.dh-section-heading h2 {
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
}
|
|
.dh-section-heading > span {
|
|
font-size: 11px;
|
|
color: var(--dh-muted);
|
|
}
|
|
.dh-section-heading > button {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
color: var(--dh-accent);
|
|
font-size: 12px;
|
|
}
|
|
.dh-card-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 18px;
|
|
}
|
|
.dh-card {
|
|
position: relative;
|
|
overflow: hidden;
|
|
isolation: isolate;
|
|
border-radius: var(--dh-card-radius);
|
|
aspect-ratio: 0.605;
|
|
background: var(--dh-panel);
|
|
}
|
|
.dh-modern .dh-card {
|
|
aspect-ratio: 170/262;
|
|
}
|
|
.dh-card-open {
|
|
position: relative;
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
text-align: left;
|
|
padding: 0 !important;
|
|
}
|
|
.dh-card-open > img {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.4s;
|
|
}
|
|
.dh-card:hover .dh-card-open > img {
|
|
transform: scale(1.035);
|
|
}
|
|
.dh-card-shade {
|
|
position: absolute;
|
|
inset: 20% 0 0;
|
|
background: linear-gradient(
|
|
transparent,
|
|
#17131955 30%,
|
|
#171319e8 70%,
|
|
#171319
|
|
);
|
|
}
|
|
.dh-modern .dh-card-shade {
|
|
background: linear-gradient(
|
|
transparent,
|
|
#13131355 30%,
|
|
#131313eb 75%,
|
|
#131313
|
|
);
|
|
}
|
|
.dh-card-content {
|
|
position: absolute;
|
|
bottom: 0;
|
|
padding: 17px 14px 15px;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
.dh-card-kicker {
|
|
font-size: 9px;
|
|
color: #ead9e3c9;
|
|
}
|
|
.dh-card h3 {
|
|
font-size: 17px;
|
|
line-height: 1.4;
|
|
font-weight: 600;
|
|
margin: 4px 0 6px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.dh-card-content p {
|
|
font-size: 11px;
|
|
line-height: 1.65;
|
|
color: #d1c4d0;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
.dh-card-tags {
|
|
display: flex;
|
|
gap: 5px;
|
|
flex-wrap: wrap;
|
|
margin-top: 10px;
|
|
}
|
|
.dh-card-tags span {
|
|
font-size: 9px;
|
|
padding: 2px 7px;
|
|
background: #ffffff10;
|
|
border: 1px solid #ffffff0a;
|
|
border-radius: 5px;
|
|
color: #dfd0dc;
|
|
}
|
|
.dh-card-favorite {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
border: 1px solid #ffffff25 !important;
|
|
background: #0005 !important;
|
|
backdrop-filter: blur(10px);
|
|
border-radius: 50%;
|
|
width: 33px;
|
|
height: 33px;
|
|
display: grid;
|
|
place-items: center;
|
|
color: white;
|
|
}
|
|
.dh-card-favorite.is-active {
|
|
color: var(--dh-accent);
|
|
}
|
|
.dh-footer {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
align-items: center;
|
|
font-size: 10px;
|
|
color: #807481;
|
|
padding: 45px 0 20px;
|
|
letter-spacing: 1px;
|
|
}
|
|
.dh-footer span {
|
|
color: var(--dh-accent);
|
|
}
|
|
.dh-empty {
|
|
padding: 70px 20px;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
color: var(--dh-muted);
|
|
gap: 12px;
|
|
}
|
|
.dh-empty > svg {
|
|
color: var(--dh-accent);
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
.dh-empty h3 {
|
|
color: var(--dh-text);
|
|
font-weight: 500;
|
|
}
|
|
.dh-empty p {
|
|
font-size: 13px;
|
|
}
|
|
.dh-empty button {
|
|
margin-top: 15px;
|
|
color: var(--dh-accent);
|
|
}
|
|
.dh-loading {
|
|
min-height: 80dvh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 14px;
|
|
color: var(--dh-muted);
|
|
}
|
|
.dh-spin {
|
|
animation: dh-spin 1s linear infinite;
|
|
}
|
|
@keyframes dh-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
.dh-error {
|
|
position: fixed;
|
|
z-index: 100;
|
|
top: 18px;
|
|
left: calc(244px + 5%);
|
|
right: 5%;
|
|
margin: auto;
|
|
max-width: 700px;
|
|
padding: 12px 16px;
|
|
color: #ffd8d8;
|
|
background: #48282c;
|
|
border: 1px solid #a55463;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
}
|
|
.dh-toast {
|
|
position: fixed;
|
|
bottom: 110px;
|
|
left: calc(244px + 50%);
|
|
transform: translateX(-50%);
|
|
padding: 12px 20px;
|
|
border: 1px solid #ffffff22;
|
|
background: #302b34ed;
|
|
backdrop-filter: blur(16px);
|
|
box-shadow: 0 10px 35px #0006;
|
|
z-index: 110;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
max-width: 85vw;
|
|
width: max-content;
|
|
}
|
|
.dh-conversation-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
.dh-conversation-list .dh-conversation-open {
|
|
border: 1px solid var(--dh-line);
|
|
background: var(--dh-panel);
|
|
border-radius: 14px;
|
|
padding: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
text-align: left;
|
|
}
|
|
.dh-conversation-list .dh-conversation-open:hover {
|
|
border-color: #ffffff25;
|
|
}
|
|
.dh-conversation-list img {
|
|
width: 64px;
|
|
height: 76px;
|
|
object-fit: cover;
|
|
border-radius: 9px;
|
|
}
|
|
.dh-conversation-list h3 {
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
}
|
|
.dh-conversation-list p {
|
|
font-size: 12px;
|
|
color: var(--dh-muted);
|
|
max-width: 550px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-top: 5px;
|
|
}
|
|
.dh-conversation-list .dh-conversation-open > div {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
.dh-conversation-list small {
|
|
font-size: 10px;
|
|
color: var(--dh-muted);
|
|
white-space: nowrap;
|
|
}
|
|
.dh-conversation-list svg {
|
|
color: var(--dh-accent);
|
|
flex: none;
|
|
}
|
|
/* 横滑只移动会话卡片,删除在明确确认后才执行。 */
|
|
.dh-conversation-row {
|
|
position: relative;
|
|
overflow: visible;
|
|
border-radius: 14px;
|
|
background: transparent;
|
|
}
|
|
.dh-conversation-list .dh-conversation-open {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 100%;
|
|
touch-action: pan-y;
|
|
transition: transform 180ms ease;
|
|
user-select: none;
|
|
}
|
|
.dh-conversation-list .dh-conversation-open.is-dragging {
|
|
transition: none;
|
|
}
|
|
.dh-app .dh-row-delete-swipe {
|
|
position: absolute;
|
|
inset: 0 0 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 76px;
|
|
color: #fff;
|
|
background: #a3374c;
|
|
border-radius: 14px;
|
|
box-shadow: 0 4px 16px #0003;
|
|
visibility: hidden;
|
|
}
|
|
.dh-conversation-row.is-revealed .dh-row-delete-swipe {
|
|
visibility: visible;
|
|
}
|
|
.dh-conversation-list .dh-row-delete-swipe svg {
|
|
color: #fff;
|
|
}
|
|
.dh-row-delete-swipe span {
|
|
font-size: 12px;
|
|
}
|
|
.dh-row-delete-desktop {
|
|
position: absolute;
|
|
z-index: 2;
|
|
top: 50%;
|
|
right: 12px;
|
|
display: grid;
|
|
place-items: center;
|
|
width: 34px;
|
|
height: 34px;
|
|
transform: translateY(-50%);
|
|
border-radius: 9px;
|
|
}
|
|
.dh-conversation-list .dh-row-delete-desktop svg {
|
|
color: var(--dh-muted);
|
|
}
|
|
.dh-app .dh-row-delete-desktop:hover {
|
|
background: #f8717120;
|
|
}
|
|
.dh-conversation-row.is-revealed .dh-row-delete-desktop {
|
|
display: none;
|
|
}
|
|
.dh-swipe-hint {
|
|
display: none;
|
|
}
|
|
.dh-delete-dialog {
|
|
width: min(420px, calc(100% - 32px));
|
|
max-height: calc(100dvh - 48px);
|
|
margin: auto;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
box-shadow: 0 24px 80px #0008;
|
|
padding: 26px;
|
|
color: var(--dh-text);
|
|
background: var(--dh-panel);
|
|
border: 1px solid #ffffff1c;
|
|
border-radius: 20px;
|
|
}
|
|
.dh-delete-dialog::backdrop {
|
|
background: #000b;
|
|
backdrop-filter: blur(6px);
|
|
}
|
|
.dh-delete-symbol {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 46px;
|
|
height: 46px;
|
|
margin-bottom: 18px;
|
|
color: #fda4af;
|
|
background: #fb718519;
|
|
border-radius: 14px;
|
|
}
|
|
.dh-delete-dialog h2 {
|
|
font-size: 21px;
|
|
font-weight: 600;
|
|
}
|
|
.dh-delete-dialog p {
|
|
margin-top: 12px;
|
|
color: var(--dh-muted);
|
|
font-size: 13px;
|
|
line-height: 1.8;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.dh-delete-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-top: 24px;
|
|
}
|
|
.dh-app .dh-delete-actions button {
|
|
display: flex;
|
|
flex: 1;
|
|
gap: 7px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 44px;
|
|
font-size: 13px;
|
|
background: var(--dh-soft);
|
|
border: 1px solid var(--dh-line);
|
|
border-radius: 11px;
|
|
}
|
|
.dh-app .dh-delete-actions .is-danger {
|
|
color: #fff;
|
|
background: #a3374c;
|
|
border-color: #a3374c;
|
|
}
|
|
.dh-delete-dialog .dh-delete-error {
|
|
color: #fda4af;
|
|
}
|
|
.dh-compose-tools {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin: 0 4px 8px;
|
|
}
|
|
.dh-compose-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
.dh-app .dh-compose-tools button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-height: 32px;
|
|
padding: 0 4px;
|
|
color: var(--dh-accent);
|
|
font-size: 11px;
|
|
}
|
|
.dh-app .dh-compose-tools .dh-mobile-linebreak {
|
|
display: none;
|
|
}
|
|
.dh-reply-ideas {
|
|
margin: 0 0 12px;
|
|
padding: 13px;
|
|
background: var(--dh-panel);
|
|
border: 1px solid var(--dh-line);
|
|
border-radius: 15px;
|
|
}
|
|
.dh-reply-ideas header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
.dh-reply-ideas strong {
|
|
display: flex;
|
|
gap: 7px;
|
|
align-items: center;
|
|
color: var(--dh-accent);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
.dh-reply-ideas header .dh-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
}
|
|
.dh-ideas-note {
|
|
margin: 2px 0 10px !important;
|
|
color: var(--dh-muted);
|
|
font-size: 10px;
|
|
}
|
|
.dh-ideas-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 7px;
|
|
max-height: 30dvh;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
}
|
|
.dh-app .dh-ideas-list button {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
padding: 10px;
|
|
text-align: left;
|
|
font-size: 12px;
|
|
line-height: 1.7;
|
|
background: var(--dh-soft);
|
|
border: 1px solid transparent;
|
|
border-radius: 9px;
|
|
}
|
|
.dh-app .dh-ideas-list button:hover {
|
|
border-color: var(--dh-accent);
|
|
}
|
|
.dh-ideas-list small {
|
|
flex: none;
|
|
color: var(--dh-accent);
|
|
font-size: 10px;
|
|
}
|
|
.dh-ideas-loading {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
min-height: 58px;
|
|
color: var(--dh-muted);
|
|
font-size: 12px;
|
|
}
|
|
.dh-ideas-error {
|
|
padding: 12px 0;
|
|
color: #fda4af;
|
|
font-size: 12px;
|
|
}
|
|
.dh-app .dh-ideas-refresh {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
min-height: 32px;
|
|
margin-top: 7px;
|
|
color: var(--dh-accent);
|
|
font-size: 11px;
|
|
}
|
|
.dh-spin {
|
|
animation: dh-spin 1s linear infinite;
|
|
}
|
|
@keyframes dh-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
@media (width>600px) {
|
|
.dh-conversation-list .dh-conversation-open {
|
|
padding-right: 56px !important;
|
|
}
|
|
}
|
|
@media (width<=600px) {
|
|
.dh-row-delete-desktop {
|
|
display: none;
|
|
}
|
|
.dh-swipe-hint {
|
|
display: block;
|
|
margin: -10px 0 14px !important;
|
|
color: var(--dh-muted);
|
|
font-size: 10px;
|
|
}
|
|
.dh-delete-dialog {
|
|
width: min(380px, calc(100% - 40px));
|
|
margin: auto;
|
|
padding: 24px;
|
|
border-radius: 22px;
|
|
}
|
|
.dh-app .dh-compose-tools .dh-mobile-linebreak {
|
|
display: flex;
|
|
}
|
|
.dh-reply-ideas {
|
|
padding: 10px;
|
|
}
|
|
.dh-ideas-list {
|
|
max-height: 28dvh;
|
|
}
|
|
}
|
|
|
|
.dh-page-lead {
|
|
max-width: 650px;
|
|
color: var(--dh-muted);
|
|
line-height: 1.9;
|
|
margin-bottom: 30px !important;
|
|
}
|
|
.dh-library-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 16px;
|
|
margin-bottom: 30px;
|
|
}
|
|
.dh-library-card {
|
|
border: 1px solid var(--dh-line) !important;
|
|
background: linear-gradient(130deg, var(--dh-panel), var(--dh-bg)) !important;
|
|
padding: 24px !important;
|
|
border-radius: 14px;
|
|
text-align: left;
|
|
}
|
|
.dh-library-card > svg {
|
|
color: var(--dh-accent);
|
|
}
|
|
.dh-library-card > small {
|
|
float: right;
|
|
color: var(--dh-muted);
|
|
font-size: 10px;
|
|
}
|
|
.dh-library-card h3 {
|
|
font-size: 17px;
|
|
margin: 20px 0 10px;
|
|
}
|
|
.dh-library-card p {
|
|
font-size: 12px;
|
|
line-height: 1.9;
|
|
color: var(--dh-muted);
|
|
min-height: 65px;
|
|
}
|
|
.dh-library-card > span {
|
|
display: block;
|
|
margin-top: 20px;
|
|
color: var(--dh-accent);
|
|
font-size: 11px;
|
|
}
|
|
.dh-profile-form {
|
|
max-width: 650px;
|
|
}
|
|
.dh-profile-banner {
|
|
display: flex;
|
|
gap: 18px;
|
|
align-items: center;
|
|
padding: 20px 0 30px;
|
|
}
|
|
.dh-profile-banner .dh-avatar {
|
|
width: 66px;
|
|
height: 66px;
|
|
font-size: 24px;
|
|
}
|
|
.dh-profile-banner h2 {
|
|
font-size: 23px;
|
|
}
|
|
.dh-profile-banner p {
|
|
color: var(--dh-muted);
|
|
font-size: 12px;
|
|
margin-top: 6px;
|
|
}
|
|
.dh-profile-form > label,
|
|
.dh-settings-body > label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 9px;
|
|
margin-bottom: 20px;
|
|
color: #d4cbd5;
|
|
font-size: 12px;
|
|
}
|
|
.dh-settings > label small {
|
|
color: var(--dh-muted);
|
|
font-size: 11px;
|
|
line-height: 1.7;
|
|
}
|
|
.dh-profile-form textarea,
|
|
.dh-settings textarea {
|
|
resize: vertical;
|
|
line-height: 1.8;
|
|
}
|
|
.dh-form-note {
|
|
color: var(--dh-muted);
|
|
font-size: 11px;
|
|
line-height: 1.9;
|
|
margin: 8px 0 20px !important;
|
|
}
|
|
.dh-profile-form > .dh-content-preference {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
padding: 16px 0;
|
|
border-top: 1px solid var(--dh-line);
|
|
border-bottom: 1px solid var(--dh-line);
|
|
}
|
|
.dh-content-preference span {
|
|
min-width: 0;
|
|
}
|
|
.dh-content-preference small {
|
|
display: block;
|
|
margin-top: 6px;
|
|
color: var(--dh-muted);
|
|
line-height: 1.7;
|
|
}
|
|
.dh-content-preference input[type="checkbox"] {
|
|
appearance: none;
|
|
flex: none;
|
|
width: 44px;
|
|
height: 26px;
|
|
padding: 3px;
|
|
border: 1px solid var(--dh-line);
|
|
border-radius: 20px;
|
|
background: var(--dh-panel);
|
|
cursor: pointer;
|
|
}
|
|
.dh-content-preference input::before {
|
|
display: block;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
content: "";
|
|
}
|
|
.dh-content-preference input:checked {
|
|
background: var(--dh-accent);
|
|
}
|
|
.dh-content-preference input:checked::before {
|
|
transform: translateX(18px);
|
|
}
|
|
.dh-content-preference input:focus-visible {
|
|
outline: 2px solid var(--dh-accent);
|
|
outline-offset: 3px;
|
|
}
|
|
.dh-profile-stats {
|
|
display: flex;
|
|
border-top: 1px solid var(--dh-line);
|
|
border-bottom: 1px solid var(--dh-line);
|
|
padding: 22px 0;
|
|
margin: 40px 0;
|
|
gap: 60px;
|
|
}
|
|
.dh-profile-stats strong {
|
|
display: block;
|
|
font-size: 24px;
|
|
font-weight: 400;
|
|
color: var(--dh-accent);
|
|
}
|
|
.dh-profile-stats span {
|
|
font-size: 11px;
|
|
color: var(--dh-muted);
|
|
}
|
|
.dh-logout {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--dh-muted) !important;
|
|
font-size: 12px;
|
|
}
|
|
.dh-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: #000b;
|
|
backdrop-filter: blur(8px);
|
|
z-index: 90;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 28px;
|
|
overflow: auto;
|
|
}
|
|
.dh-detail {
|
|
position: relative;
|
|
display: flex;
|
|
width: min(840px, 100%);
|
|
max-height: 85dvh;
|
|
background: var(--dh-panel);
|
|
border: 1px solid #ffffff1a;
|
|
border-radius: 20px;
|
|
overflow: hidden;
|
|
box-shadow: 0 30px 100px #0009;
|
|
}
|
|
.dh-close {
|
|
position: absolute;
|
|
right: 15px;
|
|
top: 15px;
|
|
z-index: 3;
|
|
display: grid;
|
|
place-items: center;
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: 50%;
|
|
background: #0007 !important;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
.dh-detail-cover {
|
|
width: 42%;
|
|
flex: none;
|
|
min-height: 500px;
|
|
}
|
|
.dh-detail-cover img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
.dh-detail-body {
|
|
padding: 40px 32px;
|
|
overflow: auto;
|
|
flex: 1;
|
|
}
|
|
.dh-detail-body h2 {
|
|
font-size: 30px;
|
|
line-height: 1.3;
|
|
margin-bottom: 14px;
|
|
}
|
|
.dh-detail-description {
|
|
color: #c5bbc8;
|
|
font-size: 13px;
|
|
line-height: 1.9;
|
|
margin: 22px 0 !important;
|
|
white-space: pre-wrap;
|
|
}
|
|
.dh-detail blockquote {
|
|
margin: 20px 0;
|
|
padding: 16px 20px;
|
|
border-left: 2px solid var(--dh-accent);
|
|
background: #ffffff05;
|
|
border-radius: 0 8px 8px 0;
|
|
color: #dbceda;
|
|
font-size: 12px;
|
|
line-height: 1.9;
|
|
white-space: pre-wrap;
|
|
}
|
|
.dh-detail .dh-primary {
|
|
width: 100%;
|
|
margin: 10px 0;
|
|
}
|
|
.dh-source {
|
|
display: block;
|
|
color: #8f8494;
|
|
font-size: 9px;
|
|
line-height: 1.7;
|
|
margin-top: 22px;
|
|
word-break: break-word;
|
|
}
|
|
.dh-alt-greeting {
|
|
display: block;
|
|
text-align: left;
|
|
padding: 12px !important;
|
|
width: 100%;
|
|
border: 1px solid var(--dh-line) !important;
|
|
border-radius: 9px;
|
|
margin-top: 10px;
|
|
}
|
|
.dh-alt-greeting small {
|
|
color: var(--dh-accent);
|
|
}
|
|
.dh-alt-greeting p {
|
|
font-size: 11px;
|
|
color: var(--dh-muted);
|
|
margin-top: 7px;
|
|
}
|
|
.dh-icon {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 38px;
|
|
height: 38px;
|
|
flex: none;
|
|
border-radius: 9px;
|
|
}
|
|
.dh-icon:hover {
|
|
background: #ffffff0b;
|
|
}
|
|
.dh-settings {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: min(520px, 100%);
|
|
max-height: 90dvh;
|
|
overflow: hidden;
|
|
padding: 28px;
|
|
background: var(--dh-panel);
|
|
border: 1px solid #ffffff1a;
|
|
border-radius: 18px;
|
|
}
|
|
.dh-settings > header {
|
|
display: flex;
|
|
flex: none;
|
|
justify-content: space-between;
|
|
margin-bottom: 26px;
|
|
}
|
|
.dh-settings h2 {
|
|
font-size: 24px;
|
|
font-weight: 500;
|
|
}
|
|
.dh-settings fieldset {
|
|
border: 1px solid var(--dh-line);
|
|
border-radius: 10px;
|
|
padding: 14px;
|
|
margin: 20px 0;
|
|
}
|
|
.dh-settings legend {
|
|
font-size: 12px;
|
|
color: var(--dh-muted);
|
|
padding: 0 6px;
|
|
}
|
|
/* 保留原生单选的键盘与读屏语义,整张风格卡可点击且随双主题变色。 */
|
|
.dh-settings .dh-style-picker {
|
|
min-width: 0;
|
|
padding: 0;
|
|
margin: 0 0 22px;
|
|
border: 0;
|
|
}
|
|
.dh-style-picker legend {
|
|
padding: 0;
|
|
color: #d4cbd5;
|
|
}
|
|
.dh-style-help {
|
|
margin: 5px 0 12px !important;
|
|
color: var(--dh-muted);
|
|
font-size: 11px;
|
|
}
|
|
.dh-style-options {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 0;
|
|
}
|
|
.dh-style-option {
|
|
position: relative;
|
|
min-width: 0;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.dh-style-option > input {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: 0;
|
|
opacity: 0;
|
|
clip-path: inset(50%);
|
|
}
|
|
.dh-style-card {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
min-height: 72px;
|
|
padding: 14px 10px;
|
|
border: 0;
|
|
border-bottom: 1px solid var(--dh-line);
|
|
border-radius: 0;
|
|
background: transparent;
|
|
transition:
|
|
border-color 160ms,
|
|
background 160ms;
|
|
}
|
|
.dh-style-option:hover .dh-style-card {
|
|
background: #ffffff04;
|
|
}
|
|
.dh-style-option > input:checked + .dh-style-card {
|
|
background: color-mix(in srgb, var(--dh-accent) 7%, transparent);
|
|
}
|
|
.dh-style-option > input:focus-visible + .dh-style-card {
|
|
outline: 2px solid var(--dh-accent);
|
|
outline-offset: 3px;
|
|
}
|
|
.dh-style-copy {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.dh-style-copy strong {
|
|
display: block;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
line-height: 1.6;
|
|
}
|
|
.dh-style-copy small {
|
|
display: block;
|
|
margin-top: 5px;
|
|
color: var(--dh-muted);
|
|
font-size: 11px;
|
|
line-height: 1.7;
|
|
}
|
|
.dh-style-check {
|
|
display: grid;
|
|
flex: none;
|
|
place-items: center;
|
|
width: 17px;
|
|
height: 17px;
|
|
margin-top: 2px;
|
|
color: transparent;
|
|
border: 0;
|
|
}
|
|
.dh-style-check svg {
|
|
width: 11px;
|
|
height: 11px;
|
|
stroke-width: 3;
|
|
}
|
|
.dh-style-option > input:checked + .dh-style-card .dh-style-check {
|
|
color: var(--dh-accent);
|
|
background: transparent;
|
|
}
|
|
@media (width <= 600px) {
|
|
.dh-style-options {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
.dh-style-card {
|
|
min-height: 76px;
|
|
}
|
|
}
|
|
/* H5 选择项在居中弹窗编辑草稿,确认后才回填到对话设定。 */
|
|
.dh-mobile-choices {
|
|
display: none;
|
|
}
|
|
.dh-overlay.dh-sheet-open {
|
|
overflow: hidden;
|
|
}
|
|
.dh-app .dh-selection-backdrop {
|
|
touch-action: none;
|
|
}
|
|
.dh-selection-layer {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 2;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
overscroll-behavior: contain;
|
|
}
|
|
.dh-selection-backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #0009 !important;
|
|
}
|
|
.dh-selection-sheet {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: min(520px, 100%);
|
|
max-height: 86dvh;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
background: var(--dh-panel);
|
|
border: 1px solid #ffffff1c;
|
|
border-radius: 22px;
|
|
box-shadow: 0 24px 80px #0008;
|
|
animation: dh-sheet-enter 180ms ease-out;
|
|
}
|
|
.dh-sheet-handle {
|
|
flex: none;
|
|
width: 34px;
|
|
height: 4px;
|
|
margin: 10px auto 7px;
|
|
background: #ffffff35;
|
|
border-radius: 4px;
|
|
}
|
|
.dh-selection-sheet > header {
|
|
display: flex;
|
|
flex: none;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 20px 18px;
|
|
}
|
|
.dh-selection-sheet h2 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
}
|
|
.dh-selection-sheet header p {
|
|
margin-top: 4px;
|
|
color: var(--dh-muted);
|
|
font-size: 11px;
|
|
}
|
|
.dh-selection-body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
padding: 0 20px 20px;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
}
|
|
.dh-selection-sheet .dh-style-picker,
|
|
.dh-selection-sheet .dh-book-picker {
|
|
min-width: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
border: 0;
|
|
}
|
|
.dh-selection-sheet .dh-checkbox {
|
|
min-height: 70px;
|
|
padding: 14px 10px;
|
|
margin: 0;
|
|
border: 0;
|
|
border-bottom: 1px solid var(--dh-line);
|
|
border-radius: 0;
|
|
cursor: pointer;
|
|
}
|
|
.dh-selection-sheet .dh-checkbox.is-selected {
|
|
background: color-mix(in srgb, var(--dh-accent) 7%, transparent);
|
|
}
|
|
.dh-selection-sheet .dh-checkbox:has(input:focus-visible) {
|
|
outline: 2px solid var(--dh-accent);
|
|
outline-offset: 2px;
|
|
}
|
|
.dh-selection-sheet .dh-checkbox small {
|
|
font-size: 11px;
|
|
}
|
|
.dh-selection-sheet > footer {
|
|
display: flex;
|
|
flex: none;
|
|
gap: 12px;
|
|
padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
|
|
border-top: 1px solid var(--dh-line);
|
|
}
|
|
.dh-selection-sheet footer > button {
|
|
min-height: 46px;
|
|
}
|
|
.dh-selection-sheet footer > .dh-primary {
|
|
flex: 1;
|
|
justify-content: center;
|
|
}
|
|
.dh-sheet-reset {
|
|
min-width: 84px;
|
|
color: var(--dh-muted) !important;
|
|
font-size: 12px !important;
|
|
}
|
|
.dh-visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0 !important;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
clip-path: inset(50%);
|
|
}
|
|
@keyframes dh-sheet-enter {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8px) scale(0.98);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
@media (width > 600px) {
|
|
.dh-selection-layer {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (width <= 600px) {
|
|
.dh-desktop-choices {
|
|
display: none;
|
|
}
|
|
.dh-mobile-choices {
|
|
display: grid;
|
|
gap: 10px;
|
|
margin: 0 0 22px;
|
|
}
|
|
.dh-choice-trigger {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
width: 100%;
|
|
min-height: 78px;
|
|
padding: 15px 14px !important;
|
|
text-align: left;
|
|
border: 1px solid #ffffff17 !important;
|
|
border-radius: 13px;
|
|
background: var(--dh-soft) !important;
|
|
}
|
|
.dh-choice-trigger > svg {
|
|
flex: none;
|
|
width: 18px;
|
|
height: 18px;
|
|
color: var(--dh-accent);
|
|
}
|
|
.dh-choice-trigger > svg:last-child {
|
|
width: 16px;
|
|
color: var(--dh-muted);
|
|
}
|
|
.dh-choice-trigger > span {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.dh-choice-trigger strong {
|
|
display: block;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
.dh-choice-trigger small {
|
|
display: block;
|
|
margin-top: 5px;
|
|
overflow: hidden;
|
|
color: var(--dh-muted);
|
|
font-size: 11px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.dh-checkbox {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: flex-start;
|
|
font-size: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.dh-checkbox input {
|
|
margin-top: 5px;
|
|
accent-color: var(--dh-accent);
|
|
}
|
|
.dh-checkbox small {
|
|
display: block;
|
|
color: var(--dh-muted);
|
|
font-size: 10px;
|
|
line-height: 1.7;
|
|
margin-top: 4px;
|
|
}
|
|
.dh-text-button {
|
|
color: var(--dh-accent) !important;
|
|
font-size: 11px !important;
|
|
padding: 0 !important;
|
|
margin: -6px 0 22px;
|
|
}
|
|
.dh-settings-body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
padding: 4px;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
}
|
|
.dh-settings > .dh-primary {
|
|
flex: none;
|
|
margin-top: 16px;
|
|
width: 100%;
|
|
}
|
|
/* 聊天固定在动态视口内;消息区独立滚动,输入框不会盖住底部消息。 */
|
|
.dh-chat {
|
|
height: var(--dh-viewport, 100dvh);
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: var(--dh-bg);
|
|
isolation: isolate;
|
|
}
|
|
.dh-chat-header {
|
|
height: 82px;
|
|
padding: 0 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 13px;
|
|
border-bottom: 1px solid var(--dh-line);
|
|
background: color-mix(in srgb, var(--dh-bg) 87%, transparent);
|
|
backdrop-filter: blur(20px);
|
|
z-index: 2;
|
|
flex: none;
|
|
}
|
|
.dh-chat-header > img {
|
|
width: 42px;
|
|
height: 48px;
|
|
object-fit: cover;
|
|
border-radius: 10px;
|
|
}
|
|
.dh-chat-header > div:not(.dh-chat-menu) {
|
|
flex: 1;
|
|
}
|
|
.dh-chat-header h1 {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
.dh-chat-header small {
|
|
font-size: 10px;
|
|
color: var(--dh-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
.dh-chat-header small i {
|
|
width: 5px;
|
|
height: 5px;
|
|
border-radius: 50%;
|
|
background: #9ac9a7;
|
|
}
|
|
.dh-chat-backdrop {
|
|
position: absolute;
|
|
inset: 82px 0 0;
|
|
background-position: center 26%;
|
|
background-size: cover;
|
|
opacity: 0.1;
|
|
filter: blur(4px);
|
|
z-index: -2;
|
|
}
|
|
.dh-chat:after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 82px 0 0;
|
|
z-index: -1;
|
|
background:
|
|
linear-gradient(90deg, var(--dh-bg), transparent 45%, var(--dh-bg)),
|
|
linear-gradient(0deg, var(--dh-bg), transparent 70%);
|
|
}
|
|
.dh-chat-menu {
|
|
position: absolute;
|
|
right: 25px;
|
|
top: 72px;
|
|
width: 160px;
|
|
padding: 7px;
|
|
background: var(--dh-panel);
|
|
border: 1px solid #ffffff20;
|
|
border-radius: 10px;
|
|
box-shadow: 0 10px 30px #0007;
|
|
z-index: 8;
|
|
}
|
|
.dh-chat-menu button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
padding: 10px;
|
|
border-radius: 6px;
|
|
text-align: left;
|
|
font-size: 12px;
|
|
}
|
|
.dh-chat-menu button:hover {
|
|
background: var(--dh-soft);
|
|
}
|
|
.dh-messages {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
overscroll-behavior: contain;
|
|
scrollbar-width: none;
|
|
}
|
|
.dh-messages-inner {
|
|
max-width: 840px;
|
|
padding: 16px 35px 25px;
|
|
margin: auto;
|
|
}
|
|
.dh-chat-intro {
|
|
text-align: center;
|
|
margin: 30px 0 45px;
|
|
color: var(--dh-muted);
|
|
}
|
|
.dh-chat-intro > span {
|
|
color: var(--dh-accent);
|
|
font-size: 24px;
|
|
}
|
|
.dh-chat-intro p {
|
|
font-size: 11px;
|
|
margin: 10px 0 4px;
|
|
}
|
|
.dh-chat-intro small {
|
|
font-size: 9px;
|
|
opacity: 0.7;
|
|
}
|
|
.dh-message {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin: 26px 0;
|
|
align-items: flex-start;
|
|
}
|
|
.dh-message-avatar {
|
|
width: 34px;
|
|
height: 40px;
|
|
object-fit: cover;
|
|
border-radius: 8px;
|
|
flex: none;
|
|
margin-top: 3px;
|
|
}
|
|
.dh-message-body {
|
|
max-width: 86%;
|
|
min-width: 0;
|
|
}
|
|
.dh-message-name {
|
|
font-size: 10px;
|
|
color: var(--dh-muted);
|
|
margin-bottom: 7px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.dh-bubble {
|
|
background: color-mix(in srgb, var(--dh-panel) 92%, transparent);
|
|
border: 1px solid #ffffff0b;
|
|
padding: 15px 18px;
|
|
border-radius: 0 14px 14px 14px;
|
|
box-shadow: 0 4px 16px #0001;
|
|
}
|
|
.dh-message-text {
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
line-height: 1.95;
|
|
font-size: 14px;
|
|
color: #e6dfe7;
|
|
}
|
|
.dh-message-prose {
|
|
white-space: normal;
|
|
}
|
|
.dh-message-prose > p {
|
|
margin: 0;
|
|
white-space: pre-wrap;
|
|
}
|
|
.dh-message-prose > p + p {
|
|
margin-top: 12px;
|
|
}
|
|
.dh-prose-dialogue {
|
|
color: #fff5fc;
|
|
}
|
|
.dh-prose-dialogue strong {
|
|
font-weight: 600;
|
|
}
|
|
.dh-prose-narration {
|
|
color: #c2b6c4;
|
|
}
|
|
.dh-prose-narration.dh-prose-latin {
|
|
font-style: italic;
|
|
}
|
|
.dh-message-user {
|
|
justify-content: flex-end;
|
|
}
|
|
.dh-message-user .dh-message-name {
|
|
justify-content: flex-end;
|
|
}
|
|
.dh-message-user .dh-bubble {
|
|
border-radius: 14px 0 14px 14px;
|
|
background: color-mix(in srgb, var(--dh-accent) 15%, var(--dh-panel));
|
|
border-color: color-mix(in srgb, var(--dh-accent) 15%, transparent);
|
|
}
|
|
.dh-message-actions {
|
|
display: flex;
|
|
gap: 3px;
|
|
margin-top: 6px;
|
|
opacity: 0.6;
|
|
}
|
|
.dh-message:hover .dh-message-actions {
|
|
opacity: 1;
|
|
}
|
|
.dh-message-actions button {
|
|
padding: 6px;
|
|
min-width: 28px;
|
|
min-height: 28px;
|
|
border-radius: 5px;
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--dh-muted);
|
|
}
|
|
.dh-message-actions button:hover,
|
|
.dh-message-actions button.is-active {
|
|
color: var(--dh-accent);
|
|
background: #ffffff08;
|
|
}
|
|
.dh-message-user .dh-message-actions {
|
|
justify-content: flex-end;
|
|
}
|
|
.dh-message-status {
|
|
font-size: 9px;
|
|
color: var(--dh-muted);
|
|
}
|
|
.dh-caret {
|
|
display: inline-block;
|
|
width: 3px;
|
|
height: 14px;
|
|
margin-left: 4px;
|
|
background: var(--dh-accent);
|
|
animation: dh-blink 1s infinite;
|
|
vertical-align: middle;
|
|
}
|
|
@keyframes dh-blink {
|
|
50% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
.dh-thinking {
|
|
display: flex;
|
|
gap: 5px;
|
|
min-width: 45px;
|
|
padding: 6px 0;
|
|
}
|
|
.dh-thinking i {
|
|
width: 5px;
|
|
height: 5px;
|
|
background: var(--dh-accent);
|
|
border-radius: 50%;
|
|
animation: dh-think 1.3s infinite;
|
|
}
|
|
.dh-thinking i:nth-child(2) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
.dh-thinking i:nth-child(3) {
|
|
animation-delay: 0.4s;
|
|
}
|
|
@keyframes dh-think {
|
|
50% {
|
|
opacity: 0.2;
|
|
transform: translateY(-3px);
|
|
}
|
|
}
|
|
.dh-composer-wrap {
|
|
flex: none;
|
|
width: 100%;
|
|
max-width: 840px;
|
|
margin: auto;
|
|
padding: 10px 35px max(20px, env(safe-area-inset-bottom));
|
|
background: linear-gradient(
|
|
0deg,
|
|
var(--dh-bg),
|
|
color-mix(in srgb, var(--dh-bg) 95%, transparent)
|
|
);
|
|
z-index: 1;
|
|
}
|
|
.dh-composer {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 10px;
|
|
background: var(--dh-panel);
|
|
border: 1px solid #ffffff1a;
|
|
border-radius: 15px;
|
|
padding: 10px 11px 10px 16px;
|
|
box-shadow: 0 10px 40px #0003;
|
|
}
|
|
.dh-composer:focus-within {
|
|
border-color: color-mix(in srgb, var(--dh-accent) 45%, transparent);
|
|
}
|
|
.dh-composer textarea {
|
|
width: 100%;
|
|
resize: none;
|
|
min-height: 36px;
|
|
max-height: min(160px, calc(var(--dh-viewport, 100dvh) * 0.28));
|
|
border: 0;
|
|
background: none;
|
|
padding: 7px 0;
|
|
outline: none !important;
|
|
line-height: 1.6;
|
|
font-size: 14px;
|
|
}
|
|
.dh-send {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 10px;
|
|
background: var(--dh-accent) !important;
|
|
color: var(--dh-accent-ink) !important;
|
|
display: grid;
|
|
place-items: center;
|
|
flex: none;
|
|
}
|
|
.dh-composer-hint {
|
|
font-size: 9px;
|
|
color: #827887;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin: 9px 3px 0;
|
|
}
|
|
.dh-jump {
|
|
position: absolute;
|
|
bottom: 126px;
|
|
right: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
border: 1px solid #ffffff22 !important;
|
|
border-radius: 20px;
|
|
background: var(--dh-panel) !important;
|
|
padding: 8px 12px;
|
|
z-index: 3;
|
|
font-size: 11px !important;
|
|
box-shadow: 0 5px 20px #0004;
|
|
}
|
|
@media (min-width: 1500px) {
|
|
.dh-card-grid {
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
}
|
|
.dh-page {
|
|
padding-left: 60px;
|
|
padding-right: 60px;
|
|
}
|
|
.dh-hero {
|
|
min-height: 340px;
|
|
}
|
|
}
|
|
@media (max-width: 1150px) {
|
|
.dh-sidebar {
|
|
width: 200px;
|
|
padding: 28px 15px;
|
|
}
|
|
.dh-main {
|
|
margin-left: 200px;
|
|
}
|
|
.dh-page {
|
|
padding: 30px;
|
|
}
|
|
.dh-brand-en {
|
|
display: none;
|
|
}
|
|
.dh-card-grid {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 14px;
|
|
}
|
|
.dh-hero {
|
|
padding: 28px;
|
|
min-height: 300px;
|
|
}
|
|
.dh-hero h2 {
|
|
font-size: 27px;
|
|
}
|
|
.dh-hero-art {
|
|
flex-basis: 39%;
|
|
min-width: 170px;
|
|
}
|
|
.dh-hero-art img {
|
|
height: 75%;
|
|
top: 18%;
|
|
}
|
|
.dh-hero-art img:nth-child(2) {
|
|
top: 12%;
|
|
}
|
|
.dh-library-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
.dh-error {
|
|
left: 220px;
|
|
}
|
|
.dh-toast {
|
|
left: calc(200px + 40%);
|
|
}
|
|
}
|
|
@media (max-width: 767px) {
|
|
.dh-app {
|
|
font-size: 13px;
|
|
padding-bottom: calc(70px + env(safe-area-inset-bottom));
|
|
}
|
|
.dh-sidebar {
|
|
inset: auto 0 0;
|
|
width: 100%;
|
|
height: calc(66px + env(safe-area-inset-bottom));
|
|
padding: 5px 10px env(safe-area-inset-bottom);
|
|
border: 0;
|
|
border-top: 1px solid #ffffff0c;
|
|
background: color-mix(in srgb, var(--dh-bg) 94%, transparent);
|
|
backdrop-filter: blur(24px);
|
|
}
|
|
.dh-brand,
|
|
.dh-sidebar-caption,
|
|
.dh-sidebar-bottom {
|
|
display: none;
|
|
}
|
|
.dh-sidebar nav {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 2px;
|
|
height: 100%;
|
|
}
|
|
.dh-sidebar nav a {
|
|
padding: 7px 3px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
border-radius: 10px;
|
|
font-size: 9px;
|
|
justify-content: center;
|
|
position: relative;
|
|
}
|
|
.dh-sidebar nav a small {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 18px;
|
|
font-size: 8px;
|
|
background: var(--dh-soft);
|
|
padding: 0 5px;
|
|
border-radius: 9px;
|
|
}
|
|
.dh-sidebar nav a.is-active {
|
|
background: none;
|
|
}
|
|
.dh-sidebar nav a.is-active svg {
|
|
filter: drop-shadow(
|
|
0 0 8px color-mix(in srgb, var(--dh-accent) 45%, transparent)
|
|
);
|
|
}
|
|
.dh-main {
|
|
margin-left: 0;
|
|
min-height: calc(100dvh - 70px);
|
|
}
|
|
.dh-page {
|
|
padding: 26px 18px 0;
|
|
}
|
|
.dh-page-header {
|
|
margin-bottom: 22px;
|
|
}
|
|
.dh-page-header h1 {
|
|
font-size: 23px;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
.dh-eyebrow {
|
|
font-size: 8px;
|
|
letter-spacing: 1.9px;
|
|
}
|
|
.dh-header-orbit {
|
|
font-size: 25px;
|
|
}
|
|
.dh-hero {
|
|
min-height: 260px;
|
|
padding: 23px 20px;
|
|
border-radius: 15px;
|
|
margin-bottom: 23px;
|
|
}
|
|
.dh-hero > div:first-child {
|
|
position: relative;
|
|
z-index: 2;
|
|
max-width: 74%;
|
|
}
|
|
.dh-hero h2 {
|
|
font-size: 25px;
|
|
line-height: 1.45;
|
|
}
|
|
.dh-hero p {
|
|
font-size: 10px;
|
|
margin: 10px 0 17px;
|
|
}
|
|
.dh-pill {
|
|
font-size: 8px;
|
|
padding: 3px 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.dh-primary {
|
|
font-size: 12px !important;
|
|
padding: 10px 15px;
|
|
min-height: 40px;
|
|
}
|
|
.dh-hero-art {
|
|
position: absolute;
|
|
right: -18px;
|
|
top: 12px;
|
|
width: 47%;
|
|
height: 90%;
|
|
min-width: 150px;
|
|
opacity: 0.68;
|
|
mask-image: linear-gradient(to right, transparent, #000 25%);
|
|
}
|
|
.dh-hero-art img {
|
|
height: 78%;
|
|
width: 66%;
|
|
top: 14%;
|
|
}
|
|
.dh-hero-art img:nth-child(1) {
|
|
left: 0;
|
|
transform: rotate(-10deg);
|
|
opacity: 0.5;
|
|
}
|
|
.dh-hero-art img:nth-child(2) {
|
|
left: 25%;
|
|
top: 12%;
|
|
}
|
|
.dh-hero-art img:nth-child(3) {
|
|
display: none;
|
|
}
|
|
.dh-orbit {
|
|
font-size: 45px;
|
|
right: 35px;
|
|
}
|
|
.dh-discovery-tools {
|
|
gap: 9px;
|
|
margin-bottom: 13px;
|
|
}
|
|
.dh-search {
|
|
padding: 0 10px;
|
|
border-radius: 9px;
|
|
}
|
|
.dh-search input {
|
|
font-size: 12px;
|
|
padding: 11px 0;
|
|
}
|
|
.dh-favorite-filter {
|
|
font-size: 0 !important;
|
|
padding: 11px !important;
|
|
gap: 0;
|
|
border-radius: 9px;
|
|
}
|
|
.dh-tags {
|
|
gap: 5px;
|
|
}
|
|
.dh-tags button {
|
|
font-size: 11px;
|
|
padding: 6px 12px;
|
|
}
|
|
.dh-section-heading {
|
|
margin: 18px 0 15px;
|
|
}
|
|
.dh-section-heading h2 {
|
|
font-size: 16px;
|
|
}
|
|
.dh-section-heading > span {
|
|
font-size: 9px;
|
|
}
|
|
.dh-card-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.dh-card-content {
|
|
padding: 12px 11px;
|
|
}
|
|
.dh-card h3 {
|
|
font-size: 16px;
|
|
}
|
|
.dh-card-content p {
|
|
font-size: 10px;
|
|
line-height: 1.6;
|
|
}
|
|
.dh-card-kicker {
|
|
font-size: 8px;
|
|
}
|
|
.dh-card-tags {
|
|
margin-top: 8px;
|
|
gap: 4px;
|
|
}
|
|
.dh-card-tags span {
|
|
font-size: 8px;
|
|
padding: 2px 6px;
|
|
}
|
|
.dh-card-favorite {
|
|
width: 29px;
|
|
height: 29px;
|
|
right: 8px;
|
|
top: 8px;
|
|
}
|
|
.dh-library-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 12px;
|
|
}
|
|
.dh-library-card {
|
|
padding: 20px !important;
|
|
}
|
|
.dh-library-card p {
|
|
min-height: 0;
|
|
}
|
|
.dh-library-card h3 {
|
|
margin-top: 16px;
|
|
}
|
|
.dh-conversation-list .dh-conversation-open {
|
|
gap: 12px;
|
|
padding: 13px;
|
|
}
|
|
.dh-conversation-list img {
|
|
width: 48px;
|
|
height: 58px;
|
|
}
|
|
.dh-conversation-list h3 {
|
|
font-size: 14px;
|
|
}
|
|
.dh-conversation-list p {
|
|
font-size: 11px;
|
|
}
|
|
.dh-conversation-list .dh-conversation-open > svg {
|
|
display: none;
|
|
}
|
|
.dh-profile-banner {
|
|
padding-top: 12px;
|
|
}
|
|
.dh-profile-stats {
|
|
gap: 45px;
|
|
}
|
|
.dh-overlay {
|
|
padding: 16px;
|
|
align-items: center;
|
|
}
|
|
.dh-detail {
|
|
flex-direction: column;
|
|
max-height: 92dvh;
|
|
border-radius: 16px;
|
|
}
|
|
.dh-detail-cover {
|
|
width: 100%;
|
|
height: 245px;
|
|
min-height: 0;
|
|
flex: none;
|
|
position: relative;
|
|
}
|
|
.dh-detail-cover img {
|
|
object-position: center 25%;
|
|
}
|
|
.dh-detail-cover:after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 55% 0 0;
|
|
background: linear-gradient(transparent, var(--dh-panel));
|
|
}
|
|
.dh-detail-body {
|
|
padding: 20px 23px 25px;
|
|
}
|
|
.dh-detail-body h2 {
|
|
font-size: 27px;
|
|
}
|
|
.dh-detail-description {
|
|
font-size: 12px;
|
|
margin: 18px 0 !important;
|
|
}
|
|
.dh-detail blockquote {
|
|
font-size: 11px;
|
|
padding: 14px 16px;
|
|
}
|
|
.dh-settings {
|
|
padding: 22px;
|
|
max-height: 90dvh;
|
|
}
|
|
.dh-toast {
|
|
left: 50%;
|
|
bottom: 100px;
|
|
font-size: 11px;
|
|
}
|
|
.dh-error {
|
|
left: 14px;
|
|
right: 14px;
|
|
top: 12px;
|
|
font-size: 12px;
|
|
}
|
|
.dh-in-chat {
|
|
padding-bottom: 0;
|
|
}
|
|
.dh-in-chat .dh-sidebar {
|
|
display: none;
|
|
}
|
|
.dh-chat {
|
|
position: fixed;
|
|
inset: var(--dh-viewport-top, 0px) 0 auto;
|
|
width: 100%;
|
|
height: var(--dh-viewport, 100dvh);
|
|
z-index: 20;
|
|
}
|
|
.dh-chat-header {
|
|
height: 68px;
|
|
padding: 0 10px;
|
|
gap: 8px;
|
|
}
|
|
.dh-chat-header > img {
|
|
width: 34px;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
}
|
|
.dh-chat-header h1 {
|
|
font-size: 14px;
|
|
}
|
|
.dh-chat-header small {
|
|
font-size: 9px;
|
|
}
|
|
.dh-chat-header .dh-icon {
|
|
width: 34px;
|
|
}
|
|
.dh-chat-backdrop,
|
|
.dh-chat:after {
|
|
top: 68px;
|
|
}
|
|
.dh-messages-inner {
|
|
padding: 10px 15px 20px;
|
|
}
|
|
.dh-chat-intro {
|
|
margin: 23px 0 32px;
|
|
}
|
|
.dh-chat-intro p {
|
|
font-size: 10px;
|
|
}
|
|
.dh-chat-intro small {
|
|
font-size: 8px;
|
|
}
|
|
.dh-message {
|
|
gap: 9px;
|
|
margin: 22px 0;
|
|
}
|
|
.dh-message-avatar {
|
|
width: 27px;
|
|
height: 34px;
|
|
border-radius: 6px;
|
|
}
|
|
.dh-message-body {
|
|
max-width: 86%;
|
|
}
|
|
.dh-message-name {
|
|
font-size: 9px;
|
|
margin-bottom: 5px;
|
|
}
|
|
.dh-bubble {
|
|
padding: 12px 14px;
|
|
border-radius: 0 12px 12px 12px;
|
|
}
|
|
.dh-message-text {
|
|
font-size: 13px;
|
|
line-height: 1.9;
|
|
}
|
|
.dh-message-actions {
|
|
opacity: 0.8;
|
|
gap: 4px;
|
|
}
|
|
.dh-message-actions button {
|
|
min-width: 30px;
|
|
min-height: 30px;
|
|
}
|
|
.dh-composer-wrap {
|
|
padding: 8px 13px max(12px, env(safe-area-inset-bottom));
|
|
}
|
|
.dh-composer {
|
|
border-radius: 13px;
|
|
padding: 8px 9px 8px 13px;
|
|
}
|
|
.dh-composer textarea {
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
padding: 5px 0;
|
|
min-height: 34px;
|
|
}
|
|
.dh-send {
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: 9px;
|
|
}
|
|
.dh-composer-hint {
|
|
font-size: 8px;
|
|
margin-top: 7px;
|
|
}
|
|
.dh-composer-hint > span {
|
|
display: none;
|
|
}
|
|
.dh-jump {
|
|
bottom: 112px;
|
|
right: 16px;
|
|
font-size: 10px !important;
|
|
}
|
|
.dh-chat-menu {
|
|
right: 14px;
|
|
top: 60px;
|
|
}
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.dh-app * {
|
|
animation: none !important;
|
|
transition: none !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|
|
|
|
body:has(.dh-app) .environment-badge {
|
|
display: none;
|
|
}
|
|
|
|
/* 内部区域保留手势和键盘滚动,不显示系统轨道,也不允许设定表单横向漂移。 */
|
|
.dh-app,
|
|
.dh-app * {
|
|
scrollbar-width: none !important;
|
|
}
|
|
.dh-app::-webkit-scrollbar,
|
|
.dh-app *::-webkit-scrollbar {
|
|
display: none !important;
|
|
width: 0 !important;
|
|
height: 0 !important;
|
|
}
|
|
.dh-settings-body,
|
|
.dh-selection-body,
|
|
.dh-detail-body,
|
|
.dh-ideas-list {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
overflow-x: hidden;
|
|
}
|
|
.dh-settings-body {
|
|
width: 100%;
|
|
}
|
|
.dh-settings-body > label,
|
|
.dh-settings fieldset,
|
|
.dh-selection-sheet fieldset {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
.dh-app textarea {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
overflow-x: hidden;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
/* 世界书与风格统一使用平面列表,选中只保留轻底色和一个勾选标记。 */
|
|
.dh-settings .dh-book-picker {
|
|
border: 0;
|
|
padding: 0;
|
|
}
|
|
.dh-checkbox input {
|
|
flex: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* 聊天独立占据可视区域,防止焦点滚动带动整个文档。 */
|
|
html.dh-chat-active,
|
|
html.dh-chat-active body {
|
|
overflow: hidden;
|
|
overscroll-behavior: none;
|
|
}
|
|
.dh-composer-wrap {
|
|
flex-shrink: 0;
|
|
}
|
|
@media (pointer: coarse) {
|
|
/* iOS 会自动放大不足 16px 的表单;覆盖各页面局部小字号,同时保留手动缩放。 */
|
|
.dh-app input:not([type="checkbox"]):not([type="radio"]),
|
|
.dh-app textarea,
|
|
.dh-app select {
|
|
font-size: 16px;
|
|
}
|
|
.dh-conversation-list .dh-conversation-open {
|
|
overflow: hidden;
|
|
}
|
|
.dh-conversation-list .dh-row-delete-desktop {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* 页面导航使用真实链接,视觉与触摸命中范围保持一致。 */
|
|
.dh-sidebar nav a {
|
|
cursor: pointer;
|
|
}
|
|
.dh-conversation-open[aria-disabled="true"] {
|
|
opacity: 0.42;
|
|
cursor: not-allowed;
|
|
}
|
|
.dh-detail-page {
|
|
padding: 40px 32px;
|
|
min-height: 100dvh;
|
|
}
|
|
.dh-detail-page .dh-detail {
|
|
width: min(960px, 100%);
|
|
max-height: none;
|
|
overflow: visible;
|
|
margin: 0 auto;
|
|
}
|
|
.dh-detail-page .dh-detail-body h1 {
|
|
font-size: clamp(26px, 4vw, 38px);
|
|
line-height: 1.3;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.dh-route-message {
|
|
display: flex;
|
|
min-height: 100dvh;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 20px;
|
|
padding: 32px;
|
|
text-align: center;
|
|
}
|
|
.dh-route-message a,
|
|
.dh-route-message button {
|
|
padding: 12px 24px;
|
|
border: 1px solid var(--dh-line);
|
|
border-radius: 12px;
|
|
}
|
|
@media (max-width: 600px) {
|
|
.dh-detail-page {
|
|
padding: 16px 14px 100px;
|
|
}
|
|
.dh-detail-page .dh-detail {
|
|
max-height: none;
|
|
}
|
|
}
|
|
.dh-detail-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
max-width: 960px;
|
|
margin: 0 auto 20px;
|
|
color: var(--dh-muted);
|
|
}
|
|
.dh-app .dh-detail-back {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-height: 44px;
|
|
color: var(--dh-accent);
|
|
}
|