/* =============================================
   歌曲热评 - song_hot_comments.css
   三栏布局：历史 | 输入 | 结果
   主题色：暗红玫瑰系（#1a0010 / #6b0f2a / #a31c45 / #e8718a / #ffd4de）
   寓意：深情、共鸣、音乐的温度
   ============================================= */

/* ========== 主容器 ========== */
.shc-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 600px;
    background: #fff5f7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

/* 全屏模式 */
.shc-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
    min-height: unset;
}

/* ========== 顶部工具栏 ========== */
.shc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 12px;
    min-height: 36px;
    background: linear-gradient(135deg, #1a0010 0%, #6b0f2a 55%, #a31c45 100%);
    color: #fff;
    flex-wrap: wrap;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(26, 0, 16, 0.5);
    flex-shrink: 0;
    position: relative;
}

.shc-toolbar .toolbar-group {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.shc-toolbar .toolbar-btn {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #6b0f2a;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}

.shc-toolbar .toolbar-btn:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.shc-toolbar .toolbar-btn:active:not(:disabled) {
    transform: translateY(0);
}

.shc-toolbar .toolbar-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

/* 主操作按钮 */
.shc-toolbar .toolbar-btn-primary {
    background: linear-gradient(135deg, #cf4068 0%, #6b0f2a 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(163, 28, 69, 0.5);
}

.shc-toolbar .toolbar-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #e8718a 0%, #a31c45 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(163, 28, 69, 0.6);
}

/* 生成按钮加载流光 */
.shc-toolbar .toolbar-btn-primary.shc-btn-loading {
    background: linear-gradient(90deg, #6b0f2a 0%, #e8718a 35%, #6b0f2a 65%, #1a0010 100%);
    background-size: 200% 100%;
    animation: shcBtnShimmer 1.4s ease-in-out infinite;
    cursor: not-allowed;
    box-shadow: 0 2px 10px rgba(163, 28, 69, 0.55);
}

@keyframes shcBtnShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.shc-toolbar .toolbar-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.5px;
    margin-right: 4px;
}

/* ========== 主内容：三栏 ========== */
.shc-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #fff5f7;
}

/* ========== 左栏：历史记录 ========== */
.shc-history-panel {
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #f7c5d0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shc-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(to bottom, #fff0f3 0%, #ffe5ec 100%);
    border-bottom: 1px solid #f7c5d0;
    flex-shrink: 0;
}

.shc-history-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #6b0f2a;
}

.shc-history-count {
    font-size: 11px;
    color: #e8718a;
    font-weight: 400;
}

.shc-history-clear-btn {
    background: #ffe5ec;
    border: none;
    color: #a31c45;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.2s;
    white-space: nowrap;
}

.shc-history-clear-btn:hover { background: #f7c5d0; }

.shc-history-search {
    padding: 7px;
    border-bottom: 1px solid #f7c5d0;
    flex-shrink: 0;
}

.shc-history-search input {
    width: 100%;
    padding: 5px 9px;
    border: 1px solid #f7c5d0;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #6b0f2a;
    background: #fff9fb;
}

.shc-history-search input:focus {
    border-color: #e8718a;
    box-shadow: 0 0 0 2px rgba(232, 113, 138, 0.15);
}

.shc-history-search input::placeholder { color: #e8718a; }

.shc-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
    -webkit-overflow-scrolling: touch;
}

.shc-history-list::-webkit-scrollbar { width: 4px; }
.shc-history-list::-webkit-scrollbar-track { background: transparent; }
.shc-history-list::-webkit-scrollbar-thumb { background: #f7c5d0; border-radius: 2px; }
.shc-history-list::-webkit-scrollbar-thumb:hover { background: #e8718a; }

.shc-history-item {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.18s;
    margin-bottom: 3px;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
}

.shc-history-item-main { flex: 1; min-width: 0; }

.shc-history-item:hover {
    background: #fff0f3;
    border-color: #f7c5d0;
}

.shc-history-item.active {
    background: #ffe5ec;
    border-color: #f7c5d0;
    border-left-color: #a31c45;
}

.shc-history-item-song {
    font-size: 14px;
    font-weight: 700;
    color: #1a0010;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shc-history-item-meta {
    font-size: 10px;
    color: #e8718a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shc-history-item-artist {
    font-size: 11px;
    color: #a31c45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.shc-history-item-type {
    background: #ffe5ec;
    color: #6b0f2a;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
}

.shc-history-item-del {
    background: none;
    border: none;
    color: #f7c5d0;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.15s;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0;
}

.shc-history-item:hover .shc-history-item-del { opacity: 1; }
.shc-history-item:hover .shc-history-item-del:hover {
    color: #6b0f2a;
    background: #ffe5ec;
}

.shc-history-empty {
    text-align: center;
    color: #e8718a;
    font-size: 12px;
    padding: 24px 8px;
    line-height: 1.7;
}

/* ========== 中栏：输入区 ========== */
.shc-input-panel {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #f7c5d0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shc-panel-header {
    padding: 12px 14px 10px;
    border-bottom: 1px solid #f7c5d0;
    flex-shrink: 0;
    background: linear-gradient(to bottom, #fff0f3 0%, #ffe5ec 100%);
}

.shc-panel-header h3 {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: #6b0f2a;
}

.shc-panel-tip {
    font-size: 11px;
    color: #a31c45;
    display: block;
}

.shc-input-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
}

.shc-input-body::-webkit-scrollbar { width: 4px; }
.shc-input-body::-webkit-scrollbar-track { background: transparent; }
.shc-input-body::-webkit-scrollbar-thumb { background: #f7c5d0; border-radius: 2px; }

/* 字段组 */
.shc-field-group {
    margin-bottom: 14px;
}

.shc-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b0f2a;
    margin-bottom: 6px;
}

.shc-required { color: #e8718a; }
.shc-optional { font-weight: 400; color: #a31c45; }

/* 搜索框（歌曲名） */
.shc-search-box {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.shc-search-input {
    flex: 1;
    padding: 9px 12px;
    border: 2px solid #f7c5d0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1a0010;
    background: #fff9fb;
    outline: none;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.shc-search-input:focus {
    border-color: #e8718a;
    box-shadow: 0 0 0 3px rgba(232, 113, 138, 0.15);
    background: #fff;
}

.shc-search-input::placeholder {
    font-size: 12px;
    color: #e8718a;
    letter-spacing: 0;
    font-weight: 400;
}

.shc-search-input.shake {
    animation: shcShake 0.4s ease;
}

@keyframes shcShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.shc-search-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #a31c45 0%, #6b0f2a 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(107, 15, 42, 0.35);
}

.shc-search-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #cf4068 0%, #a31c45 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 15, 42, 0.45);
}

.shc-search-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.shc-char-counter {
    text-align: right;
    font-size: 11px;
    color: #e8718a;
    margin-top: 4px;
}

.shc-char-counter.warning { color: #f4a261; }
.shc-char-counter.limit   { color: #e63946; font-weight: 600; }

/* 歌手输入框 */
.shc-artist-input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #f7c5d0;
    border-radius: 6px;
    font-size: 13px;
    color: #1a0010;
    background: #fff9fb;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.shc-artist-input:focus {
    border-color: #e8718a;
    box-shadow: 0 0 0 2px rgba(232, 113, 138, 0.12);
    background: #fff;
}

.shc-artist-input::placeholder { font-size: 12px; color: #e8718a; }

/* 热评风格 */
.shc-mode-group { margin-bottom: 14px; }

.shc-mode-label {
    font-size: 12px;
    color: #6b0f2a;
    font-weight: 600;
    margin-bottom: 7px;
    display: block;
}

.shc-mode-options {
    display: flex;
    gap: 6px;
}

.shc-mode-option {
    flex: 1;
    padding: 7px 6px;
    text-align: center;
    border: 1.5px solid #f7c5d0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    color: #a31c45;
    transition: all 0.18s;
    user-select: none;
    background: #fff9fb;
}

.shc-mode-option:hover {
    border-color: #e8718a;
    color: #6b0f2a;
    background: #fff0f3;
}

.shc-mode-option.selected {
    border-color: #6b0f2a;
    background: linear-gradient(135deg, #a31c45 0%, #6b0f2a 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(107, 15, 42, 0.3);
}

.shc-mode-icon {
    font-size: 16px;
    display: block;
    margin-bottom: 2px;
}

/* 模式切换提示 */
.shc-mode-hint {
    font-size: 11px;
    color: #a31c45;
    display: block;
    margin-bottom: 10px;
    min-height: 16px;
    transition: opacity 0.3s;
    opacity: 0;
}

.shc-mode-hint.visible { opacity: 1; }

/* 热门歌曲标签 */
.shc-quick-label {
    font-size: 12px;
    color: #6b0f2a;
    font-weight: 600;
    margin-bottom: 7px;
    display: block;
}

.shc-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.shc-quick-tag {
    padding: 4px 10px;
    background: #fff0f3;
    border: 1px solid #f7c5d0;
    border-radius: 20px;
    font-size: 12px;
    color: #1a0010;
    cursor: pointer;
    transition: all 0.18s;
    font-weight: 500;
}

.shc-quick-tag:hover {
    background: #a31c45;
    border-color: #a31c45;
    color: #fff;
    transform: scale(1.05);
}

/* 热门歌曲标签激活动效 */
.shc-quick-tag.shc-tag-active {
    background: #a31c45;
    border-color: #a31c45;
    color: #fff;
    transform: scale(0.93);
}

/* 使用提示框 */
.shc-tips-box {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe5ec 100%);
    border: 1px solid #f7c5d0;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    color: #6b0f2a;
    line-height: 1.7;
}

.shc-tips-box p { margin: 0 0 4px; font-weight: 600; }
.shc-tips-box ul { margin: 0; padding-left: 14px; list-style-type: "♪  "; }
.shc-tips-box li { margin-bottom: 2px; }

/* ========== 右栏：结果区 ========== */
.shc-result-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff9fb;
    min-width: 0;
}

.shc-result-header {
    padding: 10px 16px;
    border-bottom: 1px solid #f7c5d0;
    flex-shrink: 0;
    background: linear-gradient(to bottom, #fff0f3 0%, #ffe5ec 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shc-result-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #6b0f2a;
}

.shc-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.shc-result-song-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a0010;
}

.shc-result-mode-badge {
    background: #ffe5ec;
    color: #6b0f2a;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.shc-result-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}

.shc-result-body::-webkit-scrollbar { width: 5px; }
.shc-result-body::-webkit-scrollbar-track { background: transparent; }
.shc-result-body::-webkit-scrollbar-thumb { background: #f7c5d0; border-radius: 3px; }
.shc-result-body::-webkit-scrollbar-thumb:hover { background: #e8718a; }

/* 占位提示 */
.shc-result-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e8718a;
    text-align: center;
    padding: 40px;
    min-height: 180px;
}

.shc-placeholder-icon {
    font-size: 60px;
    margin-bottom: 14px;
    opacity: 0.75;
    animation: shcPlaceholderFloat 3s ease-in-out infinite;
}

@keyframes shcPlaceholderFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50%       { transform: translateY(-10px) rotate(5deg); }
}

.shc-placeholder-title {
    font-size: 16px;
    font-weight: 600;
    color: #a31c45;
    margin: 0 0 8px;
}

.shc-placeholder-desc {
    font-size: 13px;
    color: #e8718a;
    margin: 3px 0;
    line-height: 1.6;
}

/* 加载中 */
.shc-result-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 180px;
}

.shc-loading-notes {
    display: flex;
    gap: 10px;
    font-size: 24px;
}

.shc-loading-notes span {
    display: inline-block;
    animation: shcNoteBounce 1.3s ease-in-out infinite;
}

.shc-loading-notes span:nth-child(2) { animation-delay: 0.22s; }
.shc-loading-notes span:nth-child(3) { animation-delay: 0.44s; }
.shc-loading-notes span:nth-child(4) { animation-delay: 0.66s; }

@keyframes shcNoteBounce {
    0%, 80%, 100% { transform: scale(0.7) translateY(0); opacity: 0.5; }
    40%            { transform: scale(1.2) translateY(-8px); opacity: 1; }
}

.shc-loading-text {
    font-size: 13px;
    color: #a31c45;
    margin: 0;
    animation: shcBreathText 1.8s ease-in-out infinite;
}

@keyframes shcBreathText {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

/* ========== 结果内容（AI 生成的 HTML 样式） ========== */
.shc-result-content {
    animation: shcFadeInUp 0.35s ease;
    min-height: 0;
    padding-bottom: 8px;
}

@keyframes shcFadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 热评结果根容器 */
.shc-result-content .shc-result-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 单条热评卡片 */
.shc-result-content .shc-comment-item {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(163, 28, 69, 0.08);
    border: 1px solid #f7c5d0;
    transition: transform 0.2s, box-shadow 0.2s;
    align-items: flex-start;
    position: relative;  /* 单条复制按钮绝对定位基准 */
}

.shc-result-content .shc-comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(163, 28, 69, 0.14);
}

/* 头像 */
.shc-result-content .shc-avatar {
    font-size: 28px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff0f3 0%, #ffe5ec 100%);
    border-radius: 50%;
    border: 1.5px solid #f7c5d0;
    line-height: 1;
}

/* 评论主体 */
.shc-result-content .shc-comment-body {
    flex: 1;
    min-width: 0;
    transition: padding-right 0.18s ease;
}

.shc-result-content .shc-comment-item:hover .shc-comment-body {
    padding-right: 52px;
}

.shc-result-content .shc-comment-text {
    font-size: 14px;
    color: #1a0010;
    line-height: 1.85;
    margin-bottom: 10px;
    word-break: break-word;
}

.shc-result-content .shc-comment-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
}

.shc-result-content .shc-like {
    color: #e8718a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.shc-result-content .shc-time {
    color: #ccc;
    font-size: 11px;
}

/* 单条热评复制按钮 */
.shc-comment-copy-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 3px 9px;
    font-size: 10px;
    background: rgba(163, 28, 69, 0.07);
    border: 1px solid #f7c5d0;
    border-radius: 4px;
    color: #a31c45;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.18s, background 0.18s, color 0.18s;
    white-space: nowrap;
    line-height: 1.6;
    font-weight: 500;
}

.shc-result-content .shc-comment-item:hover .shc-comment-copy-btn { opacity: 1; }

.shc-comment-copy-btn:hover {
    background: #a31c45;
    color: #fff;
    border-color: #a31c45;
}

/* 深情长评模式 */
.shc-result-content .shc-deep-item {
    padding: 20px 22px;
    border-left: 4px solid #a31c45;
    background: linear-gradient(135deg, #fff 0%, #fff9fb 100%);
}

.shc-result-content .shc-avatar-deep {
    font-size: 32px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #ffe5ec 0%, #ffd4de 100%);
    border-color: #e8718a;
}

.shc-result-content .shc-deep-label {
    display: inline-block;
    background: linear-gradient(135deg, #a31c45 0%, #6b0f2a 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.shc-result-content .shc-deep-text {
    font-size: 14px;
    line-height: 2;
    color: #2c0a18;
}

.shc-result-content .shc-deep-text p {
    margin: 0 0 10px;
}

/* 进度条 */
#shcProgressBar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    display: none;
    background: linear-gradient(90deg, #ffd4de, #e8718a, #ffd4de);
    background-size: 200% 100%;
    animation: shcProgressShimmer 1.6s linear infinite;
    border-radius: 0 2px 2px 0;
    transition: width 0.25s ease, opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

@keyframes shcProgressShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 进度条完成态：绿色→青色渐变 + brightness 闪烁 */
#shcProgressBar.shc-progress-complete {
    background: linear-gradient(90deg, #52c41a, #13c2c2, #52c41a);
    background-size: 200% 100%;
    animation: shcProgressPulse 0.5s ease-in-out 2;
}

@keyframes shcProgressPulse {
    0%, 100% { filter: brightness(1); }
    50%       { filter: brightness(1.5); }
}

/* 错误提示容器 */
#shcResultError { flex: 1; display: flex; flex-direction: column; }

.shc-result-error {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    background: linear-gradient(135deg, #fff5f7 0%, #fff0f3 100%);
    border: 1px dashed #f7c5d0;
    border-radius: 10px;
}

.shc-result-error .error-icon  { font-size: 36px; margin-bottom: 10px; }
.shc-result-error .error-msg   { font-size: 14px; color: #6b0f2a; margin: 0 0 6px; font-weight: 600; }
.shc-result-error .error-tip   { font-size: 12px; color: #e8718a; margin: 0; }

.shc-retry-btn {
    margin-top: 12px;
    padding: 7px 20px;
    background: linear-gradient(135deg, #e8718a 0%, #a31c45 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(163, 28, 69, 0.35);
    display: inline-block;
}

.shc-retry-btn:hover {
    background: linear-gradient(135deg, #f7a8b8 0%, #cf4068 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(163, 28, 69, 0.45);
}

/* ========== 示例导入模态框 ========== */
.shc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    display: none;
}

.shc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
    width: 580px;
    max-width: 95vw;
    max-height: 90vh;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s cubic-bezier(.34, 1.4, .64, 1),
                transform 0.3s cubic-bezier(.34, 1.4, .64, 1);
}

.shc-modal.shc-entering {
    opacity: 0 !important;
    transform: translate(-50%, -54%) !important;
}

.shc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1a0010 0%, #6b0f2a 60%, #a31c45 100%);
    color: #fff;
    flex-shrink: 0;
}

.shc-modal-header h3 { margin: 0; font-size: 15px; font-weight: 700; }

.shc-modal-close {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.shc-modal-close:hover { background: rgba(255, 255, 255, 0.35); }

.shc-modal-body {
    overflow-y: auto;
    padding: 18px;
    -webkit-overflow-scrolling: touch;
}

.shc-modal-body::-webkit-scrollbar { width: 5px; }
.shc-modal-body::-webkit-scrollbar-track { background: transparent; }
.shc-modal-body::-webkit-scrollbar-thumb { background: #f7c5d0; border-radius: 3px; }
.shc-modal-body::-webkit-scrollbar-thumb:hover { background: #e8718a; }

.shc-example-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.shc-example-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #f7c5d0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff9fb;
}

.shc-example-card:hover {
    border-color: #e8718a;
    background: #fff0f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 28, 69, 0.15);
}

.shc-example-icon { font-size: 26px; flex-shrink: 0; }

.shc-example-info { flex: 1; min-width: 0; }

.shc-example-song {
    font-size: 15px;
    font-weight: 700;
    color: #1a0010;
    margin-bottom: 2px;
}

.shc-example-artist {
    font-size: 11px;
    color: #a31c45;
    margin-bottom: 3px;
}

.shc-example-style-badge {
    display: inline-block;
    font-size: 10px;
    background: #ffe5ec;
    color: #6b0f2a;
    padding: 1px 6px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-weight: 500;
}

.shc-example-desc {
    font-size: 11px;
    color: #a31c45;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== Toast 提示 ========== */
.shc-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(107, 15, 42, 0.93);
    color: #ffd4de;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.shc-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.shc-toast.warn {
    background: rgba(180, 90, 20, 0.93);
    color: #fde8c8;
}

/* ========== 暗黑模式（body.dark 前缀强制隔离） ========== */
body.dark .shc-container {
    background: #1a0010;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

body.dark .shc-toolbar {
    background: linear-gradient(135deg, #0a000a 0%, #2d0013 55%, #52001e 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

body.dark .shc-toolbar .toolbar-btn {
    background: rgba(232, 113, 138, 0.15);
    color: #e8718a;
    border: 1px solid rgba(232, 113, 138, 0.2);
}

body.dark .shc-toolbar .toolbar-btn:hover:not(:disabled) {
    background: rgba(232, 113, 138, 0.28);
    color: #ffd4de;
}

body.dark .shc-toolbar .toolbar-btn-primary {
    background: linear-gradient(135deg, #a31c45 0%, #6b0f2a 100%);
    color: #fff;
    border: none;
}

body.dark .shc-toolbar .toolbar-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #cf4068 0%, #a31c45 100%);
}

body.dark .shc-toolbar .toolbar-title { color: rgba(255, 212, 222, 0.9); }

body.dark .shc-main-content { background: #1a0010; }

/* 暗黑 - 左栏历史 */
body.dark .shc-history-panel {
    background: #220012;
    border-right-color: #3d0020;
}

body.dark .shc-history-header {
    background: linear-gradient(to bottom, #2d0018 0%, #220012 100%);
    border-bottom-color: #3d0020;
}

body.dark .shc-history-header h3 { color: #e8718a; }
body.dark .shc-history-count { color: #cf4068; }

body.dark .shc-history-clear-btn {
    background: #3d0020;
    color: #e8718a;
}

body.dark .shc-history-clear-btn:hover { background: #52002a; }

body.dark .shc-history-search { border-bottom-color: #3d0020; }

body.dark .shc-history-search input {
    background: #1a0010;
    border-color: #52002a;
    color: #ffd4de;
}

body.dark .shc-history-search input::placeholder { color: #a31c45; }

body.dark .shc-history-search input:focus {
    border-color: #e8718a;
    box-shadow: 0 0 0 2px rgba(232, 113, 138, 0.2);
}

body.dark .shc-history-list::-webkit-scrollbar-thumb { background: #52002a; }
body.dark .shc-history-list::-webkit-scrollbar-thumb:hover { background: #e8718a; }

body.dark .shc-history-item:hover {
    background: #2d0018;
    border-color: #52002a;
}

body.dark .shc-history-item.active {
    background: #3d0020;
    border-color: #52002a;
    border-left-color: #a31c45;
}

body.dark .shc-history-item-song { color: #ffd4de; }
body.dark .shc-history-item-artist { color: #e8718a; }
body.dark .shc-history-item-meta { color: #cf4068; }

body.dark .shc-history-item-type {
    background: #3d0020;
    color: #e8718a;
}

body.dark .shc-history-item-del { color: #52002a; }
body.dark .shc-history-item:hover .shc-history-item-del:hover {
    color: #e8718a;
    background: #3d0020;
}

body.dark .shc-history-empty { color: #8b4060; }

/* 暗黑 - 中栏输入 */
body.dark .shc-input-panel {
    background: #220012;
    border-right-color: #3d0020;
}

body.dark .shc-panel-header {
    background: linear-gradient(to bottom, #2d0018 0%, #220012 100%);
    border-bottom-color: #3d0020;
}

body.dark .shc-panel-header h3 { color: #e8718a; }
body.dark .shc-panel-tip { color: #a31c45; }

body.dark .shc-input-body::-webkit-scrollbar-thumb { background: #52002a; }

body.dark .shc-field-label { color: #e8718a; }
body.dark .shc-required { color: #cf4068; }
body.dark .shc-optional { color: #a31c45; }

body.dark .shc-search-input {
    background: #1a0010;
    border-color: #52002a;
    color: #ffd4de;
}

body.dark .shc-search-input:focus {
    border-color: #e8718a;
    box-shadow: 0 0 0 3px rgba(232, 113, 138, 0.2);
    background: #220012;
}

body.dark .shc-search-input::placeholder { color: #a31c45; }

body.dark .shc-search-btn {
    background: linear-gradient(135deg, #a31c45 0%, #6b0f2a 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

body.dark .shc-search-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #cf4068 0%, #a31c45 100%);
}

body.dark .shc-char-counter { color: #8b4060; }

body.dark .shc-artist-input {
    background: #1a0010;
    border-color: #52002a;
    color: #ffd4de;
}

body.dark .shc-artist-input:focus {
    border-color: #e8718a;
    box-shadow: 0 0 0 2px rgba(232, 113, 138, 0.15);
    background: #220012;
}

body.dark .shc-artist-input::placeholder { color: #8b4060; }

body.dark .shc-mode-label { color: #e8718a; }

body.dark .shc-mode-option {
    background: #1a0010;
    border-color: #52002a;
    color: #a31c45;
}

body.dark .shc-mode-option:hover {
    border-color: #e8718a;
    color: #ffd4de;
    background: #2d0018;
}

body.dark .shc-mode-option.selected {
    background: linear-gradient(135deg, #a31c45 0%, #6b0f2a 100%);
    border-color: #cf4068;
    color: #ffd4de;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

body.dark .shc-mode-hint { color: #cf4068; }
body.dark .shc-quick-label { color: #e8718a; }

body.dark .shc-quick-tag {
    background: #2d0018;
    border-color: #52002a;
    color: #ffd4de;
}

body.dark .shc-quick-tag:hover {
    background: #a31c45;
    border-color: #a31c45;
    color: #fff;
}

body.dark .shc-tips-box {
    background: linear-gradient(135deg, #220012 0%, #1a0010 100%);
    border-color: #3d0020;
    color: #a31c45;
}

/* 暗黑 - 右栏结果 */
body.dark .shc-result-panel { background: #1a0010; }
body.dark .shc-result-body  { background: #1a0010; }

body.dark .shc-result-header {
    background: linear-gradient(to bottom, #2d0018 0%, #220012 100%);
    border-bottom-color: #3d0020;
}

body.dark .shc-result-header h3 { color: #e8718a; }
body.dark .shc-result-song-label { color: #ffd4de; }

body.dark .shc-result-mode-badge {
    background: #3d0020;
    color: #e8718a;
}

body.dark .shc-result-body::-webkit-scrollbar-thumb { background: #52002a; }
body.dark .shc-result-body::-webkit-scrollbar-thumb:hover { background: #e8718a; }

body.dark .shc-placeholder-title { color: #cf4068; }
body.dark .shc-placeholder-desc  { color: #8b4060; }
body.dark .shc-loading-text       { color: #a31c45; }

/* 暗黑 - 热评卡片 */
body.dark .shc-result-content .shc-comment-item {
    background: #220012;
    border-color: #3d0020;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body.dark .shc-result-content .shc-comment-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

body.dark .shc-result-content .shc-avatar {
    background: linear-gradient(135deg, #2d0018 0%, #3d0020 100%);
    border-color: #52002a;
}

body.dark .shc-result-content .shc-comment-text { color: #ffd4de; }
body.dark .shc-result-content .shc-like         { color: #cf4068; }
body.dark .shc-result-content .shc-time         { color: #8b4060; }

body.dark .shc-result-content .shc-deep-item {
    background: linear-gradient(135deg, #220012 0%, #1a0010 100%);
    border-left-color: #a31c45;
    border-color: #3d0020;
}

body.dark .shc-result-content .shc-avatar-deep {
    background: linear-gradient(135deg, #3d0020 0%, #52002a 100%);
    border-color: #a31c45;
}

body.dark .shc-result-content .shc-deep-text { color: #ffd4de; }

body.dark .shc-comment-copy-btn {
    background: rgba(232, 113, 138, 0.1);
    border-color: #52002a;
    color: #e8718a;
}

body.dark .shc-result-content .shc-comment-item:hover .shc-comment-copy-btn { opacity: 1; }

body.dark .shc-comment-copy-btn:hover {
    background: #a31c45;
    color: #fff;
    border-color: #a31c45;
}

body.dark .shc-result-error {
    background: linear-gradient(135deg, #220012 0%, #1a0010 100%);
    border-color: #3d0020;
}

body.dark .shc-result-error .error-msg { color: #e8718a; }
body.dark .shc-result-error .error-tip { color: #8b4060; }

body.dark .shc-retry-btn {
    background: linear-gradient(135deg, #a31c45 0%, #6b0f2a 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

body.dark .shc-retry-btn:hover {
    background: linear-gradient(135deg, #cf4068 0%, #a31c45 100%);
}

/* 暗黑 - 模态框 */
body.dark .shc-modal {
    background: #220012;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

body.dark .shc-modal-header {
    background: linear-gradient(135deg, #0a000a 0%, #3d0020 100%);
}

body.dark .shc-example-card {
    background: #1a0010;
    border-color: #3d0020;
}

body.dark .shc-example-card:hover {
    border-color: #a31c45;
    background: #2d0018;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark .shc-example-song    { color: #ffd4de; }
body.dark .shc-example-artist  { color: #e8718a; }

body.dark .shc-example-style-badge {
    background: #3d0020;
    color: #e8718a;
}

body.dark .shc-example-desc { color: #a31c45; }

body.dark .shc-modal-body::-webkit-scrollbar { width: 4px; }
body.dark .shc-modal-body::-webkit-scrollbar-track { background: #1a0010; }
body.dark .shc-modal-body::-webkit-scrollbar-thumb { background: #52002a; border-radius: 2px; }

body.dark .shc-container select option {
    background: #220012;
    color: #ffd4de;
}

body.dark .shc-toast {
    background: rgba(10, 0, 10, 0.95);
    color: #e8718a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

body.dark .shc-toast.warn {
    background: rgba(120, 60, 10, 0.93);
    color: #fde8c8;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .shc-history-panel { width: 160px; }
    .shc-input-panel   { width: 230px; }
}

/* 移动端：触屏无 hover，复制按钮强制常显 */
@media (max-width: 768px) {
    .shc-comment-copy-btn { opacity: 1 !important; }
    .shc-result-content .shc-comment-item .shc-comment-body { padding-right: 52px; }
}

@media (max-width: 680px) {
    .shc-main-content { flex-direction: column; }
    .shc-history-panel {
        width: 100%;
        height: 140px;
        border-right: none;
        border-bottom: 1px solid #f7c5d0;
    }
    .shc-history-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        padding: 5px;
    }
    .shc-history-item {
        flex-shrink: 0;
        width: 130px;
    }
    .shc-input-panel  { width: 100%; border-right: none; max-height: 260px; }
    .shc-example-grid { grid-template-columns: 1fr; }
}
