/* Assets页面容器 - 参考Avatars页面间距 */
.assets-app {
    padding: 32px 40px;
    background: var(--bg-color);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Prevent pre-mount flash of Vue template blocks (especially modal right panel). */
.assets-app[v-cloak] .dh-modal,
.assets-app[v-cloak] .modal-info-panel {
    display: none !important;
}

.assets-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

/* 旧的bulk-toolbar样式已移至模板内联样式 */

.assets-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.assets-title h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #1f2933;
}

.assets-title p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Assets tabs + bulk toolbar (shared by /assets and SPA /workspace -> /assets) */
.assets-tabs-toolbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
    padding: 8px 0;
    background: rgba(244, 246, 251, 0.96);
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.assets-tabs-toolbar-container.scrolled {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.asset-tabs {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
}

.assets-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
}

.assets-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.assets-filter-button.active {
    background: rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: none;
    background: transparent;
    color: #667085;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    transition: color 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.tab-button:hover {
    color: #1f2937;
}

.tab-button.active {
    color: #0f172a;
}

.tab-button i {
    font-size: 16px;
    color: currentColor;
}

.tab-button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: #0f172a;
    border-radius: 999px;
}

.assets-bulk-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-close-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.btn-close-selection:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: scale(1.05);
}

.btn-close-selection i {
    font-size: 14px;
}

.bulk-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1890ff;
    padding: 6px 12px;
    background: rgba(24, 144, 255, 0.1);
    border-radius: 6px;
}

.bulk-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    white-space: nowrap;
}

.btn-sm i {
    font-size: 13px;
    margin-right: 4px;
}

.assets-usage-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #eef2f7;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    color: #5b6b7c;
    margin: 2px 0 6px;
}

.core-assets-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.core-assets-list,
.core-asset-detail {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 12px;
    padding: 18px;
}

.core-assets-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.core-asset-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
    color: #475467;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.core-asset-filter-chip.active {
    color: #0f172a;
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
}

.core-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.core-asset-card,
.core-asset-upload-card {
    min-height: 230px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.core-asset-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.core-asset-card.active,
.core-asset-card:hover {
    border-color: rgba(59, 130, 246, 0.78);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.24);
}

.core-asset-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: rgba(15, 23, 42, 0.06);
    color: #94a3b8;
    font-size: 34px;
}

.core-asset-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.core-asset-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.core-asset-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.core-asset-title-row strong {
    min-width: 0;
    font-size: 15px;
    line-height: 1.3;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.core-asset-edit,
.core-detail-edit {
    border: none;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
    padding: 2px;
}

.core-asset-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.core-asset-tags span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(15, 23, 42, 0.07);
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.core-asset-tags .core-asset-type {
    background: rgba(59, 130, 246, 0.13);
    color: #1d4ed8;
}

.core-asset-stats {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.core-asset-upload-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-style: dashed;
    color: #667085;
}

.core-asset-upload-card i {
    font-size: 26px;
}

.core-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.core-detail-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 22px;
    color: #111827;
}

.core-detail-head p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.core-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.core-detail-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.core-detail-section h3 {
    margin: 0;
    font-size: 14px;
    color: #667085;
}

.core-correction-panel {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.025);
    padding: 14px;
}

.core-correction-grid {
    display: grid;
    grid-template-columns: minmax(130px, 180px) minmax(160px, 1fr) minmax(160px, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.core-correction-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.core-correction-field span {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.core-correction-field input,
.core-correction-field select {
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: #111827;
    font-size: 13px;
    padding: 8px 10px;
    outline: none;
}

.core-correction-field input:focus,
.core-correction-field select:focus {
    border-color: rgba(59, 130, 246, 0.78);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.core-reference-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.core-reference-thumb,
.core-reference-add {
    width: 84px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.06);
}

.core-reference-thumb img,
.core-generated-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.core-reference-add {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    color: #94a3b8;
}

.core-generated-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.core-generated-card {
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.06);
}

.core-detail-empty {
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    padding: 24px;
    color: #667085;
    background: rgba(15, 23, 42, 0.03);
}

html[data-theme="dark"] .core-assets-list,
html[data-theme="dark"] .core-asset-detail {
    background: rgba(17, 17, 17, 0.82);
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .core-asset-card,
html[data-theme="dark"] .core-asset-upload-card,
html[data-theme="dark"] .core-reference-thumb,
html[data-theme="dark"] .core-generated-card,
html[data-theme="dark"] .core-asset-cover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .core-asset-title-row strong,
html[data-theme="dark"] .core-detail-head h2 {
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .core-detail-head p,
html[data-theme="dark"] .core-asset-stats,
html[data-theme="dark"] .core-detail-section h3,
html[data-theme="dark"] .core-detail-empty {
    color: rgba(209, 213, 219, 0.72);
}

html[data-theme="dark"] .core-asset-filter-chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.22);
    color: rgba(229, 231, 235, 0.72);
}

html[data-theme="dark"] .core-asset-filter-chip.active {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.7);
    color: rgba(255, 255, 255, 0.94);
}

html[data-theme="dark"] .core-detail-empty {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .core-correction-panel {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .core-correction-field input,
html[data-theme="dark"] .core-correction-field select {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.24);
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
    .core-correction-grid {
        grid-template-columns: 1fr;
    }
}

.assets-usage-hint i {
    color: #1890ff;
    font-size: 14px;
}

.brand-kit-page {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1180px);
    gap: 24px;
    align-items: start;
}

.brand-kit-sidebar,
.brand-kit-editor {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.brand-kit-sidebar {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 420px;
}

.brand-kit-sidebar-head,
.brand-kit-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.brand-kit-sidebar h2,
.brand-kit-editor h2 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.brand-kit-sidebar p,
.brand-kit-editor p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.brand-kit-new-btn {
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #f8fafc;
    color: #111827;
    border-radius: 6px;
    padding: 8px 10px;
    font-weight: 700;
    cursor: pointer;
}

.brand-kit-list-empty {
    padding: 28px 12px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    text-align: center;
    font-size: 13px;
}

.brand-kit-list-item {
    width: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    text-align: left;
}

.brand-kit-list-item:hover,
.brand-kit-list-item.active {
    background: #f4f7fb;
    border-color: rgba(15, 23, 42, 0.08);
}

.brand-kit-list-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb center/cover no-repeat;
    color: #6b7280;
}

.brand-kit-list-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-kit-list-main strong,
.brand-kit-list-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-kit-list-main strong {
    color: #111827;
    font-size: 14px;
}

.brand-kit-list-main small {
    color: #6b7280;
    font-size: 12px;
}

.brand-kit-default-pill {
    border-radius: 999px;
    background: #e8ff6f;
    color: #2f3b00;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
}

.brand-kit-editor {
    padding: 24px;
    width: 100%;
    max-width: 1180px;
}

.brand-kit-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.brand-kit-modules {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 20px;
}

.brand-kit-module {
    padding: 8px;
    text-align: center;
    min-height: 104px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    position: relative;
    font-size: 13px;
    font-weight: 700;
}

.brand-kit-module i {
    font-size: 28px;
    color: #6b7280;
}

.brand-kit-module-logo {
    background: #e8ff6f;
    color: #445200;
}

.brand-kit-module-logo i {
    color: #637000;
}

.brand-kit-module-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
}

.brand-kit-module-type {
    background: #202020;
    color: #f3f4f6;
}

.brand-kit-module-type strong {
    font-family: Georgia, serif;
    font-size: 42px;
    line-height: 1;
}

.brand-kit-module-colors {
    flex-direction: row;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.brand-kit-module-colors .swatch {
    width: 28%;
    align-self: stretch;
    background: #f2f2f2;
}

.brand-kit-module-colors .swatch.dark {
    background: #242424;
}

.brand-kit-module-colors .swatch.lime {
    background: #dfff47;
}

.brand-kit-module-colors em {
    position: absolute;
    left: 10px;
    bottom: 8px;
    font-style: normal;
    color: #111827;
}

.brand-kit-module-model {
    background: linear-gradient(135deg, #0f766e, #f97316);
    color: #ffffff;
}

.brand-kit-module-model i {
    color: #ffffff;
}

.brand-kit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.brand-kit-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.brand-kit-field.is-wide,
.brand-kit-check {
    grid-column: 1 / -1;
}

.brand-kit-field span,
.brand-kit-check span {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.brand-kit-field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.brand-kit-field-head small {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.brand-kit-field input,
.brand-kit-field textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
    resize: vertical;
}

.brand-kit-field input:focus,
.brand-kit-field textarea:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.brand-kit-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-kit-check input {
    width: 16px;
    height: 16px;
}

.brand-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
}

.brand-asset-grid.is-images {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}

.brand-asset-upload,
.brand-asset-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    min-height: 92px;
    overflow: hidden;
}

.brand-asset-upload {
    border: 1px dashed rgba(15, 23, 42, 0.22);
    background: #f8fafc;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.brand-asset-upload:hover {
    border-color: #111827;
    color: #111827;
}

.brand-asset-upload.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.brand-asset-upload input {
    display: none;
}

.brand-asset-thumb {
    position: relative;
    background: #f3f4f6;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.brand-asset-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-asset-grid.is-images .brand-asset-thumb img {
    object-fit: cover;
}

.brand-asset-thumb button {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.brand-color-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    padding: 5px 9px 5px 5px;
    font-size: 12px;
    cursor: pointer;
}

.brand-color-chip span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.brand-color-chip strong {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.brand-color-chip i {
    color: #6b7280;
    font-size: 11px;
}

.brand-color-add {
    display: grid;
    grid-template-columns: 52px minmax(160px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.brand-color-add input[type="color"] {
    width: 52px;
    height: 42px;
    padding: 4px;
    border-radius: 8px;
    cursor: pointer;
}

.brand-color-add .btn {
    height: 42px;
    white-space: nowrap;
}

html[data-theme="dark"] .brand-kit-sidebar,
html[data-theme="dark"] .brand-kit-editor {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: none;
}

html[data-theme="dark"] .brand-kit-sidebar h2,
html[data-theme="dark"] .brand-kit-editor h2,
html[data-theme="dark"] .brand-kit-list-main strong,
html[data-theme="dark"] .brand-kit-field span,
html[data-theme="dark"] .brand-kit-check span {
    color: #f8fafc;
}

html[data-theme="dark"] .brand-kit-sidebar p,
html[data-theme="dark"] .brand-kit-editor p,
html[data-theme="dark"] .brand-kit-list-main small {
    color: #94a3b8;
}

html[data-theme="dark"] .brand-kit-new-btn,
html[data-theme="dark"] .brand-kit-list-empty,
html[data-theme="dark"] .brand-kit-list-item:hover,
html[data-theme="dark"] .brand-kit-list-item.active {
    background: rgba(148, 163, 184, 0.12);
    color: #f8fafc;
}

html[data-theme="dark"] .brand-kit-field input,
html[data-theme="dark"] .brand-kit-field textarea {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.22);
    color: #f8fafc;
}

html[data-theme="dark"] .brand-kit-field-head small {
    color: #94a3b8;
}

html[data-theme="dark"] .brand-asset-upload,
html[data-theme="dark"] .brand-asset-thumb,
html[data-theme="dark"] .brand-color-chip {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.24);
    color: #f8fafc;
}

@media (max-width: 1180px) {
    .brand-kit-page {
        grid-template-columns: 1fr;
    }

    .brand-kit-sidebar {
        min-height: 0;
    }

    .brand-kit-modules {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .brand-kit-editor,
    .brand-kit-sidebar {
        padding: 14px;
    }

    .brand-kit-editor-head,
    .brand-kit-sidebar-head {
        flex-direction: column;
    }

    .brand-kit-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .brand-kit-modules,
    .brand-kit-form {
        grid-template-columns: 1fr;
    }

    .brand-kit-module {
        min-height: 84px;
    }

    .brand-color-add {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .brand-color-add .btn {
        grid-column: 1 / -1;
    }
}

html[data-theme="dark"] .assets-tabs-toolbar-container {
    background: rgba(16, 16, 16, 0.9);
    box-shadow: none;
}

html[data-theme="dark"] .assets-tabs-toolbar-container.scrolled {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .tab-button {
    color: #94a3b8;
}

html[data-theme="dark"] .tab-button:hover {
    color: #e2e8f0;
}

html[data-theme="dark"] .tab-button.active {
    color: #f8fafc;
}

html[data-theme="dark"] .tab-button.active::after {
    background: #f8fafc;
}

html[data-theme="dark"] .assets-filter-toggle {
    background: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .assets-filter-button {
    color: #94a3b8;
}

html[data-theme="dark"] .assets-filter-button.active {
    background: rgba(148, 163, 184, 0.2);
    color: #f8fafc;
}

html[data-theme="dark"] .assets-usage-hint {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5f5;
}

html[data-theme="dark"] .assets-usage-hint i {
    color: #7dd3fc;
}

html[data-theme="dark"] .dh-modal {
    background: rgba(4, 6, 22, 0.75);
}

@media (max-width: 768px) {
    .assets-tabs-toolbar-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 8px 0;
    }

    .asset-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        border-radius: 0;
    }

    .asset-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        padding: 8px 4px;
        font-size: 14px;
    }

    .tab-button span {
        display: none;
    }

    .tab-button i {
        font-size: 18px;
    }

    .assets-bulk-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .bulk-action-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .btn-sm span {
        display: none;
    }

    .assets-usage-hint {
        font-size: 12px;
        padding: 6px 10px;
    }
}

.assets-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.assets-filter-button.is-disabled {
    opacity: 0.55;
    cursor: pointer;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.filter-input,
.filter-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.filter-actions {
    display: flex;
    align-items: flex-end;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #1890ff;
    color: #fff;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-default {
    background: #fff;
    color: #666;
    border: 1px solid #d9d9d9;
}

.btn-default:hover {
    background: #f5f5f5;
    color: #1890ff;
    border-color: #1890ff;
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
}

.btn-danger:hover {
    background: #ff7875;
}

/* 资产内容区域 */
.assets-content {
    min-height: 400px;
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 20px;
    box-shadow: none;
    position: relative;
}

.assets-content.selection-mode {
    user-select: none;
}

/* 空白区域始终显示可拖动光标（改进：无需进入选择模式） */
.assets-grid {
    cursor: default;
}

/* 资产卡片上显示指针 */
.asset-card {
    cursor: pointer;
}

/* 选择模式下的光标样式 */
.assets-content.selection-mode .assets-grid {
    cursor: crosshair;
}

.assets-content.selection-mode .asset-card {
    cursor: pointer;
}

/* 拖动选择时的光标 */
.assets-content.dragging,
.assets-content.dragging * {
    cursor: crosshair !important;
}

/* 选中卡片的视觉反馈增强 */
.asset-card.selected {
    animation: card-select 0.2s ease-out;
}

@keyframes card-select {
    0% {
        transform: scale(0.98);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.loading-state {
    display: block;
    height: auto;
}

.assets-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 0 0 0 24px;
    margin-bottom: 30px;
}

.skeleton-card {
    background: #f7f9fc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.skeleton-block {
    position: relative;
    background: #e9edf5;
    overflow: hidden;
}

.skeleton-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(233, 237, 245, 0) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(233, 237, 245, 0) 60%);
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton-media {
    aspect-ratio: 9/16;
}

.skeleton-line {
    height: 10px;
    border-radius: 999px;
    margin: 10px 12px 0;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.tiny {
    width: 40%;
    margin-bottom: 12px;
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-60%);
    }
    100% {
        transform: translateX(60%);
    }
}

/* 视频预览模态框 - 使用base.html风格 */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}
/* 图片预览弹窗采用更黑的背景 */
.image-preview-modal.video-modal {
    background-color: rgba(0, 0, 0, 0.9);
}

/* ===== 资产弹窗样式 - 匹配 image_edit 页面风格 ===== */
.dh-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.dh-modal-content {
    background: #0f1116;
    border-radius: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: none;
    border: none;
}

/* SPA safety: keep assets preview modal fullscreen even when other pages define .dh-modal*. */
.assets-app .dh-modal {
    position: fixed;
    inset: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.assets-app .dh-modal-content {
    background: #0f1116;
    border-radius: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: none;
    border: none;
}

.assets-app .dh-modal-close-top-right {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
}

.assets-app .dh-modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 10px 16px 16px;
    background: #0b0c10;
}

.assets-app .dh-modal-main {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 24px;
    position: relative;
}

.assets-app .modal-media-column {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: calc(100vh - 80px);
    padding: 10px;
    background: transparent;
    border-radius: 0;
}

.assets-app .modal-info-panel {
    flex: 0 0 260px;
    align-self: flex-start;
    padding: 16px 20px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
    max-height: calc(100% - 32px);
    overflow-y: auto;
    background: transparent;
}

.assets-app .dh-modal-footer {
    position: absolute;
    right: 24px;
    bottom: 32px;
    left: auto;
    transform: none;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    max-width: calc(100% - 48px);
    z-index: 4;
}

html[data-theme="dark"] .assets-app .dh-modal {
    background: rgba(4, 6, 22, 0.75);
}
/* 视频弹窗内容去掉白底/边框/阴影 */
.video-modal .video-modal-content { background: transparent; border: none; box-shadow: none; }

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* 去掉所有弹窗标题区域显示 */
.video-modal .video-modal-header,
.video-modal .video-modal-title { display: none; }

.video-modal-title {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.dh-modal-close {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    color: #cbd5e1;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.dh-modal-close-top-right {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    font-size: 18px;
}

.dh-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dh-modal-close-top-right:hover {
    background: rgba(59, 130, 246, 0.85);
    color: #fff;
}

.video-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #000;
}
/* 图片预览主体使用黑色背景 */
.image-preview-modal .video-modal-body {
    background: transparent;
}

.dh-modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 10px 16px 16px;
    background: #0b0c10;
}

.dh-modal-main {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 24px;
    position: relative;
}

.modal-media-column {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: calc(100vh - 80px);
    padding: 10px;
    background: transparent;
    border-radius: 0;
}

/* 右侧信息面板 */
.modal-info-panel {
    flex: 0 0 260px;
    align-self: flex-start;
    padding: 16px 20px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
    max-height: calc(100% - 32px);
    overflow-y: auto;
    background: transparent;
}

.modal-info-section {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.modal-info-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-info-row:first-child {
    border-top: 0;
    padding-top: 4px;
}

.modal-info-row:last-child {
    padding-bottom: 4px;
}

.modal-info-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
}

.modal-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    text-align: right;
    word-break: break-word;
}

.modal-script-column {
    flex: 0 0 260px;
    align-self: flex-start;
    padding: 16px 20px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: calc(100% - 32px);
    overflow-y: auto;
    background: transparent;
    border: none;
    border-radius: 0;
}

@media (max-width: 1024px) {
    .dh-modal-main {
        flex-direction: column;
        gap: 14px;
    }
    .modal-media-column {
        max-height: 50vh;
    }
    .modal-script-column {
        flex: 0 0 auto;
        max-height: 200px;
        padding: 12px 0 0 0;
    }
}

.video-section {
    flex: 1;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.video-section video {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.dh-modal video {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.script-section {
    padding: 0;
    background: transparent;
    border-top: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* 黑色主题下的文案区域（视频/图片弹窗统一深色） */
.video-modal .script-section,
.image-preview-modal .script-section {
    background: transparent;
    border-top: none;
}

.script-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}
.video-modal .script-section h3,
.image-preview-modal .script-section h3 { color: #000; }

.script-section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.script-title {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 768px) {
    .script-section {
        padding: 15px;
    }
}

.script-content {
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #595959;
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}
.video-modal .script-content,
.image-preview-modal .script-content {
    color: #000;
    background: transparent;
    border: none;
}

/* 模态框文案区域头部 */
.modal-section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 600;
    flex-wrap: nowrap;
}

.modal-section-title {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    white-space: nowrap;
}

.modal-section-title i {
    font-size: 12px;
}

.modal-copy-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.modal-copy-btn i {
    font-size: 11px;
}

.modal-copy-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.4);
}

.modal-script-column .script-content {
    flex: 1;
    overflow: auto;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #e2e8f0;
    min-height: 80px;
    max-height: 300px;
    word-break: break-word;
}
.modal-script-column .script-content::-webkit-scrollbar {
    width: 6px;
}
.modal-script-column .script-content::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

/* Dark mode: assets modal - 弹窗本身已是暗色主题，无需额外调整 */
html[data-theme="dark"] .dh-modal-content {
    background: #0f1116;
    color: #e2e8f0;
    box-shadow: none;
}

html[data-theme="dark"] .dh-modal {
    background: rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .video-modal,
html[data-theme="dark"] .image-preview-modal.video-modal {
    background-color: rgba(0, 0, 0, 0.88);
}

html[data-theme="dark"] .video-modal-header {
    background: #131517;
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

html[data-theme="dark"] .dh-modal-close {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

html[data-theme="dark"] .dh-modal-close:hover {
    background: rgba(148, 163, 184, 0.22);
    color: #fff;
}

html[data-theme="dark"] .modal-script-column {
    background: transparent;
    border-color: transparent;
}

html[data-theme="dark"] .script-section h3,
html[data-theme="dark"] .video-modal .script-section h3,
html[data-theme="dark"] .image-preview-modal .script-section h3 {
    color: #e2e8f0;
}

html[data-theme="dark"] .script-title {
    color: #94a3b8;
}

html[data-theme="dark"] .script-content,
html[data-theme="dark"] .video-modal .script-content,
html[data-theme="dark"] .image-preview-modal .script-content {
    color: #e2e8f0;
    background: transparent;
    border-color: rgba(148, 163, 184, 0.15);
}

html[data-theme="dark"] .modal-script-column .script-content {
    background: #0f141b;
    border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .modal-script-column .script-content::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
}

/* ===== dh-btn 基础按钮样式 ===== */
.dh-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dh-btn-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.25);
}

.dh-btn-secondary {
    background: #f1f5f9;
    color: #0f172a;
}

.dh-btn-default {
    background: #f1f5f9;
    color: #0f172a;
}

.dh-btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* 弹窗打开时隐藏 Crisp 聊天按钮 */
body.dh-modal-open #crisp-chatbox,
body.dh-modal-open .crisp-client {
    display: none !important;
}

/* ===== 资产弹窗底部按钮 - 匹配 image_edit 页面风格 ===== */
.dh-modal-footer {
    position: absolute;
    right: 24px;
    bottom: 32px;
    left: auto;
    transform: none;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    max-width: calc(100% - 48px);
    z-index: 4;
}

.dh-modal-footer .dh-btn {
    padding: 8px 14px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.7);
    white-space: nowrap;
}

.dh-modal-footer .dh-btn:hover {
    background: rgba(59, 130, 246, 0.32);
    color: #fff;
    transform: translateY(-1px);
}

.dh-modal-footer .dh-btn-primary {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(99, 102, 241, 0.95));
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.dh-modal-footer .dh-btn-primary:hover {
    background: linear-gradient(135deg, rgba(79, 150, 255, 0.98), rgba(119, 122, 255, 0.98));
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.4);
}

.dh-modal-footer .dh-btn-default {
    background: rgba(30, 41, 59, 0.8);
}

.dh-modal-footer .dh-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.dh-modal-footer .dh-btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

html[data-theme="dark"] .dh-modal-footer {
    background: transparent;
    border-top: none;
}

html[data-theme="dark"] .dh-modal-footer .dh-btn {
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
}

html[data-theme="dark"] .dh-modal-footer .dh-btn:hover {
    background: rgba(59, 130, 246, 0.32);
    color: #fff;
}

/* ===== 资产弹窗移动端响应式 ===== */
@media (max-width: 768px) {
    .dh-modal-content {
        border-radius: 0;
    }

    .dh-modal-body {
        padding: 12px;
        padding-bottom: 80px; /* 为底部固定按钮留空间 */
    }

    .dh-modal-main {
        flex-direction: column;
        gap: 12px;
    }

    .modal-media-column {
        padding: 10px 0;
        min-height: auto;
        flex: 1;
    }

    .modal-script-column {
        flex: 0 0 auto;
        max-height: 120px;
        padding: 8px 0;
    }

    /* 移动端图片/视频尺寸适配 */
    .dh-modal .image-section,
    .dh-modal .video-section {
        width: 100%;
        height: auto;
    }

    .dh-modal .image-section .preview-image,
    .dh-modal .preview-image {
        max-width: calc(100vw - 24px) !important;
        max-height: 55vh;
        width: auto;
        height: auto;
        border-radius: 8px;
    }

    .dh-modal video,
    .video-section video {
        max-width: calc(100vw - 24px);
        max-height: 55vh;
        border-radius: 8px;
    }

    /* 隐藏右侧信息面板 */
    .modal-info-panel {
        display: none;
    }

    .dh-modal-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        padding: 12px 16px;
        background: rgba(15, 17, 22, 0.95);
        border-radius: 0;
        backdrop-filter: blur(10px);
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
    }

    .dh-modal-footer .dh-btn {
        padding: 10px 12px;
        font-size: 11px;
    }

    .dh-modal-footer .dh-btn-primary {
        padding: 10px 16px;
    }

    .dh-modal-close-top-right {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* 资产弹窗图片区域 */
.dh-modal .image-section {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.dh-modal .image-section .preview-image,
.dh-modal .preview-image {
    max-width: calc(100vw - 360px);
    max-height: calc(100vh - 100px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* 当没有文案面板时，图片可以更大 */
.dh-modal .modal-media-column:only-child .image-section .preview-image {
    max-width: calc(100vw - 80px);
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-section:hover .video-controls {
    opacity: 1;
}

.action-buttons {
    padding: 16px 0 0 0;
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.action-buttons .btn {
    min-width: 100px;
    padding: 8px 16px;
}

@media (min-width: 769px) {
    .action-buttons {
        padding: 16px 0 0 0;
        background: none;
        border-top: none;
        justify-content: flex-start;
    }
}

.video-loading,
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}

.video-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-loading .loading-spinner {
    margin-bottom: 0;
}

.video-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.time-display {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 4px;
}

.pagination {
    margin-top: 24px;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
}

.loading-more {
    display: flex;
    justify-content: center;
    padding: 10px 0 2px;
}

.loading-more-skeleton {
    width: min(240px, 70%);
    height: 12px;
    border-radius: 999px;
    background: #e9edf5;
}

/* 资产网格样式 */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px; /* 保持原来的卡片间距 */
    margin-bottom: 30px;
    padding: 0 0 0 24px; /* 只增加左侧24px空白，其他不变 */
    min-height: 100px; /* 确保有足够的空白空间 */
}

.asset-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.asset-card .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.asset-card:hover .play-overlay {
    opacity: 1;
}

.asset-card .play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.asset-card:hover .play-icon {
    transform: scale(1);
}

.asset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.asset-video {
    position: relative;
    aspect-ratio: 9/16;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f5f5f5;
    object-position: center;
}

.asset-video img {
    width: 100%;
    height: 100%;
    /* 保持等比显示，避免被裁剪 */
    object-fit: contain;
    background: #f5f5f5;
    object-position: center;
}

.asset-thumbnail {
    position: relative;
    aspect-ratio: 9/16;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f5f5f5;
    object-position: center;
}

.asset-thumbnail .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-card:hover .play-overlay {
    opacity: 1;
}

.asset-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.asset-info {
    padding: 16px;
}

.asset-script {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.asset-actions {
    display: flex;
    gap: 8px;
}

.asset-actions .btn {
    font-size: 12px;
    padding: 6px 12px;
}

.asset-title {
    font-size: 14px;
    font-weight: 500;
    color: #262626;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.asset-type {
    background: #f0f8ff;
    color: #1890ff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.asset-size {
    font-size: 12px;
    color: #666;
}

.asset-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.asset-actions {
    display: flex;
    gap: 8px;
}

.asset-action-btn {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.asset-action-btn:hover {
    background: #f5f5f5;
    color: #1890ff;
    border-color: #1890ff;
}

.asset-action-btn.danger:hover {
    background: #fff2f0;
    color: #ff4d4f;
    border-color: #ff4d4f;
}

/* 空状态样式 */
.empty-assets {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-assets .empty-icon {
    font-size: 64px;
    color: #d9d9d9;
    margin-bottom: 16px;
}

.empty-assets h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #666;
}

.empty-assets p {
    margin: 0 0 24px 0;
    color: #999;
}

.empty-assets .btn {
    padding: 10px 20px;
}

/* 资产错误状态 */
.asset-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #ff4d4f;
    background: #fff2f0;
}

.asset-error i {
    font-size: 24px;
    margin-bottom: 8px;
}

/* 搜索无结果 */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results i {
    font-size: 48px;
    color: #d9d9d9;
    margin-bottom: 16px;
}

/* 资产选择状态 */
.asset-card.selected {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.asset-card .selection-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    width: 22px;
    height: 22px;
    background: rgba(15, 23, 42, 0.45);
    border-radius: 6px;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.asset-card .selection-indicator i {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.assets-content.selection-mode .asset-card .selection-indicator {
    opacity: 1;
}

.asset-card.selected .selection-indicator {
    opacity: 1;
    background: #1890ff;
}

.asset-card.selected .selection-indicator i {
    opacity: 1;
}

.selection-rect {
    position: absolute;
    border: 2px solid #1890ff;
    background: rgba(24, 144, 255, 0.15);
    border-radius: 4px;
    pointer-events: none;
    z-index: 50;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5),
                0 4px 12px rgba(24, 144, 255, 0.3);
    animation: selection-pulse 0.3s ease-out;
}

@keyframes selection-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 选择框提示信息 */
.selection-rect::after {
    content: '释放鼠标完成选择';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(24, 144, 255, 0.95);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端隐藏框选提示，因为移动端不支持拖动框选 */
    .bulk-hint {
        display: none;
    }

    /* 移动端选择框提示文字简化 */
    .selection-rect::after {
        content: '释放选择';
        font-size: 11px;
        padding: 3px 8px;
    }

    /* 移动端减少内边距，节省空间 */
    .assets-grid {
        padding: 0 0 0 16px; /* 移动端左侧16px */
        gap: 12px; /* 移动端卡片间距12px */
    }

    .assets-date-group {
        padding: 0 0 0 16px; /* 与网格对齐 */
    }

    .assets-app {
        padding: 20px 16px;
        gap: 20px;
    }

    .assets-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .assets-title h1 {
        font-size: 24px;
    }

    .assets-filters {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .assets-content {
        padding: 20px;
    }

    .asset-video,
    .asset-thumbnail,
    .skeleton-media {
        aspect-ratio: 5/6;
    }

    .video-modal-body {
        grid-template-columns: 1fr;
        height: auto;
    }

    .video-section {
        height: 50vh;
    }

    .action-buttons .btn {
        min-width: auto;
    }
}

/* 图片预览模态框专用样式 */
.image-preview-modal .image-modal-content {
    max-width: 90vw;
    width: auto;
    /* 让内容尽可能利用视口高度，便于图片等比完整显示 */
    margin: 10px auto;
    height: calc(100vh - 20px);
    max-height: none;
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent; /* 去除白色背景 */
    border: none;            /* 去除白色边框 */
    box-shadow: none;        /* 去除阴影边框效果 */
}

.image-preview-modal .image-modal-body {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    min-height: 0; /* 避免压缩容器导致图片显示不全 */
    height: 100%;
    max-height: none;
    overflow: visible;
}

.image-preview-modal .image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    margin-bottom: 12px;
    /* 让图片按容器大小等比缩放，而不是强行铺满 */
    overflow: hidden;
    background: transparent;
}

.image-preview-modal .preview-image {
    /* 关键：仅用最大宽高限制，保持等比缩放 */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    box-shadow: none;
    background: transparent;
    display: block;
}

/* 移除图片预览的标题占位，仅保留关闭按钮 */
.image-preview-modal .video-modal-title { display: none; }
.image-preview-modal .video-modal-header { display: none; }

/* 新增样式 - 生成动画和状态显示 */
.generating-overlay,
.waiting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.waiting-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.water-column {
    width: 40px;
    height: 60px;
    border: 2px solid rgba(24, 144, 255, 0.8);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.water-level {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(24, 144, 255, 0.6) 0%, rgba(24, 144, 255, 0.9) 100%);
    transition: height 0.3s ease;
    border-radius: 0 0 16px 16px;
}

.water-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.water-stream {
    width: 2px;
    height: 10px;
    background: linear-gradient(180deg, rgba(24, 144, 255, 0.8) 0%, transparent 100%);
    margin-top: 2px;
    animation: stream 1.5s ease-in-out infinite;
}

@keyframes stream {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

.water-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.finalizing-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-align: center;
    margin-top: 4px;
}

.asset-progress {
    margin-top: 8px;
    width: 100%;
    max-width: 120px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1890ff 0%, #40a9ff 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-text {
    color: #fff;
    font-size: 11px;
    text-align: center;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.new-asset-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.asset-status {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.asset-status-warning {
    background: rgba(250, 173, 20, 0.1);
    color: #faad14;
    border: 1px solid rgba(250, 173, 20, 0.2);
}

.asset-status-success {
    background: rgba(82, 196, 26, 0.1);
    color: #52c41a;
    border: 1px solid rgba(82, 196, 26, 0.2);
}

.asset-status-error {
    background: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
    border: 1px solid rgba(255, 77, 79, 0.2);
}

.uploading-final .water-column.full .water-level {
    background: linear-gradient(180deg, rgba(82, 196, 26, 0.8) 0%, rgba(82, 196, 26, 1) 100%);
}

.uploading-final .water-text {
    color: #52c41a;
}

.assets-date-group {
    margin-bottom: 32px;
    padding: 0 0 0 24px; /* 只增加左侧内边距，与网格左对齐 */
}

.date-header {
    margin-bottom: 20px;
    padding: 8px 0; /* 轻微增加上下内边距 */
    cursor: default; /* 日期标题区域也可以框选 */
}

.date-title {
    font-size: 20px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 8px 0;
}

.date-divider {
    height: 1px;
    background: linear-gradient(90deg, #e8e8e8 0%, transparent 100%);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 64px;
    color: #d9d9d9;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #666;
}

.empty-state p {
    margin: 0 0 24px 0;
    color: #999;
}

.empty-state a {
    color: #1890ff;
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

.asset-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(24, 144, 255, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    z-index: 2;
}

.asset-quick-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
    z-index: 4;
}

.asset-favorite-toggle {
    position: absolute;
    top: 44px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    z-index: 4;
}

.asset-card:hover .asset-favorite-toggle {
    opacity: 1;
    transform: translateY(0);
}

.asset-team-toggle {
    position: absolute;
    top: 80px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    z-index: 4;
}

.asset-card:hover .asset-team-toggle {
    opacity: 1;
    transform: translateY(0);
}

.asset-team-toggle.is-disabled,
.asset-card:hover .asset-team-toggle.is-disabled {
    opacity: 0.75;
    transform: none;
    background: rgba(15, 23, 42, 0.55);
    color: #94a3b8;
    cursor: pointer;
}

.asset-team-toggle.active {
    background: rgba(56, 189, 248, 0.9);
    color: #0f172a;
}

.asset-team-toggle:hover {
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
}

.asset-team-toggle.active:hover {
    background: rgba(14, 165, 233, 0.95);
    color: #0f172a;
}

.asset-team-toggle:focus {
    outline: none;
}

.asset-team-toggle:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.75);
    outline-offset: 2px;
}

.asset-favorite-toggle.active {
    background: rgba(234, 179, 8, 0.92);
    color: #1f2937;
}

.asset-favorite-toggle:hover {
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
}

.asset-favorite-toggle.active:hover {
    background: rgba(202, 138, 4, 0.95);
    color: #111827;
}

.asset-favorite-toggle:focus {
    outline: none;
}

.asset-favorite-toggle:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.75);
    outline-offset: 2px;
}

.asset-card:hover .asset-quick-delete {
    opacity: 1;
    transform: translateY(0);
}

.asset-quick-delete:hover {
    background: rgba(239, 68, 68, 0.92);
}

.asset-quick-delete:active {
    transform: scale(0.96);
}

.asset-quick-delete:focus {
    outline: none;
}

.asset-quick-delete:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.75);
    outline-offset: 2px;
}

.thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #999;
    text-align: center;
}

/* ===========================
   Dark Theme: Assets Page
   =========================== */
html[data-theme="dark"] .assets-app {
    background: #101010;
    color: #e2e8f0;
}

html[data-theme="dark"] .assets-title h1 {
    color: #f1f5f9;
}

html[data-theme="dark"] .assets-title p {
    color: #94a3b8;
}

html[data-theme="dark"] .assets-filters {
    background: #0f141b;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .filter-label {
    color: #cbd5f5;
}

html[data-theme="dark"] .filter-input,
html[data-theme="dark"] .filter-select {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

html[data-theme="dark"] .filter-input::placeholder {
    color: #94a3b8;
}

html[data-theme="dark"] .assets-content {
    background: #0f141b;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

html[data-theme="dark"] .skeleton-card {
    background: #0f141b;
}

html[data-theme="dark"] .skeleton-block {
    background: #1b2432;
}

html[data-theme="dark"] .skeleton-block::after {
    background: linear-gradient(110deg, rgba(27, 36, 50, 0) 0%, rgba(148, 163, 184, 0.18) 45%, rgba(27, 36, 50, 0) 60%);
}

html[data-theme="dark"] .loading-more-skeleton {
    background: #1b2432;
}

html[data-theme="dark"] .asset-card {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.15);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .asset-card:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .asset-video,
html[data-theme="dark"] .asset-thumbnail,
html[data-theme="dark"] .asset-video video,
html[data-theme="dark"] .asset-video img,
html[data-theme="dark"] .asset-thumbnail img {
    background: #0b0f15;
}

/* 收藏和团队按钮 - 统一为深色主题（弹窗内） */
.dh-modal-footer .dh-btn-favorite {
    gap: 6px;
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.dh-modal-footer .dh-btn-favorite.active {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
    border-color: rgba(234, 179, 8, 0.55);
}

.dh-modal-footer .dh-btn-team {
    gap: 6px;
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.dh-modal-footer .dh-btn-team.active {
    background: rgba(56, 189, 248, 0.22);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.55);
}

.dh-modal-footer .dh-btn-team.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 非弹窗区域的按钮保持原有样式 */
.dh-btn-favorite {
    gap: 8px;
}

.dh-btn-favorite.active {
    background: rgba(234, 179, 8, 0.18);
    color: #b45309;
    border-color: rgba(234, 179, 8, 0.5);
}

.dh-btn-team {
    gap: 8px;
}

.dh-btn-team.active {
    background: rgba(56, 189, 248, 0.18);
    color: #0369a1;
    border-color: rgba(56, 189, 248, 0.45);
}

.dh-btn-team.is-disabled {
    opacity: 0.65;
    cursor: pointer;
}

html[data-theme="dark"] .dh-btn-favorite {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .dh-btn-favorite.active {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
    border-color: rgba(234, 179, 8, 0.55);
}

html[data-theme="dark"] .dh-btn-team {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .dh-btn-team.active {
    background: rgba(56, 189, 248, 0.22);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.55);
}

html[data-theme="dark"] .asset-info {
    color: #cbd5f5;
}

html[data-theme="dark"] .asset-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .asset-script,
html[data-theme="dark"] .asset-size,
html[data-theme="dark"] .asset-date,
html[data-theme="dark"] .pagination-info {
    color: #94a3b8;
}

html[data-theme="dark"] .asset-type {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

html[data-theme="dark"] .asset-action-btn {
    background: #0f141b;
    border-color: rgba(148, 163, 184, 0.25);
    color: #cbd5f5;
}

html[data-theme="dark"] .asset-action-btn:hover {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.4);
    color: #e2e8f0;
}

html[data-theme="dark"] .empty-assets,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .no-results {
    color: #94a3b8;
}

html[data-theme="dark"] .empty-assets h3,
html[data-theme="dark"] .empty-state h3 {
    color: #e2e8f0;
}

html[data-theme="dark"] .empty-assets p,
html[data-theme="dark"] .empty-state p {
    color: #94a3b8;
}

html[data-theme="dark"] .date-title {
    color: #e2e8f0;
}

html[data-theme="dark"] .date-divider {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.35) 0%, transparent 100%);
}

html[data-theme="dark"] .asset-type-badge {
    background: rgba(59, 130, 246, 0.9);
}

html[data-theme="dark"] .asset-error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

html[data-theme="dark"] .thumbnail-placeholder {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #9ca3af;
}

html[data-theme="dark"] .pagination {
    color: #cbd5f5;
}

html[data-theme="dark"] .pagination-controls .btn {
    background: #0f141b;
    border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

html[data-theme="dark"] .pagination-controls .btn:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.4);
}

.assets-download-filter select { max-width: 100%; padding: 8px 12px; border: 1px solid var(--border-color, #64748b); border-radius: 8px; color: inherit; background: var(--bg-secondary, #fff); font: inherit; }
.asset-downloaded-badge { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; color: #fff; background: rgba(15, 23, 42, .82); font-size: 12px; pointer-events: none; }
html[data-theme="dark"] .assets-download-filter select { background: #202630; color: #e5e7eb; }
