/* ==========================================================
   图书文献过渡页 library-preview.css
   对照"出版物_zl.jpg"：
   - 顶部：面包屑 + 大标题 + 描述 + 封面 + 右上角浮窗按钮
   - 3 张特性卡（青/黄绿/浅青）
   - 作者 + 病例贡献者
   - 相关卷轮播
   - CTA
   ========================================================== */

/* ============ Hero ============ */
.iti-lbp-hero {
    position: relative;
    background: var(--iti-bg);
    overflow: hidden;
    margin-top: 20px;
}
/* 装饰性弧形 - 左下青色 */
.iti-lbp-hero-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: var(--iti-primary-dark);
    clip-path: polygon(0% 100%, 100% 100%, 0 80%);
    opacity: 0.9;
}

/* 装饰性弧形 - 左下黄绿 */
.iti-lbp-hero-text::after {
    content: "";
    position: absolute;
    left: 39%;
    bottom: 0;
    width: 220px;
    height: 75%;
    background: var(--iti-yellow);
    clip-path: polygon(60% 100%, 100% -10%, 100% 100%);
    opacity: 0.7;

}
.iti-hero::after {
    content: "";
    position: absolute;
    left: 39%;
    bottom: 0;
    width: 300px;
    height: 40%;
    background: var(--iti-primary);
    clip-path: polygon(0% 100%, 100% 0%, 100% 100%);
    opacity: 1;
    z-index: 1;
}
.iti-lbp-hero-text {
    height: 100%;
    width: 100%;
    padding: 20px 20%;
    margin: 0 auto;
}
.iti-lbp-hero-deco-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 240px;
    height: 64px;
    background:
        linear-gradient(135deg, transparent 50%, #0F1F3D 50%) 0 0/50% 100% no-repeat,
        linear-gradient(45deg,  #0F1F3D 50%, transparent 50%) 100% 0/50% 100% no-repeat,
        var(--iti-primary);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    opacity: 0.92;
    z-index: 0;
}

.iti-lbp-hero-deco-right {
    position: absolute;
    top: 80px;
    right: 0;
    width: 160px;
    height: 56px;
    background: var(--iti-yellow);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    opacity: 0.92;
    z-index: 0;
}

.iti-breadcrumb--compact {
    width: 100%;
    padding: 0 0px 40px;
    font-size: 13px;
    color: var(--iti-text-light);
}

.iti-breadcrumb--compact .iti-breadcrumb-current {
    color: var(--iti-text-light);
    font-weight: 500;
}

.iti-lbp-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
    min-height: 320px;
}

.iti-lbp-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--iti-navy);
    line-height: 1.25;
    margin: 0 0 18px;
    max-width: 520px;
}

.iti-lbp-hero-desc {
    font-size: 14px;
    color: var(--iti-text);
    line-height: 1.85;
    margin: 0;
    max-width: 520px;
}

.iti-lbp-hero-cover {
    position: relative;
    border-radius: var(--iti-radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--iti-bg-soft), var(--iti-bg-soft-2));
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.iti-lbp-hero-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(15, 31, 61, 0.18));
}
.iti-hero-image-library1 {
    position: relative;
    min-height: 360px;
    border-radius: 0;
    background-color: #d1d4d6;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: 35%;
}

.iti-hero-image-library1 img {
    width: 220px;
}

/* ============ 右上角浮窗"在线阅读" ============ */
.iti-lbp-floating {
    position: fixed;
    top: 200px;
    right: 12px;
    z-index: 5;
    background: var(--iti-primary);
    color: #fff;
    border-radius: 18px;
    width: 60px;
    height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 10px 22px rgba(26, 181, 181, 0.4);
    transition: all var(--iti-transition);
}

.iti-lbp-floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(26, 181, 181, 0.55);
    color: #fff;
}

.iti-lbp-floating-icon {
    width: 30px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iti-lbp-floating-icon svg { width: 100%; height: 100%; }

.iti-lbp-floating-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.iti-lbp-floating-text-line {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* ============ 3 张特性卡 ============ */
.iti-lbp-features {
    background: var(--iti-bg);
    padding: 56px 25%;
}

.iti-lbp-feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.iti-lbp-feature {
    background: var(--iti-bg-soft);
    border-radius: var(--iti-radius-lg);
    padding: 28px 22px;
    text-align: center;
    transition: transform var(--iti-transition), box-shadow var(--iti-transition);
}

/* .iti-lbp-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--iti-shadow-md);
} */

.iti-lbp-feature--primary { background: var(--iti-primary); color: #000; }
.iti-lbp-feature--yellow  { background: var(--iti-yellow);  color: #000; }
.iti-lbp-feature--soft    { background: var(--iti-bg-soft-2); color: #000;}

.iti-lbp-feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;

    border-radius: var(--iti-radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



.iti-lbp-feature-icon svg {
    height: 50px;
}

.iti-lbp-feature-icon img {
    height: 50px;
    object-fit: contain;
    display: block;
}

.iti-lbp-feature--soft .iti-lbp-feature-icon { color: var(--iti-primary); }

.iti-lbp-feature-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}

.iti-lbp-feature-desc {
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

/* ============ 作者 + 病例贡献者 ============ */
.iti-lbp-authors {
    position: relative;
    background: url(/assets/images/TG/zuozhe-bg.png);
    background-size: cover;
    padding: 56px 0;
    overflow: hidden;
}



.iti-lbp-authors-inner {
    position: relative;
    z-index: 1;
    padding: 0px 50px;
}

.iti-lbp-authors-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--iti-navy);
    margin: 0 0 24px;
    text-align: left;
}

.iti-lbp-authors-grid {
    display: grid;
    margin-top: 40px;
    grid-template-columns: 300px 1fr;
    background: var(--iti-bg-soft);
    border-radius: 16px;
    overflow: hidden;
}

.iti-lbp-col-title {
    font-size: 14px;
    font-weight: 700;
    background-color: #ccebed;
    color: var(--iti-navy);
    padding: 12px 16px;
    border-bottom: 1px solid var(--iti-border);
}
.iti-lbp-col-title1 {
    font-size: 14px;
    font-weight: 700;
    background-color: #dbf3f4;
    color: var(--iti-navy);
    padding: 12px 16px;
    border-bottom: 1px solid var(--iti-border);
}

.iti-lbp-author-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 320px;
    overflow: auto;
}
.iti-lbp-author-list1 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 320px;
    overflow: auto;
}

.iti-lbp-author-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--iti-text);
    line-height: 1.6;
    padding: 12px 18px;
    background: #e5f7f8;
}
.iti-lbp-author-list1 li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--iti-text);
    line-height: 1.6;
    padding: 12px 18px;
    background: #effafb;
}
.iti-lbp-author-list li:nth-child(even) {
    background: #effafb;
}
.iti-lbp-author-list1 li:nth-child(even) {
    background: #fbffff;
}


.iti-lbp-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--iti-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============ 相关卷轮播 ============ */
.iti-lbp-related {
    background: #fff;
    padding: 48px 0;
}

.iti-lbp-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.iti-lbp-related-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--iti-navy);
    margin: 0;
}

.iti-lbp-carousel-controls {
    display: flex;
    gap: 12px;
}

.iti-lbp-carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--iti-border);
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--iti-transition);
}

.iti-lbp-carousel-btn:hover:not(:disabled) {
    background: var(--iti-primary);
    color: #fff;
    border-color: var(--iti-primary);
}

.iti-lbp-carousel-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.iti-lbp-carousel-btn svg { width: 16px; height: 16px; }

.iti-lbp-carousel {
    position: relative;
    overflow: hidden;
}

.iti-lbp-carousel-track {
    display: flex;
    gap: 18px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.iti-lbp-volume {
    /* 一屏 5 张：减掉的 gap 数必须与 .iti-lbp-carousel-track 的 gap(18px) 一致，
       否则 JS 按 (cardWidth + gap) 计算 translateX 偏移时会累积误差，
       翻到后面几页卡片会露不全。 */
    flex: 0 0 calc((100% - 18px * 4) / 5);
    background: #fff;
    border-radius: var(--iti-radius-lg);
    overflow: hidden;
    margin: 6px 1px 12px;
    box-shadow: var(--iti-shadow);
    transition: transform var(--iti-transition), box-shadow var(--iti-transition);
    display: flex;
    flex-direction: column;
}

.iti-lbp-volume:hover {
    transform: translateY(-4px);
    box-shadow: var(--iti-shadow-md);
}

.iti-lbp-volume-cover {
    height: 180px;
    background: #dbdbda;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.iti-lbp-volume-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(15, 31, 61, 0.12));
}

.iti-lbp-volume-body {
    height: 100%;
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    
}

.iti-lbp-volume-body h3 {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    border-bottom: 2px solid #f0f1f2;
    margin: 0 0 4px;
    padding-bottom: 16px;
    line-height: 1.4;
}

.iti-lbp-volume-body p {
    font-size: 11px;
    color: #000;
    margin: 6px 0 12px;
    line-height: 1.5;
}

.iti-lbp-volume-body .iti-btn {
    padding: 4px 14px;
    font-size: 12px;
}

/* ============ CTA ============ */
.iti-lib-cta {
    background: url(/assets/images/TG/cta-bg.png) no-repeat center;
    padding: 28px 0;
    text-align: center;
}

.iti-lib-cta-title {
    font-size: 28px;
    font-weight: 800;
    color: #000;
    margin: 0 0 4px;
}

.iti-lib-cta-desc {
    font-size: 14px;
    color: var(--iti-primary);
    margin: 0 0 12px;
}

/* CTA 按钮完全沿用全局主按钮样式（默认主青色 + 悬停加深 #02569B + 上浮）。
   注意：这里不要重写 background —— .iti-lib-cta .iti-btn-primary 与
   全局 .iti-btn-primary:hover 特异性相同（0-2-0），而本文件在 home.css 之后加载，
   一旦声明 background 就会盖掉全局悬停色，导致悬停不变色。 */


/* ============ 按钮微调 ============ */
.iti-btn-pill { border-radius: 999px; }
.iti-btn-sm   { padding: 6px 18px; font-size: 13px; }
.iti-btn-lg   { padding: 12px 36px; font-size: 16px; }

/* ============ 响应式 ============ */
@media (max-width: 1023px) {
    .iti-lbp-hero-deco-left,
    .iti-lbp-hero-deco-right { display: none; }

    .iti-lbp-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .iti-lbp-hero-title { font-size: 24px; margin: 0 auto 16px; }
    .iti-lbp-hero-desc  { margin: 0 auto; }
    .iti-lbp-hero-cover { height: 240px; order: -1; }

    /* mobile 时浮窗放右下角，避免遮挡文字 */
    .iti-lbp-floating {
        position: fixed;
        top: auto;
        bottom: 80px;
        right: 16px;
        width: 64px;
        height: 80px;
        border-radius: 14px;
        padding: 8px 6px;
    }
    .iti-lbp-floating-icon { width: 26px; height: 26px; margin-bottom: 4px; }
    .iti-lbp-floating-text-line { font-size: 11px; }

    .iti-lbp-feature-list { grid-template-columns: 1fr; }
    .iti-lbp-authors-deco { display: none; }
    .iti-lbp-authors-grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .iti-lbp-volume { flex-basis: calc((100% - 22px * 1) / 2); }
    .iti-lbp-related-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .iti-lbp-cta-title { font-size: 22px; padding: 0 8px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .iti-lbp-volume { flex-basis: calc((100% - 22px * 2) / 3); }
}