.product-detail-box,
.product-content-box {
    width: 100%;
    margin: 18px 0 15px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    box-sizing: border-box;
}

.product-content-box {
    margin-top: 0;
}

.nav-bread {
    padding: 0 0 12px;
    margin: 0 0 22px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid #e8edf1;
}

.nav-bread a {
    color: #2f88bd;
    text-decoration: none;
}

.nav-bread a:hover {
    text-decoration: underline;
}

.product-detail-wrapper {
    display: grid !important;
    grid-template-columns: minmax(300px, min(40%, 650px)) minmax(0, 1fr) !important;
    gap: 30px;
    align-items: stretch;
    width: 100%;
    margin: 30px 0 0;
}

.product-image-wrapper,
.product-info-wrapper {
    width: auto !important;
    min-width: 0;
    max-width: none;
    float: none !important;
    padding: 14px;
    background: #fff;
    border: 1px solid #d9e5ec;
    border-radius: 4px;
    box-sizing: border-box;
}

.product-image-wrapper {
    display: flex;
    flex-direction: column;
}

.product-info-wrapper {
    display: flex;
}

.product-image-container {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    aspect-ratio: 650 / 430;
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf2f5;
    box-sizing: border-box;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: cover;
}

.xin-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 260px;
    color: #789;
    background: #f7fafc;
}

.product-info-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 0;
}

.product-title-mobile {
    display: none;
}

.product-header h1 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    min-width: 0;
    margin: 0 0 26px;
    padding-bottom: 16px;
    color: #222;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.38;
    border-bottom: 1px solid #e8edf1;
}

#copyBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 30px;
    padding: 0 12px;
    margin: 2px 0 0;
    border: 0;
    border-radius: 3px;
    color: #fff;
    background: #5b9bbb;
    font-size: 12px;
    line-height: 30px;
    cursor: pointer;
}

#copyBtn:hover {
    background: #4a8ba9;
}

.product-detail-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.product-attr-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    width: 100%;
    min-width: 0;
    margin: 0 0 30px;
}

.attr-item {
    display: grid !important;
    grid-template-columns: 118px minmax(0, 1fr);
    width: auto !important;
    min-width: 0;
    min-height: 42px;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: none;
}

.attr-item-left,
.attr-item-right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
}

.attr-item-left {
    border: 1px solid #5b9bbb;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    background: #5b9bbb;
}

.attr-item-right {
    padding: 7px 12px;
    border: 1px solid #dde4e8;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background: #fff;
    color: #222;
    line-height: 1.45;
    text-align: center;
    overflow-wrap: anywhere;
}

.attr-label {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.attr-value {
    color: #222;
    font-size: 14px;
    font-weight: 500;
}

.attr-item-site .attr-item-right {
    justify-content: center;
}

.demo-link {
    color: #2f88bd;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.demo-link:hover {
    color: #236d98;
    text-decoration: underline;
}

.free-text {
    color: #00a65a;
    font-weight: 700;
}

.download-btn-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: auto;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .14);
}

.btn-free {
    background: #00a65a;
}

.btn-buy {
    background: #ff5722;
}

.btn-buy:hover {
    background: #e64a19;
}

.btn-contact {
    background: #2196f3;
}

.btn-contact:hover {
    background: #1976d2;
}

.btn-backup {
    background: #3c8dbc;
}

.product-content-wrapper,
.tab-container,
.tab-content-container,
.tab-content,
.tab-panel {
    min-width: 0;
}

.tab-nav-wrapper {
    margin-bottom: 20px;
    border-bottom: 2px solid #3c8dbc;
}

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tab-nav li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 4px 4px 0 0;
    background: #f5f5f5;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    box-sizing: border-box;
}

.tab-nav li.active a,
.tab-nav li.active a:hover {
    background: #3c8dbc;
    color: #fff;
    font-weight: 700;
}

.tab-nav li a:hover {
    background: #e6edf2;
}

.description-content {
    margin-bottom: 15px;
    line-height: 1.8;
}

.order-delivery-item {
    margin-bottom: 12px;
}

.order-delivery-item pre {
    white-space: pre-wrap;
    word-break: break-word;
}

.product-content {
    min-width: 0;
    color: #333;
    line-height: 1.8;
}

.product-content p {
    margin: 0 0 16px;
}

.product-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 16px auto;
    border-radius: 4px;
}

.product-content img.tanz-content-lazy-image {
    width: min(100%, 900px);
    min-height: 220px;
    background: #f6f8fb;
    object-fit: contain;
}

.product-content img.is-error {
    min-height: 120px;
    background: #f8fafc;
}

.tanz-content-lazy-sentinel {
    height: 1px;
    margin: 1px 0;
}

.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1000;
    padding: 15px 30px;
    border-radius: 5px;
    background: rgba(0, 0, 0, .8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    color: #fff;
    font-size: 16px;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .3s;
}

.notification.show {
    opacity: 1;
}

@media screen and (max-width: 1500px) {
    .product-detail-wrapper {
        grid-template-columns: minmax(300px, min(38%, 620px)) minmax(0, 1fr) !important;
        gap: 28px;
    }
}

@media screen and (max-width: 1280px) {
    .product-detail-wrapper {
        grid-template-columns: minmax(280px, min(36%, 560px)) minmax(0, 1fr) !important;
        gap: 24px;
    }

    .product-attr-list {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .product-detail-box,
    .product-content-box {
        padding: 14px;
    }

    .product-detail-wrapper {
        grid-template-columns: 1fr !important;
        gap: 14px;
        margin-top: 18px;
    }

    .product-image-wrapper,
    .product-info-wrapper {
        width: 100% !important;
        padding: 12px;
    }

    .product-image-container {
        flex: none;
        aspect-ratio: 650 / 430;
    }

    .product-image {
        height: auto;
        object-fit: contain;
    }

    .product-title-mobile {
        display: block;
        margin-top: 14px;
    }

    .product-title-mobile h1 {
        margin: 0;
        color: #222;
        font-size: 18px;
        line-height: 1.45;
    }

    .product-header {
        display: none;
    }

    .product-info-container {
        padding: 0;
    }

    .product-attr-list {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 18px;
    }

    .attr-item {
        grid-template-columns: 1fr;
    }

    .attr-item-left {
        min-height: 34px;
        border-right: 1px solid #5b9bbb;
        border-radius: 4px 4px 0 0;
    }

    .attr-item-right {
        min-height: 38px;
        border-top: 0;
        border-left: 1px solid #dde4e8;
        border-radius: 0 0 4px 4px;
    }

    .download-btn-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-content img.tanz-content-lazy-image {
        min-height: 150px;
    }
}
