1045 lines
29 KiB
CSS
1045 lines
29 KiB
CSS
/* ==========================================================================
|
||
Shortcodes 样式 - 1:1 移植自 Hugo-Theme-Amigo
|
||
========================================================================== */
|
||
|
||
/* ---- CSS 变量定义(Amigo 主题) ---- */
|
||
:root {
|
||
/* 字体 */
|
||
--font-family: 'ZQL', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
||
|
||
/* 核心配色 - 亮色模式 */
|
||
--bg-body: #f2f2f2;
|
||
--bg-card: #ffffff;
|
||
--bg-header: rgba(255, 255, 255, 0.85);
|
||
--bg-header-transparent: rgba(255, 255, 255, 0);
|
||
--bg-hover: rgba(0, 0, 0, 0.05);
|
||
--bg-active: rgba(0, 0, 0, 0.1);
|
||
--bg-input: #f7f7f7;
|
||
--bg-code: rgba(27, 31, 35, 0.05);
|
||
--bg-code-block: #f6f8fa;
|
||
--bg-popover: #ffffff;
|
||
--bg-mask: rgba(20, 20, 20, 0.85);
|
||
|
||
/* 文字颜色 */
|
||
--text-main: #333333;
|
||
--text-desc: #777777;
|
||
--text-muted: #999999;
|
||
--text-link: #576b95;
|
||
--text-white: #ffffff;
|
||
--text-on-cover: #ffffff;
|
||
--text-quote: #6a737d;
|
||
|
||
/* 功能性颜色 */
|
||
--theme-color: #07c160; /* 微信绿 */
|
||
--border-main: #eeeeee;
|
||
--border-quote: #dfe2e5;
|
||
--shadow-main: rgba(0, 0, 0, 0.03);
|
||
--shadow-header: rgba(0, 0, 0, 0.05);
|
||
--shadow-popover: 0 4px 20px rgba(0, 0, 0, 0.1);
|
||
--shadow-button: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||
--shadow-button-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||
--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||
--shadow-text: 0 1px 1px rgba(0, 0, 0, 0.5);
|
||
|
||
/* 布局参数 */
|
||
--max-width: 680px;
|
||
}
|
||
|
||
/* 深色模式变量 */
|
||
[data-theme="dark"] {
|
||
--bg-body: #111111;
|
||
--bg-card: #1e1e1e;
|
||
--bg-header: rgba(30, 30, 30, 0.85);
|
||
--bg-header-transparent: rgba(30, 30, 30, 0);
|
||
--bg-hover: rgba(255, 255, 255, 0.1);
|
||
--bg-active: rgba(255, 255, 255, 0.15);
|
||
--bg-input: #222222;
|
||
--bg-code: rgba(200, 200, 200, 0.1);
|
||
--bg-code-block: #2d2d2d;
|
||
--bg-popover: #2d2d2d;
|
||
--bg-mask: rgba(0, 0, 0, 0.9);
|
||
|
||
--text-main: #e0e0e0;
|
||
--text-desc: #a0a0a0;
|
||
--text-muted: #777777;
|
||
--text-link: #7a95cc;
|
||
--text-quote: #999999;
|
||
|
||
--border-main: #333333;
|
||
--border-quote: #444444;
|
||
--shadow-main: rgba(0, 0, 0, 0.3);
|
||
--shadow-header: rgba(0, 0, 0, 0.5);
|
||
--shadow-popover: 0 4px 20px rgba(0, 0, 0, 0.4);
|
||
--shadow-button: 0 2px 8px rgba(0, 0, 0, 0.3);
|
||
--shadow-button-hover: 0 4px 12px rgba(0, 0, 0, 0.45);
|
||
--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
|
||
--shadow-text: 0 1px 1px rgba(0, 0, 0, 0.8);
|
||
}
|
||
|
||
/* ==========================================================================
|
||
Voice Bubble - 语音气泡(1:1 移植自 Amigo)
|
||
========================================================================== */
|
||
|
||
.amigo-voice-bubble {
|
||
position: relative;
|
||
background: #42c27a;
|
||
color: #111;
|
||
width: auto;
|
||
max-width: 200px;
|
||
min-width: 100px;
|
||
height: 36px;
|
||
border-radius: 8px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: flex-start;
|
||
padding: 0 18px;
|
||
font-size: 18px;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
transition: background 0.2s, transform 0.1s;
|
||
}
|
||
|
||
/* 左侧尾巴 */
|
||
.amigo-voice-bubble::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: -8px;
|
||
top: 14px;
|
||
width: 0;
|
||
height: 0;
|
||
border-right: 10px solid #42c27a;
|
||
border-top: 6px solid transparent;
|
||
border-bottom: 6px solid transparent;
|
||
}
|
||
|
||
.amigo-voice-bubble:active {
|
||
transform: scale(0.97);
|
||
}
|
||
|
||
.amigo-voice-bubble.is-playing {
|
||
background: #38b56e;
|
||
}
|
||
|
||
.amigo-voice-bubble.is-playing::before {
|
||
border-right-color: #38b56e;
|
||
}
|
||
|
||
/* 语音图标动画 */
|
||
.amigo-voice-icon {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 2px;
|
||
height: 16px;
|
||
margin-right: 8px;
|
||
}
|
||
|
||
.amigo-voice-icon span {
|
||
display: block;
|
||
width: 3px;
|
||
border-radius: 2px;
|
||
background: currentColor;
|
||
animation: amigo-voice-wave 1.2s ease-in-out infinite;
|
||
}
|
||
|
||
.amigo-voice-icon span:nth-child(1) {
|
||
height: 8px;
|
||
animation-delay: 0s;
|
||
}
|
||
|
||
.amigo-voice-icon span:nth-child(2) {
|
||
height: 12px;
|
||
animation-delay: 0.15s;
|
||
}
|
||
|
||
.amigo-voice-icon span:nth-child(3) {
|
||
height: 6px;
|
||
animation-delay: 0.3s;
|
||
}
|
||
|
||
@keyframes amigo-voice-wave {
|
||
0%, 100% { transform: scaleY(0.5); }
|
||
50% { transform: scaleY(1); }
|
||
}
|
||
|
||
.amigo-voice-duration {
|
||
color: #111;
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
/* 首页语音气泡:柔和风格 */
|
||
.moments-feed .amigo-voice-bubble {
|
||
background: var(--bg-hover);
|
||
color: var(--text-main);
|
||
border: 1px solid var(--border-main);
|
||
height: 34px;
|
||
min-width: 180px;
|
||
max-width: 170px;
|
||
padding: 0 14px;
|
||
font-size: 15px;
|
||
border-radius: 8px;
|
||
}
|
||
|
||
.moments-feed .amigo-voice-bubble::before {
|
||
display: none;
|
||
}
|
||
|
||
.moments-feed .amigo-voice-bubble.is-playing {
|
||
background: var(--bg-active);
|
||
}
|
||
|
||
.moments-feed .amigo-voice-icon span {
|
||
background: var(--text-desc);
|
||
}
|
||
|
||
.moments-feed .amigo-voice-duration {
|
||
color: var(--text-desc);
|
||
font-size: 15px;
|
||
}
|
||
|
||
/* ==========================================================================
|
||
Music Card - 音乐卡片(1:1 移植自 Amigo)
|
||
========================================================================== */
|
||
|
||
.amigo-music-card {
|
||
--music-accent: #d43c33;
|
||
--music-progress: 0%;
|
||
--music-card-bg: #f7f7f8;
|
||
--music-card-border: rgba(0, 0, 0, 0.05);
|
||
--music-card-hover-border: rgba(0, 0, 0, 0.08);
|
||
--music-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
|
||
--music-cover-bg: #ececef;
|
||
--music-cover-image-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
|
||
--music-title-color: var(--text-main);
|
||
--music-artist-color: var(--text-desc);
|
||
--music-meta-color: var(--text-muted);
|
||
--music-button-border: rgba(0, 0, 0, 0.05);
|
||
--music-button-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 249, 0.92));
|
||
--music-button-color: color-mix(in srgb, var(--music-accent) 60%, #111 40%);
|
||
--music-button-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
|
||
--music-track-bg: rgba(0, 0, 0, 0.06);
|
||
--music-track-fill-shadow: 0 1px 3px color-mix(in srgb, var(--music-accent) 30%, transparent);
|
||
--music-thumb-bg: #fff;
|
||
--music-thumb-border: var(--music-accent);
|
||
--music-thumb-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
|
||
--music-equalizer-bg: rgba(0, 0, 0, 0.55);
|
||
padding: 12px;
|
||
border-radius: 14px;
|
||
border: 1px solid var(--music-card-border);
|
||
background: var(--music-card-bg);
|
||
box-shadow: var(--music-card-shadow);
|
||
transition: border-color 0.2s ease;
|
||
}
|
||
|
||
.amigo-music-card__hero {
|
||
display: grid;
|
||
grid-template-columns: 62px minmax(0, 1fr);
|
||
gap: 12px;
|
||
align-items: center;
|
||
}
|
||
|
||
.amigo-music-card__art {
|
||
position: relative;
|
||
width: 62px;
|
||
min-width: 62px;
|
||
border-radius: 11px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.amigo-music-card__cover {
|
||
width: 62px;
|
||
height: 62px;
|
||
border-radius: 11px;
|
||
background: var(--music-cover-bg);
|
||
}
|
||
|
||
.amigo-music-card__cover--image {
|
||
display: block;
|
||
object-fit: cover;
|
||
box-shadow: var(--music-cover-image-shadow);
|
||
}
|
||
|
||
.amigo-music-card__meta {
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.amigo-music-card__title {
|
||
display: block;
|
||
overflow: hidden;
|
||
color: var(--music-title-color);
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
line-height: 1.22;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.amigo-music-card__subtitle {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.amigo-music-card__subtitle > span {
|
||
min-width: 0;
|
||
}
|
||
|
||
.amigo-music-card__artist {
|
||
overflow: hidden;
|
||
font-size: 12px;
|
||
line-height: 1.3;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
color: var(--music-artist-color);
|
||
}
|
||
|
||
.amigo-music-card__play {
|
||
position: absolute;
|
||
right: 4px;
|
||
bottom: 4px;
|
||
z-index: 2;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 24px;
|
||
height: 24px;
|
||
border: 1px solid var(--music-button-border);
|
||
border-radius: 50%;
|
||
background: var(--music-button-bg);
|
||
color: var(--music-button-color);
|
||
box-shadow: var(--music-button-shadow);
|
||
cursor: pointer;
|
||
transition: border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
|
||
}
|
||
|
||
.amigo-music-card__play-icon {
|
||
width: 0;
|
||
height: 0;
|
||
margin-left: 1px;
|
||
border-top: 4px solid transparent;
|
||
border-bottom: 4px solid transparent;
|
||
border-left: 6px solid;
|
||
}
|
||
|
||
.amigo-music-card[data-playing="true"] .amigo-music-card__play-icon {
|
||
width: 6px;
|
||
height: 8px;
|
||
margin-left: 0;
|
||
border: 0;
|
||
background: linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 6px, transparent 6px 100%);
|
||
}
|
||
|
||
.amigo-music-card__equalizer {
|
||
position: absolute;
|
||
top: 5px;
|
||
left: 5px;
|
||
z-index: 2;
|
||
display: inline-flex;
|
||
align-items: end;
|
||
gap: 2px;
|
||
width: 0;
|
||
height: 12px;
|
||
padding: 0;
|
||
overflow: hidden;
|
||
border-radius: 999px;
|
||
background: var(--music-equalizer-bg);
|
||
opacity: 0;
|
||
transition: width 0.16s ease, padding 0.16s ease, opacity 0.16s ease;
|
||
}
|
||
|
||
.amigo-music-card[data-playing="true"] .amigo-music-card__equalizer {
|
||
width: 16px;
|
||
padding: 2px 3px;
|
||
opacity: 0.9;
|
||
}
|
||
|
||
.amigo-music-card__equalizer span {
|
||
width: 3px;
|
||
height: 4px;
|
||
border-radius: 999px;
|
||
background: #fff;
|
||
transform-origin: bottom center;
|
||
}
|
||
|
||
.amigo-music-card[data-playing="true"] .amigo-music-card__equalizer span {
|
||
animation: amigo-music-bars 1s ease-in-out infinite;
|
||
}
|
||
|
||
.amigo-music-card[data-playing="true"] .amigo-music-card__equalizer span:nth-child(2) {
|
||
animation-delay: 0.12s;
|
||
}
|
||
|
||
.amigo-music-card[data-playing="true"] .amigo-music-card__equalizer span:nth-child(3) {
|
||
animation-delay: 0.24s;
|
||
}
|
||
|
||
@keyframes amigo-music-bars {
|
||
0%, 100% { height: 4px; }
|
||
50% { height: 12px; }
|
||
}
|
||
|
||
/* 时间线 */
|
||
.amigo-music-card__timeline {
|
||
--music-track-height: 4px;
|
||
--music-thumb-size: 12px;
|
||
display: grid;
|
||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||
grid-template-areas: "seek seek seek" "current . duration";
|
||
align-items: center;
|
||
margin-top: 6px;
|
||
row-gap: 6px;
|
||
column-gap: 8px;
|
||
}
|
||
|
||
.amigo-music-card__time {
|
||
min-width: 28px;
|
||
font-size: 10px;
|
||
font-weight: 500;
|
||
font-variant-numeric: tabular-nums;
|
||
line-height: 1;
|
||
}
|
||
|
||
.amigo-music-card__time--current {
|
||
grid-area: current;
|
||
text-align: left;
|
||
color: var(--music-meta-color);
|
||
}
|
||
|
||
.amigo-music-card__time--duration {
|
||
grid-area: duration;
|
||
text-align: right;
|
||
color: var(--music-meta-color);
|
||
}
|
||
|
||
.amigo-music-card__seek-wrap {
|
||
grid-area: seek;
|
||
position: relative;
|
||
height: var(--music-thumb-size);
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.amigo-music-card__seek {
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
width: 100%;
|
||
height: var(--music-track-height);
|
||
border-radius: 999px;
|
||
background: var(--music-track-bg);
|
||
outline: none;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.amigo-music-card__seek::-webkit-slider-thumb {
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
width: var(--music-thumb-size);
|
||
height: var(--music-thumb-size);
|
||
border-radius: 50%;
|
||
background: var(--music-thumb-bg);
|
||
border: 2px solid var(--music-thumb-border);
|
||
box-shadow: var(--music-thumb-shadow);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.amigo-music-card__seek::-moz-range-thumb {
|
||
width: var(--music-thumb-size);
|
||
height: var(--music-thumb-size);
|
||
border-radius: 50%;
|
||
background: var(--music-thumb-bg);
|
||
border: 2px solid var(--music-thumb-border);
|
||
box-shadow: var(--music-thumb-shadow);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.amigo-music-card__seek-thumb {
|
||
position: absolute;
|
||
left: 0;
|
||
top: 50%;
|
||
transform: translate(-50%, -50%);
|
||
width: var(--music-thumb-size);
|
||
height: var(--music-thumb-size);
|
||
border-radius: 50%;
|
||
background: var(--music-thumb-bg);
|
||
border: 2px solid var(--music-thumb-border);
|
||
box-shadow: var(--music-thumb-shadow);
|
||
pointer-events: none;
|
||
opacity: 0;
|
||
transition: opacity 0.15s ease;
|
||
}
|
||
|
||
.amigo-music-card__seek:active ~ .amigo-music-card__seek-thumb {
|
||
opacity: 1;
|
||
}
|
||
|
||
/* 响应式 */
|
||
@media (max-width: 640px) {
|
||
.amigo-music-card {
|
||
padding: 11px;
|
||
}
|
||
.amigo-music-card__hero {
|
||
grid-template-columns: 56px minmax(0, 1fr);
|
||
gap: 10px;
|
||
}
|
||
.amigo-music-card__art,
|
||
.amigo-music-card__cover {
|
||
width: 56px;
|
||
height: 56px;
|
||
}
|
||
.amigo-music-card__title {
|
||
font-size: 15px;
|
||
}
|
||
.amigo-music-card__play {
|
||
right: 3px;
|
||
bottom: 3px;
|
||
}
|
||
.amigo-music-card__timeline {
|
||
--music-thumb-size: 11px;
|
||
row-gap: 5px;
|
||
}
|
||
.amigo-music-card__time {
|
||
min-width: 24px;
|
||
font-size: 9px;
|
||
}
|
||
}
|
||
|
||
/* 深色模式 */
|
||
[data-theme="dark"] .amigo-music-card {
|
||
--music-card-bg: #232427;
|
||
--music-card-border: rgba(255, 255, 255, 0.06);
|
||
--music-card-hover-border: rgba(255, 255, 255, 0.1);
|
||
--music-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 1px 3px rgba(0, 0, 0, 0.3);
|
||
--music-cover-bg: #2a2b2e;
|
||
--music-cover-image-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
|
||
--music-title-color: #e8e8e8;
|
||
--music-artist-color: #9a9a9a;
|
||
--music-meta-color: #6a6a6a;
|
||
--music-button-border: rgba(255, 255, 255, 0.08);
|
||
--music-button-bg: linear-gradient(180deg, rgba(50, 50, 54, 0.98), rgba(40, 40, 44, 0.92));
|
||
--music-button-color: color-mix(in srgb, var(--music-accent) 70%, #ddd 30%);
|
||
--music-button-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
|
||
--music-track-bg: rgba(255, 255, 255, 0.08);
|
||
--music-thumb-bg: #3a3b3e;
|
||
--music-thumb-border: var(--music-accent);
|
||
--music-thumb-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
|
||
}
|
||
|
||
/* ==========================================================================
|
||
Live Photo - 实况照片
|
||
========================================================================== */
|
||
|
||
.live-photo {
|
||
--border-radius: 4px;
|
||
--live-photo-aspect: 4 / 5;
|
||
position: relative;
|
||
overflow: hidden;
|
||
border-radius: var(--border-radius);
|
||
width: 100%;
|
||
max-width: min(360px, 100%);
|
||
margin: 12px auto;
|
||
aspect-ratio: var(--live-photo-aspect);
|
||
background: #f5f5f5;
|
||
container-type: inline-size;
|
||
}
|
||
|
||
.live-photo .live-photo-video {
|
||
position: absolute;
|
||
display: block;
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
inset: 0;
|
||
opacity: 0;
|
||
transition: opacity 0.2s ease;
|
||
z-index: 1;
|
||
}
|
||
|
||
.live-photo .live-photo-poster {
|
||
position: absolute;
|
||
inset: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
opacity: 1;
|
||
transition: opacity 0.25s ease;
|
||
z-index: 0;
|
||
}
|
||
|
||
.live-photo.is-playing .live-photo-video {
|
||
opacity: 1;
|
||
}
|
||
|
||
.live-photo.is-playing .live-photo-poster {
|
||
opacity: 0;
|
||
}
|
||
|
||
.live-photo .live-photo-controls-group {
|
||
position: absolute;
|
||
left: 10px;
|
||
top: 10px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
z-index: 2;
|
||
}
|
||
|
||
.live-photo .live-photo-control-btn {
|
||
border: none;
|
||
padding: 4px 8px;
|
||
border-radius: var(--border-radius);
|
||
height: 24px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
background-color: transparent;
|
||
color: #606060;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
border: 1px solid rgba(255, 255, 255, 0.7);
|
||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
|
||
backdrop-filter: blur(10px);
|
||
-webkit-backdrop-filter: blur(10px);
|
||
transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
|
||
}
|
||
|
||
.live-photo .live-photo-control-btn:hover {
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
|
||
background-color: transparent;
|
||
}
|
||
|
||
.live-photo .live-photo-toggle-btn {
|
||
background-color: rgba(44, 44, 46, 0.62);
|
||
border-color: rgba(255, 255, 255, 0.22);
|
||
color: rgb(205 205 205 / 92%);
|
||
}
|
||
|
||
.live-photo .live-photo-toggle-btn:hover {
|
||
background-color: rgba(44, 44, 46, 0.72);
|
||
}
|
||
|
||
.live-photo .live-photo-mute-btn {
|
||
background-color: rgba(44, 44, 46, 0.35);
|
||
border-color: rgba(255, 255, 255, 0.18);
|
||
color: rgb(205 205 205 / 92%);
|
||
}
|
||
|
||
.live-photo .live-photo-mute-btn:hover {
|
||
background-color: rgba(44, 44, 46, 0.42);
|
||
}
|
||
|
||
.live-photo-mute-btn .live-photo-mute-icon {
|
||
display: block;
|
||
width: 18px;
|
||
height: 18px;
|
||
font-size: 15px;
|
||
line-height: 19px;
|
||
color: rgb(205 205 205 / 92%);
|
||
}
|
||
|
||
.live-photo-mute-btn[data-muted="true"] .icon-unmuted {
|
||
display: none;
|
||
}
|
||
|
||
.live-photo-mute-btn[data-muted="false"] .icon-muted {
|
||
display: none;
|
||
}
|
||
|
||
/* ==========================================================================
|
||
强制优先级 - 覆盖 ying 主题默认样式
|
||
========================================================================== */
|
||
|
||
/* 强制使用 Amigo 语音样式 */
|
||
.article-content .amigo-voice-bubble,
|
||
.article-text .amigo-voice-bubble,
|
||
.post-content .amigo-voice-bubble,
|
||
main .amigo-voice-bubble,
|
||
.amigo-voice-bubble {
|
||
position: relative !important;
|
||
background: #42c27a !important;
|
||
color: #111 !important;
|
||
width: auto !important;
|
||
max-width: 200px !important;
|
||
min-width: 100px !important;
|
||
height: 36px !important;
|
||
border-radius: 8px !important;
|
||
display: inline-flex !important;
|
||
align-items: center !important;
|
||
justify-content: flex-start !important;
|
||
padding: 0 18px !important;
|
||
font-size: 18px !important;
|
||
font-weight: 500 !important;
|
||
cursor: pointer !important;
|
||
border: none !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
.article-content .amigo-voice-bubble::before,
|
||
.article-text .amigo-voice-bubble::before,
|
||
.post-content .amigo-voice-bubble::before,
|
||
main .amigo-voice-bubble::before,
|
||
.amigo-voice-bubble::before {
|
||
content: "" !important;
|
||
position: absolute !important;
|
||
left: -8px !important;
|
||
top: 14px !important;
|
||
width: 0 !important;
|
||
height: 0 !important;
|
||
border-right: 10px solid #42c27a !important;
|
||
border-top: 6px solid transparent !important;
|
||
border-bottom: 6px solid transparent !important;
|
||
display: block !important;
|
||
}
|
||
|
||
.article-content .amigo-voice-bubble.is-playing,
|
||
.article-text .amigo-voice-bubble.is-playing,
|
||
.post-content .amigo-voice-bubble.is-playing,
|
||
main .amigo-voice-bubble.is-playing,
|
||
.amigo-voice-bubble.is-playing {
|
||
background: #38b56e !important;
|
||
}
|
||
|
||
.article-content .amigo-voice-bubble.is-playing::before,
|
||
.article-text .amigo-voice-bubble.is-playing::before,
|
||
.post-content .amigo-voice-bubble.is-playing::before,
|
||
main .amigo-voice-bubble.is-playing::before,
|
||
.amigo-voice-bubble.is-playing::before {
|
||
border-right-color: #38b56e !important;
|
||
}
|
||
|
||
.article-content .amigo-voice-icon,
|
||
.article-text .amigo-voice-icon,
|
||
.post-content .amigo-voice-icon,
|
||
main .amigo-voice-icon,
|
||
.amigo-voice-icon {
|
||
display: flex !important;
|
||
align-items: center !important;
|
||
gap: 2px !important;
|
||
height: 16px !important;
|
||
margin-right: 8px !important;
|
||
}
|
||
|
||
.article-content .amigo-voice-icon span,
|
||
.article-text .amigo-voice-icon span,
|
||
.post-content .amigo-voice-icon span,
|
||
main .amigo-voice-icon span,
|
||
.amigo-voice-icon span {
|
||
display: block !important;
|
||
width: 3px !important;
|
||
border-radius: 2px !important;
|
||
background: currentColor !important;
|
||
animation: amigo-voice-wave 1.2s ease-in-out infinite !important;
|
||
}
|
||
|
||
.article-content .amigo-voice-icon span:nth-child(1),
|
||
.article-text .amigo-voice-icon span:nth-child(1),
|
||
.post-content .amigo-voice-icon span:nth-child(1),
|
||
main .amigo-voice-icon span:nth-child(1),
|
||
.amigo-voice-icon span:nth-child(1) {
|
||
height: 8px !important;
|
||
animation-delay: 0s !important;
|
||
}
|
||
|
||
.article-content .amigo-voice-icon span:nth-child(2),
|
||
.article-text .amigo-voice-icon span:nth-child(2),
|
||
.post-content .amigo-voice-icon span:nth-child(2),
|
||
main .amigo-voice-icon span:nth-child(2),
|
||
.amigo-voice-icon span:nth-child(2) {
|
||
height: 12px !important;
|
||
animation-delay: 0.15s !important;
|
||
}
|
||
|
||
.article-content .amigo-voice-icon span:nth-child(3),
|
||
.article-text .amigo-voice-icon span:nth-child(3),
|
||
.post-content .amigo-voice-icon span:nth-child(3),
|
||
main .amigo-voice-icon span:nth-child(3),
|
||
.amigo-voice-icon span:nth-child(3) {
|
||
height: 6px !important;
|
||
animation-delay: 0.3s !important;
|
||
}
|
||
|
||
.article-content .amigo-voice-duration,
|
||
.article-text .amigo-voice-duration,
|
||
.post-content .amigo-voice-duration,
|
||
main .amigo-voice-duration,
|
||
.amigo-voice-duration {
|
||
color: #111 !important;
|
||
font-size: 16px !important;
|
||
font-weight: 500 !important;
|
||
}
|
||
|
||
@keyframes amigo-voice-wave {
|
||
0%, 100% { transform: scaleY(0.5); }
|
||
50% { transform: scaleY(1); }
|
||
}
|
||
|
||
/* ==========================================================================
|
||
音乐卡片强制优先级 - 覆盖 ying 主题默认样式
|
||
========================================================================== */
|
||
|
||
.article-content .amigo-music-card,
|
||
.article-text .amigo-music-card,
|
||
.post-content .amigo-music-card,
|
||
main .amigo-music-card,
|
||
.amigo-music-card {
|
||
--music-accent: #d43c33 !important;
|
||
--music-card-bg: #f7f7f8 !important;
|
||
--music-card-border: rgba(0, 0, 0, 0.05) !important;
|
||
--music-cover-bg: #ececef !important;
|
||
--music-title-color: #333333 !important;
|
||
--music-artist-color: #777777 !important;
|
||
padding: 12px !important;
|
||
border-radius: 14px !important;
|
||
border: 1px solid var(--music-card-border) !important;
|
||
background: var(--music-card-bg) !important;
|
||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
|
||
display: block !important;
|
||
max-width: 400px !important;
|
||
margin: 16px 0 !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card__hero,
|
||
.article-text .amigo-music-card__hero,
|
||
.post-content .amigo-music-card__hero,
|
||
main .amigo-music-card__hero,
|
||
.amigo-music-card__hero {
|
||
display: grid !important;
|
||
grid-template-columns: 62px minmax(0, 1fr) !important;
|
||
gap: 12px !important;
|
||
align-items: center !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card__art,
|
||
.article-text .amigo-music-card__art,
|
||
.post-content .amigo-music-card__art,
|
||
main .amigo-music-card__art,
|
||
.amigo-music-card__art {
|
||
position: relative !important;
|
||
width: 62px !important;
|
||
min-width: 62px !important;
|
||
border-radius: 11px !important;
|
||
overflow: hidden !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card__cover,
|
||
.article-text .amigo-music-card__cover,
|
||
.post-content .amigo-music-card__cover,
|
||
main .amigo-music-card__cover,
|
||
.amigo-music-card__cover {
|
||
width: 62px !important;
|
||
height: 62px !important;
|
||
border-radius: 11px !important;
|
||
background: var(--music-cover-bg) !important;
|
||
display: block !important;
|
||
object-fit: cover !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card__meta,
|
||
.article-text .amigo-music-card__meta,
|
||
.post-content .amigo-music-card__meta,
|
||
main .amigo-music-card__meta,
|
||
.amigo-music-card__meta {
|
||
min-width: 0 !important;
|
||
display: flex !important;
|
||
flex-direction: column !important;
|
||
gap: 4px !important;
|
||
overflow: hidden !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card__title,
|
||
.article-text .amigo-music-card__title,
|
||
.post-content .amigo-music-card__title,
|
||
main .amigo-music-card__title,
|
||
.amigo-music-card__title {
|
||
display: block !important;
|
||
overflow: hidden !important;
|
||
color: var(--music-title-color) !important;
|
||
font-size: 16px !important;
|
||
font-weight: 600 !important;
|
||
line-height: 1.22 !important;
|
||
text-overflow: ellipsis !important;
|
||
white-space: nowrap !important;
|
||
margin: 0 !important;
|
||
padding: 0 !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card__artist,
|
||
.article-text .amigo-music-card__artist,
|
||
.post-content .amigo-music-card__artist,
|
||
main .amigo-music-card__artist,
|
||
.amigo-music-card__artist {
|
||
overflow: hidden !important;
|
||
font-size: 12px !important;
|
||
line-height: 1.3 !important;
|
||
text-overflow: ellipsis !important;
|
||
white-space: nowrap !important;
|
||
color: var(--music-artist-color) !important;
|
||
display: block !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card__play,
|
||
.article-text .amigo-music-card__play,
|
||
.post-content .amigo-music-card__play,
|
||
main .amigo-music-card__play,
|
||
.amigo-music-card__play {
|
||
position: absolute !important;
|
||
right: 4px !important;
|
||
bottom: 4px !important;
|
||
z-index: 2 !important;
|
||
display: inline-flex !important;
|
||
align-items: center !important;
|
||
justify-content: center !important;
|
||
width: 24px !important;
|
||
height: 24px !important;
|
||
border: 1px solid rgba(0, 0, 0, 0.05) !important;
|
||
border-radius: 50% !important;
|
||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 249, 0.92)) !important;
|
||
color: color-mix(in srgb, var(--music-accent) 60%, #111 40%) !important;
|
||
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
|
||
cursor: pointer !important;
|
||
padding: 0 !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card__play-icon,
|
||
.article-text .amigo-music-card__play-icon,
|
||
.post-content .amigo-music-card__play-icon,
|
||
main .amigo-music-card__play-icon,
|
||
.amigo-music-card__play-icon {
|
||
width: 0 !important;
|
||
height: 0 !important;
|
||
margin-left: 1px !important;
|
||
border-top: 4px solid transparent !important;
|
||
border-bottom: 4px solid transparent !important;
|
||
border-left: 6px solid currentColor !important;
|
||
display: block !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card[data-playing="true"] .amigo-music-card__play-icon,
|
||
.article-text .amigo-music-card[data-playing="true"] .amigo-music-card__play-icon,
|
||
.post-content .amigo-music-card[data-playing="true"] .amigo-music-card__play-icon,
|
||
main .amigo-music-card[data-playing="true"] .amigo-music-card__play-icon,
|
||
.amigo-music-card[data-playing="true"] .amigo-music-card__play-icon {
|
||
width: 6px !important;
|
||
height: 8px !important;
|
||
margin-left: 0 !important;
|
||
border: 0 !important;
|
||
background: linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 6px, transparent 6px 100%) !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card__timeline,
|
||
.article-text .amigo-music-card__timeline,
|
||
.post-content .amigo-music-card__timeline,
|
||
main .amigo-music-card__timeline,
|
||
.amigo-music-card__timeline {
|
||
display: grid !important;
|
||
grid-template-columns: auto minmax(0, 1fr) auto !important;
|
||
align-items: center !important;
|
||
margin-top: 6px !important;
|
||
row-gap: 6px !important;
|
||
column-gap: 8px !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card__time,
|
||
.article-text .amigo-music-card__time,
|
||
.post-content .amigo-music-card__time,
|
||
main .amigo-music-card__time,
|
||
.amigo-music-card__time {
|
||
min-width: 28px !important;
|
||
font-size: 10px !important;
|
||
font-weight: 500 !important;
|
||
font-variant-numeric: tabular-nums !important;
|
||
line-height: 1 !important;
|
||
color: #999 !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card__seek-wrap,
|
||
.article-text .amigo-music-card__seek-wrap,
|
||
.post-content .amigo-music-card__seek-wrap,
|
||
main .amigo-music-card__seek-wrap,
|
||
.amigo-music-card__seek-wrap {
|
||
position: relative !important;
|
||
height: 12px !important;
|
||
display: flex !important;
|
||
align-items: center !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card__seek,
|
||
.article-text .amigo-music-card__seek,
|
||
.post-content .amigo-music-card__seek,
|
||
main .amigo-music-card__seek,
|
||
.amigo-music-card__seek {
|
||
-webkit-appearance: none !important;
|
||
appearance: none !important;
|
||
width: 100% !important;
|
||
height: 4px !important;
|
||
border-radius: 999px !important;
|
||
background: rgba(0, 0, 0, 0.06) !important;
|
||
outline: none !important;
|
||
cursor: pointer !important;
|
||
margin: 0 !important;
|
||
padding: 0 !important;
|
||
}
|
||
|
||
.article-content .amigo-music-card__seek::-webkit-slider-thumb,
|
||
.article-text .amigo-music-card__seek::-webkit-slider-thumb,
|
||
.post-content .amigo-music-card__seek::-webkit-slider-thumb,
|
||
main .amigo-music-card__seek::-webkit-slider-thumb,
|
||
.amigo-music-card__seek::-webkit-slider-thumb {
|
||
-webkit-appearance: none !important;
|
||
appearance: none !important;
|
||
width: 12px !important;
|
||
height: 12px !important;
|
||
border-radius: 50% !important;
|
||
background: #fff !important;
|
||
border: 2px solid var(--music-accent) !important;
|
||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
|
||
cursor: pointer !important;
|
||
}
|
||
|
||
/* 深色模式 */
|
||
[data-theme="dark"] .amigo-music-card,
|
||
[data-theme="dark"] .article-content .amigo-music-card,
|
||
[data-theme="dark"] .article-text .amigo-music-card,
|
||
[data-theme="dark"] .post-content .amigo-music-card,
|
||
[data-theme="dark"] main .amigo-music-card {
|
||
--music-card-bg: #232427 !important;
|
||
--music-card-border: rgba(255, 255, 255, 0.06) !important;
|
||
--music-cover-bg: #2a2b2e !important;
|
||
--music-title-color: #e8e8e8 !important;
|
||
--music-artist-color: #9a9a9a !important;
|
||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 1px 3px rgba(0, 0, 0, 0.3) !important;
|
||
}
|
||
|
||
[data-theme="dark"] .amigo-music-card__play,
|
||
[data-theme="dark"] .article-content .amigo-music-card__play,
|
||
[data-theme="dark"] .article-text .amigo-music-card__play,
|
||
[data-theme="dark"] .post-content .amigo-music-card__play,
|
||
[data-theme="dark"] main .amigo-music-card__play {
|
||
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
||
background: linear-gradient(180deg, rgba(50, 50, 54, 0.98), rgba(40, 40, 44, 0.92)) !important;
|
||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2) !important;
|
||
}
|
||
|
||
[data-theme="dark"] .amigo-music-card__seek,
|
||
[data-theme="dark"] .article-content .amigo-music-card__seek,
|
||
[data-theme="dark"] .article-text .amigo-music-card__seek,
|
||
[data-theme="dark"] .post-content .amigo-music-card__seek,
|
||
[data-theme="dark"] main .amigo-music-card__seek {
|
||
background: rgba(255, 255, 255, 0.08) !important;
|
||
}
|
||
|
||
[data-theme="dark"] .amigo-music-card__time,
|
||
[data-theme="dark"] .article-content .amigo-music-card__time,
|
||
[data-theme="dark"] .article-text .amigo-music-card__time,
|
||
[data-theme="dark"] .post-content .amigo-music-card__time,
|
||
[data-theme="dark"] main .amigo-music-card__time {
|
||
color: #6a6a6a !important;
|
||
}
|