/* 多模态详情页样式 */
.ldamp-multi-detail {
    max-width: 100%;
    margin: 0 0 40px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 24px 28px 32px;
}
.ldamp-multi-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.ldamp-multi-detail-breadcrumb {
    font-size: 14px;
    color: #666;
}
.ldamp-multi-detail-breadcrumb a {
    color: #1890ff;
    text-decoration: none;
}
.ldamp-multi-detail-breadcrumb a:hover {
    text-decoration: underline;
}
.ldamp-breadcrumb-sep {
    margin: 0 6px;
    color: #ccc;
}
.ldamp-breadcrumb-current {
    color: #222;
    font-weight: 500;
}
.ldamp-multi-detail-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ldamp-view-toggle {
    display: inline-flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.ldamp-view-btn {
    padding: 6px 14px;
    font-size: 13px;
    border: none;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}
.ldamp-view-btn:hover {
    background: #eef2f6;
}
.ldamp-view-btn.active {
    background: #1890ff;
    color: #fff;
}
.ldamp-back-link {
    color: #1890ff;
    font-size: 14px;
    text-decoration: none;
}
.ldamp-back-link:hover {
    text-decoration: underline;
}
.ldamp-multi-detail-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px 0;
    display: none;
}
.ldamp-lang-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}
.ldamp-lang-tab {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.ldamp-lang-tab:hover {
    background: #f5f7fa;
    color: #1890ff;
}
.ldamp-lang-tab.active {
    background: #e6f7ff;
    color: #1890ff;
    font-weight: 600;
}
.ldamp-lang-panes {
    min-height: 120px;
}
.ldamp-lang-pane {
    display: none;
}
.ldamp-lang-pane.active {
    display: block;
    animation: ldamp-fadeIn 0.25s ease;
}
@keyframes ldamp-fadeIn {
    from { opacity: 0.6; } to { opacity: 1; }
}
.ldamp-detail-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

/* 详情内容布局：左侧媒体，右侧文字 */
.ldamp-detail-content {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.ldamp-detail-content.no-media {
    display: block;
}
.ldamp-detail-media-col {
    flex: 0 0 45%;
    max-width: 45%;
}
.ldamp-detail-text-col {
    flex: 1;
    min-width: 0;
}
.ldamp-detail-content.no-media .ldamp-detail-text-col {
    max-width: 100%;
}

.ldamp-detail-source-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}
.ldamp-detail-source-text {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
}

.ldamp-detail-source-media,
.ldamp-detail-target-media {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
}
.ldamp-detail-source-media img,
.ldamp-detail-target-media img {
    max-width: 100%;
    width: 100%;
    border-radius: 4px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.ldamp-detail-source-media audio,
.ldamp-detail-target-media audio {
    width: 100%;
    margin: 0;
}
.ldamp-detail-source-media video,
.ldamp-detail-target-media video {
    width: 100%;
    max-height: 340px;
    margin: 0;
    border-radius: 4px;
    background: #000;
}
.ldamp-detail-source-media .ldamp-audio-player,
.ldamp-detail-target-media .ldamp-audio-player {
    width: 100%;
    margin: 0;
    min-height: 56px;
}
.ldamp-detail-source-media .ldamp-video-player,
.ldamp-detail-target-media .ldamp-video-player {
    width: 100%;
    margin: 0;
    min-height: 340px;
    border-radius: 4px;
    background: #000;
}
.ldamp-audio-player audio,
.ldamp-video-player video {
    width: 100%;
    border-radius: 4px;
}
/* HTML5 播放器样式 */
.ldamp-audio-player .ldamp-audio,
.ldamp-video-player .ldamp-video {
    width: 100%;
    border-radius: 4px;
    background: #000;
}
.ldamp-audio-player .ldamp-audio {
    height: 56px;
}
.ldamp-video-player .ldamp-video {
    max-height: 340px;
}

.ldamp-detail-targets {
    margin-top: 32px;
}
.ldamp-detail-target-block {
    border-top: 1px solid #f0f0f0;
    padding-top: 24px;
    margin-top: 24px;
}
.ldamp-detail-target-block:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.ldamp-detail-target-lang {
    font-size: 16px;
    font-weight: 600;
    color: #1890ff;
    margin-bottom: 16px;
}
.ldamp-detail-target-text {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
}
.ldamp-detail-notes {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}
.ldamp-detail-notes-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}
.ldamp-detail-notes-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}
.ldamp-card-notes {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.ldamp-detail-block {
    margin-bottom: 24px;
}
.ldamp-detail-strategy {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .ldamp-multi-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ldamp-lang-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        margin: 0 -4px 16px;
        padding: 0 4px 12px;
    }
    .ldamp-lang-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .ldamp-detail-content.has-media {
        flex-direction: column;
    }
    .ldamp-detail-media-col {
        flex: 1;
        max-width: 100%;
        margin-bottom: 16px;
    }
}

/* 多模态卡片列表样式 */
.ldamp-items-cards {
    margin: 0 0 32px 0;
}
.ldamp-multi-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s;
    margin-bottom: 24px;
}
.ldamp-multi-card:hover {
    box-shadow: 0 6px 24px rgba(24,144,255,0.12);
    text-decoration: none;
}
.ldamp-card-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #f5f7fa;
    overflow: hidden;
}
.ldamp-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f5f7fa;
}
.ldamp-card-video-icon,
.ldamp-card-audio-icon {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ldamp-card-body {
    padding: 16px 18px 18px 18px;
}
.ldamp-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ldamp-card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.ldamp-ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
}
/* 搜索结果高亮 */
.ldamp-highlight,
mark.ldamp-highlight {
    background-color: #ff0;
    color: #000;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}
/* 高级搜索页面 */
.ldamp-advanced-search .layui-form-label {
    width: 100px;
    text-align: right;
    padding: 9px 15px;
}
.ldamp-advanced-search .layui-input-block {
    margin-left: 120px;
}
/* 分页区居中 */
.ldamp-pagination-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 32px 0 0 0;
    flex-wrap: wrap;
}
.ldamp-pagination-ellipsis {
    padding: 0 8px;
    color: #999;
    font-size: 14px;
}
.ldamp-pagination-info {
    display: inline-block;
    margin-left: 16px;
    color: #666;
    font-size: 14px;
}
/* 搜索区横向排列样式 */
.ldamp-search-row-flex {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0;
}
.ldamp-search-row-flex .layui-input {
        flex: 0 1 420px;
        min-width: 0;
        margin-right: 0;
}
.ldamp-search-row-flex .layui-btn {
        flex: 0 0 auto;
        margin-left: 0;
}
@media (max-width: 600px) {
    .ldamp-search-row-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .ldamp-search-row-flex .layui-input {
        width: 100%;
        max-width: 100%;
    }
    .ldamp-search-row-flex .layui-btn {
        width: 100%;
    }
}
/* ========== 全局样式 ========== */
.ldamp-front {
    padding: 0;
    margin: 0;
    color: #262626;
    background: #f5f7fa;
    min-height: 100vh;
}

/* 独立页整页容器：不超出全屏，头部/底部圆角可见 */
.ldamp-standalone-page {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 32px auto 40px auto;
    padding: 0 24px;
    overflow-x: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.ldamp-standalone-page .ldamp-topbar {
    border-radius: 12px 12px 0 0;
}
.ldamp-standalone-page .ldamp-footer {
    border-radius: 0 0 12px 12px;
}

/* 前台根容器：中间框架百分百宽度 */
.ldamp-front.layui-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 40px;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    margin: 0 auto 0 auto;
    box-sizing: border-box;
}

/* 覆盖 layui 在 992px/1200px 断点对 .layui-container 的限制 */
@media screen and (min-width: 992px) {
    .ldamp-front.layui-container {
        width: 100% !important;
        max-width: 100% !important;
    }
}
@media screen and (min-width: 1200px) {
    .ldamp-front.layui-container {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* 首页与内页共用同一容器：不单独改首页的 margin/padding/flex，与语料/术语/多模态页一致 */
.ldamp-front.ldamp-tab-home .ldamp-hero .layui-card-body {
    padding: 32px 0 24px;
}

/* ========== 顶部栏 ========== */
.ldamp-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    background: #002140;
    padding: 16px 40px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    gap: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.ldamp-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ldamp-brand-logo {
    height: 56px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ldamp-brand-logo:hover {
    transform: scale(1.05);
}

.ldamp-brand-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ldamp-brand-subtitle {
    font-size: 13px;
    color: #ffffff;
    margin-top: 4px;
}

.ldamp-auth {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ldamp-auth .layui-btn {
    border-radius: 4px;
    padding: 0 20px;
    height: 36px;
    line-height: 36px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #ffffff;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
}

.ldamp-auth .layui-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

/* ========== 内联导航栏 ========== */
.ldamp-nav-inline {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.ldamp-nav-item {
    display: inline-block;
    padding: 0 20px;
    height: 36px;
    line-height: 36px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 2px;
    background: transparent;
}

.ldamp-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.ldamp-nav-item.active {
    background: #1890ff;
    color: #ffffff;
    font-weight: 600;
}

/* ========== Hero 区域 ========== */
.ldamp-hero {
    margin-bottom: 0;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #e8e8e8;
}

.ldamp-hero .layui-card-body {
    padding: 40px;
    background: #fff;
}

.ldamp-hero-kicker {
    font-size: 13px;
    letter-spacing: 2px;
    color: #8c8c8c;
    font-weight: 600;
    text-transform: uppercase;
}

.ldamp-hero-title {
    font-size: 36px;
    margin: 16px 0;
    font-weight: 800;
    color: #262626;
}

.ldamp-hero-desc {
    color: #595959;
    line-height: 1.8;
    font-size: 16px;
    margin: 20px 0;
}

.ldamp-hero-actions {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ldamp-hero-actions .layui-btn {
    border-radius: 2px;
    padding: 0 28px;
    height: 40px;
    line-height: 40px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
    background: #1890ff;
    color: #ffffff;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
}

.ldamp-hero-actions .layui-btn:hover {
    background: #40a9ff;
}

.ldamp-hero-actions .layui-btn-primary {
    background: transparent;
    color: #1890ff;
    border: 1px solid #1890ff;
    height: 40px;
    line-height: 38px;
}

.ldamp-hero-actions .layui-btn-primary:hover {
    background: rgba(24, 144, 255, 0.1);
    border-color: #40a9ff;
}

.ldamp-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ldamp-hero-stat {
    background: #f0f5ff;
    border-radius: 2px;
    padding: 16px;
    text-align: center;
    border: 1px solid #d6e4ff;
    transition: all 0.3s ease;
}

.ldamp-hero-stat:hover {
    background: #e6f7ff;
    border-color: #91d5ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
}

.ldamp-hero-stat span {
    font-size: 12px;
    color: #595959;
    font-weight: 500;
}

.ldamp-hero-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1890ff;
    margin-top: 8px;
}

.ldamp-hero-stat small {
    display: block;
    font-size: 11px;
    color: #8c8c8c;
    margin-top: 4px;
}

.ldamp-limit {
    color: #ff4d4f;
    margin-top: 12px;
    font-weight: 600;
}

/* ========== 搜索栏 ========== */
.ldamp-search {
    margin-top: 0;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    width: 100%;
    margin: 0 0 0 0;
}

.ldamp-search .layui-card-body {
    padding: 16px 0px;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.ldamp-search .layui-form-label {
    font-weight: 700;
    color: #1890ff;
    font-size: 15px;
    padding: 0 0 8px 0;
    background: none;
    border: none;
}

.ldamp-search .layui-input,
.ldamp-search .layui-select {
    border-radius: 6px;
    border: 1px solid #e6eaf0;
    transition: all 0.2s;
    padding: 12px 16px;
    background: #f7faff;
    color: #262626;
    font-size: 15px;
    box-shadow: none;
}

.ldamp-search .layui-input:focus,
.ldamp-search .layui-select:focus {
    border-color: #1890ff;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.10);
}

.ldamp-search .layui-btn {
    border-radius: 6px;
    font-weight: 700;
    padding: 0 32px;
    height: 44px;
    line-height: 44px;
    background: linear-gradient(90deg, #1890ff 0%, #40a9ff 100%);
    border: none;
    box-shadow: 0 2px 12px rgba(24,144,255,0.08);
    transition: all 0.2s;
    color: #fff;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    font-size: 17px;
    letter-spacing: 1px;
}

.ldamp-search .layui-btn:hover {
    background: #40a9ff;
    box-shadow: 0 6px 24px rgba(24,144,255,0.13);
}

.ldamp-limit {
    color: #ff6b6b;
    margin-top: 12px;
    font-weight: 600;
}

/* ========== 分节 ========== */
.ldamp-section {
    margin: 0;
    padding: 16px 0 24px;
    border-bottom: 1px solid #e8e8e8;
    background: #ffffff;
}

.ldamp-section:last-of-type {
    border-bottom: none;
}

.ldamp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.ldamp-section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
    margin: 0;
    letter-spacing: 0.02em;
}

.ldamp-section-header a {
    color: #1890ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ldamp-section-header a:hover {
    color: #40a9ff;
}

.ldamp-section-header .ldamp-current-lib-name {
    color: #1890ff;
    font-weight: 600;
}

/* ========== 卡片项目（内页列表与首页共用） ========== */
.ldamp-card-item {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
}

.ldamp-card-item .layui-card,
.ldamp-card-item.layui-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    position: relative;
    color: #262626;
}

.ldamp-card-item .layui-card::before,
.ldamp-card-item.layui-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #1890ff;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.ldamp-card-item:hover .layui-card::before,
.ldamp-card-item:hover.layui-card::before {
    transform: scaleX(1);
}

.ldamp-card-item:hover .layui-card,
.ldamp-card-item:hover.layui-card {
    border-color: #1890ff;
    box-shadow: 0 2px 10px rgba(24,144,255,0.12);
}

.ldamp-card-item .layui-card-body,
.ldamp-card-item.layui-card .layui-card-body {
    padding: 14px 16px;
    background: transparent;
    color: #262626;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ldamp-card-item .layui-card,
.ldamp-card-item.layui-card {
    display: flex;
    flex-direction: column;
}

.ldamp-card-item h3,
.ldamp-card-item.layui-card h3 {
    font-size: 15px;
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #262626;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 类别、条数、源语言 同一行，小字号 */
.ldamp-card-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    margin: 0 0 6px 0 !important;
    font-size: 11px !important;
    color: #8c8c8c !important;
    line-height: 1.5;
}

.ldamp-card-meta-line span {
    white-space: nowrap;
}

.ldamp-card-item p,
.ldamp-card-item.layui-card p {
    color: #595959;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 4px 0;
}

.ldamp-card-item p.ldamp-card-meta-line + p,
.ldamp-card-item.layui-card p.ldamp-card-meta-line + p {
    margin-bottom: 8px;
}

/* 首页卡片行：等高对齐 */
.ldamp-section .layui-row.layui-col-space15 {
    align-items: stretch;
}
.ldamp-section .layui-row.layui-col-space15 > [class*="layui-col"] {
    display: flex;
}
.ldamp-section .layui-row.layui-col-space15 .ldamp-card-item {
    width: 100%;
}

.ldamp-card-item .layui-card-body .ldamp-card-view-btn,
.ldamp-card-item.layui-card .layui-card-body .ldamp-card-view-btn {
    margin-top: auto;
}
.ldamp-chip {
    display: inline-block;
    margin-top: 10px;
    background: #1890ff;
    color: #fff;
    padding: 2px 10px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
}

/* 首页卡片「查看详情」按钮 */
.ldamp-card-view-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    background: #1890ff;
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    text-align: center;
}

/* ========== 统计和其他 ========== */
.ldamp-muted {
    color: #8c8c8c;
    font-size: 13px;
    font-weight: 500;
}

.ldamp-stat {
    font-size: 24px;
    font-weight: 700;
    display: inline-block;
    margin-left: 8px;
    color: #1890ff;
}

.ldamp-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ldamp-tags a {
    border: 1px solid #d9d9d9;
    padding: 6px 16px;
    border-radius: 2px;
    color: #595959;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    background: transparent;
}

.ldamp-tags a:hover {
    border-color: #1890ff;
    color: #1890ff;
    background: rgba(24, 144, 255, 0.1);
}

.ldamp-tags a.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

/* ========== 列表项目 ========== */
.ldamp-items-table {
    margin-top: 20px;
}

.ldamp-data-table {
    width: 100%;
    background: #ffffff;
    color: #262626;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
    border-collapse: collapse;
}

.ldamp-data-table thead tr {
    background: #fafafa;
}

.ldamp-data-table th {
    background: transparent;
    color: #262626;
    font-weight: 700;
    font-size: 15px;
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid #e8e8e8;
}

.ldamp-data-table td {
    padding: 20px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.ldamp-data-table tbody tr {
    background: #ffffff;
    transition: all 0.3s ease;
}

.ldamp-data-table tbody tr:hover {
    background: #fafafa;
}

.ldamp-item-num {
    color: #1890ff;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    background: #f0f5ff;
    padding: 8px;
    border-radius: 4px;
}

.ldamp-source-cell,
.ldamp-targets-cell {
    color: #262626;
}

.ldamp-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 10px;
}

.ldamp-target-item {
    margin-bottom: 20px;
    padding: 16px;
    border-left: 3px solid #1890ff;
    background: #f0f5ff;
    border-radius: 0 2px 2px 0;
}

.ldamp-target-item:last-child {
    margin-bottom: 0;
}

.ldamp-target-lang {
    color: #1890ff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldamp-target-lang::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #1890ff;
    border-radius: 50%;
}

/* 搜索高亮 */
.ldamp-highlight {
    background: #ff4d4f;
    color: #ffffff;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.ldamp-item {
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.ldamp-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.ldamp-item-number {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: #1890ff;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 1;
}

.ldamp-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 800;
    color: #ffffff;
}

.ldamp-item h4 {
    color: #1890ff;
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ldamp-item .layui-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-left: 48px;
    background: #fff;
}

.ldamp-source {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 24px;
}

.ldamp-targets {
    padding-left: 24px;
}

.ldamp-total-count {
    font-size: 16px;
    font-weight: 400;
    color: #8c8c8c;
}

.ldamp-text {
    margin: 10px 0;
    color: #000000;
    font-size: 14px;
    line-height: 1.8;
}

.ldamp-target {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    margin-top: 16px;
}

.ldamp-target:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.ldamp-target summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    color: #1890ff;
    transition: color 0.3s ease;
}

.ldamp-target summary:hover {
    color: #40a9ff;
}

.ldamp-target summary::-webkit-details-marker {
    display: none;
}

.ldamp-image {
    max-width: 100%;
    border-radius: 2px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ldamp-pagination {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ldamp-empty {
    padding: 60px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.02);
    font-size: 16px;
}

/* ========== 页脚（DIV 结构） ========== */
.ldamp-footer {
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 40px;
    font-size: 13px;
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    background: #002140;
    max-width: 100%;
    box-sizing: border-box;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .ldamp-search-row {
        grid-template-columns: 1fr;
    }
    
    .ldamp-hero-title {
        font-size: 32px;
    }
    
    .ldamp-topbar {
        padding: 16px 20px;
        border-radius: 12px;
    }
    
    .ldamp-brand-title {
        font-size: 18px;
    }
    
    .ldamp-section-header h2 {
        font-size: 20px;
    }
    
    .ldamp-item .layui-card-body {
        grid-template-columns: 1fr;
        padding-left: 24px;
    }
    
    .ldamp-item-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
        top: 10px;
        left: 10px;
    }
    
    .ldamp-source {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 24px;
    }
    
    .ldamp-targets {
        padding-left: 0;
        padding-top: 24px;
    }
    
    /* 表格响应式：小屏幕上每列独立显示 */
    .ldamp-data-table,
    .ldamp-data-table thead,
    .ldamp-data-table tbody,
    .ldamp-data-table tr,
    .ldamp-data-table th,
    .ldamp-data-table td {
        display: block;
    }
    
    .ldamp-data-table thead {
        display: none;
    }
    
    .ldamp-data-table td {
        padding: 12px 16px;
        border-bottom: none;
    }
    
    .ldamp-data-table td:first-child {
        background: rgba(24, 144, 255, 0.1);
        text-align: center;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 2px;
    }
    
    .ldamp-data-table tbody tr {
        margin-bottom: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .ldamp-front {
        padding: 20px 0;
    }
    
    .ldamp-front .layui-container {
        padding: 0 20px;
    }
    
    .ldamp-hero .layui-card-body {
        padding: 24px;
    }
    
    .ldamp-hero-title {
        font-size: 28px;
    }
    
    .ldamp-nav {
        padding: 6px;
    }
    
    .ldamp-nav .layui-nav-item {
        padding: 10px 16px;
    }
}
/* 搜索结果标签页样式 */
.ldamp-search-results {
    margin-bottom: 30px;
}

.ldamp-search-results .layui-card-header {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
}

.ldamp-search-results .layui-tab-title {
    margin-bottom: 0;
}

.ldamp-search-results .layui-tab-title li {
    font-size: 15px;
}

.ldamp-search-results .ldamp-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.ldamp-card-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

/* ========== 筛选（卡片 + 折叠动画） ========== */
.ldamp-filter-section.ldamp-filter-card {
    padding: 0 0 0 0;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.ldamp-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 48px;
    background: #f8fafc;
    border-bottom: 1px solid #e8ecf0;
}
.ldamp-filter-section.collapsed .ldamp-filter-header {
    border-bottom: none;
}
.ldamp-filter-title {
    font-weight: 600;
    font-size: 15px;
    color: #262626;
}
.ldamp-filter-toggle {
    cursor: pointer;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    flex-shrink: 0;
    font-size: 13px;
    color: #1890ff;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ldamp-filter-toggle:hover {
    background: #e6f4ff;
    border-color: #91caff;
    color: #096dd9;
}
.ldamp-filter-arrow {
    font-size: 10px;
}
.ldamp-filter-body {
    overflow: hidden;
    max-height: 320px;
    transition: max-height 0.3s ease;
}
.ldamp-filter-section.collapsed .ldamp-filter-body {
    max-height: 0;
}
.ldamp-filter-buttons {
    padding: 16px 16px 18px;
}
.ldamp-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 14px;
    min-height: 36px;
}
.ldamp-filter-row:last-child {
    margin-bottom: 0;
}
.ldamp-filter-label {
    flex-shrink: 0;
    font-weight: 600;
    font-size: 14px;
    color: #434d5a;
    min-width: 80px;
    white-space: nowrap;
}
.ldamp-filter-btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.ldamp-filter-btn-group .layui-btn {
    margin: 0;
    border-radius: 6px;
    padding: 0px 14px;
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ldamp-filter-btn-group .layui-btn-primary {
    background: #f5f7fa;
    border-color: #e0e4e9;
    color: #434d5a;
}
.ldamp-filter-btn-group .layui-btn-primary:hover {
    background: #e8ecf0;
    border-color: #c9cfd8;
    color: #262626;
}
.ldamp-filter-btn-group .layui-btn-normal {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
}
.ldamp-filter-btn-group .layui-btn-normal:hover {
    background: #40a9ff;
    border-color: #40a9ff;
    color: #fff;
}

/* ========== 库列表表格 ========== */
.ldamp-lib-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ldamp-lib-table thead {
    background: #fafafa;
    border-bottom: 2px solid #e8e8e8;
}
.ldamp-lib-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #262626;
    font-size: 14px;
}
.ldamp-lib-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #595959;
}
.ldamp-lib-table tbody tr:hover {
    background: #fafafa;
}
.ldamp-lib-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========== 条目列表：显示策略/备注开关 ========== */
.ldamp-item-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f6f7f7;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}
.ldamp-toggle-label {
    margin: 0;
    font-weight: 500;
    color: #262626;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ldamp-toggle-cb {
    margin: 0;
}

/* ========== 条目列表表格美化 ========== */
.ldamp-items-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ldamp-items-table thead {
    background: #fafafa;
    border-bottom: 2px solid #e8e8e8;
}
.ldamp-items-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #262626;
    font-size: 14px;
}
.ldamp-items-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}
.ldamp-items-table tbody tr:hover {
    background: #fafafa;
}
.ldamp-items-table .ldamp-col-strategy,
.ldamp-items-table .ldamp-col-notes {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 个人中心 ========== */
.ldamp-center-guest {
    padding: 40px 20px;
    text-align: center;
    font-size: 16px;
}
.ldamp-center-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.ldamp-center-sidebar {
    flex-shrink: 0;
    width: 200px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 16px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ldamp-center-sidebar-title {
    margin: 0 16px 12px;
    font-size: 16px;
    font-weight: 700;
    color: #262626;
}
.ldamp-center-nav-group {
    margin-bottom: 16px;
}
.ldamp-center-nav-group-title {
    display: block;
    padding: 4px 16px;
    font-size: 12px;
    color: #8c8c8c;
    text-transform: uppercase;
}
.ldamp-center-nav-link {
    display: block;
    padding: 8px 16px;
    color: #434d5a;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}
.ldamp-center-nav-link:hover {
    background: #f5f7fa;
    color: #1890ff;
}
.ldamp-center-nav-link.active {
    background: #e6f4ff;
    color: #1890ff;
    font-weight: 600;
}
.ldamp-center-main {
    flex: 1;
    min-width: 0;
}
.ldamp-center-main-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: #262626;
}
.ldamp-center-notice {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 14px;
}
.ldamp-notice-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}
.ldamp-notice-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}
.ldamp-center-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ldamp-center-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e8ecf0;
    background: #fafafa;
}
.ldamp-center-card-header h3,
.ldamp-center-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}
.ldamp-center-card-body {
    padding: 18px;
}
.ldamp-center-form .layui-form-item {
    margin-bottom: 18px;
}
.ldamp-center-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.ldamp-center-table {
    width: 100%;
    border-collapse: collapse;
}
.ldamp-center-table th,
.ldamp-center-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}
.ldamp-center-table th {
    background: #fafafa;
    font-weight: 600;
    font-size: 13px;
}
.ldamp-center-table .ldamp-cell-clip {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ldamp-center-pagination {
    margin-top: 16px;
}
.ldamp-center-pagination .layui-btn {
    margin-right: 8px;
}
.ldamp-center-empty {
    color: #8c8c8c;
    padding: 24px 0;
    margin: 0;
}
.ldamp-center-import-template,
.ldamp-center-import-help {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf0;
}
.ldamp-center-import-help h4,
.ldamp-center-import-template h4 {
    margin: 0 0 8px;
    font-size: 14px;
}
.ldamp-target-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.ldamp-target-row .layui-input {
    flex: 0 1 auto;
}
.ldamp-target-row .ldamp-target-lang {
    width: 140px;
}
.ldamp-target-row .ldamp-target-note {
    flex: 1;
    min-width: 100px;
}
.ldamp-required {
    color: #ff4d4f;
}
.ldamp-form-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #8c8c8c;
}

/* 个人中心分页（复用后台分页模板的样式适配前台） */
.ldamp-center .ldamp-pagination-wrap {
    margin-top: 16px;
    padding: 12px 0;
}
.ldamp-center .ldamp-pagination-wrap .button {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    font-size: 13px;
    line-height: 1.5;
    color: #434d5a;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}
.ldamp-center .ldamp-pagination-wrap .button:hover {
    color: #1890ff;
    border-color: #1890ff;
}
.ldamp-center .ldamp-pagination-wrap .button.disabled {
    color: #bfbfbf;
    cursor: not-allowed;
}