/* Examples Showcase 样式 */
.examples-showcase {
    position: relative;
    max-width: 1200px;
    margin: var(--space-4) auto 0;
    padding: 0 var(--space-4);
    overflow: visible;
}

/* 导航按钮 */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    color: var(--text-light);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-1);
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.nav-button:hover {
    background: var(--surface-overlay-strong);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--color-border);
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

/* RTL: swap previous/next anchors and mirror info row */
html[dir="rtl"] .prev-button { left: auto; right: 10px; }
html[dir="rtl"] .next-button { right: auto; left: 10px; }
html[dir="rtl"] .manga-info { flex-direction: row-reverse; }

/* 幻灯片容器 */
.example-slides {
    position: relative;
    overflow: visible;
}

.example-slide {
    display: none;
    animation: fadeIn 0.5s var(--ease-1) forwards;
}

.example-slide.active {
    display: block;
}

/* 漫画信息部分 */
.manga-info {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.manga-cover {
    flex-shrink: 0;
    width: 220px;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
}

.manga-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-1);
}

.manga-cover:hover img {
    transform: scale(1.05);
}

.manga-details {
    flex: 1;
    padding: var(--space-2) 0;
    display: flex;
    flex-direction: column;
}

.manga-content {
    flex: 1;
}

.manga-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: var(--space-1);
    letter-spacing: -0.022em;
    background: linear-gradient(135deg, var(--text-light) 30%, var(--pink-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Arabic typography */
html[dir="rtl"] .manga-title,
html[dir="rtl"] .manga-author,
html[dir="rtl"] .manga-description { letter-spacing: 0; }
html[dir="rtl"] .manga-description { line-height: 1.7; }

.manga-author {
    font-size: 17px;
    color: var(--pink-primary);
    margin-bottom: var(--space-3);
    letter-spacing: -0.022em;
}

.manga-description {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-gray);
    margin-bottom: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.5em;
    letter-spacing: -0.016em;
}

.download-section {
    margin-bottom: var(--space-3);
}

/* 预览区域 */
.manga-preview {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    padding: var(--space-3);
    margin-top: var(--space-3);
    transition: transform 0.3s var(--ease-1);
}

.manga-preview:hover {
    transform: translateY(-4px);
}

.clip-view {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: none;
}

.container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none !important;
    transition: none;
}

.container-bottom {
    z-index: 1;
}

.container:not(.container-bottom) {
    z-index: 2;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.container .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    transform: none !important;
}

/* 分隔线和控制器 */
.line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--pink-primary);
    box-shadow: 0 0 8px var(--pink-primary);
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
    transition: none;
    left: 50%;
}

.ico {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--pink-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-shadow: 0 0 12px var(--pink-light);
    pointer-events: none;
}

.icon-left, .icon-right {
    font-size: 12px;
    color: var(--text-light);
}

/* 翻译选项 */
.examples-translation-options {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: auto;
    margin-bottom: 0;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.translation-btn {
    background: var(--surface-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    padding: var(--space-2) var(--space-3);
    border-radius: 980px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s var(--ease-1);
    font-size: 13px;
    letter-spacing: -0.016em;
    -webkit-tap-highlight-color: transparent;
    min-width: 120px;
    text-align: center;
}

.translation-btn:hover,
.translation-btn.active {
    background: var(--pink-primary);
    color: var(--text-light);
    transform: translateY(-1px);
}

/* 自定义鼠标指示器 */
.cursor {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--pink-primary);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-1), height 0.3s var(--ease-1);
    z-index: 10;
    display: none;
    top: 0;
    left: 0;
}

.cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--pink-primary);
    border-radius: 50%;
}

.clip-view:hover .cursor {
    display: block;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 - iPad */
@media (max-width: 1068px) {
    .examples-showcase {
        padding: 0 var(--space-3);
    }

    .manga-info {
        gap: var(--space-3);
    }

    .manga-cover {
        width: 200px;
        height: 290px;
    }

    .manga-title {
        font-size: 24px;
    }

    .manga-preview {
        padding: var(--space-3);
    }
}

/* 响应式设计 - iPhone */
@media (max-width: 734px) {
    .examples-showcase {
        padding: 0 var(--space-2);
    }

    .manga-info {
        flex-direction: column;
        gap: var(--space-3);
        align-items: center;
        text-align: center;
    }

    .manga-cover {
        width: 180px;
        height: 260px;
    }

    .manga-details {
        padding: 0;
    }

    .manga-title {
        font-size: 22px;
    }

    .manga-author {
        font-size: 15px;
    }

    .manga-description {
        font-size: 14px;
        -webkit-line-clamp: 4;
    }

    .nav-button {
        width: 36px;
        height: 36px;
    }

    .manga-preview {
        padding: var(--space-2);
        border-radius: 16px;
    }

    .clip-view {
        border-radius: 12px;
    }

    .ico {
        width: 32px;
        height: 32px;
    }

    .translation-btn {
        width: 100%;
        max-width: 280px;
        font-size: 15px;
        padding: var(--space-2) var(--space-4);
    }
}

/* 响应式设计 - 小型iPhone */
@media (max-width: 374px) {
    .manga-cover {
        width: 160px;
        height: 230px;
    }

    .manga-title {
        font-size: 20px;
    }

    .manga-author {
        font-size: 14px;
    }

    .manga-description {
        font-size: 13px;
    }

    .nav-button {
        width: 32px;
        height: 32px;
    }

    .translation-btn {
        font-size: 14px;
        padding: var(--space-2) var(--space-3);
    }
} 
