/* 
 * 图纸爬虫Web应用样式配置
 * Container宽度可自定义配置，默认100%
 */

.product-image {
    object-fit: contain !important;
    width: 100%;
    height: auto;
    min-height: 50%; /* 设置最小高度为宽度的一半 */
    transition: opacity 0.5s ease;
}

/* 添加产品图片容器样式以支持aspect-ratio */
.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1; /* 宽度:高度 = 2:1 */
}

.product-image.lazy-image {
    opacity: 0.5;
}

.product-image.lazy-loaded {
    opacity: 1;
}

.carousel-item img {
    object-fit: contain !important;
    width: 100%;
    height: auto;
}

.waterfall-container {
    column-count: 7; /* 默认7列 */
    column-gap: 5px;
}

@media (min-width: 576px) {
    .waterfall-container {
        column-count: 7; /* 小屏幕设备 */
    }
}

@media (min-width: 768px) {
    .waterfall-container {
        column-count: 7; /* 中等屏幕设备 */
    }
}

@media (min-width: 992px) {
    .waterfall-container {
        column-count: 7; /* 大屏幕设备(PC端)默认7列 */
    }
}

@media (min-width: 1200px) {
    .waterfall-container {
        column-count: 7; /* 超大屏幕设备 */
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .waterfall-container {
        column-count: 6; /* 大屏幕设备(PC端) */
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .waterfall-container {
        column-count: 5; /* 中等屏幕设备 */
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .waterfall-container {
        column-count: 4; /* 小屏幕设备 */
    }
}

@media (max-width: 575px) {
    .waterfall-container {
        column-count: 2; /* 手机端默认2列 */
    }
}

.waterfall-item {
    break-inside: avoid;
    margin-bottom: 5px;
}

.product-card {
    width: 100%;
    border: 1px solid #d4c0b8;
    border-radius: 0.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    /* transform: translateY(-5px) scale(1.02);
    box-shadow: 0 1rem 2rem rgba(139, 69, 19, 0.25); */
    border-color: #8B4513;
    z-index: 10;
}

.card-img-top {
    object-fit: contain;
    width: 100%;
    height: auto;
    border-top-left-radius: calc(0.2rem - 1px);
    border-top-right-radius: calc(0.2rem - 1px);
}

/* Brown color differentiation for product cards */
.waterfall-item:nth-child(5n+1) .product-card {
    border-left: 4px solid #8B4513;
}

.waterfall-item:nth-child(5n+2) .product-card {
    border-left: 4px solid #A0522D;
}

.waterfall-item:nth-child(5n+3) .product-card {
    border-left: 4px solid #8B4513;
}

.waterfall-item:nth-child(5n+4) .product-card {
    border-left: 4px solid #A0522D;
}

.waterfall-item:nth-child(5n) .product-card {
    border-left: 4px solid #8B4513;
}


.card-body {
    padding: 0.4rem;
}

.card-title {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.badge {
    font-size: 0.6em;
}

.bi{
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Mobile optimization for password modal */
@media (max-width: 576px) {
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    #password-display {
        font-size: 1rem !important;
        padding: 10px;
        background-color: #f8f9fa;
        border-radius: 0.25rem;
        word-break: break-all;
    }
    
    /* 移动端标题不居中 */
    .card-title {
        text-align: left;
    }
}

/* Image gallery modal styles */
#imageGalleryModal .modal-content {
    background-color: rgba(0, 0, 0, 0.8)!important;
}

#imageGalleryModal .image-slider-container {
    overflow: hidden;
}

#imageGalleryModal .image-slider {
    transition: transform 0.3s ease;
}

#imageGalleryModal .image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#imageGalleryModal .image-slide.active {
    opacity: 1;
}

#imageGalleryModal .image-slide img {
    max-height: 85vh;
    max-width: 95vw;
    object-fit: contain;
}


/* 不要改动我下面的代码 */
.waterfall-item{margin-bottom: 0!important;}
.waterfall-container{column-gap: 5px!important;}
.container-fluid,.container{padding-right: 0!important;padding-left: 0!important;}
.card-title:hover{text-decoration: underline;}

/* Pagination styles with brown theme */
.pagination .page-link {
    color: #8B4513;
    background-color: #fff;
    border-color: #8B4513;
}

.pagination .page-link:hover {
    color: #fff;
    background-color: #8B4513;
    border-color: #8B4513;
}

.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #8B4513;
    border-color: #8B4513;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Customer appreciation section styles */
#customerFooter {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0d0bb8a;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#customerFooter .customer-content {
    display: block;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

#customerFooter h5 {
    color: #db2c0d;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    display: block;
    width: 100%;
    font-size: 1.25rem;
    line-height: 1.4;
    padding: 10px 0;
}

#customerFooter h5::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #5a3e2e;
}

#customerFooter h5::before {
    content: "☕️";
    margin-right: 10px;
    animation: coffeeAnimation 2s infinite;
}

@keyframes coffeeAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

#customerFooter p {
    color: #aeaeae;
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
}

/* Prayer hands emoji styling */
#customerFooter div {
    color: #5c5c5c;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
    position: relative;
    padding: 0 30px;
    line-height: 1.5;
    display: block;
    width: 100%;
    font-size: 12px;
}

#customerFooter div::before {
    content: "🙏";
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    text-align: center;
}

#customerFooter div::after {
    content: "🙏";
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    text-align: center;
}

/* Responsive adjustments for customer footer */
@media (max-width: 768px) {
    #customerFooter {
        padding: 15px;
        margin-top: 15px;
    }
    
    #customerFooter h5 {
        font-size: 1.1rem;
    }
    
    #customerFooter p {
        font-size: 0.9rem;
    }
    
    #customerFooter div {
        font-size: 0.8rem;
        padding: 0 25px;
    }
    
    #customerFooter div::before,
    #customerFooter div::after {
        width: 25px;
    }
}
/* 非移动端样式 */
@media (min-width: 768px) { 
    .col-md-4 .card{
        position: fixed;
    }
}
.modal-open,#imageGalleryModal{padding-right: 0!important;}
html,body{overflow-x: hidden;}

.customer-content{
    position: relative;
}
.customer-content .cat{
    position: absolute;
    width: 180px;
    top: -106px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events:none;
}
.footer{overflow: visible!important;}
/* 移动端 */
@media (max-width: 768px) {
    .customer-content .cat{
        top: -102px;
    }
}
.breath-animation{
    animation: breath 2s ease-in-out infinite;
}
@keyframes breath {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.my-fav{
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
    user-select: none;
}

.my-fav:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 1);
}

/* 已收藏状态的反色样式 */
.my-fav.favorited {
    background-color: #e74c3c;
    /* 使用text-shadow技术让emoji显示为白色 */
    color: transparent;
    text-shadow: 0 0 0 white;
}

.my-fav.favorited:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}
.easter-egg{
    position: fixed;
    bottom: 0;
    left: -45px;
    z-index: 99999;
    pointer-events: none;
}

.category-nav .container .d-flex.mb-2 .mb-0{
    display: none!important;
}

/* Price information styles for page-19.html */
.price-info {
    font-size: 1.2rem;
    font-weight: 600;
    color: #8B4513;
    text-align: center;
    margin: 10px 0;
    padding: 5px 15px;
    background-color: #f8f5f2;
    border-radius: 4px;
    border-left: 4px solid #8B4513;
}

/* Mobile styles for price information */
@media (max-width: 768px) {
    .price-info {
        font-size: 1rem;
        padding: 3px 10px;
        margin: 8px 0;
    }
}

/* 标题序号竖排样式 */
.title-number {
    float: left;
    width: 30px;
    text-align: center;
    margin-right: 10px;
}

/* Video chapters styles for index.html */
.video-chapters {
    columns: 2;
    column-gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f8f5f2;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
}

.chapter-item {
    break-inside: avoid;
    margin-bottom: 10px;
    padding: 10px 15px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #d4c0b8;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.chapter-item:hover {
    border-color: #8B4513;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
    transform: translateY(-2px);
    color: #8B4513;
    text-decoration: none;
}

/* Icon styles in chapter items */
.chapter-item::before {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Mobile styles for video chapters */
@media (max-width: 768px) {
    .video-chapters {
        flex-direction: column;
        padding: 10px;
        gap: 8px;
    }
    
    .chapter-item {
        flex: 1 1 100%;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}
